From c750674cab7fca1df8c4f42cabff20d909361e1b Mon Sep 17 00:00:00 2001 From: WyriHaximus <147145+WyriHaximus@users.noreply.github.com> Date: Fri, 17 Jan 2025 21:16:34 +0000 Subject: [PATCH] =?UTF-8?q?[GitHubEnterpriseCloud]=20Update=20to=201.1.4-1?= =?UTF-8?q?3776516632b8263e4016cfcc797d2c2=20from=201.1.4-072d2f6c7487ad40?= =?UTF-8?q?fc77b21845ea28e8=20Detected=20Schema=20changes:=202025-01-17=20?= =?UTF-8?q?20:27:10=20ERROR=20unable=20to=20open=20the=20rolodex=20file,?= =?UTF-8?q?=20check=20specification=20references=20and=20base=20path=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=E2=94=9C=20file:=20/=5F=5Fw/github-root/github-root/server-sta?= =?UTF-8?q?tistics-actions.yaml=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=E2=94=94=20error:=20open=20/=5F=5Fw?= =?UTF-8?q?/github-root/github-root/server-statistics-actions.yaml:=20no?= =?UTF-8?q?=20such=20file=20or=20directory=202025-01-17=2020:27:10=20ERROR?= =?UTF-8?q?=20unable=20to=20open=20the=20rolodex=20file,=20check=20specifi?= =?UTF-8?q?cation=20references=20and=20base=20path=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=E2=94=9C=20file:?= =?UTF-8?q?=20/=5F=5Fw/github-root/github-root/server-statistics-packages.?= =?UTF-8?q?yaml=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=E2=94=94=20error:=20open=20/=5F=5Fw/github-root/gi?= =?UTF-8?q?thub-root/server-statistics-packages.yaml:=20no=20such=20file?= =?UTF-8?q?=20or=20directory=202025-01-17=2020:27:10=20ERROR=20unable=20to?= =?UTF-8?q?=20open=20the=20rolodex=20file,=20check=20specification=20refer?= =?UTF-8?q?ences=20and=20base=20path=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=E2=94=9C=20file:=20/=5F=5Fw/g?= =?UTF-8?q?ithub-root/github-root/server-statistics-advisory-db.yaml=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=E2=94=94=20error:=20open=20/=5F=5Fw/github-root/github-root/se?= =?UTF-8?q?rver-statistics-advisory-db.yaml:=20no=20such=20file=20or=20dir?= =?UTF-8?q?ectory=202025-01-17=2020:27:12=20ERROR=20unable=20to=20open=20t?= =?UTF-8?q?he=20rolodex=20file,=20check=20specification=20references=20and?= =?UTF-8?q?=20base=20path=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=E2=94=9C=20file:=20/=5F=5Fw/github-root/g?= =?UTF-8?q?ithub-root/server-statistics-actions.yaml=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=E2=94=94=20err?= =?UTF-8?q?or:=20open=20/=5F=5Fw/github-root/github-root/server-statistics?= =?UTF-8?q?-actions.yaml:=20no=20such=20file=20or=20directory=202025-01-17?= =?UTF-8?q?=2020:27:12=20ERROR=20unable=20to=20open=20the=20rolodex=20file?= =?UTF-8?q?,=20check=20specification=20references=20and=20base=20path=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=E2=94=9C=20file:=20/=5F=5Fw/github-root/github-root/server-?= =?UTF-8?q?statistics-packages.yaml=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=E2=94=94=20error:=20open=20/=5F?= =?UTF-8?q?=5Fw/github-root/github-root/server-statistics-packages.yaml:?= =?UTF-8?q?=20no=20such=20file=20or=20directory=202025-01-17=2020:27:12=20?= =?UTF-8?q?ERROR=20unable=20to=20open=20the=20rolodex=20file,=20check=20sp?= =?UTF-8?q?ecification=20references=20and=20base=20path=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=E2=94=9C=20?= =?UTF-8?q?file:=20/=5F=5Fw/github-root/github-root/server-statistics-advi?= =?UTF-8?q?sory-db.yaml=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20?= =?UTF-8?q?=20=20=20=20=20=20=E2=94=94=20error:=20open=20/=5F=5Fw/github-r?= =?UTF-8?q?oot/github-root/server-statistics-advisory-db.yaml:=20no=20such?= =?UTF-8?q?=20file=20or=20directory=20ERROR:=20component=20`server-statist?= =?UTF-8?q?ics-actions.yaml`=20does=20not=20exist=20in=20the=20specificati?= =?UTF-8?q?on=20ERROR:=20component=20`server-statistics-packages.yaml`=20d?= =?UTF-8?q?oes=20not=20exist=20in=20the=20specification=20ERROR:=20compone?= =?UTF-8?q?nt=20`server-statistics-advisory-db.yaml`=20does=20not=20exist?= =?UTF-8?q?=20in=20the=20specification=20ERROR:=20cannot=20resolve=20refer?= =?UTF-8?q?ence=20`server-statistics-actions.yaml`,=20it's=20missing:=20?= =?UTF-8?q?=20[214277:11]=20ERROR:=20cannot=20resolve=20reference=20`serve?= =?UTF-8?q?r-statistics-packages.yaml`,=20it's=20missing:=20=20[214279:11]?= =?UTF-8?q?=20ERROR:=20cannot=20resolve=20reference=20`server-statistics-a?= =?UTF-8?q?dvisory-db.yaml`,=20it's=20missing:=20=20[214281:11]=20ERROR:?= =?UTF-8?q?=20component=20`server-statistics-actions.yaml`=20does=20not=20?= =?UTF-8?q?exist=20in=20the=20specification=20ERROR:=20component=20`server?= =?UTF-8?q?-statistics-packages.yaml`=20does=20not=20exist=20in=20the=20sp?= =?UTF-8?q?ecification=20ERROR:=20component=20`server-statistics-advisory-?= =?UTF-8?q?db.yaml`=20does=20not=20exist=20in=20the=20specification=20ERRO?= =?UTF-8?q?R:=20cannot=20resolve=20reference=20`server-statistics-actions.?= =?UTF-8?q?yaml`,=20it's=20missing:=20=20[213071:11]=20ERROR:=20cannot=20r?= =?UTF-8?q?esolve=20reference=20`server-statistics-packages.yaml`,=20it's?= =?UTF-8?q?=20missing:=20=20[213073:11]=20ERROR:=20cannot=20resolve=20refe?= =?UTF-8?q?rence=20`server-statistics-advisory-db.yaml`,=20it's=20missing:?= =?UTF-8?q?=20=20[213075:11]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clients/GitHubEnterpriseCloud/README.md | 446 ++++ .../etc/openapi-client-generator.state | 756 ++++-- clients/GitHubEnterpriseCloud/src/Client.php | 14 +- .../src/ClientInterface.php | 2 +- .../Schema/Integration/Owner.php | 45 + .../src/Internal/Hydrator/Operation/App.php | 394 +--- .../AppManifests/Code/Conversions.php | 394 +--- .../Hydrator/Operation/Apps/AppSlug.php | 394 +--- .../Enterprise/Actions/HostedRunners.php | 669 ++++++ .../Actions/HostedRunners/HostedRunnerId.php | 604 +++++ .../HostedRunners/Images/GithubOwned.php | 245 ++ .../Actions/HostedRunners/Images/Partner.php | 245 ++ .../Actions/HostedRunners/Limits.php | 294 +++ .../Actions/HostedRunners/MachineSizes.php | 245 ++ .../Actions/HostedRunners/Platforms.php | 245 ++ .../Enterprise/Actions/RunnerGroups.php | 19 + .../Actions/RunnerGroups/RunnerGroupId.php | 19 + .../Orgs/Org/Actions/HostedRunners.php | 669 ++++++ .../Actions/HostedRunners/HostedRunnerId.php | 604 +++++ .../HostedRunners/Images/GithubOwned.php | 245 ++ .../Actions/HostedRunners/Images/Partner.php | 245 ++ .../Orgs/Org/Actions/HostedRunners/Limits.php | 294 +++ .../Actions/HostedRunners/MachineSizes.php | 245 ++ .../Org/Actions/HostedRunners/Platforms.php | 245 ++ .../Orgs/Org/Actions/RunnerGroups.php | 19 + .../Actions/RunnerGroups/RunnerGroupId.php | 19 + .../RunnerGroupId/HostedRunners.php | 245 ++ .../Operation/Repos/Owner/Repo/CheckRuns.php | 394 +--- .../Repos/Owner/Repo/CheckRuns/CheckRunId.php | 394 +--- .../Repos/Owner/Repo/CheckSuites.php | 1541 +++++++------ .../Owner/Repo/CheckSuites/CheckSuiteId.php | 1541 +++++++------ .../Repos/Owner/Repo/Deployments.php | 31 +- .../Owner/Repo/Deployments/DeploymentId.php | 31 +- .../Deployments/DeploymentId/Statuses.php | 31 +- .../DeploymentId/Statuses/StatusId.php | 31 +- .../Operation/Repos/Owner/Repo/Issues.php | 31 +- .../Owner/Repo/Issues/Comments/CommentId.php | 31 +- .../Owner/Repo/Issues/Events/EventId.php | 31 +- .../Repos/Owner/Repo/Issues/IssueNumber.php | 31 +- .../Repo/Issues/IssueNumber/Assignees.php | 31 +- .../Repo/Issues/IssueNumber/Comments.php | 31 +- .../Repo/Issues/IssueNumber/SubIssue.php | 31 +- .../Repo/Issues/IssueNumber/SubIssues.php | 31 +- .../Issues/IssueNumber/SubIssues/Priority.php | 31 +- .../Internal/Hydrator/WebHook/CheckRun.php | 1292 +++++------ .../WebHook/DeploymentProtectionRule.php | 40 +- .../Hydrator/WebHook/IssueComment.php | 2054 +++++++++-------- .../Internal/Hydrator/WebHook/SubIssues.php | 40 +- .../Internal/Hydrator/WebHook/WorkflowJob.php | 30 +- .../src/Internal/Hydrators.php | 182 +- .../CreateHostedRunnerForEnterprise.php | 62 + .../Actions/CreateHostedRunnerForOrg.php | 62 + .../DeleteHostedRunnerForEnterprise.php | 62 + .../Actions/DeleteHostedRunnerForOrg.php | 62 + .../Actions/GetHostedRunnerForEnterprise.php | 62 + .../Actions/GetHostedRunnerForOrg.php | 62 + ...dRunnersGithubOwnedImagesForEnterprise.php | 59 + ...etHostedRunnersGithubOwnedImagesForOrg.php | 59 + .../GetHostedRunnersLimitsForEnterprise.php | 59 + .../Actions/GetHostedRunnersLimitsForOrg.php | 59 + ...HostedRunnersMachineSpecsForEnterprise.php | 59 + .../GetHostedRunnersMachineSpecsForOrg.php | 59 + ...ostedRunnersPartnerImagesForEnterprise.php | 59 + .../GetHostedRunnersPartnerImagesForOrg.php | 59 + ...GetHostedRunnersPlatformsForEnterprise.php | 59 + .../GetHostedRunnersPlatformsForOrg.php | 59 + .../ListGithubHostedRunnersInGroupForOrg.php | 68 + .../ListHostedRunnersForEnterprise.php | 65 + .../Actions/ListHostedRunnersForOrg.php | 65 + .../UpdateHostedRunnerForEnterprise.php | 65 + .../Actions/UpdateHostedRunnerForOrg.php | 65 + .../CreateHostedRunnerForEnterprise.php | 40 + .../Actions/CreateHostedRunnerForOrg.php | 40 + .../DeleteHostedRunnerForEnterprise.php | 40 + .../Actions/DeleteHostedRunnerForOrg.php | 40 + .../Actions/GetHostedRunnerForEnterprise.php | 40 + .../Actions/GetHostedRunnerForOrg.php | 40 + ...dRunnersGithubOwnedImagesForEnterprise.php | 40 + ...etHostedRunnersGithubOwnedImagesForOrg.php | 40 + .../GetHostedRunnersLimitsForEnterprise.php | 40 + .../Actions/GetHostedRunnersLimitsForOrg.php | 40 + ...HostedRunnersMachineSpecsForEnterprise.php | 40 + .../GetHostedRunnersMachineSpecsForOrg.php | 40 + ...ostedRunnersPartnerImagesForEnterprise.php | 40 + .../GetHostedRunnersPartnerImagesForOrg.php | 40 + ...GetHostedRunnersPlatformsForEnterprise.php | 40 + .../GetHostedRunnersPlatformsForOrg.php | 40 + .../ListGithubHostedRunnersInGroupForOrg.php | 40 + .../ListHostedRunnersForEnterprise.php | 40 + .../Actions/ListHostedRunnersForOrg.php | 40 + .../UpdateHostedRunnerForEnterprise.php | 40 + .../Actions/UpdateHostedRunnerForOrg.php | 40 + .../Dependabot/ListAlertsForEnterprise.php | 2 +- .../Operator/Dependabot/ListAlertsForOrg.php | 2 +- .../Operator/Dependabot/ListAlertsForRepo.php | 2 +- .../Dependabot/ListAlertsForRepoListing.php | 2 +- .../src/Internal/Operators.php | 210 ++ .../src/Internal/Router/Delete/Actions.php | 275 ++- .../src/Internal/Router/Delete/Codespaces.php | 72 +- .../src/Internal/Router/Delete/Dependabot.php | 40 +- .../Router/Delete/EnterpriseAdmin.php | 108 +- .../src/Internal/Router/Delete/Issues.php | 82 +- .../src/Internal/Router/Delete/Migrations.php | 36 +- .../src/Internal/Router/Delete/Orgs.php | 92 +- .../src/Internal/Router/Delete/Packages.php | 42 +- .../src/Internal/Router/Delete/Repos.php | 162 +- .../src/Internal/Router/Delete/Six.php | 20 +- .../src/Internal/Router/Delete/Teams.php | 96 +- .../src/Internal/Router/Get/Actions.php | 274 ++- .../src/Internal/Router/Get/Dependabot.php | 6 +- .../src/Internal/Router/Get/Five.php | 20 +- .../src/Internal/Router/Get/Seven.php | 42 +- .../src/Internal/Router/Get/Six.php | 46 +- .../src/Internal/Router/List/Dependabot.php | 2 +- .../src/Internal/Router/List/Six.php | 2 +- .../src/Internal/Router/Patch/Actions.php | 41 + .../src/Internal/Router/Patch/Six.php | 20 +- .../src/Internal/Router/Post/Actions.php | 29 + .../src/Internal/Router/Post/Five.php | 16 +- .../src/Internal/Routers.php | 116 +- .../src/Operation/Actions.php | 115 +- .../src/Operation/Dependabot.php | 8 +- .../src/PHPStan/ClientCallReturnTypes.php | 92 +- .../Request/ApplicationJson.php | 100 + .../Request/ApplicationJson/Image.php | 11 + .../Request/ApplicationJson.php | 98 + .../Request/ApplicationJson/Image.php | 11 + .../Request/ApplicationJson.php | 11 +- .../Request/ApplicationJson.php | 11 + .../Request/ApplicationJson.php | 11 + .../Request/ApplicationJson.php | 14 +- .../src/Schema/ActionsHostedRunner.php | 287 +++ .../src/Schema/ActionsHostedRunnerImage.php | 84 + .../src/Schema/ActionsHostedRunnerLimits.php | 61 + .../ActionsHostedRunnerLimits/PublicIps.php | 51 + .../Schema/ActionsHostedRunnerMachineSpec.php | 73 + .../Schema/ActionsHostedRunnerPoolImage.php | 84 + .../src/Schema/AddedToProjectIssueEvent.php | 120 +- .../Tiet53BA831A/Tiet581BF720.php | 92 + .../TietF9796515/Tiet7DE1877B.php | 63 + .../Tiet45DBD47E/Tiet2C497E99.php} | 294 ++- .../TietED377AFE/Tiet13E5F6AB.php | 51 + .../Tiet65ACE7F0/TietB5771089.php | 323 +++ .../Tiet7C05F65C/Tiet87EB6EC8.php | 103 + .../Tiet6B6919FC/Tiet23014603.php | 43 + .../src/Schema/AssignedIssueEvent.php | 120 +- .../src/Schema/BranchProtection.php | 290 ++- .../src/Schema/BranchWithProtection.php | 290 ++- .../src/Schema/CheckRun.php | 240 +- .../Schema/CheckRunWithSimpleCheckSuite.php | 360 ++- .../src/Schema/CheckSuite.php | 120 +- .../Schema/ConvertedNoteToIssueIssueEvent.php | 120 +- .../src/Schema/DemilestonedIssueEvent.php | 120 +- .../src/Schema/Deployment.php | 120 +- .../src/Schema/DeploymentSimple.php | 120 +- .../src/Schema/DeploymentStatus.php | 120 +- .../Request/ApplicationJson.php | 11 +- .../Request/ApplicationJson.php | 14 +- .../src/Schema/Event.php | 240 +- .../src/Schema/Event/Payload.php | 240 +- .../src/Schema/Integration.php | 124 +- .../src/Schema/Issue.php | 120 +- .../src/Schema/IssueComment.php | 120 +- .../src/Schema/IssueEvent.php | 240 +- .../src/Schema/IssueEventForIssue.php | 1667 +++++++++++-- .../src/Schema/IssueSearchResultItem.php | 120 +- .../src/Schema/LabeledIssueEvent.php | 120 +- .../src/Schema/LockedIssueEvent.php | 120 +- .../src/Schema/MilestonedIssueEvent.php | 120 +- .../Schema/MovedColumnInProjectIssueEvent.php | 120 +- .../Response/ApplicationJson/Ok.php | 11 + .../Response/ApplicationJson/Ok.php | 11 + .../ApplicationJson/Ok/Application/Json.php | 11 + .../Response/ApplicationJson/Ok.php | 11 + .../Response/ApplicationJson/Ok.php | 11 + .../ApplicationJson/Ok/Application/Json.php | 11 + .../Response/ApplicationJson/Ok.php | 11 + .../ApplicationJson/Ok/Application/Json.php | 11 + .../Response/ApplicationJson/Ok.php | 11 + .../ApplicationJson/Ok/Application/Json.php | 11 + .../Response/ApplicationJson/Ok.php | 11 + .../Response/ApplicationJson/Ok.php | 11 + .../ApplicationJson/Ok/Application/Json.php | 11 + .../Response/ApplicationJson/Ok.php | 323 +++ .../Response/ApplicationJson/Ok.php | 11 + .../Response/ApplicationJson/Ok.php | 11 + .../ApplicationJson/Ok/Application/Json.php | 11 + .../Response/ApplicationJson/Ok.php | 6 + .../Response/ApplicationJson/Created.php | 95 +- .../Response/ApplicationJson/Ok.php | 2 +- .../ApplicationJson/Ok/Application/Json.php | 2 +- .../Response/ApplicationJson/Ok.php | 2 +- .../Response/ApplicationJson/Ok.php | 145 +- .../Response/ApplicationJson/Ok.php | 6 + .../Response/ApplicationJson/Ok.php | 145 +- .../src/Schema/ProtectedBranch.php | 290 ++- .../RequiredPullRequestReviews.php | 290 ++- .../BypassPullRequestAllowances.php | 145 +- .../DismissalRestrictions.php | 145 +- .../ProtectedBranchPullRequestReview.php | 290 ++- .../BypassPullRequestAllowances.php | 145 +- .../DismissalRestrictions.php | 145 +- .../src/Schema/PublicIp.php | 53 + .../Schema/RemovedFromProjectIssueEvent.php | 120 +- .../src/Schema/RenamedIssueEvent.php | 120 +- .../src/Schema/ReviewDismissedIssueEvent.php | 120 +- .../Schema/ReviewRequestRemovedIssueEvent.php | 120 +- .../src/Schema/ReviewRequestedIssueEvent.php | 120 +- .../src/Schema/RunnerGroupsEnterprise.php | 9 +- .../src/Schema/RunnerGroupsOrg.php | 9 +- .../src/Schema/ShortBranch.php | 290 ++- .../src/Schema/SimpleCheckSuite.php | 120 +- .../src/Schema/StateChangeIssueEvent.php | 120 +- .../src/Schema/TimelineAssignedIssueEvent.php | 120 +- .../src/Schema/TimelineCommentEvent.php | 120 +- .../Schema/TimelineCrossReferencedEvent.php | 120 +- .../TimelineCrossReferencedEvent/Source.php | 120 +- .../src/Schema/TimelineIssueEvents.php | 1828 +++++++++++++-- .../Schema/TimelineUnassignedIssueEvent.php | 120 +- .../src/Schema/UnassignedIssueEvent.php | 120 +- .../src/Schema/UnlabeledIssueEvent.php | 120 +- .../src/Schema/WebhookCheckRunCompleted.php | 360 ++- .../src/Schema/WebhookCheckRunCreated.php | 360 ++- .../Schema/WebhookCheckRunRequestedAction.php | 360 ++- .../src/Schema/WebhookCheckRunRerequested.php | 360 ++- ...bhookDeploymentProtectionRuleRequested.php | 120 +- .../src/Schema/WebhookIssueCommentCreated.php | 120 +- .../WebhookIssueCommentCreated/Comment.php | 120 +- .../src/Schema/WebhookIssueCommentDeleted.php | 120 +- .../src/Schema/WebhookIssueCommentEdited.php | 120 +- .../WebhookSubIssuesParentIssueAdded.php | 240 +- .../WebhookSubIssuesParentIssueRemoved.php | 240 +- .../Schema/WebhookSubIssuesSubIssueAdded.php | 240 +- .../WebhookSubIssuesSubIssueRemoved.php | 240 +- .../Schema/WebhookWorkflowJobCompleted.php | 120 +- .../Schema/WebhookWorkflowJobInProgress.php | 120 +- .../src/Schema/WebhookWorkflowJobQueued.php | 120 +- .../src/Schema/WebhookWorkflowJobWaiting.php | 120 +- .../src/Schema/WebhooksIssueComment.php | 120 +- .../CreateHostedRunnerForEnterpriseTest.php | 54 + .../Actions/CreateHostedRunnerForOrgTest.php | 54 + .../DeleteHostedRunnerForEnterpriseTest.php | 55 + .../Actions/DeleteHostedRunnerForOrgTest.php | 55 + .../GetHostedRunnerForEnterpriseTest.php | 55 + .../Actions/GetHostedRunnerForOrgTest.php | 55 + ...nersGithubOwnedImagesForEnterpriseTest.php | 54 + ...stedRunnersGithubOwnedImagesForOrgTest.php | 54 + ...etHostedRunnersLimitsForEnterpriseTest.php | 54 + .../GetHostedRunnersLimitsForOrgTest.php | 54 + ...edRunnersMachineSpecsForEnterpriseTest.php | 54 + ...GetHostedRunnersMachineSpecsForOrgTest.php | 54 + ...dRunnersPartnerImagesForEnterpriseTest.php | 54 + ...etHostedRunnersPartnerImagesForOrgTest.php | 54 + ...ostedRunnersPlatformsForEnterpriseTest.php | 54 + .../GetHostedRunnersPlatformsForOrgTest.php | 54 + ...stGithubHostedRunnersInGroupForOrgTest.php | 57 + .../ListHostedRunnersForEnterpriseTest.php | 56 + .../Actions/ListHostedRunnersForOrgTest.php | 56 + .../UpdateHostedRunnerForEnterpriseTest.php | 55 + .../Actions/UpdateHostedRunnerForOrgTest.php | 55 + .../tests/Types/ClientCallReturnTypes.php | 29 +- .../GitHubEnterpriseCloud/current.spec.yaml | 1430 +++++++++++- 262 files changed, 30281 insertions(+), 9511 deletions(-) create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Attribute/CastUnionToType/Schema/Integration/Owner.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/HostedRunnerId.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/Images/GithubOwned.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/Images/Partner.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/Limits.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/MachineSizes.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/Platforms.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/HostedRunnerId.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/Images/GithubOwned.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/Images/Partner.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/Limits.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/MachineSizes.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/Platforms.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId/HostedRunners.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/CreateHostedRunnerForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/CreateHostedRunnerForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/DeleteHostedRunnerForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/DeleteHostedRunnerForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnerForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnerForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersLimitsForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersLimitsForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPlatformsForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPlatformsForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/ListGithubHostedRunnersInGroupForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/ListHostedRunnersForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/ListHostedRunnersForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/UpdateHostedRunnerForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/UpdateHostedRunnerForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/CreateHostedRunnerForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/CreateHostedRunnerForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/DeleteHostedRunnerForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/DeleteHostedRunnerForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnerForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnerForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersGithubOwnedImagesForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersGithubOwnedImagesForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersLimitsForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersLimitsForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersMachineSpecsForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersMachineSpecsForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPartnerImagesForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPartnerImagesForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPlatformsForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPlatformsForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/ListGithubHostedRunnersInGroupForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/ListHostedRunnersForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/ListHostedRunnersForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/UpdateHostedRunnerForEnterprise.php create mode 100644 clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/UpdateHostedRunnerForOrg.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Actions/CreateHostedRunnerForEnterprise/Request/ApplicationJson.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Actions/CreateHostedRunnerForEnterprise/Request/ApplicationJson/Image.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Actions/CreateHostedRunnerForOrg/Request/ApplicationJson.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Actions/CreateHostedRunnerForOrg/Request/ApplicationJson/Image.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Actions/UpdateHostedRunnerForEnterprise/Request/ApplicationJson.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Actions/UpdateHostedRunnerForOrg/Request/ApplicationJson.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/ActionsHostedRunner.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/ActionsHostedRunnerImage.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/ActionsHostedRunnerLimits.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/ActionsHostedRunnerLimits/PublicIps.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/ActionsHostedRunnerMachineSpec.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/ActionsHostedRunnerPoolImage.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet03017575/Tiet04AEE22A/Tiet53BA831A/Tiet581BF720.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet08F01699/Tiet5339BEAE/TietF9796515/Tiet7DE1877B.php rename clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/{Tiet719311E5/TietC0B26D9A/TietFEF50F4E/TietB9D1A15D.php => Tiet67EF09F8/Tiet8959F0C4/Tiet45DBD47E/Tiet2C497E99.php} (86%) create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet6A9F8EDD/Tiet84CC82D0/TietED377AFE/Tiet13E5F6AB.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet9E2FDFD4/Tiet096D3876/Tiet65ACE7F0/TietB5771089.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/TietC564D611/Tiet7E69EF5F/Tiet7C05F65C/Tiet87EB6EC8.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/TietEFA9F043/Tiet85CCFBAD/Tiet6B6919FC/Tiet23014603.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/GetHostedRunnersGithubOwnedImagesForEnterprise/Response/ApplicationJson/Ok.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/GetHostedRunnersGithubOwnedImagesForOrg/Response/ApplicationJson/Ok.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/GetHostedRunnersGithubOwnedImagesForOrg/Response/ApplicationJson/Ok/Application/Json.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/GetHostedRunnersMachineSpecsForEnterprise/Response/ApplicationJson/Ok.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/GetHostedRunnersMachineSpecsForOrg/Response/ApplicationJson/Ok.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/GetHostedRunnersMachineSpecsForOrg/Response/ApplicationJson/Ok/Application/Json.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/GetHostedRunnersPartnerImagesForEnterprise/Response/ApplicationJson/Ok.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/GetHostedRunnersPartnerImagesForEnterprise/Response/ApplicationJson/Ok/Application/Json.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/GetHostedRunnersPartnerImagesForOrg/Response/ApplicationJson/Ok.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/GetHostedRunnersPartnerImagesForOrg/Response/ApplicationJson/Ok/Application/Json.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/GetHostedRunnersPlatformsForEnterprise/Response/ApplicationJson/Ok.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/GetHostedRunnersPlatformsForOrg/Response/ApplicationJson/Ok.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/GetHostedRunnersPlatformsForOrg/Response/ApplicationJson/Ok/Application/Json.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListGithubHostedRunnersInGroupForOrg/Response/ApplicationJson/Ok.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListHostedRunnersForEnterprise/Response/ApplicationJson/Ok.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListHostedRunnersForOrg/Response/ApplicationJson/Ok.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListHostedRunnersForOrg/Response/ApplicationJson/Ok/Application/Json.php create mode 100644 clients/GitHubEnterpriseCloud/src/Schema/PublicIp.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/CreateHostedRunnerForEnterpriseTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/CreateHostedRunnerForOrgTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/DeleteHostedRunnerForEnterpriseTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/DeleteHostedRunnerForOrgTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnerForEnterpriseTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnerForOrgTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForEnterpriseTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForOrgTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersLimitsForEnterpriseTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersLimitsForOrgTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForEnterpriseTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForOrgTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForEnterpriseTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForOrgTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPlatformsForEnterpriseTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPlatformsForOrgTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/ListGithubHostedRunnersInGroupForOrgTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/ListHostedRunnersForEnterpriseTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/ListHostedRunnersForOrgTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/UpdateHostedRunnerForEnterpriseTest.php create mode 100644 clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/UpdateHostedRunnerForOrgTest.php diff --git a/clients/GitHubEnterpriseCloud/README.md b/clients/GitHubEnterpriseCloud/README.md index 7841db21b81..3bc949063a3 100644 --- a/clients/GitHubEnterpriseCloud/README.md +++ b/clients/GitHubEnterpriseCloud/README.md @@ -874,6 +874,216 @@ $client->operations()->actions()->getActionsCacheUsageForEnterprise( ente You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#get-github-actions-cache-usage-for-an-enterprise). +### actions/list-hosted-runners-for-enterprise + +List GitHub-hosted runners for an enterprise + +Using the `call` method: +```php +$client->call('GET /enterprises/{enterprise}/actions/hosted-runners', [ + 'enterprise' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->actions()->listHostedRunnersForEnterprise( enterprise: 'generated', + 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/actions/hosted-runners#list-github-hosted-runners-for-an-enterprise). + + +### actions/create-hosted-runner-for-enterprise + +Create a GitHub-hosted runner for an enterprise + +Using the `call` method: +```php +$client->call('POST /enterprises/{enterprise}/actions/hosted-runners', [ + 'enterprise' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->actions()->createHostedRunnerForEnterprise( enterprise: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#create-a-github-hosted-runner-for-an-enterprise). + + +### actions/get-hosted-runners-github-owned-images-for-enterprise + +Get GitHub-owned images for GitHub-hosted runners in an enterprise + +Using the `call` method: +```php +$client->call('GET /enterprises/{enterprise}/actions/hosted-runners/images/github-owned', [ + 'enterprise' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->actions()->getHostedRunnersGithubOwnedImagesForEnterprise( enterprise: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-owned-images-for-github-hosted-runners-in-an-enterprise). + + +### actions/get-hosted-runners-partner-images-for-enterprise + +Get partner images for GitHub-hosted runners in an enterprise + +Using the `call` method: +```php +$client->call('GET /enterprises/{enterprise}/actions/hosted-runners/images/partner', [ + 'enterprise' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->actions()->getHostedRunnersPartnerImagesForEnterprise( enterprise: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-partner-images-for-github-hosted-runners-in-an-enterprise). + + +### actions/get-hosted-runners-limits-for-enterprise + +Get limits on GitHub-hosted runners for an enterprise + +Using the `call` method: +```php +$client->call('GET /enterprises/{enterprise}/actions/hosted-runners/limits', [ + 'enterprise' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->actions()->getHostedRunnersLimitsForEnterprise( enterprise: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-limits-on-github-hosted-runners-for-an-enterprise). + + +### actions/get-hosted-runners-machine-specs-for-enterprise + +Get GitHub-hosted runners machine specs for an enterprise + +Using the `call` method: +```php +$client->call('GET /enterprises/{enterprise}/actions/hosted-runners/machine-sizes', [ + 'enterprise' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->actions()->getHostedRunnersMachineSpecsForEnterprise( enterprise: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-hosted-runners-machine-specs-for-an-enterprise). + + +### actions/get-hosted-runners-platforms-for-enterprise + +Get platforms for GitHub-hosted runners in an enterprise + +Using the `call` method: +```php +$client->call('GET /enterprises/{enterprise}/actions/hosted-runners/platforms', [ + 'enterprise' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->actions()->getHostedRunnersPlatformsForEnterprise( enterprise: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-platforms-for-github-hosted-runners-in-an-enterprise). + + +### actions/get-hosted-runner-for-enterprise + +Get a GitHub-hosted runner for an enterprise + +Using the `call` method: +```php +$client->call('GET /enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}', [ + 'enterprise' => 'generated', + 'hosted_runner_id' => 16, +]); +``` + +Operations method: +```php +$client->operations()->actions()->getHostedRunnerForEnterprise( enterprise: 'generated', + hosted_runner_id: 16, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-a-github-hosted-runner-for-an-enterprise). + + +### actions/delete-hosted-runner-for-enterprise + +Delete a GitHub-hosted runner for an enterprise + +Using the `call` method: +```php +$client->call('DELETE /enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}', [ + 'enterprise' => 'generated', + 'hosted_runner_id' => 16, +]); +``` + +Operations method: +```php +$client->operations()->actions()->deleteHostedRunnerForEnterprise( enterprise: 'generated', + hosted_runner_id: 16, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#delete-a-github-hosted-runner-for-an-enterprise). + + +### actions/update-hosted-runner-for-enterprise + +Update a GitHub-hosted runner for an enterprise + +Using the `call` method: +```php +$client->call('PATCH /enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}', [ + 'enterprise' => 'generated', + 'hosted_runner_id' => 16, +]); +``` + +Operations method: +```php +$client->operations()->actions()->updateHostedRunnerForEnterprise( enterprise: 'generated', + hosted_runner_id: 16, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#update-a-github-hosted-runner-for-an-enterprise). + + ### actions/set-actions-oidc-custom-issuer-policy-for-enterprise Set the GitHub Actions OIDC custom issuer policy for an enterprise @@ -4600,6 +4810,216 @@ $client->operations()->actions()->getActionsCacheUsageByRepoForOrg( org: You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#list-repositories-with-github-actions-cache-usage-for-an-organization). +### actions/list-hosted-runners-for-org + +List GitHub-hosted runners for an organization + +Using the `call` method: +```php +$client->call('GET /orgs/{org}/actions/hosted-runners', [ + 'org' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->actions()->listHostedRunnersForOrg( org: 'generated', + 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/actions/hosted-runners#list-github-hosted-runners-for-an-organization). + + +### actions/create-hosted-runner-for-org + +Create a GitHub-hosted runner for an organization + +Using the `call` method: +```php +$client->call('POST /orgs/{org}/actions/hosted-runners', [ + 'org' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->actions()->createHostedRunnerForOrg( org: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#create-a-github-hosted-runner-for-an-organization). + + +### actions/get-hosted-runners-github-owned-images-for-org + +Get GitHub-owned images for GitHub-hosted runners in an organization + +Using the `call` method: +```php +$client->call('GET /orgs/{org}/actions/hosted-runners/images/github-owned', [ + 'org' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->actions()->getHostedRunnersGithubOwnedImagesForOrg( org: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-owned-images-for-github-hosted-runners-in-an-organization). + + +### actions/get-hosted-runners-partner-images-for-org + +Get partner images for GitHub-hosted runners in an organization + +Using the `call` method: +```php +$client->call('GET /orgs/{org}/actions/hosted-runners/images/partner', [ + 'org' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->actions()->getHostedRunnersPartnerImagesForOrg( org: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-partner-images-for-github-hosted-runners-in-an-organization). + + +### actions/get-hosted-runners-limits-for-org + +Get limits on GitHub-hosted runners for an organization + +Using the `call` method: +```php +$client->call('GET /orgs/{org}/actions/hosted-runners/limits', [ + 'org' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->actions()->getHostedRunnersLimitsForOrg( org: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-limits-on-github-hosted-runners-for-an-organization). + + +### actions/get-hosted-runners-machine-specs-for-org + +Get GitHub-hosted runners machine specs for an organization + +Using the `call` method: +```php +$client->call('GET /orgs/{org}/actions/hosted-runners/machine-sizes', [ + 'org' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->actions()->getHostedRunnersMachineSpecsForOrg( org: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-hosted-runners-machine-specs-for-an-organization). + + +### actions/get-hosted-runners-platforms-for-org + +Get platforms for GitHub-hosted runners in an organization + +Using the `call` method: +```php +$client->call('GET /orgs/{org}/actions/hosted-runners/platforms', [ + 'org' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->actions()->getHostedRunnersPlatformsForOrg( org: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-platforms-for-github-hosted-runners-in-an-organization). + + +### actions/get-hosted-runner-for-org + +Get a GitHub-hosted runner for an organization + +Using the `call` method: +```php +$client->call('GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}', [ + 'org' => 'generated', + 'hosted_runner_id' => 16, +]); +``` + +Operations method: +```php +$client->operations()->actions()->getHostedRunnerForOrg( org: 'generated', + hosted_runner_id: 16, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-a-github-hosted-runner-for-an-organization). + + +### actions/delete-hosted-runner-for-org + +Delete a GitHub-hosted runner for an organization + +Using the `call` method: +```php +$client->call('DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}', [ + 'org' => 'generated', + 'hosted_runner_id' => 16, +]); +``` + +Operations method: +```php +$client->operations()->actions()->deleteHostedRunnerForOrg( org: 'generated', + hosted_runner_id: 16, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#delete-a-github-hosted-runner-for-an-organization). + + +### actions/update-hosted-runner-for-org + +Update a GitHub-hosted runner for an organization + +Using the `call` method: +```php +$client->call('PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}', [ + 'org' => 'generated', + 'hosted_runner_id' => 16, +]); +``` + +Operations method: +```php +$client->operations()->actions()->updateHostedRunnerForOrg( org: 'generated', + hosted_runner_id: 16, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#update-a-github-hosted-runner-for-an-organization). + + ### oidc/get-oidc-custom-sub-template-for-org Get the customization template for an OIDC subject claim for an organization @@ -4960,6 +5380,32 @@ $client->operations()->actions()->updateSelfHostedRunnerGroupForOrg( org: You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runner-groups#update-a-self-hosted-runner-group-for-an-organization). +### actions/list-github-hosted-runners-in-group-for-org + +List GitHub-hosted runners in a group for an organization + +Using the `call` method: +```php +$client->call('GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners', [ + 'org' => 'generated', + 'runner_group_id' => 15, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->actions()->listGithubHostedRunnersInGroupForOrg( org: 'generated', + runner_group_id: 15, + 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/actions/self-hosted-runner-groups#list-github-hosted-runners-in-a-group-for-an-organization). + + ### actions/list-repo-access-to-self-hosted-runner-group-in-org List repository access to a self-hosted runner group in an organization diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index 1125e3ab260..9b8dfe14d8e 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "072d2f6c7487ad40fc77b21845ea28e8", + "specHash": "13776516632b8263e4016cfcc797d2c2", "generatedFiles": { "files": [ { @@ -12,7 +12,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Integration.php", - "hash": "403d5855e061b9d3bfa306d9830abe68" + "hash": "bcbff99bee07669079712210b8ae150a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/BasicError.php", @@ -168,7 +168,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RunnerGroupsEnterprise.php", - "hash": "6395ab995ab57b4ad8a27cdd9fec502a" + "hash": "6790e868318c8e41a8621fd0d3da1e65" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RunnerLabel.php", @@ -396,15 +396,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Issue.php", - "hash": "bebcdbad5bdab08b94892449e30674c1" + "hash": "831b277d379974d4c0a9c95b29a4ed81" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/IssueComment.php", - "hash": "e4dcd0a30df0c752edc23b2af52468d6" + "hash": "a762f51e7064331bf16fe9dc658b3ac6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Event.php", - "hash": "ed1aa38c990363ec1a80d694879c0752" + "hash": "bdfc00fbec526928c144437851c5a12f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/LinkWithType.php", @@ -512,7 +512,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RunnerGroupsOrg.php", - "hash": "abab7f1eed3683036030350969616d65" + "hash": "333145d4f4298f2748b7738e2a8aec7a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/OrganizationActionsSecret.php", @@ -860,7 +860,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Deployment.php", - "hash": "6fa21739d3ca957660d563fcb5bdb227" + "hash": "5c29779ff448bff29ac0d12ba3a170ea" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WorkflowRunUsage.php", @@ -884,7 +884,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ProtectedBranchPullRequestReview.php", - "hash": "3399ce2fe079ee1e832b67263430ca04" + "hash": "12df3024a85ff1af3b23d1eda5ad0fdd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/BranchRestrictionPolicy.php", @@ -892,11 +892,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/BranchProtection.php", - "hash": "7e2eb8cde07b3f1bd23f6233978f53c9" + "hash": "5c97490eb9f2b73fad2e59c5d6c50316" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ShortBranch.php", - "hash": "81c2173a55afedfa2ca7c7dd55a84bae" + "hash": "d28796e74ff2fe11aab05273d74088ef" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GitUser.php", @@ -916,7 +916,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/BranchWithProtection.php", - "hash": "65e23520b483ad0a6d1523f8e4314f2c" + "hash": "ff5bc3bfe56a52d2a3ee04a5183556be" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/StatusCheckPolicy.php", @@ -924,15 +924,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ProtectedBranch.php", - "hash": "45d3045d0ed2eb8639f60764d526c4ec" + "hash": "5c74fd5cedadc0176ede08856b33ec6e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DeploymentSimple.php", - "hash": "b37b2f48aea750dadceb4a955a45c20d" + "hash": "a5625134bd433c6dd20cbe5156f009ff" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CheckRun.php", - "hash": "bb99de9b906ccda2922cc8c01c7e2897" + "hash": "1bbf2fbfe3bbf40815fb1ad185c12146" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CheckAnnotation.php", @@ -940,7 +940,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CheckSuite.php", - "hash": "c775e68d7d35e37886acb86e3a4679b8" + "hash": "2bc71147f7eda0c9483f099dca611ad5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CheckSuitePreference.php", @@ -1144,7 +1144,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DeploymentStatus.php", - "hash": "c3d68dc7a9c1f87755335f3285ac9acc" + "hash": "b57ba4602c2e47f186a6638450ffafdd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WaitTimer.php", @@ -1240,71 +1240,71 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/IssueEvent.php", - "hash": "ff4b4a21bd4dba81720568111643fef6" + "hash": "053bb21def78b106b9316952b5e32312" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/LabeledIssueEvent.php", - "hash": "e34485885b27e40783bc805e7d2b1de7" + "hash": "c69867594a93da33d2b37ee3e961596f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/UnlabeledIssueEvent.php", - "hash": "01e62a98c2d0556be45d61d394aaaae3" + "hash": "020dee6eb26e7f62b748aea5fb4571cf" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AssignedIssueEvent.php", - "hash": "1cc56c7fc8da81959c00afe4cdfa301d" + "hash": "14575288cc3ee7c1c8cf4b7f319246cf" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/UnassignedIssueEvent.php", - "hash": "af9a31eeb9c9fe7073d9b0f20fa4a5ca" + "hash": "cbd1def1479a243afd759f11daa52c19" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/MilestonedIssueEvent.php", - "hash": "b499413bc38c37be9a9d357ea9c45c2c" + "hash": "555ed99fd597f37f2875600ee438e3ef" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DemilestonedIssueEvent.php", - "hash": "4573f6d7b7a5a774ef81cbc8d4a0d52f" + "hash": "20784b8649c5195cf73cf6ca98a65988" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RenamedIssueEvent.php", - "hash": "ba9b91496d430ad1f4840e3748a74f4e" + "hash": "b0bf1b1c87ee4843ae3b611248677ae8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ReviewRequestedIssueEvent.php", - "hash": "21c5a53664b0fdb7404851bd83ebcb6c" + "hash": "18ba6aded8a50d5dff5d55f49d7c267e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ReviewRequestRemovedIssueEvent.php", - "hash": "bbaa18c726963514250c1985f5f5999c" + "hash": "bec1a5edd43939d0a0fa49a9fa401bb3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ReviewDismissedIssueEvent.php", - "hash": "825d544711bffff5802357613f2f7782" + "hash": "a77389ed8d8e817b73b964e7f83ec4e7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/LockedIssueEvent.php", - "hash": "16ae5fcffec1066711489275067adca7" + "hash": "e5ba32a60650c5832969b4e93acd2448" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AddedToProjectIssueEvent.php", - "hash": "9faa69bf1ab41917682f7f89767adbec" + "hash": "2c3dfe7bcff217fbd52d9be5ecf3035e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/MovedColumnInProjectIssueEvent.php", - "hash": "1eb4ae4ac9ac695c163381d105800592" + "hash": "0a5226059bb9a65880a100b0c2e5f4cf" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RemovedFromProjectIssueEvent.php", - "hash": "58e399270f1c6d037ccda86daa5cb5a1" + "hash": "74a492a662b5d75405993be555b46e8d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ConvertedNoteToIssueIssueEvent.php", - "hash": "72ef29075e8d87aaccdf1a36abc3b779" + "hash": "8f6220278140f434c7ca3fb70fc71278" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/IssueEventForIssue.php", - "hash": "4be5b8140ecf646a37d020051b671121" + "hash": "db448cd5771394d4ab9d83ca919aefb6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Label.php", @@ -1312,11 +1312,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/TimelineCommentEvent.php", - "hash": "df4cf7b704c18d8275a31fc06cc67f80" + "hash": "92450588e2936ed7355aaba3d01ef73e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent.php", - "hash": "add1c7956eaf22792f6e35774c022320" + "hash": "791e309490dcbf4c4716d3ba0eb2ed69" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/TimelineCommittedEvent.php", @@ -1340,19 +1340,19 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/TimelineAssignedIssueEvent.php", - "hash": "feb6dc17fd1f5d8ac29ab96270e4a123" + "hash": "3e2e460684aaf153c0e2bdf40ef96f9d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/TimelineUnassignedIssueEvent.php", - "hash": "035616b4c1836687d2d442ba2262a34a" + "hash": "943012928e218fec0676d6ed88c72a70" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/StateChangeIssueEvent.php", - "hash": "72491ab20874afc6ffd1be26b297f56a" + "hash": "597b1095c68d1b4b9e70f4c187c9d85b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/TimelineIssueEvents.php", - "hash": "4f345ac9974a15cdb4a2efe425bcdcb5" + "hash": "27022fdd4c0b0c76c425f286d53e5edb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DeployKey.php", @@ -1568,7 +1568,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/IssueSearchResultItem.php", - "hash": "4b29abc839a5ae9d8da72dd16f7811d1" + "hash": "f50ab6390c737bb731ef8a2baa971191" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/LabelSearchResultItem.php", @@ -1652,11 +1652,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SimpleCheckSuite.php", - "hash": "4d471b0c149ee08fc176fd1a2c8f3a33" + "hash": "9808042425a2d7b317ed0c6b7bd2fcdf" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CheckRunWithSimpleCheckSuite.php", - "hash": "7f92583cfa14aa9b5b3591487be4e13a" + "hash": "34baae3e4b0b8d71f047baec34c05e65" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Discussion.php", @@ -1696,7 +1696,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCompleted.php", - "hash": "525da8a3242d41308d2a3cf1d4a3cbb0" + "hash": "c149803a2ef8525dd75e6651d9914374" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCompletedFormEncoded.php", @@ -1704,7 +1704,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCreated.php", - "hash": "5a5a8f7d9608c95154dc2e229ee8f399" + "hash": "642e024636aadbef24ead9941e034d3c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCreatedFormEncoded.php", @@ -1712,7 +1712,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRequestedAction.php", - "hash": "d71355a234f9eb86a654d9a6daa7282f" + "hash": "c9b8c91e025ed840807995390c83ecbd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRequestedActionFormEncoded.php", @@ -1720,7 +1720,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRerequested.php", - "hash": "60a692d8a178b99b0b4f3427f0600d4b" + "hash": "ce49531904997e9c153694b93abc2b59" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRerequestedFormEncoded.php", @@ -1816,7 +1816,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentProtectionRuleRequested.php", - "hash": "c461bf7cac29d459de2f21bf8649c1ff" + "hash": "06b5f44129499f7e8f9d7930e4877a62" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentStatusCreated.php", @@ -1940,15 +1940,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated.php", - "hash": "dc996d79f56c2f4cfc8657435d263cbf" + "hash": "2423cd737b61aa607e9cf37309fca59e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted.php", - "hash": "58cf9086a9ce3c142ef7d728950d8b65" + "hash": "9f09f44fc822ec74849f45f2da0de842" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited.php", - "hash": "5f97a59712b98cc6f350f34cff8415ac" + "hash": "b9c2bd1084f98e6499279a31c477a63e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesAssigned.php", @@ -2604,19 +2604,19 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobCompleted.php", - "hash": "d83aacd5eb2cb988ac6725bca601ca13" + "hash": "631f27ec4f10d92cf3a113a8b15cf551" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobInProgress.php", - "hash": "0a82d3bf53b1f657cb7be81220aef5be" + "hash": "50d755da16b19a3c349178afc7f61b3c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobQueued.php", - "hash": "75c90b4e30b0822fbc857c2eca36a751" + "hash": "2c5e81d07ff001b46c0e449c591d8608" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobWaiting.php", - "hash": "46234f2615b68757e77b9e1318f019e5" + "hash": "1f0897ee4c5553399272738e63633cb6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowRunCompleted.php", @@ -2792,7 +2792,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Event\/Payload.php", - "hash": "02fcde99f5b1fe54f4eceaf0ab0a67b7" + "hash": "93f39ad0c0a6a37c2aa9d01e4aabe57b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Event\/Payload\/Pages.php", @@ -3024,11 +3024,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ProtectedBranchPullRequestReview\/DismissalRestrictions.php", - "hash": "a8a2506bc6b4b918054471ef3cdaf15c" + "hash": "acf0b28145b685f308d7ec581814b5e2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ProtectedBranchPullRequestReview\/BypassPullRequestAllowances.php", - "hash": "8681484f5ae8fda3fc4f75fe669b39bc" + "hash": "48105e7e0d954530dde528756c303ae5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/BranchRestrictionPolicy\/Teams.php", @@ -3092,15 +3092,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ProtectedBranch\/RequiredPullRequestReviews.php", - "hash": "5f0665740d0d25e55a56b520403dbafc" + "hash": "9646b102ed5a1b7e6b6e79b1604f758d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ProtectedBranch\/RequiredPullRequestReviews\/DismissalRestrictions.php", - "hash": "f0780d9ea72fbe8abb8c18cc3b2dffd1" + "hash": "21a045d20bfa8bcd6aeaae657b5e8e31" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ProtectedBranch\/RequiredPullRequestReviews\/BypassPullRequestAllowances.php", - "hash": "c51e3104f413db2df51eda58089a7a84" + "hash": "468e9c4fb2c2136311b2e618a8b76e8b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ProtectedBranch\/EnforceAdmins.php", @@ -3312,7 +3312,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent\/Source.php", - "hash": "125846d35487a88193090918ee121817" + "hash": "e9ba570a80ca1ef1a03a8b3e558c27f3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/TimelineReviewedEvent\/Links.php", @@ -3728,7 +3728,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Comment.php", - "hash": "3b199d9286bd3f42e9a759aa661db82f" + "hash": "f9e18832176d0953d98ee255be20d10d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue.php", @@ -4572,7 +4572,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Apps\/CreateFromManifest\/Response\/ApplicationJson\/Created.php", - "hash": "39bd94314186ef062d9fb76c14e154e3" + "hash": "fdae447d8779f5579fe436dd5f44c65a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Apps\/UpdateWebhookConfigForApp\/Request\/ApplicationJson.php", @@ -4608,15 +4608,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/EnterpriseAdmin\/ListSelfHostedRunnerGroupsForEnterprise\/Response\/ApplicationJson\/Ok.php", - "hash": "4f8e9a3d66d2b5f2211456e63373c8c4" + "hash": "1a54df2930c10740e83b819a5e8f475c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/EnterpriseAdmin\/CreateSelfHostedRunnerGroupForEnterprise\/Request\/ApplicationJson.php", - "hash": "3485b306bb45d615909f4e60baf06d4e" + "hash": "c57254f7abb9510ef456e169a117c0a7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/EnterpriseAdmin\/UpdateSelfHostedRunnerGroupForEnterprise\/Request\/ApplicationJson.php", - "hash": "02b2381b578ff4ee533cb576f33fc480" + "hash": "ccba2bc8485597292b6bf3feb5048ef5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/EnterpriseAdmin\/SetOrgAccessToSelfHostedRunnerGroupInEnterprise\/Request\/ApplicationJson.php", @@ -4772,15 +4772,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListSelfHostedRunnerGroupsForOrg\/Response\/ApplicationJson\/Ok.php", - "hash": "3d85ee4537f8c84f5c3712104cea88d9" + "hash": "0144cbf944de8a18e35514f6c4897d94" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Actions\/CreateSelfHostedRunnerGroupForOrg\/Request\/ApplicationJson.php", - "hash": "f9202ad9f614a7dc322795bddefae072" + "hash": "cd4691a58ba2943101c41ddfea8c451b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Actions\/UpdateSelfHostedRunnerGroupForOrg\/Request\/ApplicationJson.php", - "hash": "f93c590fa12d9768b88d2cedb9329e0e" + "hash": "a380ec26e8c9c4d3e96c7e1ecdd50194" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListRepoAccessToSelfHostedRunnerGroupInOrg\/Response\/ApplicationJson\/Ok.php", @@ -5212,7 +5212,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Checks\/ListForSuite\/Response\/ApplicationJson\/Ok.php", - "hash": "2474bc6f4d427cf40cb4f9092c7d1240" + "hash": "647c82c17fc833d685749a4d5550bbe0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeScanning\/UpdateAlert\/Request\/ApplicationJson.php", @@ -5272,7 +5272,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Checks\/ListSuitesForRef\/Response\/ApplicationJson\/Ok.php", - "hash": "40193b6d579d67c5978e42d29dd1d5b8" + "hash": "523fa6503154028b183f1d5b3a915396" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Repos\/GetContent\/Response\/ApplicationJson\/Ok.php", @@ -5720,7 +5720,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/IssuesAndPullRequests\/Response\/ApplicationJson\/Ok.php", - "hash": "766817019620537b543cdaebb88515ea" + "hash": "b40192982cdd77723179adc111a8debf" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/Labels\/Response\/ApplicationJson\/Ok.php", @@ -5852,11 +5852,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/ClientInterface.php", - "hash": "ab7bce1a2a617a39f6628badf2c99ce3" + "hash": "30f9a316e320455f2f485a7f4740d808" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Client.php", - "hash": "26ab8a3502c2e4e2afb1c855ae133e61" + "hash": "65b3213702523c7e8d24cb270ebec88e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/OperationsInterface.php", @@ -5884,7 +5884,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Actions.php", - "hash": "1a8b3a499a1d8181b6d80fd6a019cf1e" + "hash": "3f3201c7cfa7d53a2c0ef66ae1bd3bce" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/AnnouncementBanners.php", @@ -5900,7 +5900,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Dependabot.php", - "hash": "adbc065773f39ab2ff7daa72dbb27fa8" + "hash": "31f474187eb6d0884eba423089b6ba4a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Billing.php", @@ -11924,11 +11924,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Checks\/ListForRef\/Response\/ApplicationJson\/Ok.php", - "hash": "15c39a3d3d91d156b1d0f5eddef8de96" + "hash": "7ff0ca6c398410cf50dc4c6c74cb046c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Checks\/ListForRef\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "63fcacb9620cddfe826a9d8ff6be3905" + "hash": "d5d9b53f72544d25755865227a13e8d4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/CodespaceMachinesForAuthenticatedUser\/Response\/ApplicationJson\/Ok.php", @@ -13316,7 +13316,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForEnterprise.php", - "hash": "c12c89b964904afea3ee88343713a287" + "hash": "0a11d1ff468c161ebbbc3a93bed15931" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForEnterpriseTest.php", @@ -15256,7 +15256,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForOrg.php", - "hash": "71f340171025a546b4b7ebd5c0edc72b" + "hash": "c6c11e398394e4f12ff9100a6743e9f8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForOrgTest.php", @@ -19764,7 +19764,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepo.php", - "hash": "6b42798199a1032f390311fb8b86eb1a" + "hash": "5c51e72cba7c4559d9a1b48fc1a7e4df" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoTest.php", @@ -19776,7 +19776,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepoListing.php", - "hash": "44f96dd77a2c73ac138b71e85acb7968" + "hash": "052b06774467d8443d83183985da11e5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoListingTest.php", @@ -26044,11 +26044,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Dependabot.php", - "hash": "ac7d7ee9d77c79c3047a6790a25ff0c7" + "hash": "d64d814b88a4f75c0b68ad67f707cce7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Actions.php", - "hash": "60706d920bae3c9c73fc69c681b47142" + "hash": "bbc363c0b2223d0fe8f077b99c963e79" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Copilot.php", @@ -26116,7 +26116,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Actions.php", - "hash": "40ecc6d153da1481b289d1663ec03436" + "hash": "2f6f981b212e4e803014096d55e64765" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/EnterpriseAdmin.php", @@ -26220,7 +26220,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Actions.php", - "hash": "935b1a51631d568d1563225b263a60a2" + "hash": "e52b23f8076833636124c929671de57f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Orgs.php", @@ -26336,7 +26336,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Dependabot.php", - "hash": "fd306bedb488a8c37b50d129d0e45fc6" + "hash": "739fb9d50a6d7242f7cac9163a8a863b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Reactions.php", @@ -26368,7 +26368,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Repos.php", - "hash": "52e5d33dde7119b6833338b6efcb4f0f" + "hash": "51ea6e3c7453f9c58a9aa889da6f7a5f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Users.php", @@ -26376,7 +26376,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Codespaces.php", - "hash": "e2bfcd44e6fbe9d28356cdf13c5ffcd9" + "hash": "57d8f049c549fd24a08d2306d5f1ed5e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Activity.php", @@ -26384,27 +26384,27 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Orgs.php", - "hash": "0f9cccf93b4394787c3ef3ac676d573f" + "hash": "fb6a562275f0e8285708e59c364b0aa2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Teams.php", - "hash": "568a723811296b39716772e910e49e2f" + "hash": "2ac5eecaf33e766f5f025f6ee6c0c918" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Migrations.php", - "hash": "4785532761b31ecb871a39a2ccb458c8" + "hash": "e8caecd0c06db2a53d81fea75126d534" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Packages.php", - "hash": "0a6c802a4a0b502fadb650fb59e4c259" + "hash": "839c686c8d86e795984be89c5643ce5c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/EnterpriseAdmin.php", - "hash": "dc3738d734829b385f155037e262bf80" + "hash": "40c9e7c231f57f22f6f173129c28010f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Actions.php", - "hash": "cd021fb2c4b9187dd08aaacd86acb846" + "hash": "72d19bdd083f3b5316659643f8173431" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/CodeScanning.php", @@ -26412,7 +26412,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Dependabot.php", - "hash": "c6446c15c3b99cf00126692b053201a2" + "hash": "e4a5aa4bd3c453ca891fe226f397c59b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Git.php", @@ -26420,7 +26420,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Issues.php", - "hash": "696523145b2946079072a870c1f7f529" + "hash": "bae11344a38d6f7a28c81eea8aa577f0" }, { "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": "abf7dc9e500b68ac52b8a34305c629c7" + "hash": "a3adf22aa3af5c616057de87e6f90d74" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "5aba5364a9ba843237b9c4554a3ff8f6" + "hash": "b2ddb807a6d9c7cf5334dcc32f9a5d74" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "13a9b61085922f71c2ceaf629ed4b2b0" + "hash": "82365d2bcb5cd5f06514ed6558babf15" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -26572,7 +26572,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Five.php", - "hash": "417c2c9bd615433fb481296211adafa6" + "hash": "628698b498a1af076f2a78d08bffc694" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Seven.php", @@ -26604,7 +26604,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Six.php", - "hash": "84bc59dc4239b8a6c5ca487d436aa310" + "hash": "5bcf963752d3c2590644d2156c8187c8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Three.php", @@ -26648,7 +26648,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", - "hash": "e5e20eddc085a85ecb319ddaa548bbfd" + "hash": "17bd466826aff407b18576146bdb0aa7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", @@ -26680,7 +26680,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php", - "hash": "08400212b8c89bd52433b799d2be4d3e" + "hash": "4c4db2fa1490a60af50bfe7d117eb36a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Eight.php", @@ -26744,11 +26744,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Routers.php", - "hash": "d98d15eab4fb22bfb895690565e4f570" + "hash": "432623d7e139dfdec049f045c1233de6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operators.php", - "hash": "3f65f5dc305a068e1e8ba54d2f9dc960" + "hash": "c5c8db10aa24f1c59ca7b8988a9b461f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php", @@ -26764,11 +26764,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/App.php", - "hash": "36d5957162af94a041b7fc8b3ca9b8e1" + "hash": "c40f5421696b254395fa3763d051053e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/AppManifests\/Code\/Conversions.php", - "hash": "30e673899aadcf8b6d29c7dd607a5bae" + "hash": "08679981e79464d17d725ee9c91fbee4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/App\/Hook\/Config.php", @@ -26816,7 +26816,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Apps\/AppSlug.php", - "hash": "4ea57c03e432814a4dcbbcf1ffbcc959" + "hash": "fa8d83c6b7ccab801e9607fd71833d7b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/CodesOfConduct\/Key.php", @@ -26848,11 +26848,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Actions\/RunnerGroups.php", - "hash": "ffc91f67a13e89f2073500333f6a13f2" + "hash": "0df02fcafa2d5cf2bce869e62f28fbf5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Actions\/RunnerGroups\/RunnerGroupId.php", - "hash": "dc6ef317be1fee3522211c2f1552d798" + "hash": "09f2b559cc4e4ad25a9b086db5d2290c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Actions\/RunnerGroups\/RunnerGroupId\/Organizations.php", @@ -27076,11 +27076,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/RunnerGroups.php", - "hash": "004d751be8276820af199a028af3da40" + "hash": "f25ecffa79f16867b92e9a02abcdb140" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/RunnerGroups\/RunnerGroupId.php", - "hash": "ea9ca87c4493a39b1b11ad270f192a20" + "hash": "2d60cdc02efe935089aa1219efa8826a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/RunnerGroups\/RunnerGroupId\/Repositories.php", @@ -27812,11 +27812,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckRuns.php", - "hash": "9f2690b5225f1ede618ef9b937ae6ab4" + "hash": "2af1c305c5afe23f9d9d8497fa5efa14" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckRuns\/CheckRunId.php", - "hash": "acb595fda5af64c8338508fd46b232e8" + "hash": "5e296d9f91e42ae77be3c73cf73762fc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckRuns\/CheckRunId\/Rerequest.php", @@ -27824,7 +27824,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites.php", - "hash": "7b70fd240c84e9a662c20e9b7076d48a" + "hash": "a7ccacb84ab0577b58558535987521f4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites\/Preferences.php", @@ -27832,7 +27832,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites\/CheckSuiteId.php", - "hash": "e7764fe257afc8cb0f090637faf2b5b9" + "hash": "d6043b17d37a02e35172085e170a0a02" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites\/CheckSuiteId\/CheckRuns.php", @@ -28016,19 +28016,19 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Deployments.php", - "hash": "b3fadb66070a7f7e4f37f170f2661432" + "hash": "f0bd6901615a8e7bf19a9829c3211ae1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Deployments\/DeploymentId.php", - "hash": "cea9d19467599894df4225079ab91733" + "hash": "4d7c716a8d1212f0a6b6d21a5fcdb903" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Deployments\/DeploymentId\/Statuses.php", - "hash": "4d131e7ce2856086c93cf70c45ca6b9a" + "hash": "9da0973c3b7fc869643597372ce43cd5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Deployments\/DeploymentId\/Statuses\/StatusId.php", - "hash": "6cfc16753f258f8d416b8d109489b63e" + "hash": "e9f9b717d40b5329522971b4830552f0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Dispatches.php", @@ -28176,7 +28176,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues.php", - "hash": "b6108678c25c4f7f653002d0af555e4b" + "hash": "f0fc4ac80ad8d6be790df27dc4ed0764" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Comments.php", @@ -28184,7 +28184,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Comments\/CommentId.php", - "hash": "c0bfbd2e1d39a662765b87012790a811" + "hash": "fe98b2b9651a8f7040745fb89f128f05" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Comments\/CommentId\/Reactions.php", @@ -28196,15 +28196,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Events\/EventId.php", - "hash": "8e6ab09f1134da3b270ded3f077e333e" + "hash": "f7b6d3ab3f2a3447778573a3bafead00" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber.php", - "hash": "f18af9fa4aa37fd841f659765dd68088" + "hash": "45b3efb1280385d23e364647cf5be5c9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees.php", - "hash": "eccef84a256f2530036667bf473527db" + "hash": "1539156e462ca62264abf2e4b969ebf0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees\/Assignee.php", @@ -28212,7 +28212,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Comments.php", - "hash": "8e45a0d41a668113e9f1e4f8931d91be" + "hash": "fc898a13c43ce6c28a56905febca2d1b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Events.php", @@ -28920,7 +28920,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "7ff8348c2a6094c4e8e3afbd5aaabadb" + "hash": "44c6d1a87a09363b3a562eccc09d7b75" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php", @@ -29716,11 +29716,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "7429ef0a76cc46931aff5aa6d4b1695c" + "hash": "056f826281d20255d41dee1797210ae9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "2190afd06afc94be57513b6466f0201d" + "hash": "0c5c4c7bcbddc80ab1e6fdae67722757" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -30020,7 +30020,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CheckRun.php", - "hash": "ee2349ff61cdf979afec13184a3e3e2d" + "hash": "841086591019d9688ec45401a35f6208" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CheckSuite.php", @@ -30064,7 +30064,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DeploymentProtectionRule.php", - "hash": "88de5e671cd06377089ba7ca8e203e46" + "hash": "66fb8edab868e719f6dd2b0bf4e216e4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DeploymentReview.php", @@ -30108,7 +30108,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/IssueComment.php", - "hash": "85dedfbee2c2e4914425fc6c30b06d4f" + "hash": "14f09df22bad19c9109f78e9eac971cb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Issues.php", @@ -30288,7 +30288,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/WorkflowJob.php", - "hash": "c2dc7755355081e6f83a15c76f98f766" + "hash": "0848e68b2513456400041f252b457e06" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/WorkflowRun.php", @@ -31036,7 +31036,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhooksIssueComment.php", - "hash": "475384a37b0641d7e3825d94d4a064ba" + "hash": "8a8c00edf6e6c730b3c8c004d0b1ff2c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhooksChanges.php", @@ -32504,19 +32504,19 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesParentIssueAdded.php", - "hash": "c429a4af6eb15d226b3841ec0d502144" + "hash": "057bc7943eda84201a21ebf48d80d231" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesParentIssueRemoved.php", - "hash": "4edcb734023e1af694d003ac6cbc2183" + "hash": "1c41f96831038f65a0616e75f094ff36" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesSubIssueAdded.php", - "hash": "a4724d327624e16ae9562791fe33d1cb" + "hash": "5e75c5fa817e4a6ca56da0949ed6df06" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesSubIssueRemoved.php", - "hash": "368f9ef2a1fbdb7660a02475d91fb87e" + "hash": "4e04ffa9a918f3e29250377e7ae8c895" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory\/Epss.php", @@ -32532,7 +32532,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SubIssues.php", - "hash": "cc11412b0944f72a4fd69d09e1473ca6" + "hash": "a23382fe5d4c7c5dc99213844d06a009" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/OrganizationCustomOrganizationRoleCreateSchema.php", @@ -32734,10 +32734,6 @@ "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet85585ED2\/Tiet3C9F8BE1\/Tiet00D390FB\/TietB6D35F1D.php", "hash": "add1247ff1dfa0e788b47e2bbe3a7fbf" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet719311E5\/TietC0B26D9A\/TietFEF50F4E\/TietB9D1A15D.php", - "hash": "093b724130b19bc4becdcc04abec8986" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet74354F0A\/TietB23EADEE\/TietEECB5A28\/TietF4DC7C16.php", "hash": "2f058229d8367995d8ffac5fe42d8bcb" @@ -33508,15 +33504,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/SubIssue.php", - "hash": "e5561765be509523f2983b38c53d73df" + "hash": "04a9d54f087a106b40dd0c5e1d99f57e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/SubIssues.php", - "hash": "5f9b278e50e6fb5ea00d603baed5fd5f" + "hash": "d7d23149a310ab6f34d91bc988c25a86" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/SubIssues\/Priority.php", - "hash": "c790bcd60a24310d44218a394f55170e" + "hash": "e33d5022718744664697383f1f000b39" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/GetEnterpriseCustomProperties.php", @@ -34197,6 +34193,470 @@ { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/PrivateRegistries\/SecretName.php", "hash": "9d774a431bc7ff6b5d96dfd39dbf86c1" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/ListHostedRunnersForEnterprise.php", + "hash": "83470b472de510f7926471606b4db752" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/ListHostedRunnersForEnterprise.php", + "hash": "e4f19c0b061bcdc8543f6132df769a69" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/ListHostedRunnersForEnterpriseTest.php", + "hash": "dbfd4a12b820dd47ea404538ce5afb5f" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/CreateHostedRunnerForEnterprise.php", + "hash": "01fb40c41cced7395e8641a08d02072b" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/CreateHostedRunnerForEnterprise.php", + "hash": "15fe3e72e0386fb73d5bfec16fad4883" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/CreateHostedRunnerForEnterpriseTest.php", + "hash": "94469e77f109df327735f86908f9f745" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/GetHostedRunnersGithubOwnedImagesForEnterprise.php", + "hash": "e5d88c08a8ab7045f68a00d5f32db477" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GetHostedRunnersGithubOwnedImagesForEnterprise.php", + "hash": "d96aa377a4c36d827bee2e1e92304b6d" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GetHostedRunnersGithubOwnedImagesForEnterpriseTest.php", + "hash": "4c760f72f5415623597afd5719cb6358" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/GetHostedRunnersPartnerImagesForEnterprise.php", + "hash": "e0d4d84a9829991f824fca6a93e06dd7" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GetHostedRunnersPartnerImagesForEnterprise.php", + "hash": "45bcf7522cee89d6137bc684b9d87653" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GetHostedRunnersPartnerImagesForEnterpriseTest.php", + "hash": "a01337a0114d0391523d1e4b80f71050" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/GetHostedRunnersLimitsForEnterprise.php", + "hash": "f6856f012d1dc77c73c8ae2efd037e11" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GetHostedRunnersLimitsForEnterprise.php", + "hash": "1caf5a15db9f1ae0333e5c233e433c33" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GetHostedRunnersLimitsForEnterpriseTest.php", + "hash": "417a1a28f99e779bfdaef0338336c241" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/GetHostedRunnersMachineSpecsForEnterprise.php", + "hash": "2194f163202723151cc0c3dae7c4a597" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GetHostedRunnersMachineSpecsForEnterprise.php", + "hash": "395090306c0311c8083d53af2b7de6e7" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GetHostedRunnersMachineSpecsForEnterpriseTest.php", + "hash": "8101210eda92662c8a44c292c7cb910b" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/GetHostedRunnersPlatformsForEnterprise.php", + "hash": "5f317e8ce8b4ceed40d47f7a8aa1b94f" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GetHostedRunnersPlatformsForEnterprise.php", + "hash": "7b1f0772700f4d04ced079332a08b9e0" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GetHostedRunnersPlatformsForEnterpriseTest.php", + "hash": "b678ccded474438de4f96f23f4188bb0" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/GetHostedRunnerForEnterprise.php", + "hash": "c10bcdb03a6c3fe0a8e4e702120a8bd6" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GetHostedRunnerForEnterprise.php", + "hash": "e238f279a350b531cda971c7ec5f5966" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GetHostedRunnerForEnterpriseTest.php", + "hash": "656d4a4d61dfe56568c26591398c5f39" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/DeleteHostedRunnerForEnterprise.php", + "hash": "a55ad291880a55672d23aa14da1c41ba" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/DeleteHostedRunnerForEnterprise.php", + "hash": "e41ad7d18bc7f40038ef557b50e0fc27" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/DeleteHostedRunnerForEnterpriseTest.php", + "hash": "cfb22d37ba1e39cb99d7bf1f611991bc" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/UpdateHostedRunnerForEnterprise.php", + "hash": "e52d0057b8318d3fd7c6f6e775f5e938" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/UpdateHostedRunnerForEnterprise.php", + "hash": "0ce65e546bedd7d6deb4b2e47e83a4be" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/UpdateHostedRunnerForEnterpriseTest.php", + "hash": "5ee9b093d1cb241557013db3831df0ad" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/ListHostedRunnersForOrg.php", + "hash": "b4d87f528eef495fef27bd851e904c00" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/ListHostedRunnersForOrg.php", + "hash": "6e3e66b4b46d41b1ef85ee0347db4af4" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/ListHostedRunnersForOrgTest.php", + "hash": "b2286268c29aaab4c9b57d2605dcae62" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/CreateHostedRunnerForOrg.php", + "hash": "2c2aaadf1af606450fc26afadcba4451" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/CreateHostedRunnerForOrg.php", + "hash": "eefabb0bdcfafc662f784924e5d17047" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/CreateHostedRunnerForOrgTest.php", + "hash": "ace91434a918bfe0fd5072c0c3f385d3" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/GetHostedRunnersGithubOwnedImagesForOrg.php", + "hash": "711e6b16551d9685e6549c8e625ddac8" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GetHostedRunnersGithubOwnedImagesForOrg.php", + "hash": "0e065a50b00b86c10c3d3d35cd586813" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GetHostedRunnersGithubOwnedImagesForOrgTest.php", + "hash": "cba5833e92ce8af0c9da6a2f2f8ec12c" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/GetHostedRunnersPartnerImagesForOrg.php", + "hash": "8ac9f1d09541417e3e5496f5991986c9" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GetHostedRunnersPartnerImagesForOrg.php", + "hash": "cb5372a7037faab090b8ce8216414909" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GetHostedRunnersPartnerImagesForOrgTest.php", + "hash": "96e77eed15b7fe1c347b8ba5950c7aa3" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/GetHostedRunnersLimitsForOrg.php", + "hash": "f1b151f5e54243c1c30e105ce03c2032" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GetHostedRunnersLimitsForOrg.php", + "hash": "575e50bbf15c943a62d6ffd147a314a3" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GetHostedRunnersLimitsForOrgTest.php", + "hash": "b0bb6e47c9f628a25ef66076e3646e1a" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/GetHostedRunnersMachineSpecsForOrg.php", + "hash": "1884b7efbbcb2a4eb21cc2a5081c6a0e" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GetHostedRunnersMachineSpecsForOrg.php", + "hash": "5e75e58f93cacef6af9acef113fba8cd" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GetHostedRunnersMachineSpecsForOrgTest.php", + "hash": "eb618ec15a5a6bd69ddcebd0a57bb52b" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/GetHostedRunnersPlatformsForOrg.php", + "hash": "9770cb2caedab1e690715c7d5dfbc39a" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GetHostedRunnersPlatformsForOrg.php", + "hash": "8f0238ab831d9e66627946e0f5baceae" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GetHostedRunnersPlatformsForOrgTest.php", + "hash": "3f789197bca8ececbdc4b789197ed32d" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/GetHostedRunnerForOrg.php", + "hash": "116ff988952a00963df85b0868f372e1" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GetHostedRunnerForOrg.php", + "hash": "eee20cf563581e82bdfa316dfe21e3d4" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GetHostedRunnerForOrgTest.php", + "hash": "b621b4edeccea674b78370b171df5ccd" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/DeleteHostedRunnerForOrg.php", + "hash": "980c5e9ee1b543f9d514f5638d2a4eb5" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/DeleteHostedRunnerForOrg.php", + "hash": "6bd58e1ab83fc1882937751796e4e549" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/DeleteHostedRunnerForOrgTest.php", + "hash": "6a46aea3f0b1ebcc6630807e51629abb" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/UpdateHostedRunnerForOrg.php", + "hash": "e2a9b30f12cf4393b338217eed5d46da" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/UpdateHostedRunnerForOrg.php", + "hash": "1b1a93e16e67ade0f491559da3b9b1f2" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/UpdateHostedRunnerForOrgTest.php", + "hash": "46cb6ab22ea75457d35e110726ad64d6" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/ListGithubHostedRunnersInGroupForOrg.php", + "hash": "d3fad91b8ecaa0c3595a8db584ddc488" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/ListGithubHostedRunnersInGroupForOrg.php", + "hash": "473efa3c60ced74f2d5d0422b262c0da" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/ListGithubHostedRunnersInGroupForOrgTest.php", + "hash": "75e63b5c1309302f0933d03750c2cb65" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/Integration\/Owner.php", + "hash": "a267d796ae21533fb69da7199d99bedf" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ActionsHostedRunnerPoolImage.php", + "hash": "83c166ad12558ff9b558e323d252379f" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ActionsHostedRunnerMachineSpec.php", + "hash": "a30915112af2efbc52938d162a36c657" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/PublicIp.php", + "hash": "019021a759b0b23b3644292ec322350f" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ActionsHostedRunner.php", + "hash": "d8361ef25235356bdd39819467ec4c69" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ActionsHostedRunnerImage.php", + "hash": "d03df8264c3acb255a62c64bf36f8004" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ActionsHostedRunnerLimits.php", + "hash": "2e07f63063a1b260a7301596befcc650" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ActionsHostedRunnerLimits\/PublicIps.php", + "hash": "b2601b08ff3f3856885ec297a10c5640" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet9E2FDFD4\/Tiet096D3876\/Tiet65ACE7F0\/TietB5771089.php", + "hash": "6f1b22346d6a279fc442dc287fa2d76c" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListHostedRunnersForOrg\/Response\/ApplicationJson\/Ok.php", + "hash": "ed4d31e5adf7a2fe3a5384be423142f2" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListHostedRunnersForOrg\/Response\/ApplicationJson\/Ok\/Application\/Json.php", + "hash": "ebdb5c9556448b6b9e2421b89ff4ab71" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListHostedRunnersForEnterprise\/Response\/ApplicationJson\/Ok.php", + "hash": "0583377dfaced6e058dc5144318838b5" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Actions\/CreateHostedRunnerForEnterprise\/Request\/ApplicationJson.php", + "hash": "cdc710478a12fead78d7a8b6404f5225" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet6A9F8EDD\/Tiet84CC82D0\/TietED377AFE\/Tiet13E5F6AB.php", + "hash": "351f0a114bc2f69b7ce26e3265a6444d" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Actions\/CreateHostedRunnerForOrg\/Request\/ApplicationJson\/Image.php", + "hash": "9688468213b9cebbc49be23782fecbda" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Actions\/CreateHostedRunnerForEnterprise\/Request\/ApplicationJson\/Image.php", + "hash": "17edaae2faaab082245c3c1d3da892fc" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietC564D611\/Tiet7E69EF5F\/Tiet7C05F65C\/Tiet87EB6EC8.php", + "hash": "231e284496d9a6666a842abe44e79e17" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/GetHostedRunnersPartnerImagesForEnterprise\/Response\/ApplicationJson\/Ok.php", + "hash": "a6f3d051e202ac0393157fee71b984af" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/GetHostedRunnersPartnerImagesForEnterprise\/Response\/ApplicationJson\/Ok\/Application\/Json.php", + "hash": "08c4282a45f502ba085700eda4442b9a" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/GetHostedRunnersGithubOwnedImagesForOrg\/Response\/ApplicationJson\/Ok.php", + "hash": "397f8cf45393c557f91d431ca14bfa91" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/GetHostedRunnersGithubOwnedImagesForOrg\/Response\/ApplicationJson\/Ok\/Application\/Json.php", + "hash": "cd2b4d1f67dbf281b974cb55778fdaa5" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/GetHostedRunnersPartnerImagesForOrg\/Response\/ApplicationJson\/Ok.php", + "hash": "f774aa737ad64e4e639615a1532a7ace" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/GetHostedRunnersPartnerImagesForOrg\/Response\/ApplicationJson\/Ok\/Application\/Json.php", + "hash": "86557cb68b57535e2da302f9848c0090" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/GetHostedRunnersGithubOwnedImagesForEnterprise\/Response\/ApplicationJson\/Ok.php", + "hash": "ed5f28e3985d9b737229a32496f653bc" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet03017575\/Tiet04AEE22A\/Tiet53BA831A\/Tiet581BF720.php", + "hash": "8946894f023dfc1cfac1e8fe8d30f36f" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/GetHostedRunnersMachineSpecsForOrg\/Response\/ApplicationJson\/Ok.php", + "hash": "7ca2c23acb0da8f3644be5ef7dafabad" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/GetHostedRunnersMachineSpecsForOrg\/Response\/ApplicationJson\/Ok\/Application\/Json.php", + "hash": "04c35b31c157099e2ea00bf4e54a9bbc" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/GetHostedRunnersMachineSpecsForEnterprise\/Response\/ApplicationJson\/Ok.php", + "hash": "9854023d34b12a761a6400e6855a20e6" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietEFA9F043\/Tiet85CCFBAD\/Tiet6B6919FC\/Tiet23014603.php", + "hash": "a851743b5ab6d9530fb9aee7d1e0f797" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/GetHostedRunnersPlatformsForOrg\/Response\/ApplicationJson\/Ok.php", + "hash": "e877a950a27094e48be94e74ca8b6f44" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/GetHostedRunnersPlatformsForOrg\/Response\/ApplicationJson\/Ok\/Application\/Json.php", + "hash": "348da29f20593c08a1bcbff20e67040a" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/GetHostedRunnersPlatformsForEnterprise\/Response\/ApplicationJson\/Ok.php", + "hash": "3558119d2e89636c63c406cf04d40ffe" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet08F01699\/Tiet5339BEAE\/TietF9796515\/Tiet7DE1877B.php", + "hash": "e6f4630e9c78cf3289c57dc46337a54d" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Actions\/UpdateHostedRunnerForOrg\/Request\/ApplicationJson.php", + "hash": "095f0491471c72b354f1048576792451" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Actions\/UpdateHostedRunnerForEnterprise\/Request\/ApplicationJson.php", + "hash": "06c254fbd85ddc2112d90f8ef8829de7" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Actions\/CreateHostedRunnerForOrg\/Request\/ApplicationJson.php", + "hash": "7f9806cdd94332e6876bbbec3d2b4f5d" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListGithubHostedRunnersInGroupForOrg\/Response\/ApplicationJson\/Ok.php", + "hash": "b101f7509078e818b86e5ed0d71bee3c" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet67EF09F8\/Tiet8959F0C4\/Tiet45DBD47E\/Tiet2C497E99.php", + "hash": "ef44013da7943f3ece92b559546d244c" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Actions\/HostedRunners.php", + "hash": "3997d6df6af126aa09e6eca9250a7aff" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Actions\/HostedRunners\/Images\/GithubOwned.php", + "hash": "1afeb1d4bd2963426638af9bf574c56f" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Actions\/HostedRunners\/Images\/Partner.php", + "hash": "a7d6fc17cc66f841c1137bd5a3a4765e" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Actions\/HostedRunners\/Limits.php", + "hash": "88ddd5186757fda0651c7f0b0e55e85a" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Actions\/HostedRunners\/MachineSizes.php", + "hash": "171aa9411de3b1be7ca25965ecdc1b3a" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Actions\/HostedRunners\/Platforms.php", + "hash": "86284deba368179f904a4bbd81636d8f" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Actions\/HostedRunners\/HostedRunnerId.php", + "hash": "8758fb2a6de670d0863c2483b648b782" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/HostedRunners.php", + "hash": "33438a80ded5b4db37da656d7f7954ef" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/HostedRunners\/Images\/GithubOwned.php", + "hash": "5ba735f134de3f199e26f11a06315ce8" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/HostedRunners\/Images\/Partner.php", + "hash": "577bb5699859b7fdd55076e10493d8f1" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/HostedRunners\/Limits.php", + "hash": "cef5a4657e2d608c610cd5a3571e4a33" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/HostedRunners\/MachineSizes.php", + "hash": "1896b3a940cb24a7ab34370b7b6f3e56" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/HostedRunners\/Platforms.php", + "hash": "e8e7feaf1e6db5bd687fcde20b2bf0b8" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/HostedRunners\/HostedRunnerId.php", + "hash": "b441124141af0fa4b17dfa9df9003da2" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/RunnerGroups\/RunnerGroupId\/HostedRunners.php", + "hash": "71be5cee886b7b61cab60af6625b0e60" } ] }, diff --git a/clients/GitHubEnterpriseCloud/src/Client.php b/clients/GitHubEnterpriseCloud/src/Client.php index c82793ca13c..ef293dd57bd 100644 --- a/clients/GitHubEnterpriseCloud/src/Client.php +++ b/clients/GitHubEnterpriseCloud/src/Client.php @@ -27,7 +27,7 @@ public function __construct(AuthenticationInterface $authentication, Browser $br } // phpcs:disable - public function call(string $call, array $params = []): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Root|iterable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\HookDelivery|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Installation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InstallationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Authorization|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ClassroomAssignment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Classroom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsEnterprisePermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SelectedActions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GenerateRunnerJitconfigForEnterprise\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuthenticationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Runner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AnnouncementBanner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuditLogStreamKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAuditLogStreamConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachEnterpriseConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefaultForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseSecurityAnalysisSettings|string|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CustomProperty|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAllCostCenters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\AddResourceToCostCenter\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\RemoveResourceFromCostCenter\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackagesBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Feed|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BaseGist|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitignoreTemplate|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\License|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MarketplacePurchase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Thread|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EmptyObject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsOrg|\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\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRepoRoles\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroups|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgHook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InteractionLimitResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotSeatDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Migration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Package|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackageVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfigurationWithSelectedRepositories|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Project|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RuleSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupMapping|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussionComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Reaction|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamProject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectColumn|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RateLimitOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Artifact|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Job|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRunUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Workflow|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Autolink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchWithProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranch|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StatusCheckPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PushRuleBypassRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuitePreference|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofix|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofixCommitsResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\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|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Commit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedCommitStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommunityProfile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComparison|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentDirectory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentFile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSymlink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FileCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Deployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Environment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\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|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ShortBlob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Blob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitRef|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTag|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTree|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Import|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PorterAuthor|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueEvent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeployKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Label|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Language|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\EnableLfsForRepo\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MergedUpstream|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Page|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuildStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuild|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageDeployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesHealthCheck|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestMergeResult|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Release|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseAsset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseNotesContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Stargazer|\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|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ParticipationStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Status|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositorySubscription|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TagProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Topic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CloneTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ViewTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseGroupList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\UserResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PrivateUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PublicUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceExportDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Key|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SshSigningKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hovercard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StarredRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository + public function call(string $call, array $params = []): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Root|iterable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\HookDelivery|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Installation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InstallationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Authorization|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ClassroomAssignment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Classroom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsEnterprisePermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SelectedActions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GenerateRunnerJitconfigForEnterprise\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuthenticationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Runner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AnnouncementBanner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuditLogStreamKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAuditLogStreamConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachEnterpriseConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefaultForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseSecurityAnalysisSettings|string|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CustomProperty|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAllCostCenters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\AddResourceToCostCenter\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\RemoveResourceFromCostCenter\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackagesBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Feed|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BaseGist|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitignoreTemplate|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\License|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MarketplacePurchase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Thread|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EmptyObject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsOrg|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\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\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRepoRoles\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroups|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgHook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InteractionLimitResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotSeatDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Migration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Package|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackageVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfigurationWithSelectedRepositories|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Project|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RuleSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupMapping|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussionComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Reaction|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamProject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectColumn|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RateLimitOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Artifact|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Job|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRunUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Workflow|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Autolink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchWithProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranch|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StatusCheckPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PushRuleBypassRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuitePreference|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofix|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofixCommitsResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\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|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Commit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedCommitStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommunityProfile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComparison|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentDirectory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentFile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSymlink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FileCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Deployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Environment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\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|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ShortBlob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Blob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitRef|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTag|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTree|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Import|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PorterAuthor|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueEvent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeployKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Label|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Language|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\EnableLfsForRepo\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MergedUpstream|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Page|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuildStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuild|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageDeployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesHealthCheck|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestMergeResult|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Release|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseAsset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseNotesContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Stargazer|\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|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ParticipationStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Status|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositorySubscription|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TagProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Topic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CloneTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ViewTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseGroupList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\UserResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PrivateUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PublicUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceExportDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Key|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SshSigningKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hovercard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StarredRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository { [$method, $path] = explode(' ', $call); $pathChunks = explode('/', $path); @@ -275,18 +275,18 @@ public function call(string $call, array $params = []): \ApiClients\Client\GitHu } return $this->router[Internal\Router\Delete\Five::class]->call($call, $params, $pathChunks); - } elseif ($pathChunksCount === 7) { - if (\array_key_exists(Internal\Router\Delete\Seven::class, $this->router) === false) { - $this->router[Internal\Router\Delete\Seven::class] = new Internal\Router\Delete\Seven(routers: $this->routers); - } - - return $this->router[Internal\Router\Delete\Seven::class]->call($call, $params, $pathChunks); } elseif ($pathChunksCount === 6) { if (\array_key_exists(Internal\Router\Delete\Six::class, $this->router) === false) { $this->router[Internal\Router\Delete\Six::class] = new Internal\Router\Delete\Six(routers: $this->routers); } return $this->router[Internal\Router\Delete\Six::class]->call($call, $params, $pathChunks); + } elseif ($pathChunksCount === 7) { + if (\array_key_exists(Internal\Router\Delete\Seven::class, $this->router) === false) { + $this->router[Internal\Router\Delete\Seven::class] = new Internal\Router\Delete\Seven(routers: $this->routers); + } + + return $this->router[Internal\Router\Delete\Seven::class]->call($call, $params, $pathChunks); } elseif ($pathChunksCount === 8) { if (\array_key_exists(Internal\Router\Delete\Eight::class, $this->router) === false) { $this->router[Internal\Router\Delete\Eight::class] = new Internal\Router\Delete\Eight(routers: $this->routers); diff --git a/clients/GitHubEnterpriseCloud/src/ClientInterface.php b/clients/GitHubEnterpriseCloud/src/ClientInterface.php index 2f09ccc60dc..72c07cbe794 100644 --- a/clients/GitHubEnterpriseCloud/src/ClientInterface.php +++ b/clients/GitHubEnterpriseCloud/src/ClientInterface.php @@ -7,7 +7,7 @@ interface ClientInterface { // phpcs:disable - public function call(string $call, array $params = []): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Root|iterable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\HookDelivery|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Installation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InstallationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Authorization|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ClassroomAssignment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Classroom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsEnterprisePermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SelectedActions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GenerateRunnerJitconfigForEnterprise\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuthenticationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Runner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AnnouncementBanner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuditLogStreamKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAuditLogStreamConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachEnterpriseConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefaultForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseSecurityAnalysisSettings|string|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CustomProperty|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAllCostCenters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\AddResourceToCostCenter\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\RemoveResourceFromCostCenter\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackagesBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Feed|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BaseGist|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitignoreTemplate|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\License|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MarketplacePurchase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Thread|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EmptyObject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsOrg|\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\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRepoRoles\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroups|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgHook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InteractionLimitResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotSeatDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Migration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Package|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackageVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfigurationWithSelectedRepositories|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Project|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RuleSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupMapping|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussionComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Reaction|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamProject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectColumn|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RateLimitOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Artifact|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Job|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRunUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Workflow|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Autolink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchWithProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranch|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StatusCheckPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PushRuleBypassRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuitePreference|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofix|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofixCommitsResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\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|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Commit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedCommitStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommunityProfile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComparison|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentDirectory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentFile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSymlink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FileCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Deployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Environment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\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|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ShortBlob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Blob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitRef|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTag|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTree|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Import|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PorterAuthor|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueEvent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeployKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Label|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Language|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\EnableLfsForRepo\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MergedUpstream|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Page|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuildStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuild|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageDeployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesHealthCheck|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestMergeResult|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Release|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseAsset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseNotesContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Stargazer|\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|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ParticipationStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Status|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositorySubscription|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TagProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Topic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CloneTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ViewTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseGroupList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\UserResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PrivateUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PublicUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceExportDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Key|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SshSigningKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hovercard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StarredRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository; + public function call(string $call, array $params = []): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Root|iterable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\HookDelivery|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Installation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InstallationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Authorization|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ClassroomAssignment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Classroom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsEnterprisePermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SelectedActions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GenerateRunnerJitconfigForEnterprise\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuthenticationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Runner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AnnouncementBanner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuditLogStreamKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAuditLogStreamConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachEnterpriseConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefaultForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseSecurityAnalysisSettings|string|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CustomProperty|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAllCostCenters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\AddResourceToCostCenter\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\RemoveResourceFromCostCenter\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackagesBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Feed|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BaseGist|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitignoreTemplate|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\License|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MarketplacePurchase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Thread|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EmptyObject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsOrg|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\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\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRepoRoles\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroups|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgHook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InteractionLimitResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotSeatDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Migration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Package|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackageVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfigurationWithSelectedRepositories|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Project|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RuleSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupMapping|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussionComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Reaction|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamProject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectColumn|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RateLimitOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Artifact|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Job|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRunUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Workflow|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Autolink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchWithProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranch|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StatusCheckPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PushRuleBypassRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuitePreference|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofix|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofixCommitsResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\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|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Commit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedCommitStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommunityProfile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComparison|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentDirectory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentFile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSymlink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FileCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Deployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Environment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\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|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ShortBlob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Blob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitRef|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTag|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTree|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Import|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PorterAuthor|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueEvent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeployKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Label|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Language|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\EnableLfsForRepo\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MergedUpstream|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Page|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuildStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuild|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageDeployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesHealthCheck|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestMergeResult|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Release|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseAsset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseNotesContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Stargazer|\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|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ParticipationStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Status|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositorySubscription|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TagProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Topic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CloneTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ViewTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseGroupList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\UserResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PrivateUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PublicUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceExportDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Key|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SshSigningKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hovercard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StarredRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository; public function operations(): OperationsInterface; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Attribute/CastUnionToType/Schema/Integration/Owner.php b/clients/GitHubEnterpriseCloud/src/Internal/Attribute/CastUnionToType/Schema/Integration/Owner.php new file mode 100644 index 00000000000..abfd1099f0f --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Attribute/CastUnionToType/Schema/Integration/Owner.php @@ -0,0 +1,45 @@ +hydrateObject(Schema\SimpleUser::class, $value); + } catch (Throwable) { + } + } + + if ($signature === 'avatar_url|created_at|description|html_url|id|name|node_id|slug|updated_at|website_url') { + try { + return $hydrator->hydrateObject(Schema\Enterprise::class, $value); + } catch (Throwable) { + } + } + } + + return $value; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/App.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/App.php index e6da390c7c0..87d68b1c07e 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/App.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/App.php @@ -4,9 +4,9 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems; @@ -43,7 +43,6 @@ public function hydrateObject(string $className, array $payload): object { return match ($className) { 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -101,17 +100,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -273,267 +276,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - 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⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; @@ -640,7 +382,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -732,12 +473,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -812,105 +551,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou 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⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/AppManifests/Code/Conversions.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/AppManifests/Code/Conversions.php index 0e6d83b21cc..befca92a874 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/AppManifests/Code/Conversions.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/AppManifests/Code/Conversions.php @@ -4,10 +4,10 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\AppManifests\Code; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationErrorSimple; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -45,7 +45,6 @@ public function hydrateObject(string $className, array $payload): object { return match ($className) { 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($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), @@ -105,17 +104,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -277,267 +280,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - 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⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; @@ -759,7 +501,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($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), @@ -853,12 +594,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -933,105 +672,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou 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⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Apps/AppSlug.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Apps/AppSlug.php index 0ca1221851d..92b5242631a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Apps/AppSlug.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Apps/AppSlug.php @@ -4,10 +4,10 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Apps; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems; @@ -44,7 +44,6 @@ public function hydrateObject(string $className, array $payload): object { return match ($className) { 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -103,17 +102,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -275,267 +278,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - 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⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; @@ -705,7 +447,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), @@ -798,12 +539,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -878,105 +617,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou 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⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners.php new file mode 100644 index 00000000000..076982426d3 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners.php @@ -0,0 +1,669 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️ListHostedRunnersForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunner($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️ListHostedRunnersForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok(array $payload): Ok + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['runners'] ?? null; + + if ($value === null) { + $missingFields[] = 'runners'; + goto after_runners; + } + + $properties['runners'] = $value; + + after_runners: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Ok::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Ok(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunner(array $payload): ActionsHostedRunner + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['runner_group_id'] ?? null; + + if ($value === null) { + $properties['runnerGroupId'] = null; + goto after_runnerGroupId; + } + + $properties['runnerGroupId'] = $value; + + after_runnerGroupId: + + $value = $payload['image_details'] ?? null; + + if ($value === null) { + $properties['imageDetails'] = null; + goto after_imageDetails; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'imageDetails'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['imageDetails'] = $value; + + after_imageDetails: + + $value = $payload['machine_size_details'] ?? null; + + if ($value === null) { + $missingFields[] = 'machine_size_details'; + goto after_machineSizeDetails; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'machineSizeDetails'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['machineSizeDetails'] = $value; + + after_machineSizeDetails: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $missingFields[] = 'status'; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + + $value = $payload['platform'] ?? null; + + if ($value === null) { + $missingFields[] = 'platform'; + goto after_platform; + } + + $properties['platform'] = $value; + + after_platform: + + $value = $payload['maximum_runners'] ?? null; + + if ($value === null) { + $properties['maximumRunners'] = null; + goto after_maximumRunners; + } + + $properties['maximumRunners'] = $value; + + after_maximumRunners: + + $value = $payload['public_ip_enabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'public_ip_enabled'; + goto after_publicIpEnabled; + } + + $properties['publicIpEnabled'] = $value; + + after_publicIpEnabled: + + $value = $payload['public_ips'] ?? null; + + if ($value === null) { + $properties['publicIps'] = null; + goto after_publicIps; + } + + $properties['publicIps'] = $value; + + after_publicIps: + + $value = $payload['last_active_on'] ?? null; + + if ($value === null) { + $properties['lastActiveOn'] = null; + goto after_lastActiveOn; + } + + $properties['lastActiveOn'] = $value; + + after_lastActiveOn: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ActionsHostedRunner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ActionsHostedRunner(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage(array $payload): ActionsHostedRunnerPoolImage + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['size_gb'] ?? null; + + if ($value === null) { + $missingFields[] = 'size_gb'; + goto after_sizeGb; + } + + $properties['sizeGb'] = $value; + + after_sizeGb: + + $value = $payload['display_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'display_name'; + goto after_displayName; + } + + $properties['displayName'] = $value; + + after_displayName: + + $value = $payload['source'] ?? null; + + if ($value === null) { + $missingFields[] = 'source'; + goto after_source; + } + + $properties['source'] = $value; + + after_source: + + $value = $payload['version'] ?? null; + + if ($value === null) { + $missingFields[] = 'version'; + goto after_version; + } + + $properties['version'] = $value; + + after_version: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ActionsHostedRunnerPoolImage::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ActionsHostedRunnerPoolImage(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec(array $payload): ActionsHostedRunnerMachineSpec + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['cpu_cores'] ?? null; + + if ($value === null) { + $missingFields[] = 'cpu_cores'; + goto after_cpuCores; + } + + $properties['cpuCores'] = $value; + + after_cpuCores: + + $value = $payload['memory_gb'] ?? null; + + if ($value === null) { + $missingFields[] = 'memory_gb'; + goto after_memoryGb; + } + + $properties['memoryGb'] = $value; + + after_memoryGb: + + $value = $payload['storage_gb'] ?? null; + + if ($value === null) { + $missingFields[] = 'storage_gb'; + goto after_storageGb; + } + + $properties['storageGb'] = $value; + + after_storageGb: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ActionsHostedRunnerMachineSpec::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ActionsHostedRunnerMachineSpec(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec', $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\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️ListHostedRunnersForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunner($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($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⚡️Operations⚡️Actions⚡️ListHostedRunnersForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok(mixed $object): mixed + { + assert($object instanceof Ok); + $result = []; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $runners = $object->runners; + static $runnersSerializer0; + + if ($runnersSerializer0 === null) { + $runnersSerializer0 = new SerializeArrayItems(...[]); + } + + $runners = $runnersSerializer0->serialize($runners, $this); + after_runners: $result['runners'] = $runners; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunner(mixed $object): mixed + { + assert($object instanceof ActionsHostedRunner); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $name = $object->name; + after_name: $result['name'] = $name; + + $runnerGroupId = $object->runnerGroupId; + + if ($runnerGroupId === null) { + goto after_runnerGroupId; + } + + after_runnerGroupId: $result['runner_group_id'] = $runnerGroupId; + + $imageDetails = $object->imageDetails; + + if ($imageDetails === null) { + goto after_imageDetails; + } + + $imageDetails = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($imageDetails); + after_imageDetails: $result['image_details'] = $imageDetails; + + $machineSizeDetails = $object->machineSizeDetails; + $machineSizeDetails = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($machineSizeDetails); + after_machineSizeDetails: $result['machine_size_details'] = $machineSizeDetails; + + $status = $object->status; + after_status: $result['status'] = $status; + + $platform = $object->platform; + after_platform: $result['platform'] = $platform; + + $maximumRunners = $object->maximumRunners; + + if ($maximumRunners === null) { + goto after_maximumRunners; + } + + after_maximumRunners: $result['maximum_runners'] = $maximumRunners; + + $publicIpEnabled = $object->publicIpEnabled; + after_publicIpEnabled: $result['public_ip_enabled'] = $publicIpEnabled; + + $publicIps = $object->publicIps; + + if ($publicIps === null) { + goto after_publicIps; + } + + static $publicIpsSerializer0; + + if ($publicIpsSerializer0 === null) { + $publicIpsSerializer0 = new SerializeArrayItems(...[]); + } + + $publicIps = $publicIpsSerializer0->serialize($publicIps, $this); + after_publicIps: $result['public_ips'] = $publicIps; + + $lastActiveOn = $object->lastActiveOn; + + if ($lastActiveOn === null) { + goto after_lastActiveOn; + } + + after_lastActiveOn: $result['last_active_on'] = $lastActiveOn; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage(mixed $object): mixed + { + assert($object instanceof ActionsHostedRunnerPoolImage); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $sizeGb = $object->sizeGb; + after_sizeGb: $result['size_gb'] = $sizeGb; + + $displayName = $object->displayName; + after_displayName: $result['display_name'] = $displayName; + + $source = $object->source; + after_source: $result['source'] = $source; + + $version = $object->version; + after_version: $result['version'] = $version; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec(mixed $object): mixed + { + assert($object instanceof ActionsHostedRunnerMachineSpec); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $cpuCores = $object->cpuCores; + after_cpuCores: $result['cpu_cores'] = $cpuCores; + + $memoryGb = $object->memoryGb; + after_memoryGb: $result['memory_gb'] = $memoryGb; + + $storageGb = $object->storageGb; + after_storageGb: $result['storage_gb'] = $storageGb; + + 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/Enterprises/Enterprise/Actions/HostedRunners/HostedRunnerId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/HostedRunnerId.php new file mode 100644 index 00000000000..5c1c0bf79e5 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/HostedRunnerId.php @@ -0,0 +1,604 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunner($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunner(array $payload): ActionsHostedRunner + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['runner_group_id'] ?? null; + + if ($value === null) { + $properties['runnerGroupId'] = null; + goto after_runnerGroupId; + } + + $properties['runnerGroupId'] = $value; + + after_runnerGroupId: + + $value = $payload['image_details'] ?? null; + + if ($value === null) { + $properties['imageDetails'] = null; + goto after_imageDetails; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'imageDetails'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['imageDetails'] = $value; + + after_imageDetails: + + $value = $payload['machine_size_details'] ?? null; + + if ($value === null) { + $missingFields[] = 'machine_size_details'; + goto after_machineSizeDetails; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'machineSizeDetails'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['machineSizeDetails'] = $value; + + after_machineSizeDetails: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $missingFields[] = 'status'; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + + $value = $payload['platform'] ?? null; + + if ($value === null) { + $missingFields[] = 'platform'; + goto after_platform; + } + + $properties['platform'] = $value; + + after_platform: + + $value = $payload['maximum_runners'] ?? null; + + if ($value === null) { + $properties['maximumRunners'] = null; + goto after_maximumRunners; + } + + $properties['maximumRunners'] = $value; + + after_maximumRunners: + + $value = $payload['public_ip_enabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'public_ip_enabled'; + goto after_publicIpEnabled; + } + + $properties['publicIpEnabled'] = $value; + + after_publicIpEnabled: + + $value = $payload['public_ips'] ?? null; + + if ($value === null) { + $properties['publicIps'] = null; + goto after_publicIps; + } + + $properties['publicIps'] = $value; + + after_publicIps: + + $value = $payload['last_active_on'] ?? null; + + if ($value === null) { + $properties['lastActiveOn'] = null; + goto after_lastActiveOn; + } + + $properties['lastActiveOn'] = $value; + + after_lastActiveOn: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ActionsHostedRunner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ActionsHostedRunner(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage(array $payload): ActionsHostedRunnerPoolImage + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['size_gb'] ?? null; + + if ($value === null) { + $missingFields[] = 'size_gb'; + goto after_sizeGb; + } + + $properties['sizeGb'] = $value; + + after_sizeGb: + + $value = $payload['display_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'display_name'; + goto after_displayName; + } + + $properties['displayName'] = $value; + + after_displayName: + + $value = $payload['source'] ?? null; + + if ($value === null) { + $missingFields[] = 'source'; + goto after_source; + } + + $properties['source'] = $value; + + after_source: + + $value = $payload['version'] ?? null; + + if ($value === null) { + $missingFields[] = 'version'; + goto after_version; + } + + $properties['version'] = $value; + + after_version: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ActionsHostedRunnerPoolImage::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ActionsHostedRunnerPoolImage(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec(array $payload): ActionsHostedRunnerMachineSpec + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['cpu_cores'] ?? null; + + if ($value === null) { + $missingFields[] = 'cpu_cores'; + goto after_cpuCores; + } + + $properties['cpuCores'] = $value; + + after_cpuCores: + + $value = $payload['memory_gb'] ?? null; + + if ($value === null) { + $missingFields[] = 'memory_gb'; + goto after_memoryGb; + } + + $properties['memoryGb'] = $value; + + after_memoryGb: + + $value = $payload['storage_gb'] ?? null; + + if ($value === null) { + $missingFields[] = 'storage_gb'; + goto after_storageGb; + } + + $properties['storageGb'] = $value; + + after_storageGb: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ActionsHostedRunnerMachineSpec::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ActionsHostedRunnerMachineSpec(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec', $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\ActionsHostedRunner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunner($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($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⚡️ActionsHostedRunner(mixed $object): mixed + { + assert($object instanceof ActionsHostedRunner); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $name = $object->name; + after_name: $result['name'] = $name; + + $runnerGroupId = $object->runnerGroupId; + + if ($runnerGroupId === null) { + goto after_runnerGroupId; + } + + after_runnerGroupId: $result['runner_group_id'] = $runnerGroupId; + + $imageDetails = $object->imageDetails; + + if ($imageDetails === null) { + goto after_imageDetails; + } + + $imageDetails = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($imageDetails); + after_imageDetails: $result['image_details'] = $imageDetails; + + $machineSizeDetails = $object->machineSizeDetails; + $machineSizeDetails = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($machineSizeDetails); + after_machineSizeDetails: $result['machine_size_details'] = $machineSizeDetails; + + $status = $object->status; + after_status: $result['status'] = $status; + + $platform = $object->platform; + after_platform: $result['platform'] = $platform; + + $maximumRunners = $object->maximumRunners; + + if ($maximumRunners === null) { + goto after_maximumRunners; + } + + after_maximumRunners: $result['maximum_runners'] = $maximumRunners; + + $publicIpEnabled = $object->publicIpEnabled; + after_publicIpEnabled: $result['public_ip_enabled'] = $publicIpEnabled; + + $publicIps = $object->publicIps; + + if ($publicIps === null) { + goto after_publicIps; + } + + static $publicIpsSerializer0; + + if ($publicIpsSerializer0 === null) { + $publicIpsSerializer0 = new SerializeArrayItems(...[]); + } + + $publicIps = $publicIpsSerializer0->serialize($publicIps, $this); + after_publicIps: $result['public_ips'] = $publicIps; + + $lastActiveOn = $object->lastActiveOn; + + if ($lastActiveOn === null) { + goto after_lastActiveOn; + } + + after_lastActiveOn: $result['last_active_on'] = $lastActiveOn; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage(mixed $object): mixed + { + assert($object instanceof ActionsHostedRunnerPoolImage); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $sizeGb = $object->sizeGb; + after_sizeGb: $result['size_gb'] = $sizeGb; + + $displayName = $object->displayName; + after_displayName: $result['display_name'] = $displayName; + + $source = $object->source; + after_source: $result['source'] = $source; + + $version = $object->version; + after_version: $result['version'] = $version; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec(mixed $object): mixed + { + assert($object instanceof ActionsHostedRunnerMachineSpec); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $cpuCores = $object->cpuCores; + after_cpuCores: $result['cpu_cores'] = $cpuCores; + + $memoryGb = $object->memoryGb; + after_memoryGb: $result['memory_gb'] = $memoryGb; + + $storageGb = $object->storageGb; + after_storageGb: $result['storage_gb'] = $storageGb; + + 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/Enterprises/Enterprise/Actions/HostedRunners/Images/GithubOwned.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/Images/GithubOwned.php new file mode 100644 index 00000000000..b0fe7fc3528 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/Images/GithubOwned.php @@ -0,0 +1,245 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersGithubOwnedImagesForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersGithubOwnedImagesForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok(array $payload): Ok + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['images'] ?? null; + + if ($value === null) { + $missingFields[] = 'images'; + goto after_images; + } + + $properties['images'] = $value; + + after_images: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Ok::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Ok(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok', $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\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersGithubOwnedImagesForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok($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⚡️Operations⚡️Actions⚡️GetHostedRunnersGithubOwnedImagesForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok(mixed $object): mixed + { + assert($object instanceof Ok); + $result = []; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $images = $object->images; + static $imagesSerializer0; + + if ($imagesSerializer0 === null) { + $imagesSerializer0 = new SerializeArrayItems(...[]); + } + + $images = $imagesSerializer0->serialize($images, $this); + after_images: $result['images'] = $images; + + 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/Enterprises/Enterprise/Actions/HostedRunners/Images/Partner.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/Images/Partner.php new file mode 100644 index 00000000000..3702f5e96ad --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/Images/Partner.php @@ -0,0 +1,245 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersPartnerImagesForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersPartnerImagesForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(array $payload): Json + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['images'] ?? null; + + if ($value === null) { + $missingFields[] = 'images'; + goto after_images; + } + + $properties['images'] = $value; + + after_images: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Json::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Json(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json', $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\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersPartnerImagesForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($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⚡️Operations⚡️Actions⚡️GetHostedRunnersPartnerImagesForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(mixed $object): mixed + { + assert($object instanceof Json); + $result = []; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $images = $object->images; + static $imagesSerializer0; + + if ($imagesSerializer0 === null) { + $imagesSerializer0 = new SerializeArrayItems(...[]); + } + + $images = $imagesSerializer0->serialize($images, $this); + after_images: $result['images'] = $images; + + 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/Enterprises/Enterprise/Actions/HostedRunners/Limits.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/Limits.php new file mode 100644 index 00000000000..aa07dc40638 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/Limits.php @@ -0,0 +1,294 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits\PublicIps' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits⚡️PublicIps($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits(array $payload): ActionsHostedRunnerLimits + { + $properties = []; + $missingFields = []; + try { + $value = $payload['public_ips'] ?? null; + + if ($value === null) { + $missingFields[] = 'public_ips'; + goto after_publicIps; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'publicIps'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits⚡️PublicIps($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['publicIps'] = $value; + + after_publicIps: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ActionsHostedRunnerLimits::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ActionsHostedRunnerLimits(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits⚡️PublicIps(array $payload): PublicIps + { + $properties = []; + $missingFields = []; + try { + $value = $payload['maximum'] ?? null; + + if ($value === null) { + $missingFields[] = 'maximum'; + goto after_maximum; + } + + $properties['maximum'] = $value; + + after_maximum: + + $value = $payload['current_usage'] ?? null; + + if ($value === null) { + $missingFields[] = 'current_usage'; + goto after_currentUsage; + } + + $properties['currentUsage'] = $value; + + after_currentUsage: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits\PublicIps', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(PublicIps::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new PublicIps(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits\PublicIps', $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\ActionsHostedRunnerLimits' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits\PublicIps' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits⚡️PublicIps($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⚡️ActionsHostedRunnerLimits(mixed $object): mixed + { + assert($object instanceof ActionsHostedRunnerLimits); + $result = []; + + $publicIps = $object->publicIps; + $publicIps = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits⚡️PublicIps($publicIps); + after_publicIps: $result['public_ips'] = $publicIps; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits⚡️PublicIps(mixed $object): mixed + { + assert($object instanceof PublicIps); + $result = []; + + $maximum = $object->maximum; + after_maximum: $result['maximum'] = $maximum; + + $currentUsage = $object->currentUsage; + after_currentUsage: $result['current_usage'] = $currentUsage; + + 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/Enterprises/Enterprise/Actions/HostedRunners/MachineSizes.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/MachineSizes.php new file mode 100644 index 00000000000..d4caf290fc1 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/MachineSizes.php @@ -0,0 +1,245 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersMachineSpecsForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersMachineSpecsForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok(array $payload): Ok + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['machine_specs'] ?? null; + + if ($value === null) { + $missingFields[] = 'machine_specs'; + goto after_machineSpecs; + } + + $properties['machineSpecs'] = $value; + + after_machineSpecs: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Ok::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Ok(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok', $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\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersMachineSpecsForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok($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⚡️Operations⚡️Actions⚡️GetHostedRunnersMachineSpecsForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok(mixed $object): mixed + { + assert($object instanceof Ok); + $result = []; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $machineSpecs = $object->machineSpecs; + static $machineSpecsSerializer0; + + if ($machineSpecsSerializer0 === null) { + $machineSpecsSerializer0 = new SerializeArrayItems(...[]); + } + + $machineSpecs = $machineSpecsSerializer0->serialize($machineSpecs, $this); + after_machineSpecs: $result['machine_specs'] = $machineSpecs; + + 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/Enterprises/Enterprise/Actions/HostedRunners/Platforms.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/Platforms.php new file mode 100644 index 00000000000..f7cb0080183 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/Platforms.php @@ -0,0 +1,245 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersPlatformsForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersPlatformsForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok(array $payload): Ok + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['platforms'] ?? null; + + if ($value === null) { + $missingFields[] = 'platforms'; + goto after_platforms; + } + + $properties['platforms'] = $value; + + after_platforms: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Ok::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Ok(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok', $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\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersPlatformsForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok($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⚡️Operations⚡️Actions⚡️GetHostedRunnersPlatformsForEnterprise⚡️Response⚡️ApplicationJson⚡️Ok(mixed $object): mixed + { + assert($object instanceof Ok); + $result = []; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $platforms = $object->platforms; + static $platformsSerializer0; + + if ($platformsSerializer0 === null) { + $platformsSerializer0 = new SerializeArrayItems(...[]); + } + + $platforms = $platformsSerializer0->serialize($platforms, $this); + after_platforms: $result['platforms'] = $platforms; + + 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/Enterprises/Enterprise/Actions/RunnerGroups.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/RunnerGroups.php index 8e214cac881..f29755517cd 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/RunnerGroups.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/RunnerGroups.php @@ -168,6 +168,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_hostedRunnersUrl: + $value = $payload['network_configuration_id'] ?? null; + + if ($value === null) { + $properties['networkConfigurationId'] = null; + goto after_networkConfigurationId; + } + + $properties['networkConfigurationId'] = $value; + + after_networkConfigurationId: + $value = $payload['allows_public_repositories'] ?? null; if ($value === null) { @@ -378,6 +389,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_hostedRunnersUrl: $result['hosted_runners_url'] = $hostedRunnersUrl; + $networkConfigurationId = $object->networkConfigurationId; + + if ($networkConfigurationId === null) { + goto after_networkConfigurationId; + } + + after_networkConfigurationId: $result['network_configuration_id'] = $networkConfigurationId; + $allowsPublicRepositories = $object->allowsPublicRepositories; after_allowsPublicRepositories: $result['allows_public_repositories'] = $allowsPublicRepositories; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/RunnerGroups/RunnerGroupId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/RunnerGroups/RunnerGroupId.php index 662e2f40d7e..9c3a00f6b78 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/RunnerGroups/RunnerGroupId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/RunnerGroups/RunnerGroupId.php @@ -125,6 +125,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_hostedRunnersUrl: + $value = $payload['network_configuration_id'] ?? null; + + if ($value === null) { + $properties['networkConfigurationId'] = null; + goto after_networkConfigurationId; + } + + $properties['networkConfigurationId'] = $value; + + after_networkConfigurationId: + $value = $payload['allows_public_repositories'] ?? null; if ($value === null) { @@ -313,6 +324,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_hostedRunnersUrl: $result['hosted_runners_url'] = $hostedRunnersUrl; + $networkConfigurationId = $object->networkConfigurationId; + + if ($networkConfigurationId === null) { + goto after_networkConfigurationId; + } + + after_networkConfigurationId: $result['network_configuration_id'] = $networkConfigurationId; + $allowsPublicRepositories = $object->allowsPublicRepositories; after_allowsPublicRepositories: $result['allows_public_repositories'] = $allowsPublicRepositories; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners.php new file mode 100644 index 00000000000..c3565745239 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners.php @@ -0,0 +1,669 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️ListHostedRunnersForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunner($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️ListHostedRunnersForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(array $payload): Json + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['runners'] ?? null; + + if ($value === null) { + $missingFields[] = 'runners'; + goto after_runners; + } + + $properties['runners'] = $value; + + after_runners: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Json::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Json(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunner(array $payload): ActionsHostedRunner + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['runner_group_id'] ?? null; + + if ($value === null) { + $properties['runnerGroupId'] = null; + goto after_runnerGroupId; + } + + $properties['runnerGroupId'] = $value; + + after_runnerGroupId: + + $value = $payload['image_details'] ?? null; + + if ($value === null) { + $properties['imageDetails'] = null; + goto after_imageDetails; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'imageDetails'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['imageDetails'] = $value; + + after_imageDetails: + + $value = $payload['machine_size_details'] ?? null; + + if ($value === null) { + $missingFields[] = 'machine_size_details'; + goto after_machineSizeDetails; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'machineSizeDetails'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['machineSizeDetails'] = $value; + + after_machineSizeDetails: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $missingFields[] = 'status'; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + + $value = $payload['platform'] ?? null; + + if ($value === null) { + $missingFields[] = 'platform'; + goto after_platform; + } + + $properties['platform'] = $value; + + after_platform: + + $value = $payload['maximum_runners'] ?? null; + + if ($value === null) { + $properties['maximumRunners'] = null; + goto after_maximumRunners; + } + + $properties['maximumRunners'] = $value; + + after_maximumRunners: + + $value = $payload['public_ip_enabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'public_ip_enabled'; + goto after_publicIpEnabled; + } + + $properties['publicIpEnabled'] = $value; + + after_publicIpEnabled: + + $value = $payload['public_ips'] ?? null; + + if ($value === null) { + $properties['publicIps'] = null; + goto after_publicIps; + } + + $properties['publicIps'] = $value; + + after_publicIps: + + $value = $payload['last_active_on'] ?? null; + + if ($value === null) { + $properties['lastActiveOn'] = null; + goto after_lastActiveOn; + } + + $properties['lastActiveOn'] = $value; + + after_lastActiveOn: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ActionsHostedRunner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ActionsHostedRunner(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage(array $payload): ActionsHostedRunnerPoolImage + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['size_gb'] ?? null; + + if ($value === null) { + $missingFields[] = 'size_gb'; + goto after_sizeGb; + } + + $properties['sizeGb'] = $value; + + after_sizeGb: + + $value = $payload['display_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'display_name'; + goto after_displayName; + } + + $properties['displayName'] = $value; + + after_displayName: + + $value = $payload['source'] ?? null; + + if ($value === null) { + $missingFields[] = 'source'; + goto after_source; + } + + $properties['source'] = $value; + + after_source: + + $value = $payload['version'] ?? null; + + if ($value === null) { + $missingFields[] = 'version'; + goto after_version; + } + + $properties['version'] = $value; + + after_version: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ActionsHostedRunnerPoolImage::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ActionsHostedRunnerPoolImage(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec(array $payload): ActionsHostedRunnerMachineSpec + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['cpu_cores'] ?? null; + + if ($value === null) { + $missingFields[] = 'cpu_cores'; + goto after_cpuCores; + } + + $properties['cpuCores'] = $value; + + after_cpuCores: + + $value = $payload['memory_gb'] ?? null; + + if ($value === null) { + $missingFields[] = 'memory_gb'; + goto after_memoryGb; + } + + $properties['memoryGb'] = $value; + + after_memoryGb: + + $value = $payload['storage_gb'] ?? null; + + if ($value === null) { + $missingFields[] = 'storage_gb'; + goto after_storageGb; + } + + $properties['storageGb'] = $value; + + after_storageGb: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ActionsHostedRunnerMachineSpec::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ActionsHostedRunnerMachineSpec(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec', $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\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️ListHostedRunnersForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunner($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($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⚡️Operations⚡️Actions⚡️ListHostedRunnersForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(mixed $object): mixed + { + assert($object instanceof Json); + $result = []; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $runners = $object->runners; + static $runnersSerializer0; + + if ($runnersSerializer0 === null) { + $runnersSerializer0 = new SerializeArrayItems(...[]); + } + + $runners = $runnersSerializer0->serialize($runners, $this); + after_runners: $result['runners'] = $runners; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunner(mixed $object): mixed + { + assert($object instanceof ActionsHostedRunner); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $name = $object->name; + after_name: $result['name'] = $name; + + $runnerGroupId = $object->runnerGroupId; + + if ($runnerGroupId === null) { + goto after_runnerGroupId; + } + + after_runnerGroupId: $result['runner_group_id'] = $runnerGroupId; + + $imageDetails = $object->imageDetails; + + if ($imageDetails === null) { + goto after_imageDetails; + } + + $imageDetails = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($imageDetails); + after_imageDetails: $result['image_details'] = $imageDetails; + + $machineSizeDetails = $object->machineSizeDetails; + $machineSizeDetails = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($machineSizeDetails); + after_machineSizeDetails: $result['machine_size_details'] = $machineSizeDetails; + + $status = $object->status; + after_status: $result['status'] = $status; + + $platform = $object->platform; + after_platform: $result['platform'] = $platform; + + $maximumRunners = $object->maximumRunners; + + if ($maximumRunners === null) { + goto after_maximumRunners; + } + + after_maximumRunners: $result['maximum_runners'] = $maximumRunners; + + $publicIpEnabled = $object->publicIpEnabled; + after_publicIpEnabled: $result['public_ip_enabled'] = $publicIpEnabled; + + $publicIps = $object->publicIps; + + if ($publicIps === null) { + goto after_publicIps; + } + + static $publicIpsSerializer0; + + if ($publicIpsSerializer0 === null) { + $publicIpsSerializer0 = new SerializeArrayItems(...[]); + } + + $publicIps = $publicIpsSerializer0->serialize($publicIps, $this); + after_publicIps: $result['public_ips'] = $publicIps; + + $lastActiveOn = $object->lastActiveOn; + + if ($lastActiveOn === null) { + goto after_lastActiveOn; + } + + after_lastActiveOn: $result['last_active_on'] = $lastActiveOn; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage(mixed $object): mixed + { + assert($object instanceof ActionsHostedRunnerPoolImage); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $sizeGb = $object->sizeGb; + after_sizeGb: $result['size_gb'] = $sizeGb; + + $displayName = $object->displayName; + after_displayName: $result['display_name'] = $displayName; + + $source = $object->source; + after_source: $result['source'] = $source; + + $version = $object->version; + after_version: $result['version'] = $version; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec(mixed $object): mixed + { + assert($object instanceof ActionsHostedRunnerMachineSpec); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $cpuCores = $object->cpuCores; + after_cpuCores: $result['cpu_cores'] = $cpuCores; + + $memoryGb = $object->memoryGb; + after_memoryGb: $result['memory_gb'] = $memoryGb; + + $storageGb = $object->storageGb; + after_storageGb: $result['storage_gb'] = $storageGb; + + 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/Orgs/Org/Actions/HostedRunners/HostedRunnerId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/HostedRunnerId.php new file mode 100644 index 00000000000..39a5391c79a --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/HostedRunnerId.php @@ -0,0 +1,604 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunner($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunner(array $payload): ActionsHostedRunner + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['runner_group_id'] ?? null; + + if ($value === null) { + $properties['runnerGroupId'] = null; + goto after_runnerGroupId; + } + + $properties['runnerGroupId'] = $value; + + after_runnerGroupId: + + $value = $payload['image_details'] ?? null; + + if ($value === null) { + $properties['imageDetails'] = null; + goto after_imageDetails; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'imageDetails'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['imageDetails'] = $value; + + after_imageDetails: + + $value = $payload['machine_size_details'] ?? null; + + if ($value === null) { + $missingFields[] = 'machine_size_details'; + goto after_machineSizeDetails; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'machineSizeDetails'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['machineSizeDetails'] = $value; + + after_machineSizeDetails: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $missingFields[] = 'status'; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + + $value = $payload['platform'] ?? null; + + if ($value === null) { + $missingFields[] = 'platform'; + goto after_platform; + } + + $properties['platform'] = $value; + + after_platform: + + $value = $payload['maximum_runners'] ?? null; + + if ($value === null) { + $properties['maximumRunners'] = null; + goto after_maximumRunners; + } + + $properties['maximumRunners'] = $value; + + after_maximumRunners: + + $value = $payload['public_ip_enabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'public_ip_enabled'; + goto after_publicIpEnabled; + } + + $properties['publicIpEnabled'] = $value; + + after_publicIpEnabled: + + $value = $payload['public_ips'] ?? null; + + if ($value === null) { + $properties['publicIps'] = null; + goto after_publicIps; + } + + $properties['publicIps'] = $value; + + after_publicIps: + + $value = $payload['last_active_on'] ?? null; + + if ($value === null) { + $properties['lastActiveOn'] = null; + goto after_lastActiveOn; + } + + $properties['lastActiveOn'] = $value; + + after_lastActiveOn: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ActionsHostedRunner::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ActionsHostedRunner(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage(array $payload): ActionsHostedRunnerPoolImage + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['size_gb'] ?? null; + + if ($value === null) { + $missingFields[] = 'size_gb'; + goto after_sizeGb; + } + + $properties['sizeGb'] = $value; + + after_sizeGb: + + $value = $payload['display_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'display_name'; + goto after_displayName; + } + + $properties['displayName'] = $value; + + after_displayName: + + $value = $payload['source'] ?? null; + + if ($value === null) { + $missingFields[] = 'source'; + goto after_source; + } + + $properties['source'] = $value; + + after_source: + + $value = $payload['version'] ?? null; + + if ($value === null) { + $missingFields[] = 'version'; + goto after_version; + } + + $properties['version'] = $value; + + after_version: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ActionsHostedRunnerPoolImage::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ActionsHostedRunnerPoolImage(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec(array $payload): ActionsHostedRunnerMachineSpec + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['cpu_cores'] ?? null; + + if ($value === null) { + $missingFields[] = 'cpu_cores'; + goto after_cpuCores; + } + + $properties['cpuCores'] = $value; + + after_cpuCores: + + $value = $payload['memory_gb'] ?? null; + + if ($value === null) { + $missingFields[] = 'memory_gb'; + goto after_memoryGb; + } + + $properties['memoryGb'] = $value; + + after_memoryGb: + + $value = $payload['storage_gb'] ?? null; + + if ($value === null) { + $missingFields[] = 'storage_gb'; + goto after_storageGb; + } + + $properties['storageGb'] = $value; + + after_storageGb: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ActionsHostedRunnerMachineSpec::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ActionsHostedRunnerMachineSpec(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec', $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\ActionsHostedRunner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunner($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerMachineSpec' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($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⚡️ActionsHostedRunner(mixed $object): mixed + { + assert($object instanceof ActionsHostedRunner); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $name = $object->name; + after_name: $result['name'] = $name; + + $runnerGroupId = $object->runnerGroupId; + + if ($runnerGroupId === null) { + goto after_runnerGroupId; + } + + after_runnerGroupId: $result['runner_group_id'] = $runnerGroupId; + + $imageDetails = $object->imageDetails; + + if ($imageDetails === null) { + goto after_imageDetails; + } + + $imageDetails = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage($imageDetails); + after_imageDetails: $result['image_details'] = $imageDetails; + + $machineSizeDetails = $object->machineSizeDetails; + $machineSizeDetails = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec($machineSizeDetails); + after_machineSizeDetails: $result['machine_size_details'] = $machineSizeDetails; + + $status = $object->status; + after_status: $result['status'] = $status; + + $platform = $object->platform; + after_platform: $result['platform'] = $platform; + + $maximumRunners = $object->maximumRunners; + + if ($maximumRunners === null) { + goto after_maximumRunners; + } + + after_maximumRunners: $result['maximum_runners'] = $maximumRunners; + + $publicIpEnabled = $object->publicIpEnabled; + after_publicIpEnabled: $result['public_ip_enabled'] = $publicIpEnabled; + + $publicIps = $object->publicIps; + + if ($publicIps === null) { + goto after_publicIps; + } + + static $publicIpsSerializer0; + + if ($publicIpsSerializer0 === null) { + $publicIpsSerializer0 = new SerializeArrayItems(...[]); + } + + $publicIps = $publicIpsSerializer0->serialize($publicIps, $this); + after_publicIps: $result['public_ips'] = $publicIps; + + $lastActiveOn = $object->lastActiveOn; + + if ($lastActiveOn === null) { + goto after_lastActiveOn; + } + + after_lastActiveOn: $result['last_active_on'] = $lastActiveOn; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerPoolImage(mixed $object): mixed + { + assert($object instanceof ActionsHostedRunnerPoolImage); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $sizeGb = $object->sizeGb; + after_sizeGb: $result['size_gb'] = $sizeGb; + + $displayName = $object->displayName; + after_displayName: $result['display_name'] = $displayName; + + $source = $object->source; + after_source: $result['source'] = $source; + + $version = $object->version; + after_version: $result['version'] = $version; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerMachineSpec(mixed $object): mixed + { + assert($object instanceof ActionsHostedRunnerMachineSpec); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $cpuCores = $object->cpuCores; + after_cpuCores: $result['cpu_cores'] = $cpuCores; + + $memoryGb = $object->memoryGb; + after_memoryGb: $result['memory_gb'] = $memoryGb; + + $storageGb = $object->storageGb; + after_storageGb: $result['storage_gb'] = $storageGb; + + 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/Orgs/Org/Actions/HostedRunners/Images/GithubOwned.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/Images/GithubOwned.php new file mode 100644 index 00000000000..8f38d6ace00 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/Images/GithubOwned.php @@ -0,0 +1,245 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersGithubOwnedImagesForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersGithubOwnedImagesForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(array $payload): Json + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['images'] ?? null; + + if ($value === null) { + $missingFields[] = 'images'; + goto after_images; + } + + $properties['images'] = $value; + + after_images: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Json::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Json(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json', $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\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersGithubOwnedImagesForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($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⚡️Operations⚡️Actions⚡️GetHostedRunnersGithubOwnedImagesForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(mixed $object): mixed + { + assert($object instanceof Json); + $result = []; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $images = $object->images; + static $imagesSerializer0; + + if ($imagesSerializer0 === null) { + $imagesSerializer0 = new SerializeArrayItems(...[]); + } + + $images = $imagesSerializer0->serialize($images, $this); + after_images: $result['images'] = $images; + + 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/Orgs/Org/Actions/HostedRunners/Images/Partner.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/Images/Partner.php new file mode 100644 index 00000000000..0d9a0963c26 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/Images/Partner.php @@ -0,0 +1,245 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersPartnerImagesForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersPartnerImagesForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(array $payload): Json + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['images'] ?? null; + + if ($value === null) { + $missingFields[] = 'images'; + goto after_images; + } + + $properties['images'] = $value; + + after_images: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Json::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Json(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json', $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\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersPartnerImagesForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($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⚡️Operations⚡️Actions⚡️GetHostedRunnersPartnerImagesForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(mixed $object): mixed + { + assert($object instanceof Json); + $result = []; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $images = $object->images; + static $imagesSerializer0; + + if ($imagesSerializer0 === null) { + $imagesSerializer0 = new SerializeArrayItems(...[]); + } + + $images = $imagesSerializer0->serialize($images, $this); + after_images: $result['images'] = $images; + + 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/Orgs/Org/Actions/HostedRunners/Limits.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/Limits.php new file mode 100644 index 00000000000..d6d5fd67972 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/Limits.php @@ -0,0 +1,294 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits\PublicIps' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits⚡️PublicIps($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits(array $payload): ActionsHostedRunnerLimits + { + $properties = []; + $missingFields = []; + try { + $value = $payload['public_ips'] ?? null; + + if ($value === null) { + $missingFields[] = 'public_ips'; + goto after_publicIps; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'publicIps'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits⚡️PublicIps($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['publicIps'] = $value; + + after_publicIps: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ActionsHostedRunnerLimits::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ActionsHostedRunnerLimits(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits⚡️PublicIps(array $payload): PublicIps + { + $properties = []; + $missingFields = []; + try { + $value = $payload['maximum'] ?? null; + + if ($value === null) { + $missingFields[] = 'maximum'; + goto after_maximum; + } + + $properties['maximum'] = $value; + + after_maximum: + + $value = $payload['current_usage'] ?? null; + + if ($value === null) { + $missingFields[] = 'current_usage'; + goto after_currentUsage; + } + + $properties['currentUsage'] = $value; + + after_currentUsage: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits\PublicIps', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(PublicIps::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new PublicIps(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits\PublicIps', $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\ActionsHostedRunnerLimits' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits\PublicIps' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits⚡️PublicIps($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⚡️ActionsHostedRunnerLimits(mixed $object): mixed + { + assert($object instanceof ActionsHostedRunnerLimits); + $result = []; + + $publicIps = $object->publicIps; + $publicIps = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits⚡️PublicIps($publicIps); + after_publicIps: $result['public_ips'] = $publicIps; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ActionsHostedRunnerLimits⚡️PublicIps(mixed $object): mixed + { + assert($object instanceof PublicIps); + $result = []; + + $maximum = $object->maximum; + after_maximum: $result['maximum'] = $maximum; + + $currentUsage = $object->currentUsage; + after_currentUsage: $result['current_usage'] = $currentUsage; + + 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/Orgs/Org/Actions/HostedRunners/MachineSizes.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/MachineSizes.php new file mode 100644 index 00000000000..7146c4c93d3 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/MachineSizes.php @@ -0,0 +1,245 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersMachineSpecsForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersMachineSpecsForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(array $payload): Json + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['machine_specs'] ?? null; + + if ($value === null) { + $missingFields[] = 'machine_specs'; + goto after_machineSpecs; + } + + $properties['machineSpecs'] = $value; + + after_machineSpecs: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Json::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Json(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json', $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\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersMachineSpecsForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($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⚡️Operations⚡️Actions⚡️GetHostedRunnersMachineSpecsForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(mixed $object): mixed + { + assert($object instanceof Json); + $result = []; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $machineSpecs = $object->machineSpecs; + static $machineSpecsSerializer0; + + if ($machineSpecsSerializer0 === null) { + $machineSpecsSerializer0 = new SerializeArrayItems(...[]); + } + + $machineSpecs = $machineSpecsSerializer0->serialize($machineSpecs, $this); + after_machineSpecs: $result['machine_specs'] = $machineSpecs; + + 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/Orgs/Org/Actions/HostedRunners/Platforms.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/Platforms.php new file mode 100644 index 00000000000..ffe89a3b627 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/Platforms.php @@ -0,0 +1,245 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersPlatformsForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersPlatformsForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(array $payload): Json + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['platforms'] ?? null; + + if ($value === null) { + $missingFields[] = 'platforms'; + goto after_platforms; + } + + $properties['platforms'] = $value; + + after_platforms: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Json::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Json(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json', $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\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️GetHostedRunnersPlatformsForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($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⚡️Operations⚡️Actions⚡️GetHostedRunnersPlatformsForOrg⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(mixed $object): mixed + { + assert($object instanceof Json); + $result = []; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $platforms = $object->platforms; + static $platformsSerializer0; + + if ($platformsSerializer0 === null) { + $platformsSerializer0 = new SerializeArrayItems(...[]); + } + + $platforms = $platformsSerializer0->serialize($platforms, $this); + after_platforms: $result['platforms'] = $platforms; + + 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/Orgs/Org/Actions/RunnerGroups.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups.php index 7537761b870..8f91f4ca57d 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups.php @@ -168,6 +168,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_hostedRunnersUrl: + $value = $payload['network_configuration_id'] ?? null; + + if ($value === null) { + $properties['networkConfigurationId'] = null; + goto after_networkConfigurationId; + } + + $properties['networkConfigurationId'] = $value; + + after_networkConfigurationId: + $value = $payload['inherited'] ?? null; if ($value === null) { @@ -400,6 +411,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_hostedRunnersUrl: $result['hosted_runners_url'] = $hostedRunnersUrl; + $networkConfigurationId = $object->networkConfigurationId; + + if ($networkConfigurationId === null) { + goto after_networkConfigurationId; + } + + after_networkConfigurationId: $result['network_configuration_id'] = $networkConfigurationId; + $inherited = $object->inherited; after_inherited: $result['inherited'] = $inherited; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId.php index f24ed5a04a2..7212f660bc8 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId.php @@ -125,6 +125,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_hostedRunnersUrl: + $value = $payload['network_configuration_id'] ?? null; + + if ($value === null) { + $properties['networkConfigurationId'] = null; + goto after_networkConfigurationId; + } + + $properties['networkConfigurationId'] = $value; + + after_networkConfigurationId: + $value = $payload['inherited'] ?? null; if ($value === null) { @@ -335,6 +346,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_hostedRunnersUrl: $result['hosted_runners_url'] = $hostedRunnersUrl; + $networkConfigurationId = $object->networkConfigurationId; + + if ($networkConfigurationId === null) { + goto after_networkConfigurationId; + } + + after_networkConfigurationId: $result['network_configuration_id'] = $networkConfigurationId; + $inherited = $object->inherited; after_inherited: $result['inherited'] = $inherited; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId/HostedRunners.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId/HostedRunners.php new file mode 100644 index 00000000000..37486e77ba4 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId/HostedRunners.php @@ -0,0 +1,245 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️ListGithubHostedRunnersInGroupForOrg⚡️Response⚡️ApplicationJson⚡️Ok($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️ListGithubHostedRunnersInGroupForOrg⚡️Response⚡️ApplicationJson⚡️Ok(array $payload): Ok + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['runners'] ?? null; + + if ($value === null) { + $missingFields[] = 'runners'; + goto after_runners; + } + + $properties['runners'] = $value; + + after_runners: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Ok::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Ok(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok', $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\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Actions⚡️ListGithubHostedRunnersInGroupForOrg⚡️Response⚡️ApplicationJson⚡️Ok($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⚡️Operations⚡️Actions⚡️ListGithubHostedRunnersInGroupForOrg⚡️Response⚡️ApplicationJson⚡️Ok(mixed $object): mixed + { + assert($object instanceof Ok); + $result = []; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $runners = $object->runners; + static $runnersSerializer0; + + if ($runnersSerializer0 === null) { + $runnersSerializer0 = new SerializeArrayItems(...[]); + } + + $runners = $runnersSerializer0->serialize($runners, $this); + after_runners: $result['runners'] = $runners; + + 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/CheckRuns.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckRuns.php index 5b02a840b95..5806fdfae06 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckRuns.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckRuns.php @@ -4,13 +4,13 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun\CheckSuite; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun\Output; use ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentSimple; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems; @@ -50,7 +50,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun\Output' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckRun⚡️Output($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun\CheckSuite' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckRun⚡️CheckSuite($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DeploymentSimple($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -455,17 +454,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -627,267 +630,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - 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⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; @@ -1179,7 +921,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun\Output' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckRun⚡️Output($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun\CheckSuite' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckRun⚡️CheckSuite($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DeploymentSimple($object), default => throw new LogicException("No serialization defined for $className"), @@ -1436,12 +1177,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -1516,105 +1255,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou 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⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckRuns/CheckRunId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckRuns/CheckRunId.php index 9f9255eef18..0146101072a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckRuns/CheckRunId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckRuns/CheckRunId.php @@ -4,13 +4,13 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo\CheckRuns; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun\CheckSuite; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun\Output; use ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentSimple; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems; @@ -50,7 +50,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun\Output' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckRun⚡️Output($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun\CheckSuite' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckRun⚡️CheckSuite($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DeploymentSimple($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -455,17 +454,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -627,267 +630,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - 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⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; @@ -1179,7 +921,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun\Output' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckRun⚡️Output($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun\CheckSuite' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckRun⚡️CheckSuite($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DeploymentSimple($object), default => throw new LogicException("No serialization defined for $className"), @@ -1436,12 +1177,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -1516,105 +1255,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou 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⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php index 2032758d44e..0d420ecd544 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuite; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; @@ -59,9 +60,9 @@ public function hydrateObject(string $className, array $payload): object return match ($className) { 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuite' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckSuite($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeOfConduct($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository\License' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️License($payload), @@ -387,17 +388,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -559,44 +564,85 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; $missingFields = []; try { - $value = $payload['name'] ?? null; + $value = $payload['issues'] ?? null; if ($value === null) { - $properties['name'] = null; - goto after_name; + $properties['issues'] = null; + goto after_issues; } - $properties['name'] = $value; + $properties['issues'] = $value; - after_name: + after_issues: - $value = $payload['email'] ?? null; + $value = $payload['checks'] ?? null; if ($value === null) { - $properties['email'] = null; - goto after_email; + $properties['checks'] = null; + goto after_checks; } - $properties['email'] = $value; + $properties['checks'] = $value; - after_email: + after_checks: - $value = $payload['login'] ?? null; + $value = $payload['metadata'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $properties['metadata'] = null; + goto after_metadata; } - $properties['login'] = $value; + $properties['metadata'] = $value; - after_login: + 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(Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository(array $payload): MinimalRepository + { + $properties = []; + $missingFields = []; + try { $value = $payload['id'] ?? null; if ($value === null) { @@ -619,38 +665,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_nodeId: - $value = $payload['avatar_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; + $missingFields[] = 'name'; + goto after_name; } - $properties['avatarUrl'] = $value; + $properties['name'] = $value; - after_avatarUrl: + after_name: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; + $missingFields[] = 'full_name'; + goto after_fullName; } - $properties['gravatarId'] = $value; + $properties['fullName'] = $value; - after_gravatarId: + after_fullName: - $value = $payload['url'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } - after_url: + $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; @@ -663,1255 +729,1194 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_htmlUrl: - $value = $payload['followers_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; + $properties['description'] = null; + goto after_description; } - $properties['followersUrl'] = $value; + $properties['description'] = $value; - after_followersUrl: + after_description: - $value = $payload['following_url'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['followingUrl'] = $value; + $properties['fork'] = $value; - after_followingUrl: + after_fork: - $value = $payload['gists_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; + $missingFields[] = 'url'; + goto after_url; } - $properties['gistsUrl'] = $value; + $properties['url'] = $value; - after_gistsUrl: + after_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; + $missingFields[] = 'archive_url'; + goto after_archiveUrl; } - $properties['starredUrl'] = $value; + $properties['archiveUrl'] = $value; - after_starredUrl: + after_archiveUrl: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; + $missingFields[] = 'assignees_url'; + goto after_assigneesUrl; } - $properties['subscriptionsUrl'] = $value; + $properties['assigneesUrl'] = $value; - after_subscriptionsUrl: + after_assigneesUrl: - $value = $payload['organizations_url'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; + $missingFields[] = 'blobs_url'; + goto after_blobsUrl; } - $properties['organizationsUrl'] = $value; + $properties['blobsUrl'] = $value; - after_organizationsUrl: + after_blobsUrl: - $value = $payload['repos_url'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; + $missingFields[] = 'branches_url'; + goto after_branchesUrl; } - $properties['reposUrl'] = $value; + $properties['branchesUrl'] = $value; - after_reposUrl: + after_branchesUrl: - $value = $payload['events_url'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; + $missingFields[] = 'collaborators_url'; + goto after_collaboratorsUrl; } - $properties['eventsUrl'] = $value; + $properties['collaboratorsUrl'] = $value; - after_eventsUrl: + after_collaboratorsUrl: - $value = $payload['received_events_url'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; + $missingFields[] = 'comments_url'; + goto after_commentsUrl; } - $properties['receivedEventsUrl'] = $value; + $properties['commentsUrl'] = $value; - after_receivedEventsUrl: + after_commentsUrl: - $value = $payload['type'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'commits_url'; + goto after_commitsUrl; } - $properties['type'] = $value; + $properties['commitsUrl'] = $value; - after_type: + after_commitsUrl: - $value = $payload['site_admin'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; + $missingFields[] = 'compare_url'; + goto after_compareUrl; } - $properties['siteAdmin'] = $value; + $properties['compareUrl'] = $value; - after_siteAdmin: + after_compareUrl: - $value = $payload['starred_at'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; + $missingFields[] = 'contents_url'; + goto after_contentsUrl; } - $properties['starredAt'] = $value; + $properties['contentsUrl'] = $value; - after_starredAt: + after_contentsUrl: - $value = $payload['user_view_type'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $properties['userViewType'] = null; - goto after_userViewType; + $missingFields[] = 'contributors_url'; + goto after_contributorsUrl; } - $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); - } + $properties['contributorsUrl'] = $value; - try { - return new SimpleUser(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } + after_contributorsUrl: - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions - { - $properties = []; - $missingFields = []; - try { - $value = $payload['issues'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $properties['issues'] = null; - goto after_issues; + $missingFields[] = 'deployments_url'; + goto after_deploymentsUrl; } - $properties['issues'] = $value; + $properties['deploymentsUrl'] = $value; - after_issues: + after_deploymentsUrl: - $value = $payload['checks'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $properties['checks'] = null; - goto after_checks; + $missingFields[] = 'downloads_url'; + goto after_downloadsUrl; } - $properties['checks'] = $value; + $properties['downloadsUrl'] = $value; - after_checks: + after_downloadsUrl: - $value = $payload['metadata'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $properties['metadata'] = null; - goto after_metadata; + $missingFields[] = 'events_url'; + goto after_eventsUrl; } - $properties['metadata'] = $value; + $properties['eventsUrl'] = $value; - after_metadata: + after_eventsUrl: - $value = $payload['contents'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $properties['contents'] = null; - goto after_contents; + $missingFields[] = 'forks_url'; + goto after_forksUrl; } - $properties['contents'] = $value; + $properties['forksUrl'] = $value; - after_contents: + after_forksUrl: - $value = $payload['deployments'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $properties['deployments'] = null; - goto after_deployments; + $missingFields[] = 'git_commits_url'; + goto after_gitCommitsUrl; } - $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(Permissions::class, $missingFields, stack: $this->hydrationStack); - } + $properties['gitCommitsUrl'] = $value; - try { - return new Permissions(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_gitCommitsUrl: - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository(array $payload): MinimalRepository - { - $properties = []; - $missingFields = []; - try { - $value = $payload['id'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'git_refs_url'; + goto after_gitRefsUrl; } - $properties['id'] = $value; + $properties['gitRefsUrl'] = $value; - after_id: + after_gitRefsUrl: - $value = $payload['node_id'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; + $missingFields[] = 'git_tags_url'; + goto after_gitTagsUrl; } - $properties['nodeId'] = $value; + $properties['gitTagsUrl'] = $value; - after_nodeId: + after_gitTagsUrl: - $value = $payload['name'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $properties['gitUrl'] = null; + goto after_gitUrl; } - $properties['name'] = $value; + $properties['gitUrl'] = $value; - after_name: + after_gitUrl: - $value = $payload['full_name'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_fullName; + $missingFields[] = 'issue_comment_url'; + goto after_issueCommentUrl; } - $properties['fullName'] = $value; + $properties['issueCommentUrl'] = $value; - after_fullName: + after_issueCommentUrl: - $value = $payload['owner'] ?? null; + $value = $payload['issue_events_url'] ?? 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); - } + $missingFields[] = 'issue_events_url'; + goto after_issueEventsUrl; } - $properties['owner'] = $value; + $properties['issueEventsUrl'] = $value; - after_owner: + after_issueEventsUrl: - $value = $payload['private'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'issues_url'; + goto after_issuesUrl; } - $properties['private'] = $value; + $properties['issuesUrl'] = $value; - after_private: + after_issuesUrl: - $value = $payload['html_url'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; + $missingFields[] = 'keys_url'; + goto after_keysUrl; } - $properties['htmlUrl'] = $value; + $properties['keysUrl'] = $value; - after_htmlUrl: + after_keysUrl: - $value = $payload['description'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $properties['description'] = null; - goto after_description; + $missingFields[] = 'labels_url'; + goto after_labelsUrl; } - $properties['description'] = $value; + $properties['labelsUrl'] = $value; - after_description: + after_labelsUrl: - $value = $payload['fork'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'languages_url'; + goto after_languagesUrl; } - $properties['fork'] = $value; + $properties['languagesUrl'] = $value; - after_fork: + after_languagesUrl: - $value = $payload['url'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'merges_url'; + goto after_mergesUrl; } - $properties['url'] = $value; + $properties['mergesUrl'] = $value; - after_url: + after_mergesUrl: - $value = $payload['archive_url'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archiveUrl; + $missingFields[] = 'milestones_url'; + goto after_milestonesUrl; } - $properties['archiveUrl'] = $value; + $properties['milestonesUrl'] = $value; - after_archiveUrl: + after_milestonesUrl: - $value = $payload['assignees_url'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assigneesUrl; + $missingFields[] = 'notifications_url'; + goto after_notificationsUrl; } - $properties['assigneesUrl'] = $value; + $properties['notificationsUrl'] = $value; - after_assigneesUrl: + after_notificationsUrl: - $value = $payload['blobs_url'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobsUrl; + $missingFields[] = 'pulls_url'; + goto after_pullsUrl; } - $properties['blobsUrl'] = $value; + $properties['pullsUrl'] = $value; - after_blobsUrl: + after_pullsUrl: - $value = $payload['branches_url'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branchesUrl; + $missingFields[] = 'releases_url'; + goto after_releasesUrl; } - $properties['branchesUrl'] = $value; + $properties['releasesUrl'] = $value; - after_branchesUrl: + after_releasesUrl: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaboratorsUrl; + $properties['sshUrl'] = null; + goto after_sshUrl; } - $properties['collaboratorsUrl'] = $value; + $properties['sshUrl'] = $value; - after_collaboratorsUrl: + after_sshUrl: - $value = $payload['comments_url'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_commentsUrl; + $missingFields[] = 'stargazers_url'; + goto after_stargazersUrl; } - $properties['commentsUrl'] = $value; + $properties['stargazersUrl'] = $value; - after_commentsUrl: + after_stargazersUrl: - $value = $payload['commits_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commitsUrl; + $missingFields[] = 'statuses_url'; + goto after_statusesUrl; } - $properties['commitsUrl'] = $value; + $properties['statusesUrl'] = $value; - after_commitsUrl: + after_statusesUrl: - $value = $payload['compare_url'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compareUrl; + $missingFields[] = 'subscribers_url'; + goto after_subscribersUrl; } - $properties['compareUrl'] = $value; + $properties['subscribersUrl'] = $value; - after_compareUrl: + after_subscribersUrl: - $value = $payload['contents_url'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contentsUrl; + $missingFields[] = 'subscription_url'; + goto after_subscriptionUrl; } - $properties['contentsUrl'] = $value; + $properties['subscriptionUrl'] = $value; - after_contentsUrl: + after_subscriptionUrl: - $value = $payload['contributors_url'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributorsUrl; + $missingFields[] = 'tags_url'; + goto after_tagsUrl; } - $properties['contributorsUrl'] = $value; + $properties['tagsUrl'] = $value; - after_contributorsUrl: + after_tagsUrl: - $value = $payload['deployments_url'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deploymentsUrl; + $missingFields[] = 'teams_url'; + goto after_teamsUrl; } - $properties['deploymentsUrl'] = $value; + $properties['teamsUrl'] = $value; - after_deploymentsUrl: + after_teamsUrl: - $value = $payload['downloads_url'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloadsUrl; + $missingFields[] = 'trees_url'; + goto after_treesUrl; } - $properties['downloadsUrl'] = $value; + $properties['treesUrl'] = $value; - after_downloadsUrl: + after_treesUrl: - $value = $payload['events_url'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; + $properties['cloneUrl'] = null; + goto after_cloneUrl; } - $properties['eventsUrl'] = $value; + $properties['cloneUrl'] = $value; - after_eventsUrl: + after_cloneUrl: - $value = $payload['forks_url'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forksUrl; + $properties['mirrorUrl'] = null; + goto after_mirrorUrl; } - $properties['forksUrl'] = $value; + $properties['mirrorUrl'] = $value; - after_forksUrl: + after_mirrorUrl: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_gitCommitsUrl; + $missingFields[] = 'hooks_url'; + goto after_hooksUrl; } - $properties['gitCommitsUrl'] = $value; + $properties['hooksUrl'] = $value; - after_gitCommitsUrl: + after_hooksUrl: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_gitRefsUrl; + $properties['svnUrl'] = null; + goto after_svnUrl; } - $properties['gitRefsUrl'] = $value; + $properties['svnUrl'] = $value; - after_gitRefsUrl: + after_svnUrl: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_gitTagsUrl; + $properties['homepage'] = null; + goto after_homepage; } - $properties['gitTagsUrl'] = $value; + $properties['homepage'] = $value; - after_gitTagsUrl: + after_homepage: - $value = $payload['git_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $properties['gitUrl'] = null; - goto after_gitUrl; + $properties['language'] = null; + goto after_language; } - $properties['gitUrl'] = $value; + $properties['language'] = $value; - after_gitUrl: + after_language: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issueCommentUrl; + $properties['forksCount'] = null; + goto after_forksCount; } - $properties['issueCommentUrl'] = $value; + $properties['forksCount'] = $value; - after_issueCommentUrl: + after_forksCount: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issueEventsUrl; + $properties['stargazersCount'] = null; + goto after_stargazersCount; } - $properties['issueEventsUrl'] = $value; + $properties['stargazersCount'] = $value; - after_issueEventsUrl: + after_stargazersCount: - $value = $payload['issues_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issuesUrl; + $properties['watchersCount'] = null; + goto after_watchersCount; } - $properties['issuesUrl'] = $value; + $properties['watchersCount'] = $value; - after_issuesUrl: + after_watchersCount: - $value = $payload['keys_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keysUrl; + $properties['size'] = null; + goto after_size; } - $properties['keysUrl'] = $value; + $properties['size'] = $value; - after_keysUrl: + after_size: - $value = $payload['labels_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labelsUrl; + $properties['defaultBranch'] = null; + goto after_defaultBranch; } - $properties['labelsUrl'] = $value; + $properties['defaultBranch'] = $value; - after_labelsUrl: + after_defaultBranch: - $value = $payload['languages_url'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languagesUrl; + $properties['openIssuesCount'] = null; + goto after_openIssuesCount; } - $properties['languagesUrl'] = $value; + $properties['openIssuesCount'] = $value; - after_languagesUrl: + after_openIssuesCount: - $value = $payload['merges_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_mergesUrl; + $properties['isTemplate'] = null; + goto after_isTemplate; } - $properties['mergesUrl'] = $value; + $properties['isTemplate'] = $value; - after_mergesUrl: + after_isTemplate: - $value = $payload['milestones_url'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestonesUrl; + $properties['topics'] = null; + goto after_topics; } - $properties['milestonesUrl'] = $value; + $properties['topics'] = $value; - after_milestonesUrl: + after_topics: - $value = $payload['notifications_url'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notificationsUrl; + $properties['hasIssues'] = null; + goto after_hasIssues; } - $properties['notificationsUrl'] = $value; + $properties['hasIssues'] = $value; - after_notificationsUrl: + after_hasIssues: - $value = $payload['pulls_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pullsUrl; + $properties['hasProjects'] = null; + goto after_hasProjects; } - $properties['pullsUrl'] = $value; + $properties['hasProjects'] = $value; - after_pullsUrl: + after_hasProjects: - $value = $payload['releases_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releasesUrl; + $properties['hasWiki'] = null; + goto after_hasWiki; } - $properties['releasesUrl'] = $value; + $properties['hasWiki'] = $value; - after_releasesUrl: + after_hasWiki: - $value = $payload['ssh_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $properties['sshUrl'] = null; - goto after_sshUrl; + $properties['hasPages'] = null; + goto after_hasPages; } - $properties['sshUrl'] = $value; + $properties['hasPages'] = $value; - after_sshUrl: + after_hasPages: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazersUrl; + $properties['hasDownloads'] = null; + goto after_hasDownloads; } - $properties['stargazersUrl'] = $value; + $properties['hasDownloads'] = $value; - after_stargazersUrl: + after_hasDownloads: - $value = $payload['statuses_url'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statusesUrl; + $properties['hasDiscussions'] = null; + goto after_hasDiscussions; } - $properties['statusesUrl'] = $value; + $properties['hasDiscussions'] = $value; - after_statusesUrl: + after_hasDiscussions: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribersUrl; + $properties['archived'] = null; + goto after_archived; } - $properties['subscribersUrl'] = $value; + $properties['archived'] = $value; - after_subscribersUrl: + after_archived: - $value = $payload['subscription_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscriptionUrl; + $properties['disabled'] = null; + goto after_disabled; } - $properties['subscriptionUrl'] = $value; + $properties['disabled'] = $value; - after_subscriptionUrl: + after_disabled: - $value = $payload['tags_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tagsUrl; + $properties['visibility'] = null; + goto after_visibility; } - $properties['tagsUrl'] = $value; + $properties['visibility'] = $value; - after_tagsUrl: + after_visibility: - $value = $payload['teams_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teamsUrl; + $properties['pushedAt'] = null; + goto after_pushedAt; } - $properties['teamsUrl'] = $value; + $properties['pushedAt'] = $value; - after_teamsUrl: + after_pushedAt: - $value = $payload['trees_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_treesUrl; + $properties['createdAt'] = null; + goto after_createdAt; } - $properties['treesUrl'] = $value; + $properties['createdAt'] = $value; - after_treesUrl: + after_createdAt: - $value = $payload['clone_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $properties['cloneUrl'] = null; - goto after_cloneUrl; + $properties['updatedAt'] = null; + goto after_updatedAt; } - $properties['cloneUrl'] = $value; + $properties['updatedAt'] = $value; - after_cloneUrl: + after_updatedAt: - $value = $payload['mirror_url'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $properties['mirrorUrl'] = null; - goto after_mirrorUrl; + $properties['permissions'] = null; + goto after_permissions; } - $properties['mirrorUrl'] = $value; - - after_mirrorUrl: - - $value = $payload['hooks_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooksUrl; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['hooksUrl'] = $value; + $properties['permissions'] = $value; - after_hooksUrl: + after_permissions: - $value = $payload['svn_url'] ?? null; + $value = $payload['role_name'] ?? null; if ($value === null) { - $properties['svnUrl'] = null; - goto after_svnUrl; + $properties['roleName'] = null; + goto after_roleName; } - $properties['svnUrl'] = $value; + $properties['roleName'] = $value; - after_svnUrl: + after_roleName: - $value = $payload['homepage'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $properties['homepage'] = null; - goto after_homepage; + $properties['tempCloneToken'] = null; + goto after_tempCloneToken; } - $properties['homepage'] = $value; + $properties['tempCloneToken'] = $value; - after_homepage: + after_tempCloneToken: - $value = $payload['language'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $properties['language'] = null; - goto after_language; + $properties['deleteBranchOnMerge'] = null; + goto after_deleteBranchOnMerge; } - $properties['language'] = $value; + $properties['deleteBranchOnMerge'] = $value; - after_language: + after_deleteBranchOnMerge: - $value = $payload['forks_count'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $properties['forksCount'] = null; - goto after_forksCount; + $properties['subscribersCount'] = null; + goto after_subscribersCount; } - $properties['forksCount'] = $value; + $properties['subscribersCount'] = $value; - after_forksCount: + after_subscribersCount: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $properties['stargazersCount'] = null; - goto after_stargazersCount; + $properties['networkCount'] = null; + goto after_networkCount; } - $properties['stargazersCount'] = $value; + $properties['networkCount'] = $value; - after_stargazersCount: + after_networkCount: - $value = $payload['watchers_count'] ?? null; + $value = $payload['code_of_conduct'] ?? null; if ($value === null) { - $properties['watchersCount'] = null; - goto after_watchersCount; + $properties['codeOfConduct'] = null; + goto after_codeOfConduct; } - $properties['watchersCount'] = $value; - - after_watchersCount: - - $value = $payload['size'] ?? null; - - if ($value === null) { - $properties['size'] = null; - goto after_size; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'codeOfConduct'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeOfConduct($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['size'] = $value; + $properties['codeOfConduct'] = $value; - after_size: + after_codeOfConduct: - $value = $payload['default_branch'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $properties['defaultBranch'] = null; - goto after_defaultBranch; + $properties['license'] = null; + goto after_license; } - $properties['defaultBranch'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } - after_defaultBranch: + $properties['license'] = $value; - $value = $payload['open_issues_count'] ?? null; + after_license: + + $value = $payload['forks'] ?? null; if ($value === null) { - $properties['openIssuesCount'] = null; - goto after_openIssuesCount; + $properties['forks'] = null; + goto after_forks; } - $properties['openIssuesCount'] = $value; + $properties['forks'] = $value; - after_openIssuesCount: + after_forks: - $value = $payload['is_template'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $properties['isTemplate'] = null; - goto after_isTemplate; + $properties['openIssues'] = null; + goto after_openIssues; } - $properties['isTemplate'] = $value; + $properties['openIssues'] = $value; - after_isTemplate: + after_openIssues: - $value = $payload['topics'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $properties['topics'] = null; - goto after_topics; + $properties['watchers'] = null; + goto after_watchers; } - $properties['topics'] = $value; + $properties['watchers'] = $value; - after_topics: + after_watchers: - $value = $payload['has_issues'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $properties['hasIssues'] = null; - goto after_hasIssues; + $properties['allowForking'] = null; + goto after_allowForking; } - $properties['hasIssues'] = $value; + $properties['allowForking'] = $value; - after_hasIssues: + after_allowForking: - $value = $payload['has_projects'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $properties['hasProjects'] = null; - goto after_hasProjects; + $properties['webCommitSignoffRequired'] = null; + goto after_webCommitSignoffRequired; } - $properties['hasProjects'] = $value; + $properties['webCommitSignoffRequired'] = $value; - after_hasProjects: + after_webCommitSignoffRequired: - $value = $payload['has_wiki'] ?? null; + $value = $payload['security_and_analysis'] ?? null; if ($value === null) { - $properties['hasWiki'] = null; - goto after_hasWiki; + $properties['securityAndAnalysis'] = null; + goto after_securityAndAnalysis; } - $properties['hasWiki'] = $value; - - after_hasWiki: + if (is_array($value)) { + try { + $this->hydrationStack[] = 'securityAndAnalysis'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis($value); + } finally { + array_pop($this->hydrationStack); + } + } - $value = $payload['has_pages'] ?? null; + $properties['securityAndAnalysis'] = $value; - if ($value === null) { - $properties['hasPages'] = null; - goto after_hasPages; - } + after_securityAndAnalysis: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + } - $properties['hasPages'] = $value; + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(MinimalRepository::class, $missingFields, stack: $this->hydrationStack); + } - after_hasPages: + try { + return new MinimalRepository(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['has_downloads'] ?? null; + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + { + $properties = []; + $missingFields = []; + try { + $value = $payload['name'] ?? null; if ($value === null) { - $properties['hasDownloads'] = null; - goto after_hasDownloads; + $properties['name'] = null; + goto after_name; } - $properties['hasDownloads'] = $value; + $properties['name'] = $value; - after_hasDownloads: + after_name: - $value = $payload['has_discussions'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $properties['hasDiscussions'] = null; - goto after_hasDiscussions; + $properties['email'] = null; + goto after_email; } - $properties['hasDiscussions'] = $value; + $properties['email'] = $value; - after_hasDiscussions: + after_email: - $value = $payload['archived'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $properties['archived'] = null; - goto after_archived; + $missingFields[] = 'login'; + goto after_login; } - $properties['archived'] = $value; + $properties['login'] = $value; - after_archived: + after_login: - $value = $payload['disabled'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $properties['disabled'] = null; - goto after_disabled; + $missingFields[] = 'id'; + goto after_id; } - $properties['disabled'] = $value; + $properties['id'] = $value; - after_disabled: + after_id: - $value = $payload['visibility'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $properties['visibility'] = null; - goto after_visibility; + $missingFields[] = 'node_id'; + goto after_nodeId; } - $properties['visibility'] = $value; + $properties['nodeId'] = $value; - after_visibility: + after_nodeId: - $value = $payload['pushed_at'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $properties['pushedAt'] = null; - goto after_pushedAt; + $missingFields[] = 'avatar_url'; + goto after_avatarUrl; } - $properties['pushedAt'] = $value; + $properties['avatarUrl'] = $value; - after_pushedAt: + after_avatarUrl: - $value = $payload['created_at'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $properties['createdAt'] = null; - goto after_createdAt; + $properties['gravatarId'] = null; + goto after_gravatarId; } - $properties['createdAt'] = $value; + $properties['gravatarId'] = $value; - after_createdAt: + after_gravatarId: - $value = $payload['updated_at'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $properties['updatedAt'] = null; - goto after_updatedAt; + $missingFields[] = 'url'; + goto after_url; } - $properties['updatedAt'] = $value; + $properties['url'] = $value; - after_updatedAt: + after_url: - $value = $payload['permissions'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $properties['permissions'] = null; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'html_url'; + goto after_htmlUrl; } - $properties['permissions'] = $value; + $properties['htmlUrl'] = $value; - after_permissions: + after_htmlUrl: - $value = $payload['role_name'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $properties['roleName'] = null; - goto after_roleName; + $missingFields[] = 'followers_url'; + goto after_followersUrl; } - $properties['roleName'] = $value; + $properties['followersUrl'] = $value; - after_roleName: + after_followersUrl: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $properties['tempCloneToken'] = null; - goto after_tempCloneToken; + $missingFields[] = 'following_url'; + goto after_followingUrl; } - $properties['tempCloneToken'] = $value; + $properties['followingUrl'] = $value; - after_tempCloneToken: + after_followingUrl: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $properties['deleteBranchOnMerge'] = null; - goto after_deleteBranchOnMerge; + $missingFields[] = 'gists_url'; + goto after_gistsUrl; } - $properties['deleteBranchOnMerge'] = $value; + $properties['gistsUrl'] = $value; - after_deleteBranchOnMerge: + after_gistsUrl: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $properties['subscribersCount'] = null; - goto after_subscribersCount; + $missingFields[] = 'starred_url'; + goto after_starredUrl; } - $properties['subscribersCount'] = $value; + $properties['starredUrl'] = $value; - after_subscribersCount: + after_starredUrl: - $value = $payload['network_count'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $properties['networkCount'] = null; - goto after_networkCount; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptionsUrl; } - $properties['networkCount'] = $value; + $properties['subscriptionsUrl'] = $value; - after_networkCount: + after_subscriptionsUrl: - $value = $payload['code_of_conduct'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $properties['codeOfConduct'] = null; - goto after_codeOfConduct; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'codeOfConduct'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeOfConduct($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'organizations_url'; + goto after_organizationsUrl; } - $properties['codeOfConduct'] = $value; + $properties['organizationsUrl'] = $value; - after_codeOfConduct: + after_organizationsUrl: - $value = $payload['license'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'license'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️License($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'repos_url'; + goto after_reposUrl; } - $properties['license'] = $value; + $properties['reposUrl'] = $value; - after_license: + after_reposUrl: - $value = $payload['forks'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $properties['forks'] = null; - goto after_forks; + $missingFields[] = 'events_url'; + goto after_eventsUrl; } - $properties['forks'] = $value; + $properties['eventsUrl'] = $value; - after_forks: + after_eventsUrl: - $value = $payload['open_issues'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $properties['openIssues'] = null; - goto after_openIssues; + $missingFields[] = 'received_events_url'; + goto after_receivedEventsUrl; } - $properties['openIssues'] = $value; + $properties['receivedEventsUrl'] = $value; - after_openIssues: + after_receivedEventsUrl: - $value = $payload['watchers'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $properties['watchers'] = null; - goto after_watchers; + $missingFields[] = 'type'; + goto after_type; } - $properties['watchers'] = $value; + $properties['type'] = $value; - after_watchers: + after_type: - $value = $payload['allow_forking'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $properties['allowForking'] = null; - goto after_allowForking; + $missingFields[] = 'site_admin'; + goto after_siteAdmin; } - $properties['allowForking'] = $value; + $properties['siteAdmin'] = $value; - after_allowForking: + after_siteAdmin: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $properties['webCommitSignoffRequired'] = null; - goto after_webCommitSignoffRequired; + $properties['starredAt'] = null; + goto after_starredAt; } - $properties['webCommitSignoffRequired'] = $value; + $properties['starredAt'] = $value; - after_webCommitSignoffRequired: + after_starredAt: - $value = $payload['security_and_analysis'] ?? null; + $value = $payload['user_view_type'] ?? null; if ($value === null) { - $properties['securityAndAnalysis'] = null; - goto after_securityAndAnalysis; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'securityAndAnalysis'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['userViewType'] = null; + goto after_userViewType; } - $properties['securityAndAnalysis'] = $value; + $properties['userViewType'] = $value; - after_securityAndAnalysis: + after_userViewType: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(MinimalRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new MinimalRepository(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -2724,9 +2729,9 @@ public function serializeObjectOfType(object $object, string $className): mixed 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuite' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckSuite($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeOfConduct($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️License($object), @@ -2966,12 +2971,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -3046,105 +3049,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou 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⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); @@ -3684,6 +3588,105 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou 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⚡️MinimalRepository⚡️Permissions(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository\Permissions); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php index 2a0c57a4429..e089f8b70d5 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo\CheckSuites; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuite; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; @@ -59,9 +60,9 @@ public function hydrateObject(string $className, array $payload): object return match ($className) { 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuite' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckSuite($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeOfConduct($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository\License' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️License($payload), @@ -387,17 +388,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -559,44 +564,85 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; $missingFields = []; try { - $value = $payload['name'] ?? null; + $value = $payload['issues'] ?? null; if ($value === null) { - $properties['name'] = null; - goto after_name; + $properties['issues'] = null; + goto after_issues; } - $properties['name'] = $value; + $properties['issues'] = $value; - after_name: + after_issues: - $value = $payload['email'] ?? null; + $value = $payload['checks'] ?? null; if ($value === null) { - $properties['email'] = null; - goto after_email; + $properties['checks'] = null; + goto after_checks; } - $properties['email'] = $value; + $properties['checks'] = $value; - after_email: + after_checks: - $value = $payload['login'] ?? null; + $value = $payload['metadata'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $properties['metadata'] = null; + goto after_metadata; } - $properties['login'] = $value; + $properties['metadata'] = $value; - after_login: + 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(Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository(array $payload): MinimalRepository + { + $properties = []; + $missingFields = []; + try { $value = $payload['id'] ?? null; if ($value === null) { @@ -619,38 +665,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_nodeId: - $value = $payload['avatar_url'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; + $missingFields[] = 'name'; + goto after_name; } - $properties['avatarUrl'] = $value; + $properties['name'] = $value; - after_avatarUrl: + after_name: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; + $missingFields[] = 'full_name'; + goto after_fullName; } - $properties['gravatarId'] = $value; + $properties['fullName'] = $value; - after_gravatarId: + after_fullName: - $value = $payload['url'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['url'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } - after_url: + $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; @@ -663,1255 +729,1194 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_htmlUrl: - $value = $payload['followers_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; + $properties['description'] = null; + goto after_description; } - $properties['followersUrl'] = $value; + $properties['description'] = $value; - after_followersUrl: + after_description: - $value = $payload['following_url'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['followingUrl'] = $value; + $properties['fork'] = $value; - after_followingUrl: + after_fork: - $value = $payload['gists_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; + $missingFields[] = 'url'; + goto after_url; } - $properties['gistsUrl'] = $value; + $properties['url'] = $value; - after_gistsUrl: + after_url: - $value = $payload['starred_url'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; + $missingFields[] = 'archive_url'; + goto after_archiveUrl; } - $properties['starredUrl'] = $value; + $properties['archiveUrl'] = $value; - after_starredUrl: + after_archiveUrl: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; + $missingFields[] = 'assignees_url'; + goto after_assigneesUrl; } - $properties['subscriptionsUrl'] = $value; + $properties['assigneesUrl'] = $value; - after_subscriptionsUrl: + after_assigneesUrl: - $value = $payload['organizations_url'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; + $missingFields[] = 'blobs_url'; + goto after_blobsUrl; } - $properties['organizationsUrl'] = $value; + $properties['blobsUrl'] = $value; - after_organizationsUrl: + after_blobsUrl: - $value = $payload['repos_url'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; + $missingFields[] = 'branches_url'; + goto after_branchesUrl; } - $properties['reposUrl'] = $value; + $properties['branchesUrl'] = $value; - after_reposUrl: + after_branchesUrl: - $value = $payload['events_url'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; + $missingFields[] = 'collaborators_url'; + goto after_collaboratorsUrl; } - $properties['eventsUrl'] = $value; + $properties['collaboratorsUrl'] = $value; - after_eventsUrl: + after_collaboratorsUrl: - $value = $payload['received_events_url'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; + $missingFields[] = 'comments_url'; + goto after_commentsUrl; } - $properties['receivedEventsUrl'] = $value; + $properties['commentsUrl'] = $value; - after_receivedEventsUrl: + after_commentsUrl: - $value = $payload['type'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $missingFields[] = 'commits_url'; + goto after_commitsUrl; } - $properties['type'] = $value; + $properties['commitsUrl'] = $value; - after_type: + after_commitsUrl: - $value = $payload['site_admin'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; + $missingFields[] = 'compare_url'; + goto after_compareUrl; } - $properties['siteAdmin'] = $value; + $properties['compareUrl'] = $value; - after_siteAdmin: + after_compareUrl: - $value = $payload['starred_at'] ?? null; + $value = $payload['contents_url'] ?? null; if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; + $missingFields[] = 'contents_url'; + goto after_contentsUrl; } - $properties['starredAt'] = $value; + $properties['contentsUrl'] = $value; - after_starredAt: + after_contentsUrl: - $value = $payload['user_view_type'] ?? null; + $value = $payload['contributors_url'] ?? null; if ($value === null) { - $properties['userViewType'] = null; - goto after_userViewType; + $missingFields[] = 'contributors_url'; + goto after_contributorsUrl; } - $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); - } + $properties['contributorsUrl'] = $value; - try { - return new SimpleUser(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } + after_contributorsUrl: - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions - { - $properties = []; - $missingFields = []; - try { - $value = $payload['issues'] ?? null; + $value = $payload['deployments_url'] ?? null; if ($value === null) { - $properties['issues'] = null; - goto after_issues; + $missingFields[] = 'deployments_url'; + goto after_deploymentsUrl; } - $properties['issues'] = $value; + $properties['deploymentsUrl'] = $value; - after_issues: + after_deploymentsUrl: - $value = $payload['checks'] ?? null; + $value = $payload['downloads_url'] ?? null; if ($value === null) { - $properties['checks'] = null; - goto after_checks; + $missingFields[] = 'downloads_url'; + goto after_downloadsUrl; } - $properties['checks'] = $value; + $properties['downloadsUrl'] = $value; - after_checks: + after_downloadsUrl: - $value = $payload['metadata'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $properties['metadata'] = null; - goto after_metadata; + $missingFields[] = 'events_url'; + goto after_eventsUrl; } - $properties['metadata'] = $value; + $properties['eventsUrl'] = $value; - after_metadata: + after_eventsUrl: - $value = $payload['contents'] ?? null; + $value = $payload['forks_url'] ?? null; if ($value === null) { - $properties['contents'] = null; - goto after_contents; + $missingFields[] = 'forks_url'; + goto after_forksUrl; } - $properties['contents'] = $value; + $properties['forksUrl'] = $value; - after_contents: + after_forksUrl: - $value = $payload['deployments'] ?? null; + $value = $payload['git_commits_url'] ?? null; if ($value === null) { - $properties['deployments'] = null; - goto after_deployments; + $missingFields[] = 'git_commits_url'; + goto after_gitCommitsUrl; } - $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(Permissions::class, $missingFields, stack: $this->hydrationStack); - } + $properties['gitCommitsUrl'] = $value; - try { - return new Permissions(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_gitCommitsUrl: - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository(array $payload): MinimalRepository - { - $properties = []; - $missingFields = []; - try { - $value = $payload['id'] ?? null; + $value = $payload['git_refs_url'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'git_refs_url'; + goto after_gitRefsUrl; } - $properties['id'] = $value; + $properties['gitRefsUrl'] = $value; - after_id: + after_gitRefsUrl: - $value = $payload['node_id'] ?? null; + $value = $payload['git_tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; + $missingFields[] = 'git_tags_url'; + goto after_gitTagsUrl; } - $properties['nodeId'] = $value; + $properties['gitTagsUrl'] = $value; - after_nodeId: + after_gitTagsUrl: - $value = $payload['name'] ?? null; + $value = $payload['git_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $properties['gitUrl'] = null; + goto after_gitUrl; } - $properties['name'] = $value; + $properties['gitUrl'] = $value; - after_name: + after_gitUrl: - $value = $payload['full_name'] ?? null; + $value = $payload['issue_comment_url'] ?? null; if ($value === null) { - $missingFields[] = 'full_name'; - goto after_fullName; + $missingFields[] = 'issue_comment_url'; + goto after_issueCommentUrl; } - $properties['fullName'] = $value; + $properties['issueCommentUrl'] = $value; - after_fullName: + after_issueCommentUrl: - $value = $payload['owner'] ?? null; + $value = $payload['issue_events_url'] ?? 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); - } + $missingFields[] = 'issue_events_url'; + goto after_issueEventsUrl; } - $properties['owner'] = $value; + $properties['issueEventsUrl'] = $value; - after_owner: + after_issueEventsUrl: - $value = $payload['private'] ?? null; + $value = $payload['issues_url'] ?? null; if ($value === null) { - $missingFields[] = 'private'; - goto after_private; + $missingFields[] = 'issues_url'; + goto after_issuesUrl; } - $properties['private'] = $value; + $properties['issuesUrl'] = $value; - after_private: + after_issuesUrl: - $value = $payload['html_url'] ?? null; + $value = $payload['keys_url'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; + $missingFields[] = 'keys_url'; + goto after_keysUrl; } - $properties['htmlUrl'] = $value; + $properties['keysUrl'] = $value; - after_htmlUrl: + after_keysUrl: - $value = $payload['description'] ?? null; + $value = $payload['labels_url'] ?? null; if ($value === null) { - $properties['description'] = null; - goto after_description; + $missingFields[] = 'labels_url'; + goto after_labelsUrl; } - $properties['description'] = $value; + $properties['labelsUrl'] = $value; - after_description: + after_labelsUrl: - $value = $payload['fork'] ?? null; + $value = $payload['languages_url'] ?? null; if ($value === null) { - $missingFields[] = 'fork'; - goto after_fork; + $missingFields[] = 'languages_url'; + goto after_languagesUrl; } - $properties['fork'] = $value; + $properties['languagesUrl'] = $value; - after_fork: + after_languagesUrl: - $value = $payload['url'] ?? null; + $value = $payload['merges_url'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'merges_url'; + goto after_mergesUrl; } - $properties['url'] = $value; + $properties['mergesUrl'] = $value; - after_url: + after_mergesUrl: - $value = $payload['archive_url'] ?? null; + $value = $payload['milestones_url'] ?? null; if ($value === null) { - $missingFields[] = 'archive_url'; - goto after_archiveUrl; + $missingFields[] = 'milestones_url'; + goto after_milestonesUrl; } - $properties['archiveUrl'] = $value; + $properties['milestonesUrl'] = $value; - after_archiveUrl: + after_milestonesUrl: - $value = $payload['assignees_url'] ?? null; + $value = $payload['notifications_url'] ?? null; if ($value === null) { - $missingFields[] = 'assignees_url'; - goto after_assigneesUrl; + $missingFields[] = 'notifications_url'; + goto after_notificationsUrl; } - $properties['assigneesUrl'] = $value; + $properties['notificationsUrl'] = $value; - after_assigneesUrl: + after_notificationsUrl: - $value = $payload['blobs_url'] ?? null; + $value = $payload['pulls_url'] ?? null; if ($value === null) { - $missingFields[] = 'blobs_url'; - goto after_blobsUrl; + $missingFields[] = 'pulls_url'; + goto after_pullsUrl; } - $properties['blobsUrl'] = $value; + $properties['pullsUrl'] = $value; - after_blobsUrl: + after_pullsUrl: - $value = $payload['branches_url'] ?? null; + $value = $payload['releases_url'] ?? null; if ($value === null) { - $missingFields[] = 'branches_url'; - goto after_branchesUrl; + $missingFields[] = 'releases_url'; + goto after_releasesUrl; } - $properties['branchesUrl'] = $value; + $properties['releasesUrl'] = $value; - after_branchesUrl: + after_releasesUrl: - $value = $payload['collaborators_url'] ?? null; + $value = $payload['ssh_url'] ?? null; if ($value === null) { - $missingFields[] = 'collaborators_url'; - goto after_collaboratorsUrl; + $properties['sshUrl'] = null; + goto after_sshUrl; } - $properties['collaboratorsUrl'] = $value; + $properties['sshUrl'] = $value; - after_collaboratorsUrl: + after_sshUrl: - $value = $payload['comments_url'] ?? null; + $value = $payload['stargazers_url'] ?? null; if ($value === null) { - $missingFields[] = 'comments_url'; - goto after_commentsUrl; + $missingFields[] = 'stargazers_url'; + goto after_stargazersUrl; } - $properties['commentsUrl'] = $value; + $properties['stargazersUrl'] = $value; - after_commentsUrl: + after_stargazersUrl: - $value = $payload['commits_url'] ?? null; + $value = $payload['statuses_url'] ?? null; if ($value === null) { - $missingFields[] = 'commits_url'; - goto after_commitsUrl; + $missingFields[] = 'statuses_url'; + goto after_statusesUrl; } - $properties['commitsUrl'] = $value; + $properties['statusesUrl'] = $value; - after_commitsUrl: + after_statusesUrl: - $value = $payload['compare_url'] ?? null; + $value = $payload['subscribers_url'] ?? null; if ($value === null) { - $missingFields[] = 'compare_url'; - goto after_compareUrl; + $missingFields[] = 'subscribers_url'; + goto after_subscribersUrl; } - $properties['compareUrl'] = $value; + $properties['subscribersUrl'] = $value; - after_compareUrl: + after_subscribersUrl: - $value = $payload['contents_url'] ?? null; + $value = $payload['subscription_url'] ?? null; if ($value === null) { - $missingFields[] = 'contents_url'; - goto after_contentsUrl; + $missingFields[] = 'subscription_url'; + goto after_subscriptionUrl; } - $properties['contentsUrl'] = $value; + $properties['subscriptionUrl'] = $value; - after_contentsUrl: + after_subscriptionUrl: - $value = $payload['contributors_url'] ?? null; + $value = $payload['tags_url'] ?? null; if ($value === null) { - $missingFields[] = 'contributors_url'; - goto after_contributorsUrl; + $missingFields[] = 'tags_url'; + goto after_tagsUrl; } - $properties['contributorsUrl'] = $value; + $properties['tagsUrl'] = $value; - after_contributorsUrl: + after_tagsUrl: - $value = $payload['deployments_url'] ?? null; + $value = $payload['teams_url'] ?? null; if ($value === null) { - $missingFields[] = 'deployments_url'; - goto after_deploymentsUrl; + $missingFields[] = 'teams_url'; + goto after_teamsUrl; } - $properties['deploymentsUrl'] = $value; + $properties['teamsUrl'] = $value; - after_deploymentsUrl: + after_teamsUrl: - $value = $payload['downloads_url'] ?? null; + $value = $payload['trees_url'] ?? null; if ($value === null) { - $missingFields[] = 'downloads_url'; - goto after_downloadsUrl; + $missingFields[] = 'trees_url'; + goto after_treesUrl; } - $properties['downloadsUrl'] = $value; + $properties['treesUrl'] = $value; - after_downloadsUrl: + after_treesUrl: - $value = $payload['events_url'] ?? null; + $value = $payload['clone_url'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; + $properties['cloneUrl'] = null; + goto after_cloneUrl; } - $properties['eventsUrl'] = $value; + $properties['cloneUrl'] = $value; - after_eventsUrl: + after_cloneUrl: - $value = $payload['forks_url'] ?? null; + $value = $payload['mirror_url'] ?? null; if ($value === null) { - $missingFields[] = 'forks_url'; - goto after_forksUrl; + $properties['mirrorUrl'] = null; + goto after_mirrorUrl; } - $properties['forksUrl'] = $value; + $properties['mirrorUrl'] = $value; - after_forksUrl: + after_mirrorUrl: - $value = $payload['git_commits_url'] ?? null; + $value = $payload['hooks_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_commits_url'; - goto after_gitCommitsUrl; + $missingFields[] = 'hooks_url'; + goto after_hooksUrl; } - $properties['gitCommitsUrl'] = $value; + $properties['hooksUrl'] = $value; - after_gitCommitsUrl: + after_hooksUrl: - $value = $payload['git_refs_url'] ?? null; + $value = $payload['svn_url'] ?? null; if ($value === null) { - $missingFields[] = 'git_refs_url'; - goto after_gitRefsUrl; + $properties['svnUrl'] = null; + goto after_svnUrl; } - $properties['gitRefsUrl'] = $value; + $properties['svnUrl'] = $value; - after_gitRefsUrl: + after_svnUrl: - $value = $payload['git_tags_url'] ?? null; + $value = $payload['homepage'] ?? null; if ($value === null) { - $missingFields[] = 'git_tags_url'; - goto after_gitTagsUrl; + $properties['homepage'] = null; + goto after_homepage; } - $properties['gitTagsUrl'] = $value; + $properties['homepage'] = $value; - after_gitTagsUrl: + after_homepage: - $value = $payload['git_url'] ?? null; + $value = $payload['language'] ?? null; if ($value === null) { - $properties['gitUrl'] = null; - goto after_gitUrl; + $properties['language'] = null; + goto after_language; } - $properties['gitUrl'] = $value; + $properties['language'] = $value; - after_gitUrl: + after_language: - $value = $payload['issue_comment_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'issue_comment_url'; - goto after_issueCommentUrl; + $properties['forksCount'] = null; + goto after_forksCount; } - $properties['issueCommentUrl'] = $value; + $properties['forksCount'] = $value; - after_issueCommentUrl: + after_forksCount: - $value = $payload['issue_events_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'issue_events_url'; - goto after_issueEventsUrl; + $properties['stargazersCount'] = null; + goto after_stargazersCount; } - $properties['issueEventsUrl'] = $value; + $properties['stargazersCount'] = $value; - after_issueEventsUrl: + after_stargazersCount: - $value = $payload['issues_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'issues_url'; - goto after_issuesUrl; + $properties['watchersCount'] = null; + goto after_watchersCount; } - $properties['issuesUrl'] = $value; + $properties['watchersCount'] = $value; - after_issuesUrl: + after_watchersCount: - $value = $payload['keys_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keysUrl; + $properties['size'] = null; + goto after_size; } - $properties['keysUrl'] = $value; + $properties['size'] = $value; - after_keysUrl: + after_size: - $value = $payload['labels_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labelsUrl; + $properties['defaultBranch'] = null; + goto after_defaultBranch; } - $properties['labelsUrl'] = $value; + $properties['defaultBranch'] = $value; - after_labelsUrl: + after_defaultBranch: - $value = $payload['languages_url'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languagesUrl; + $properties['openIssuesCount'] = null; + goto after_openIssuesCount; } - $properties['languagesUrl'] = $value; + $properties['openIssuesCount'] = $value; - after_languagesUrl: + after_openIssuesCount: - $value = $payload['merges_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_mergesUrl; + $properties['isTemplate'] = null; + goto after_isTemplate; } - $properties['mergesUrl'] = $value; + $properties['isTemplate'] = $value; - after_mergesUrl: + after_isTemplate: - $value = $payload['milestones_url'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestonesUrl; + $properties['topics'] = null; + goto after_topics; } - $properties['milestonesUrl'] = $value; + $properties['topics'] = $value; - after_milestonesUrl: + after_topics: - $value = $payload['notifications_url'] ?? null; + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notificationsUrl; + $properties['hasIssues'] = null; + goto after_hasIssues; } - $properties['notificationsUrl'] = $value; + $properties['hasIssues'] = $value; - after_notificationsUrl: + after_hasIssues: - $value = $payload['pulls_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pullsUrl; + $properties['hasProjects'] = null; + goto after_hasProjects; } - $properties['pullsUrl'] = $value; + $properties['hasProjects'] = $value; - after_pullsUrl: + after_hasProjects: - $value = $payload['releases_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releasesUrl; + $properties['hasWiki'] = null; + goto after_hasWiki; } - $properties['releasesUrl'] = $value; + $properties['hasWiki'] = $value; - after_releasesUrl: + after_hasWiki: - $value = $payload['ssh_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $properties['sshUrl'] = null; - goto after_sshUrl; + $properties['hasPages'] = null; + goto after_hasPages; } - $properties['sshUrl'] = $value; + $properties['hasPages'] = $value; - after_sshUrl: + after_hasPages: - $value = $payload['stargazers_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazersUrl; + $properties['hasDownloads'] = null; + goto after_hasDownloads; } - $properties['stargazersUrl'] = $value; + $properties['hasDownloads'] = $value; - after_stargazersUrl: + after_hasDownloads: - $value = $payload['statuses_url'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statusesUrl; + $properties['hasDiscussions'] = null; + goto after_hasDiscussions; } - $properties['statusesUrl'] = $value; + $properties['hasDiscussions'] = $value; - after_statusesUrl: + after_hasDiscussions: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribersUrl; + $properties['archived'] = null; + goto after_archived; } - $properties['subscribersUrl'] = $value; + $properties['archived'] = $value; - after_subscribersUrl: + after_archived: - $value = $payload['subscription_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscriptionUrl; + $properties['disabled'] = null; + goto after_disabled; } - $properties['subscriptionUrl'] = $value; + $properties['disabled'] = $value; - after_subscriptionUrl: + after_disabled: - $value = $payload['tags_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tagsUrl; + $properties['visibility'] = null; + goto after_visibility; } - $properties['tagsUrl'] = $value; + $properties['visibility'] = $value; - after_tagsUrl: + after_visibility: - $value = $payload['teams_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teamsUrl; + $properties['pushedAt'] = null; + goto after_pushedAt; } - $properties['teamsUrl'] = $value; + $properties['pushedAt'] = $value; - after_teamsUrl: + after_pushedAt: - $value = $payload['trees_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_treesUrl; + $properties['createdAt'] = null; + goto after_createdAt; } - $properties['treesUrl'] = $value; + $properties['createdAt'] = $value; - after_treesUrl: + after_createdAt: - $value = $payload['clone_url'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $properties['cloneUrl'] = null; - goto after_cloneUrl; + $properties['updatedAt'] = null; + goto after_updatedAt; } - $properties['cloneUrl'] = $value; + $properties['updatedAt'] = $value; - after_cloneUrl: + after_updatedAt: - $value = $payload['mirror_url'] ?? null; + $value = $payload['permissions'] ?? null; if ($value === null) { - $properties['mirrorUrl'] = null; - goto after_mirrorUrl; + $properties['permissions'] = null; + goto after_permissions; } - $properties['mirrorUrl'] = $value; - - after_mirrorUrl: - - $value = $payload['hooks_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooksUrl; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['hooksUrl'] = $value; + $properties['permissions'] = $value; - after_hooksUrl: + after_permissions: - $value = $payload['svn_url'] ?? null; + $value = $payload['role_name'] ?? null; if ($value === null) { - $properties['svnUrl'] = null; - goto after_svnUrl; + $properties['roleName'] = null; + goto after_roleName; } - $properties['svnUrl'] = $value; + $properties['roleName'] = $value; - after_svnUrl: + after_roleName: - $value = $payload['homepage'] ?? null; + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $properties['homepage'] = null; - goto after_homepage; + $properties['tempCloneToken'] = null; + goto after_tempCloneToken; } - $properties['homepage'] = $value; + $properties['tempCloneToken'] = $value; - after_homepage: + after_tempCloneToken: - $value = $payload['language'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $properties['language'] = null; - goto after_language; + $properties['deleteBranchOnMerge'] = null; + goto after_deleteBranchOnMerge; } - $properties['language'] = $value; + $properties['deleteBranchOnMerge'] = $value; - after_language: + after_deleteBranchOnMerge: - $value = $payload['forks_count'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $properties['forksCount'] = null; - goto after_forksCount; + $properties['subscribersCount'] = null; + goto after_subscribersCount; } - $properties['forksCount'] = $value; + $properties['subscribersCount'] = $value; - after_forksCount: + after_subscribersCount: - $value = $payload['stargazers_count'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $properties['stargazersCount'] = null; - goto after_stargazersCount; + $properties['networkCount'] = null; + goto after_networkCount; } - $properties['stargazersCount'] = $value; + $properties['networkCount'] = $value; - after_stargazersCount: + after_networkCount: - $value = $payload['watchers_count'] ?? null; + $value = $payload['code_of_conduct'] ?? null; if ($value === null) { - $properties['watchersCount'] = null; - goto after_watchersCount; + $properties['codeOfConduct'] = null; + goto after_codeOfConduct; } - $properties['watchersCount'] = $value; - - after_watchersCount: - - $value = $payload['size'] ?? null; - - if ($value === null) { - $properties['size'] = null; - goto after_size; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'codeOfConduct'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeOfConduct($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['size'] = $value; + $properties['codeOfConduct'] = $value; - after_size: + after_codeOfConduct: - $value = $payload['default_branch'] ?? null; + $value = $payload['license'] ?? null; if ($value === null) { - $properties['defaultBranch'] = null; - goto after_defaultBranch; + $properties['license'] = null; + goto after_license; } - $properties['defaultBranch'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️License($value); + } finally { + array_pop($this->hydrationStack); + } + } - after_defaultBranch: + $properties['license'] = $value; - $value = $payload['open_issues_count'] ?? null; + after_license: + + $value = $payload['forks'] ?? null; if ($value === null) { - $properties['openIssuesCount'] = null; - goto after_openIssuesCount; + $properties['forks'] = null; + goto after_forks; } - $properties['openIssuesCount'] = $value; + $properties['forks'] = $value; - after_openIssuesCount: + after_forks: - $value = $payload['is_template'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $properties['isTemplate'] = null; - goto after_isTemplate; + $properties['openIssues'] = null; + goto after_openIssues; } - $properties['isTemplate'] = $value; + $properties['openIssues'] = $value; - after_isTemplate: + after_openIssues: - $value = $payload['topics'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $properties['topics'] = null; - goto after_topics; + $properties['watchers'] = null; + goto after_watchers; } - $properties['topics'] = $value; + $properties['watchers'] = $value; - after_topics: + after_watchers: - $value = $payload['has_issues'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $properties['hasIssues'] = null; - goto after_hasIssues; + $properties['allowForking'] = null; + goto after_allowForking; } - $properties['hasIssues'] = $value; + $properties['allowForking'] = $value; - after_hasIssues: + after_allowForking: - $value = $payload['has_projects'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $properties['hasProjects'] = null; - goto after_hasProjects; + $properties['webCommitSignoffRequired'] = null; + goto after_webCommitSignoffRequired; } - $properties['hasProjects'] = $value; + $properties['webCommitSignoffRequired'] = $value; - after_hasProjects: + after_webCommitSignoffRequired: - $value = $payload['has_wiki'] ?? null; + $value = $payload['security_and_analysis'] ?? null; if ($value === null) { - $properties['hasWiki'] = null; - goto after_hasWiki; + $properties['securityAndAnalysis'] = null; + goto after_securityAndAnalysis; } - $properties['hasWiki'] = $value; - - after_hasWiki: + if (is_array($value)) { + try { + $this->hydrationStack[] = 'securityAndAnalysis'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis($value); + } finally { + array_pop($this->hydrationStack); + } + } - $value = $payload['has_pages'] ?? null; + $properties['securityAndAnalysis'] = $value; - if ($value === null) { - $properties['hasPages'] = null; - goto after_hasPages; - } + after_securityAndAnalysis: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + } - $properties['hasPages'] = $value; + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(MinimalRepository::class, $missingFields, stack: $this->hydrationStack); + } - after_hasPages: + try { + return new MinimalRepository(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['has_downloads'] ?? null; + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + { + $properties = []; + $missingFields = []; + try { + $value = $payload['name'] ?? null; if ($value === null) { - $properties['hasDownloads'] = null; - goto after_hasDownloads; + $properties['name'] = null; + goto after_name; } - $properties['hasDownloads'] = $value; + $properties['name'] = $value; - after_hasDownloads: + after_name: - $value = $payload['has_discussions'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $properties['hasDiscussions'] = null; - goto after_hasDiscussions; + $properties['email'] = null; + goto after_email; } - $properties['hasDiscussions'] = $value; + $properties['email'] = $value; - after_hasDiscussions: + after_email: - $value = $payload['archived'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $properties['archived'] = null; - goto after_archived; + $missingFields[] = 'login'; + goto after_login; } - $properties['archived'] = $value; + $properties['login'] = $value; - after_archived: + after_login: - $value = $payload['disabled'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $properties['disabled'] = null; - goto after_disabled; + $missingFields[] = 'id'; + goto after_id; } - $properties['disabled'] = $value; + $properties['id'] = $value; - after_disabled: + after_id: - $value = $payload['visibility'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $properties['visibility'] = null; - goto after_visibility; + $missingFields[] = 'node_id'; + goto after_nodeId; } - $properties['visibility'] = $value; + $properties['nodeId'] = $value; - after_visibility: + after_nodeId: - $value = $payload['pushed_at'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $properties['pushedAt'] = null; - goto after_pushedAt; + $missingFields[] = 'avatar_url'; + goto after_avatarUrl; } - $properties['pushedAt'] = $value; + $properties['avatarUrl'] = $value; - after_pushedAt: + after_avatarUrl: - $value = $payload['created_at'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $properties['createdAt'] = null; - goto after_createdAt; + $properties['gravatarId'] = null; + goto after_gravatarId; } - $properties['createdAt'] = $value; + $properties['gravatarId'] = $value; - after_createdAt: + after_gravatarId: - $value = $payload['updated_at'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $properties['updatedAt'] = null; - goto after_updatedAt; + $missingFields[] = 'url'; + goto after_url; } - $properties['updatedAt'] = $value; + $properties['url'] = $value; - after_updatedAt: + after_url: - $value = $payload['permissions'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $properties['permissions'] = null; - goto after_permissions; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'permissions'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️Permissions($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'html_url'; + goto after_htmlUrl; } - $properties['permissions'] = $value; + $properties['htmlUrl'] = $value; - after_permissions: + after_htmlUrl: - $value = $payload['role_name'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $properties['roleName'] = null; - goto after_roleName; + $missingFields[] = 'followers_url'; + goto after_followersUrl; } - $properties['roleName'] = $value; + $properties['followersUrl'] = $value; - after_roleName: + after_followersUrl: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $properties['tempCloneToken'] = null; - goto after_tempCloneToken; + $missingFields[] = 'following_url'; + goto after_followingUrl; } - $properties['tempCloneToken'] = $value; + $properties['followingUrl'] = $value; - after_tempCloneToken: + after_followingUrl: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $properties['deleteBranchOnMerge'] = null; - goto after_deleteBranchOnMerge; + $missingFields[] = 'gists_url'; + goto after_gistsUrl; } - $properties['deleteBranchOnMerge'] = $value; + $properties['gistsUrl'] = $value; - after_deleteBranchOnMerge: + after_gistsUrl: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $properties['subscribersCount'] = null; - goto after_subscribersCount; + $missingFields[] = 'starred_url'; + goto after_starredUrl; } - $properties['subscribersCount'] = $value; + $properties['starredUrl'] = $value; - after_subscribersCount: + after_starredUrl: - $value = $payload['network_count'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $properties['networkCount'] = null; - goto after_networkCount; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptionsUrl; } - $properties['networkCount'] = $value; + $properties['subscriptionsUrl'] = $value; - after_networkCount: + after_subscriptionsUrl: - $value = $payload['code_of_conduct'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $properties['codeOfConduct'] = null; - goto after_codeOfConduct; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'codeOfConduct'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeOfConduct($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'organizations_url'; + goto after_organizationsUrl; } - $properties['codeOfConduct'] = $value; + $properties['organizationsUrl'] = $value; - after_codeOfConduct: + after_organizationsUrl: - $value = $payload['license'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $properties['license'] = null; - goto after_license; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'license'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️License($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'repos_url'; + goto after_reposUrl; } - $properties['license'] = $value; + $properties['reposUrl'] = $value; - after_license: + after_reposUrl: - $value = $payload['forks'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $properties['forks'] = null; - goto after_forks; + $missingFields[] = 'events_url'; + goto after_eventsUrl; } - $properties['forks'] = $value; + $properties['eventsUrl'] = $value; - after_forks: + after_eventsUrl: - $value = $payload['open_issues'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $properties['openIssues'] = null; - goto after_openIssues; + $missingFields[] = 'received_events_url'; + goto after_receivedEventsUrl; } - $properties['openIssues'] = $value; + $properties['receivedEventsUrl'] = $value; - after_openIssues: + after_receivedEventsUrl: - $value = $payload['watchers'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $properties['watchers'] = null; - goto after_watchers; + $missingFields[] = 'type'; + goto after_type; } - $properties['watchers'] = $value; + $properties['type'] = $value; - after_watchers: + after_type: - $value = $payload['allow_forking'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $properties['allowForking'] = null; - goto after_allowForking; + $missingFields[] = 'site_admin'; + goto after_siteAdmin; } - $properties['allowForking'] = $value; + $properties['siteAdmin'] = $value; - after_allowForking: + after_siteAdmin: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $properties['webCommitSignoffRequired'] = null; - goto after_webCommitSignoffRequired; + $properties['starredAt'] = null; + goto after_starredAt; } - $properties['webCommitSignoffRequired'] = $value; + $properties['starredAt'] = $value; - after_webCommitSignoffRequired: + after_starredAt: - $value = $payload['security_and_analysis'] ?? null; + $value = $payload['user_view_type'] ?? null; if ($value === null) { - $properties['securityAndAnalysis'] = null; - goto after_securityAndAnalysis; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'securityAndAnalysis'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['userViewType'] = null; + goto after_userViewType; } - $properties['securityAndAnalysis'] = $value; + $properties['userViewType'] = $value; - after_securityAndAnalysis: + after_userViewType: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(MinimalRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new MinimalRepository(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -2724,9 +2729,9 @@ public function serializeObjectOfType(object $object, string $className): mixed 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuite' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckSuite($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeOfConduct($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️License($object), @@ -2966,12 +2971,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -3046,105 +3049,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou 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⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); @@ -3684,6 +3588,105 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou 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⚡️MinimalRepository⚡️Permissions(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository\Permissions); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments.php index b91d299c447..7712ffdf07d 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo; use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Deployment\Payload; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Deployment; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions; @@ -618,17 +619,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -1270,12 +1275,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId.php index 733599f1f87..bfcc15e5b4b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo\Deployments; use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Deployment\Payload; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Deployment; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; @@ -618,17 +619,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -1303,12 +1308,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses.php index 2d939a4b1dc..44e14f9be73 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo\Deployments\DeploymentId; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentStatus; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; @@ -633,17 +634,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -1277,12 +1282,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses/StatusId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses/StatusId.php index 1a67d0cee30..41d020b9c53 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses/StatusId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId/Statuses/StatusId.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo\Deployments\DeploymentId\Statuses; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentStatus; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; @@ -568,17 +569,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -1182,12 +1187,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; 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 0ed64e28b6d..f2b9710eaa2 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 @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue; @@ -2513,17 +2514,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -4259,12 +4264,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Comments/CommentId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Comments/CommentId.php index b5ff9f4a7ab..6f008b8c5a0 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Comments/CommentId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Comments/CommentId.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\Comments; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions; @@ -570,17 +571,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -1370,12 +1375,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; 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 e679ba2c3c3..ce2239ac52d 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 @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\Events; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue; @@ -2787,17 +2788,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -5255,12 +5260,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; 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 f8a5d616cfd..ada91a25e26 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 @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo\Issues; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue; @@ -2396,17 +2397,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -4102,12 +4107,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; 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 8f508084827..ad32adf52d3 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 @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue\PullRequest; @@ -2390,17 +2391,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -3926,12 +3931,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Comments.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Comments.php index df1fc2b650f..4cb5beccee9 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Comments.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Comments.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions; @@ -633,17 +634,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -1410,12 +1415,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; 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 index e6aeabd725e..d6d47816489 100644 --- 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 @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue; @@ -2394,17 +2395,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -4080,12 +4085,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; 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 index b18fcbc8c42..1f6ede276e8 100644 --- 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 @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue; @@ -2457,17 +2458,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -4087,12 +4092,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; 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 index 5d2d7c90898..9a1bca94614 100644 --- 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 @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue; @@ -2396,17 +2397,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -4102,12 +4107,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckRun.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckRun.php index c2c94be1e9e..b00a3e29617 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckRun.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckRun.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\WebHook; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRunWithSimpleCheckSuite; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRunWithSimpleCheckSuite\Output; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct; @@ -17,7 +18,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties; use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; @@ -76,10 +76,10 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckRunCompleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckRunCompleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRunWithSimpleCheckSuite' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckRunWithSimpleCheckSuite($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleCheckSuite' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleCheckSuite($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeOfConduct($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository\License' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️License($payload), @@ -538,17 +538,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -710,749 +714,488 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; $missingFields = []; try { - $value = $payload['name'] ?? null; + $value = $payload['issues'] ?? null; if ($value === null) { - $properties['name'] = null; - goto after_name; + $properties['issues'] = null; + goto after_issues; } - $properties['name'] = $value; + $properties['issues'] = $value; - after_name: + after_issues: - $value = $payload['email'] ?? null; + $value = $payload['checks'] ?? null; if ($value === null) { - $properties['email'] = null; - goto after_email; + $properties['checks'] = null; + goto after_checks; } - $properties['email'] = $value; + $properties['checks'] = $value; - after_email: + after_checks: - $value = $payload['login'] ?? null; + $value = $payload['metadata'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $properties['metadata'] = null; + goto after_metadata; } - $properties['login'] = $value; + $properties['metadata'] = $value; - after_login: + after_metadata: - $value = $payload['id'] ?? null; + $value = $payload['contents'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $properties['contents'] = null; + goto after_contents; } - $properties['id'] = $value; + $properties['contents'] = $value; - after_id: + after_contents: - $value = $payload['node_id'] ?? null; + $value = $payload['deployments'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; + $properties['deployments'] = null; + goto after_deployments; } - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['avatar_url'] ?? null; + $properties['deployments'] = $value; - if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; - } + after_deployments: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } - $properties['avatarUrl'] = $value; + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Permissions::class, $missingFields, stack: $this->hydrationStack); + } - after_avatarUrl: + try { + return new Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + } - $value = $payload['gravatar_id'] ?? null; + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleCheckSuite(array $payload): SimpleCheckSuite + { + $properties = []; + $missingFields = []; + try { + $value = $payload['after'] ?? null; if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; + $properties['after'] = null; + goto after_after; } - $properties['gravatarId'] = $value; + $properties['after'] = $value; - after_gravatarId: + after_after: - $value = $payload['url'] ?? null; + $value = $payload['app'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $properties['app'] = null; + goto after_app; } - $properties['url'] = $value; - - after_url: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'app'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($value); + } finally { + array_pop($this->hydrationStack); + } } - $properties['htmlUrl'] = $value; + $properties['app'] = $value; - after_htmlUrl: + after_app: - $value = $payload['followers_url'] ?? null; + $value = $payload['before'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; + $properties['before'] = null; + goto after_before; } - $properties['followersUrl'] = $value; + $properties['before'] = $value; - after_followersUrl: + after_before: - $value = $payload['following_url'] ?? null; + $value = $payload['conclusion'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; + $properties['conclusion'] = null; + goto after_conclusion; } - $properties['followingUrl'] = $value; + $properties['conclusion'] = $value; - after_followingUrl: + after_conclusion: - $value = $payload['gists_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; + $properties['createdAt'] = null; + goto after_createdAt; } - $properties['gistsUrl'] = $value; + $properties['createdAt'] = $value; - after_gistsUrl: + after_createdAt: - $value = $payload['starred_url'] ?? null; + $value = $payload['head_branch'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; + $properties['headBranch'] = null; + goto after_headBranch; } - $properties['starredUrl'] = $value; + $properties['headBranch'] = $value; - after_starredUrl: + after_headBranch: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['head_sha'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; + $properties['headSha'] = null; + goto after_headSha; } - $properties['subscriptionsUrl'] = $value; + $properties['headSha'] = $value; - after_subscriptionsUrl: + after_headSha: - $value = $payload['organizations_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; + $properties['id'] = null; + goto after_id; } - $properties['organizationsUrl'] = $value; + $properties['id'] = $value; - after_organizationsUrl: + after_id: - $value = $payload['repos_url'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; + $properties['nodeId'] = null; + goto after_nodeId; } - $properties['reposUrl'] = $value; + $properties['nodeId'] = $value; - after_reposUrl: + after_nodeId: - $value = $payload['events_url'] ?? null; + $value = $payload['pull_requests'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; + $properties['pullRequests'] = null; + goto after_pullRequests; } - $properties['eventsUrl'] = $value; + $properties['pullRequests'] = $value; - after_eventsUrl: + after_pullRequests: - $value = $payload['received_events_url'] ?? null; + $value = $payload['repository'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; + $properties['repository'] = null; + goto after_repository; } - $properties['receivedEventsUrl'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } - after_receivedEventsUrl: + $properties['repository'] = $value; - $value = $payload['type'] ?? null; + after_repository: + + $value = $payload['status'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $properties['status'] = null; + goto after_status; } - $properties['type'] = $value; + $properties['status'] = $value; - after_type: + after_status: - $value = $payload['site_admin'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; + $properties['updatedAt'] = null; + goto after_updatedAt; } - $properties['siteAdmin'] = $value; + $properties['updatedAt'] = $value; - after_siteAdmin: + after_updatedAt: - $value = $payload['starred_at'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; + $properties['url'] = null; + goto after_url; } - $properties['starredAt'] = $value; - - after_starredAt: - - $value = $payload['user_view_type'] ?? null; - - if ($value === null) { - $properties['userViewType'] = null; - goto after_userViewType; - } - - $properties['userViewType'] = $value; + $properties['url'] = $value; - after_userViewType: + after_url: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleCheckSuite', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleCheckSuite::class, $missingFields, stack: $this->hydrationStack); } try { - return new SimpleUser(...$properties); + return new SimpleCheckSuite(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleCheckSuite', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository(array $payload): MinimalRepository { $properties = []; $missingFields = []; try { - $value = $payload['issues'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $properties['issues'] = null; - goto after_issues; + $missingFields[] = 'id'; + goto after_id; } - $properties['issues'] = $value; + $properties['id'] = $value; - after_issues: + after_id: - $value = $payload['checks'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $properties['checks'] = null; - goto after_checks; + $missingFields[] = 'node_id'; + goto after_nodeId; } - $properties['checks'] = $value; + $properties['nodeId'] = $value; - after_checks: + after_nodeId: - $value = $payload['metadata'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $properties['metadata'] = null; - goto after_metadata; + $missingFields[] = 'name'; + goto after_name; } - $properties['metadata'] = $value; + $properties['name'] = $value; - after_metadata: + after_name: - $value = $payload['contents'] ?? null; + $value = $payload['full_name'] ?? null; if ($value === null) { - $properties['contents'] = null; - goto after_contents; + $missingFields[] = 'full_name'; + goto after_fullName; } - $properties['contents'] = $value; + $properties['fullName'] = $value; - after_contents: + after_fullName: - $value = $payload['deployments'] ?? null; + $value = $payload['owner'] ?? null; if ($value === null) { - $properties['deployments'] = null; - goto after_deployments; + $missingFields[] = 'owner'; + goto after_owner; } - $properties['deployments'] = $value; - - after_deployments: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); - } + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Permissions::class, $missingFields, stack: $this->hydrationStack); - } + $properties['owner'] = $value; - try { - return new Permissions(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_owner: - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleCheckSuite(array $payload): SimpleCheckSuite - { - $properties = []; - $missingFields = []; - try { - $value = $payload['after'] ?? null; + $value = $payload['private'] ?? null; if ($value === null) { - $properties['after'] = null; - goto after_after; + $missingFields[] = 'private'; + goto after_private; } - $properties['after'] = $value; + $properties['private'] = $value; - after_after: + after_private: - $value = $payload['app'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $properties['app'] = null; - goto after_app; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'app'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'html_url'; + goto after_htmlUrl; } - $properties['app'] = $value; + $properties['htmlUrl'] = $value; - after_app: + after_htmlUrl: - $value = $payload['before'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $properties['before'] = null; - goto after_before; + $properties['description'] = null; + goto after_description; } - $properties['before'] = $value; + $properties['description'] = $value; - after_before: + after_description: - $value = $payload['conclusion'] ?? null; + $value = $payload['fork'] ?? null; if ($value === null) { - $properties['conclusion'] = null; - goto after_conclusion; + $missingFields[] = 'fork'; + goto after_fork; } - $properties['conclusion'] = $value; + $properties['fork'] = $value; - after_conclusion: + after_fork: - $value = $payload['created_at'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $properties['createdAt'] = null; - goto after_createdAt; + $missingFields[] = 'url'; + goto after_url; } - $properties['createdAt'] = $value; + $properties['url'] = $value; - after_createdAt: + after_url: - $value = $payload['head_branch'] ?? null; + $value = $payload['archive_url'] ?? null; if ($value === null) { - $properties['headBranch'] = null; - goto after_headBranch; + $missingFields[] = 'archive_url'; + goto after_archiveUrl; } - $properties['headBranch'] = $value; + $properties['archiveUrl'] = $value; - after_headBranch: + after_archiveUrl: - $value = $payload['head_sha'] ?? null; + $value = $payload['assignees_url'] ?? null; if ($value === null) { - $properties['headSha'] = null; - goto after_headSha; + $missingFields[] = 'assignees_url'; + goto after_assigneesUrl; } - $properties['headSha'] = $value; + $properties['assigneesUrl'] = $value; - after_headSha: + after_assigneesUrl: - $value = $payload['id'] ?? null; + $value = $payload['blobs_url'] ?? null; if ($value === null) { - $properties['id'] = null; - goto after_id; + $missingFields[] = 'blobs_url'; + goto after_blobsUrl; } - $properties['id'] = $value; + $properties['blobsUrl'] = $value; - after_id: + after_blobsUrl: - $value = $payload['node_id'] ?? null; + $value = $payload['branches_url'] ?? null; if ($value === null) { - $properties['nodeId'] = null; - goto after_nodeId; + $missingFields[] = 'branches_url'; + goto after_branchesUrl; } - $properties['nodeId'] = $value; + $properties['branchesUrl'] = $value; - after_nodeId: + after_branchesUrl: - $value = $payload['pull_requests'] ?? null; + $value = $payload['collaborators_url'] ?? null; if ($value === null) { - $properties['pullRequests'] = null; - goto after_pullRequests; + $missingFields[] = 'collaborators_url'; + goto after_collaboratorsUrl; } - $properties['pullRequests'] = $value; + $properties['collaboratorsUrl'] = $value; - after_pullRequests: + after_collaboratorsUrl: - $value = $payload['repository'] ?? null; + $value = $payload['comments_url'] ?? null; if ($value === null) { - $properties['repository'] = null; - goto after_repository; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'repository'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'comments_url'; + goto after_commentsUrl; } - $properties['repository'] = $value; + $properties['commentsUrl'] = $value; - after_repository: + after_commentsUrl: - $value = $payload['status'] ?? null; + $value = $payload['commits_url'] ?? null; if ($value === null) { - $properties['status'] = null; - goto after_status; + $missingFields[] = 'commits_url'; + goto after_commitsUrl; } - $properties['status'] = $value; + $properties['commitsUrl'] = $value; - after_status: + after_commitsUrl: - $value = $payload['updated_at'] ?? null; + $value = $payload['compare_url'] ?? null; if ($value === null) { - $properties['updatedAt'] = null; - goto after_updatedAt; + $missingFields[] = 'compare_url'; + goto after_compareUrl; } - $properties['updatedAt'] = $value; + $properties['compareUrl'] = $value; - after_updatedAt: + after_compareUrl: - $value = $payload['url'] ?? null; + $value = $payload['contents_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\SimpleCheckSuite', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleCheckSuite::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleCheckSuite(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleCheckSuite', $exception, stack: $this->hydrationStack); - } - } - - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository(array $payload): MinimalRepository - { - $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['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; + $missingFields[] = 'contents_url'; + goto after_contentsUrl; } $properties['contentsUrl'] = $value; @@ -2199,61 +1942,322 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $properties['watchers'] = $value; - after_watchers: + after_watchers: + + $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['security_and_analysis'] ?? null; + + if ($value === null) { + $properties['securityAndAnalysis'] = null; + goto after_securityAndAnalysis; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'securityAndAnalysis'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['securityAndAnalysis'] = $value; + + after_securityAndAnalysis: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(MinimalRepository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new MinimalRepository(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository', $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['allow_forking'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $properties['allowForking'] = null; - goto after_allowForking; + $missingFields[] = 'site_admin'; + goto after_siteAdmin; } - $properties['allowForking'] = $value; + $properties['siteAdmin'] = $value; - after_allowForking: + after_siteAdmin: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $properties['webCommitSignoffRequired'] = null; - goto after_webCommitSignoffRequired; + $properties['starredAt'] = null; + goto after_starredAt; } - $properties['webCommitSignoffRequired'] = $value; + $properties['starredAt'] = $value; - after_webCommitSignoffRequired: + after_starredAt: - $value = $payload['security_and_analysis'] ?? null; + $value = $payload['user_view_type'] ?? null; if ($value === null) { - $properties['securityAndAnalysis'] = null; - goto after_securityAndAnalysis; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'securityAndAnalysis'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['userViewType'] = null; + goto after_userViewType; } - $properties['securityAndAnalysis'] = $value; + $properties['userViewType'] = $value; - after_securityAndAnalysis: + after_userViewType: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(MinimalRepository::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new MinimalRepository(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -5622,7 +5626,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner(array $payload): Owner + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner { $properties = []; $missingFields = []; @@ -5829,11 +5833,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Owner::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); } try { - return new Owner(...$properties); + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner(...$properties); } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); } @@ -6527,10 +6531,10 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckRunCompleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckRunCompleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRunWithSimpleCheckSuite' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckRunWithSimpleCheckSuite($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleCheckSuite' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleCheckSuite($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeOfConduct($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️MinimalRepository⚡️License($object), @@ -6786,12 +6790,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -6866,105 +6868,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou 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⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); @@ -7633,6 +7536,105 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou 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⚡️MinimalRepository⚡️Permissions(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository\Permissions); @@ -9407,7 +9409,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner(mixed $object): mixed { - assert($object instanceof Owner); + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner); $result = []; $login = $object->login; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php index 54b32f3769e..a2380cf9920 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\WebHook; use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Deployment\Payload; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Deployment; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions; @@ -13,7 +14,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties; use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; -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\WebhookDeploymentProtectionRuleRequested; @@ -806,17 +806,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -3378,7 +3382,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner(array $payload): Owner + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner { $properties = []; $missingFields = []; @@ -3585,11 +3589,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Owner::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); } try { - return new Owner(...$properties); + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner(...$properties); } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); } @@ -4312,12 +4316,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -5725,7 +5727,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner(mixed $object): mixed { - assert($object instanceof Owner); + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner); $result = []; $login = $object->login; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/IssueComment.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/IssueComment.php index 83b74754bb5..57e9976e771 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/IssueComment.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/IssueComment.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\WebHook; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions; @@ -23,7 +24,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\Milestone; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\Milestone\Creator; 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; @@ -69,7 +69,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Comment' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Comment\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️Reactions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Comment\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️User($payload), @@ -89,6 +88,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), @@ -539,17 +539,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -711,774 +715,513 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions { $properties = []; $missingFields = []; try { - $value = $payload['name'] ?? null; + $value = $payload['issues'] ?? null; if ($value === null) { - $properties['name'] = null; - goto after_name; + $properties['issues'] = null; + goto after_issues; } - $properties['name'] = $value; + $properties['issues'] = $value; - after_name: + after_issues: - $value = $payload['email'] ?? null; + $value = $payload['checks'] ?? null; if ($value === null) { - $properties['email'] = null; - goto after_email; + $properties['checks'] = null; + goto after_checks; } - $properties['email'] = $value; + $properties['checks'] = $value; - after_email: + after_checks: - $value = $payload['login'] ?? null; + $value = $payload['metadata'] ?? null; if ($value === null) { - $missingFields[] = 'login'; - goto after_login; + $properties['metadata'] = null; + goto after_metadata; } - $properties['login'] = $value; + $properties['metadata'] = $value; - after_login: + after_metadata: - $value = $payload['id'] ?? null; + $value = $payload['contents'] ?? null; if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $properties['contents'] = null; + goto after_contents; } - $properties['id'] = $value; + $properties['contents'] = $value; - after_id: + after_contents: - $value = $payload['node_id'] ?? null; + $value = $payload['deployments'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; + $properties['deployments'] = null; + goto after_deployments; } - $properties['nodeId'] = $value; + $properties['deployments'] = $value; - after_nodeId: + after_deployments: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } - $value = $payload['avatar_url'] ?? null; + 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\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️Reactions(array $payload): Reactions + { + $properties = []; + $missingFields = []; + try { + $value = $payload['+1'] ?? null; if ($value === null) { - $missingFields[] = 'avatar_url'; - goto after_avatarUrl; + $missingFields[] = '+1'; + goto after_plusOne; } - $properties['avatarUrl'] = $value; + $properties['plusOne'] = $value; - after_avatarUrl: + after_plusOne: - $value = $payload['gravatar_id'] ?? null; + $value = $payload['-1'] ?? null; if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; + $missingFields[] = '-1'; + goto after_minOne; } - $properties['gravatarId'] = $value; + $properties['minOne'] = $value; - after_gravatarId: + after_minOne: - $value = $payload['url'] ?? null; + $value = $payload['confused'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $missingFields[] = 'confused'; + goto after_confused; } - $properties['url'] = $value; + $properties['confused'] = $value; - after_url: + after_confused: - $value = $payload['html_url'] ?? null; + $value = $payload['eyes'] ?? null; if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; + $missingFields[] = 'eyes'; + goto after_eyes; } - $properties['htmlUrl'] = $value; + $properties['eyes'] = $value; - after_htmlUrl: + after_eyes: - $value = $payload['followers_url'] ?? null; + $value = $payload['heart'] ?? null; if ($value === null) { - $missingFields[] = 'followers_url'; - goto after_followersUrl; + $missingFields[] = 'heart'; + goto after_heart; } - $properties['followersUrl'] = $value; + $properties['heart'] = $value; - after_followersUrl: + after_heart: - $value = $payload['following_url'] ?? null; + $value = $payload['hooray'] ?? null; if ($value === null) { - $missingFields[] = 'following_url'; - goto after_followingUrl; + $missingFields[] = 'hooray'; + goto after_hooray; } - $properties['followingUrl'] = $value; + $properties['hooray'] = $value; - after_followingUrl: + after_hooray: - $value = $payload['gists_url'] ?? null; + $value = $payload['laugh'] ?? null; if ($value === null) { - $missingFields[] = 'gists_url'; - goto after_gistsUrl; + $missingFields[] = 'laugh'; + goto after_laugh; } - $properties['gistsUrl'] = $value; + $properties['laugh'] = $value; - after_gistsUrl: + after_laugh: - $value = $payload['starred_url'] ?? null; + $value = $payload['rocket'] ?? null; if ($value === null) { - $missingFields[] = 'starred_url'; - goto after_starredUrl; + $missingFields[] = 'rocket'; + goto after_rocket; } - $properties['starredUrl'] = $value; + $properties['rocket'] = $value; - after_starredUrl: + after_rocket: - $value = $payload['subscriptions_url'] ?? null; + $value = $payload['total_count'] ?? null; if ($value === null) { - $missingFields[] = 'subscriptions_url'; - goto after_subscriptionsUrl; + $missingFields[] = 'total_count'; + goto after_totalCount; } - $properties['subscriptionsUrl'] = $value; + $properties['totalCount'] = $value; - after_subscriptionsUrl: + after_totalCount: - $value = $payload['organizations_url'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'organizations_url'; - goto after_organizationsUrl; + $missingFields[] = 'url'; + goto after_url; } - $properties['organizationsUrl'] = $value; + $properties['url'] = $value; - after_organizationsUrl: + after_url: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Comment\Reactions', $exception, stack: $this->hydrationStack); + } - $value = $payload['repos_url'] ?? null; + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Reactions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Reactions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Comment\Reactions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️User(array $payload): User + { + $properties = []; + $missingFields = []; + try { + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $missingFields[] = 'repos_url'; - goto after_reposUrl; + $properties['avatarUrl'] = null; + goto after_avatarUrl; } - $properties['reposUrl'] = $value; + $properties['avatarUrl'] = $value; - after_reposUrl: + after_avatarUrl: - $value = $payload['events_url'] ?? null; + $value = $payload['deleted'] ?? null; if ($value === null) { - $missingFields[] = 'events_url'; - goto after_eventsUrl; + $properties['deleted'] = null; + goto after_deleted; } - $properties['eventsUrl'] = $value; + $properties['deleted'] = $value; - after_eventsUrl: + after_deleted: - $value = $payload['received_events_url'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $missingFields[] = 'received_events_url'; - goto after_receivedEventsUrl; + $properties['email'] = null; + goto after_email; } - $properties['receivedEventsUrl'] = $value; + $properties['email'] = $value; - after_receivedEventsUrl: + after_email: - $value = $payload['type'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'type'; - goto after_type; + $properties['eventsUrl'] = null; + goto after_eventsUrl; } - $properties['type'] = $value; + $properties['eventsUrl'] = $value; - after_type: + after_eventsUrl: - $value = $payload['site_admin'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $missingFields[] = 'site_admin'; - goto after_siteAdmin; + $properties['followersUrl'] = null; + goto after_followersUrl; } - $properties['siteAdmin'] = $value; + $properties['followersUrl'] = $value; - after_siteAdmin: + after_followersUrl: - $value = $payload['starred_at'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; + $properties['followingUrl'] = null; + goto after_followingUrl; } - $properties['starredAt'] = $value; + $properties['followingUrl'] = $value; - after_starredAt: + after_followingUrl: - $value = $payload['user_view_type'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $properties['userViewType'] = null; - goto after_userViewType; + $properties['gistsUrl'] = null; + goto after_gistsUrl; } - $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); - } + $properties['gistsUrl'] = $value; - try { - return new SimpleUser(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); - } - } + after_gistsUrl: - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions(array $payload): Permissions - { - $properties = []; - $missingFields = []; - try { - $value = $payload['issues'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $properties['issues'] = null; - goto after_issues; + $properties['gravatarId'] = null; + goto after_gravatarId; } - $properties['issues'] = $value; + $properties['gravatarId'] = $value; - after_issues: + after_gravatarId: - $value = $payload['checks'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $properties['checks'] = null; - goto after_checks; + $properties['htmlUrl'] = null; + goto after_htmlUrl; } - $properties['checks'] = $value; + $properties['htmlUrl'] = $value; - after_checks: + after_htmlUrl: - $value = $payload['metadata'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $properties['metadata'] = null; - goto after_metadata; + $missingFields[] = 'id'; + goto after_id; } - $properties['metadata'] = $value; + $properties['id'] = $value; - after_metadata: + after_id: - $value = $payload['contents'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $properties['contents'] = null; - goto after_contents; + $missingFields[] = 'login'; + goto after_login; } - $properties['contents'] = $value; + $properties['login'] = $value; - after_contents: + after_login: - $value = $payload['deployments'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $properties['deployments'] = null; - goto after_deployments; + $properties['name'] = null; + goto after_name; } - $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(Permissions::class, $missingFields, stack: $this->hydrationStack); - } + $properties['name'] = $value; - try { - return new Permissions(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); - } - } + after_name: - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️Reactions(array $payload): Reactions - { - $properties = []; - $missingFields = []; - try { - $value = $payload['+1'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $missingFields[] = '+1'; - goto after_plusOne; + $properties['nodeId'] = null; + goto after_nodeId; } - $properties['plusOne'] = $value; + $properties['nodeId'] = $value; - after_plusOne: + after_nodeId: - $value = $payload['-1'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $missingFields[] = '-1'; - goto after_minOne; + $properties['organizationsUrl'] = null; + goto after_organizationsUrl; } - $properties['minOne'] = $value; + $properties['organizationsUrl'] = $value; - after_minOne: + after_organizationsUrl: - $value = $payload['confused'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'confused'; - goto after_confused; + $properties['receivedEventsUrl'] = null; + goto after_receivedEventsUrl; } - $properties['confused'] = $value; + $properties['receivedEventsUrl'] = $value; - after_confused: + after_receivedEventsUrl: - $value = $payload['eyes'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $missingFields[] = 'eyes'; - goto after_eyes; + $properties['reposUrl'] = null; + goto after_reposUrl; } - $properties['eyes'] = $value; + $properties['reposUrl'] = $value; - after_eyes: + after_reposUrl: - $value = $payload['heart'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $missingFields[] = 'heart'; - goto after_heart; + $properties['siteAdmin'] = null; + goto after_siteAdmin; } - $properties['heart'] = $value; + $properties['siteAdmin'] = $value; - after_heart: + after_siteAdmin: - $value = $payload['hooray'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'hooray'; - goto after_hooray; + $properties['starredUrl'] = null; + goto after_starredUrl; } - $properties['hooray'] = $value; + $properties['starredUrl'] = $value; - after_hooray: + after_starredUrl: - $value = $payload['laugh'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $missingFields[] = 'laugh'; - goto after_laugh; + $properties['subscriptionsUrl'] = null; + goto after_subscriptionsUrl; } - $properties['laugh'] = $value; + $properties['subscriptionsUrl'] = $value; - after_laugh: + after_subscriptionsUrl: - $value = $payload['rocket'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $missingFields[] = 'rocket'; - goto after_rocket; + $properties['type'] = null; + goto after_type; } - $properties['rocket'] = $value; + $properties['type'] = $value; - after_rocket: + after_type: - $value = $payload['total_count'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $missingFields[] = 'total_count'; - goto after_totalCount; + $properties['url'] = null; + goto after_url; } - $properties['totalCount'] = $value; + $properties['url'] = $value; - after_totalCount: + after_url: - $value = $payload['url'] ?? null; + $value = $payload['user_view_type'] ?? null; if ($value === null) { - $missingFields[] = 'url'; - goto after_url; + $properties['userViewType'] = null; + goto after_userViewType; } - $properties['url'] = $value; + $properties['userViewType'] = $value; - after_url: + after_userViewType: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Comment\Reactions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Comment\User', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Reactions::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(User::class, $missingFields, stack: $this->hydrationStack); } try { - return new Reactions(...$properties); + return new User(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Comment\Reactions', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Comment\User', $exception, stack: $this->hydrationStack); } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️User(array $payload): User + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️EnterpriseWebhooks(array $payload): EnterpriseWebhooks { $properties = []; $missingFields = []; try { - $value = $payload['avatar_url'] ?? null; + $value = $payload['description'] ?? null; if ($value === null) { - $properties['avatarUrl'] = null; - goto after_avatarUrl; + $properties['description'] = null; + goto after_description; } - $properties['avatarUrl'] = $value; + $properties['description'] = $value; - after_avatarUrl: + after_description: - $value = $payload['deleted'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $properties['deleted'] = null; - goto after_deleted; + $missingFields[] = 'html_url'; + goto after_htmlUrl; } - $properties['deleted'] = $value; + $properties['htmlUrl'] = $value; - after_deleted: + after_htmlUrl: - $value = $payload['email'] ?? null; + $value = $payload['website_url'] ?? null; if ($value === null) { - $properties['email'] = null; - goto after_email; + $properties['websiteUrl'] = null; + goto after_websiteUrl; } - $properties['email'] = $value; + $properties['websiteUrl'] = $value; - after_email: + after_websiteUrl: - $value = $payload['events_url'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $properties['eventsUrl'] = null; - goto after_eventsUrl; - } - - $properties['eventsUrl'] = $value; - - after_eventsUrl: - - $value = $payload['followers_url'] ?? null; - - if ($value === null) { - $properties['followersUrl'] = null; - goto after_followersUrl; - } - - $properties['followersUrl'] = $value; - - after_followersUrl: - - $value = $payload['following_url'] ?? null; - - if ($value === null) { - $properties['followingUrl'] = null; - goto after_followingUrl; - } - - $properties['followingUrl'] = $value; - - after_followingUrl: - - $value = $payload['gists_url'] ?? null; - - if ($value === null) { - $properties['gistsUrl'] = null; - goto after_gistsUrl; - } - - $properties['gistsUrl'] = $value; - - after_gistsUrl: - - $value = $payload['gravatar_id'] ?? null; - - if ($value === null) { - $properties['gravatarId'] = null; - goto after_gravatarId; - } - - $properties['gravatarId'] = $value; - - after_gravatarId: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $properties['htmlUrl'] = null; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; - } - - $properties['id'] = $value; - - after_id: - - $value = $payload['login'] ?? null; - - if ($value === null) { - $missingFields[] = 'login'; - goto after_login; - } - - $properties['login'] = $value; - - after_login: - - $value = $payload['name'] ?? null; - - if ($value === null) { - $properties['name'] = null; - goto after_name; - } - - $properties['name'] = $value; - - after_name: - - $value = $payload['node_id'] ?? null; - - if ($value === null) { - $properties['nodeId'] = null; - goto after_nodeId; - } - - $properties['nodeId'] = $value; - - after_nodeId: - - $value = $payload['organizations_url'] ?? null; - - if ($value === null) { - $properties['organizationsUrl'] = null; - goto after_organizationsUrl; - } - - $properties['organizationsUrl'] = $value; - - after_organizationsUrl: - - $value = $payload['received_events_url'] ?? null; - - if ($value === null) { - $properties['receivedEventsUrl'] = null; - goto after_receivedEventsUrl; - } - - $properties['receivedEventsUrl'] = $value; - - after_receivedEventsUrl: - - $value = $payload['repos_url'] ?? null; - - if ($value === null) { - $properties['reposUrl'] = null; - goto after_reposUrl; - } - - $properties['reposUrl'] = $value; - - after_reposUrl: - - $value = $payload['site_admin'] ?? null; - - if ($value === null) { - $properties['siteAdmin'] = null; - goto after_siteAdmin; - } - - $properties['siteAdmin'] = $value; - - after_siteAdmin: - - $value = $payload['starred_url'] ?? null; - - if ($value === null) { - $properties['starredUrl'] = null; - goto after_starredUrl; - } - - $properties['starredUrl'] = $value; - - after_starredUrl: - - $value = $payload['subscriptions_url'] ?? null; - - if ($value === null) { - $properties['subscriptionsUrl'] = null; - goto after_subscriptionsUrl; - } - - $properties['subscriptionsUrl'] = $value; - - after_subscriptionsUrl: - - $value = $payload['type'] ?? null; - - if ($value === null) { - $properties['type'] = null; - goto after_type; - } - - $properties['type'] = $value; - - after_type: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $properties['url'] = null; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $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\WebhookIssueCommentCreated\Comment\User', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(User::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new User(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Comment\User', $exception, stack: $this->hydrationStack); - } - } - - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️EnterpriseWebhooks(array $payload): EnterpriseWebhooks - { - $properties = []; - $missingFields = []; - try { - $value = $payload['description'] ?? null; - - if ($value === null) { - $properties['description'] = null; - goto after_description; - } - - $properties['description'] = $value; - - after_description: - - $value = $payload['html_url'] ?? null; - - if ($value === null) { - $missingFields[] = 'html_url'; - goto after_htmlUrl; - } - - $properties['htmlUrl'] = $value; - - after_htmlUrl: - - $value = $payload['website_url'] ?? null; - - if ($value === null) { - $properties['websiteUrl'] = null; - goto after_websiteUrl; - } - - $properties['websiteUrl'] = $value; - - after_websiteUrl: - - $value = $payload['id'] ?? null; - - if ($value === null) { - $missingFields[] = 'id'; - goto after_id; + $missingFields[] = 'id'; + goto after_id; } $properties['id'] = $value; @@ -2924,7 +2667,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PerformedViaGithubApp⚡️Owner(array $payload): Owner + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PerformedViaGithubApp⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Owner { $properties = []; $missingFields = []; @@ -3175,11 +2918,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Owner::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Owner::class, $missingFields, stack: $this->hydrationStack); } try { - return new Owner(...$properties); + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Owner(...$properties); } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Owner', $exception, stack: $this->hydrationStack); } @@ -4678,839 +4421,1100 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S goto after_issuesUrl; } - $properties['issuesUrl'] = $value; + $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_issuesUrl: + after_language: - $value = $payload['keys_url'] ?? null; + $value = $payload['forks_count'] ?? null; if ($value === null) { - $missingFields[] = 'keys_url'; - goto after_keysUrl; + $missingFields[] = 'forks_count'; + goto after_forksCount; } - $properties['keysUrl'] = $value; + $properties['forksCount'] = $value; - after_keysUrl: + after_forksCount: - $value = $payload['labels_url'] ?? null; + $value = $payload['stargazers_count'] ?? null; if ($value === null) { - $missingFields[] = 'labels_url'; - goto after_labelsUrl; + $missingFields[] = 'stargazers_count'; + goto after_stargazersCount; } - $properties['labelsUrl'] = $value; + $properties['stargazersCount'] = $value; - after_labelsUrl: + after_stargazersCount: - $value = $payload['languages_url'] ?? null; + $value = $payload['watchers_count'] ?? null; if ($value === null) { - $missingFields[] = 'languages_url'; - goto after_languagesUrl; + $missingFields[] = 'watchers_count'; + goto after_watchersCount; } - $properties['languagesUrl'] = $value; + $properties['watchersCount'] = $value; - after_languagesUrl: + after_watchersCount: - $value = $payload['merges_url'] ?? null; + $value = $payload['size'] ?? null; if ($value === null) { - $missingFields[] = 'merges_url'; - goto after_mergesUrl; + $missingFields[] = 'size'; + goto after_size; } - $properties['mergesUrl'] = $value; + $properties['size'] = $value; - after_mergesUrl: + after_size: - $value = $payload['milestones_url'] ?? null; + $value = $payload['default_branch'] ?? null; if ($value === null) { - $missingFields[] = 'milestones_url'; - goto after_milestonesUrl; + $missingFields[] = 'default_branch'; + goto after_defaultBranch; } - $properties['milestonesUrl'] = $value; + $properties['defaultBranch'] = $value; - after_milestonesUrl: + after_defaultBranch: - $value = $payload['notifications_url'] ?? null; + $value = $payload['open_issues_count'] ?? null; if ($value === null) { - $missingFields[] = 'notifications_url'; - goto after_notificationsUrl; + $missingFields[] = 'open_issues_count'; + goto after_openIssuesCount; } - $properties['notificationsUrl'] = $value; + $properties['openIssuesCount'] = $value; - after_notificationsUrl: + after_openIssuesCount: - $value = $payload['pulls_url'] ?? null; + $value = $payload['is_template'] ?? null; if ($value === null) { - $missingFields[] = 'pulls_url'; - goto after_pullsUrl; + $properties['isTemplate'] = null; + goto after_isTemplate; } - $properties['pullsUrl'] = $value; + $properties['isTemplate'] = $value; - after_pullsUrl: + after_isTemplate: - $value = $payload['releases_url'] ?? null; + $value = $payload['topics'] ?? null; if ($value === null) { - $missingFields[] = 'releases_url'; - goto after_releasesUrl; + $properties['topics'] = null; + goto after_topics; } - $properties['releasesUrl'] = $value; + $properties['topics'] = $value; - after_releasesUrl: + after_topics: - $value = $payload['ssh_url'] ?? null; + $value = $payload['custom_properties'] ?? null; if ($value === null) { - $missingFields[] = 'ssh_url'; - goto after_sshUrl; + $properties['customProperties'] = null; + goto after_customProperties; } - $properties['sshUrl'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'customProperties'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($value); + } finally { + array_pop($this->hydrationStack); + } + } - after_sshUrl: + $properties['customProperties'] = $value; - $value = $payload['stargazers_url'] ?? null; + after_customProperties: + + $value = $payload['has_issues'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_url'; - goto after_stargazersUrl; + $missingFields[] = 'has_issues'; + goto after_hasIssues; } - $properties['stargazersUrl'] = $value; + $properties['hasIssues'] = $value; - after_stargazersUrl: + after_hasIssues: - $value = $payload['statuses_url'] ?? null; + $value = $payload['has_projects'] ?? null; if ($value === null) { - $missingFields[] = 'statuses_url'; - goto after_statusesUrl; + $missingFields[] = 'has_projects'; + goto after_hasProjects; } - $properties['statusesUrl'] = $value; + $properties['hasProjects'] = $value; - after_statusesUrl: + after_hasProjects: - $value = $payload['subscribers_url'] ?? null; + $value = $payload['has_wiki'] ?? null; if ($value === null) { - $missingFields[] = 'subscribers_url'; - goto after_subscribersUrl; + $missingFields[] = 'has_wiki'; + goto after_hasWiki; } - $properties['subscribersUrl'] = $value; + $properties['hasWiki'] = $value; - after_subscribersUrl: + after_hasWiki: - $value = $payload['subscription_url'] ?? null; + $value = $payload['has_pages'] ?? null; if ($value === null) { - $missingFields[] = 'subscription_url'; - goto after_subscriptionUrl; + $missingFields[] = 'has_pages'; + goto after_hasPages; } - $properties['subscriptionUrl'] = $value; + $properties['hasPages'] = $value; - after_subscriptionUrl: + after_hasPages: - $value = $payload['tags_url'] ?? null; + $value = $payload['has_downloads'] ?? null; if ($value === null) { - $missingFields[] = 'tags_url'; - goto after_tagsUrl; + $missingFields[] = 'has_downloads'; + goto after_hasDownloads; } - $properties['tagsUrl'] = $value; + $properties['hasDownloads'] = $value; - after_tagsUrl: + after_hasDownloads: - $value = $payload['teams_url'] ?? null; + $value = $payload['has_discussions'] ?? null; if ($value === null) { - $missingFields[] = 'teams_url'; - goto after_teamsUrl; + $properties['hasDiscussions'] = null; + goto after_hasDiscussions; } - $properties['teamsUrl'] = $value; + $properties['hasDiscussions'] = $value; - after_teamsUrl: + after_hasDiscussions: - $value = $payload['trees_url'] ?? null; + $value = $payload['archived'] ?? null; if ($value === null) { - $missingFields[] = 'trees_url'; - goto after_treesUrl; + $missingFields[] = 'archived'; + goto after_archived; } - $properties['treesUrl'] = $value; + $properties['archived'] = $value; - after_treesUrl: + after_archived: - $value = $payload['clone_url'] ?? null; + $value = $payload['disabled'] ?? null; if ($value === null) { - $missingFields[] = 'clone_url'; - goto after_cloneUrl; + $missingFields[] = 'disabled'; + goto after_disabled; } - $properties['cloneUrl'] = $value; + $properties['disabled'] = $value; - after_cloneUrl: + after_disabled: - $value = $payload['mirror_url'] ?? null; + $value = $payload['visibility'] ?? null; if ($value === null) { - $properties['mirrorUrl'] = null; - goto after_mirrorUrl; + $properties['visibility'] = null; + goto after_visibility; } - $properties['mirrorUrl'] = $value; + $properties['visibility'] = $value; - after_mirrorUrl: + after_visibility: - $value = $payload['hooks_url'] ?? null; + $value = $payload['pushed_at'] ?? null; if ($value === null) { - $missingFields[] = 'hooks_url'; - goto after_hooksUrl; + $properties['pushedAt'] = null; + goto after_pushedAt; } - $properties['hooksUrl'] = $value; + $properties['pushedAt'] = $value; - after_hooksUrl: + after_pushedAt: - $value = $payload['svn_url'] ?? null; + $value = $payload['created_at'] ?? null; if ($value === null) { - $missingFields[] = 'svn_url'; - goto after_svnUrl; + $properties['createdAt'] = null; + goto after_createdAt; } - $properties['svnUrl'] = $value; + $properties['createdAt'] = $value; - after_svnUrl: + after_createdAt: - $value = $payload['homepage'] ?? null; + $value = $payload['updated_at'] ?? null; if ($value === null) { - $properties['homepage'] = null; - goto after_homepage; + $properties['updatedAt'] = null; + goto after_updatedAt; } - $properties['homepage'] = $value; + $properties['updatedAt'] = $value; - after_homepage: + after_updatedAt: - $value = $payload['language'] ?? null; + $value = $payload['allow_rebase_merge'] ?? null; if ($value === null) { - $properties['language'] = null; - goto after_language; + $properties['allowRebaseMerge'] = null; + goto after_allowRebaseMerge; } - $properties['language'] = $value; + $properties['allowRebaseMerge'] = $value; - after_language: + after_allowRebaseMerge: - $value = $payload['forks_count'] ?? null; + $value = $payload['template_repository'] ?? null; if ($value === null) { - $missingFields[] = 'forks_count'; - goto after_forksCount; + $properties['templateRepository'] = null; + goto after_templateRepository; } - $properties['forksCount'] = $value; + if (is_array($value)) { + try { + $this->hydrationStack[] = 'templateRepository'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($value); + } finally { + array_pop($this->hydrationStack); + } + } - after_forksCount: + $properties['templateRepository'] = $value; - $value = $payload['stargazers_count'] ?? null; + after_templateRepository: + + $value = $payload['temp_clone_token'] ?? null; if ($value === null) { - $missingFields[] = 'stargazers_count'; - goto after_stargazersCount; + $properties['tempCloneToken'] = null; + goto after_tempCloneToken; } - $properties['stargazersCount'] = $value; + $properties['tempCloneToken'] = $value; - after_stargazersCount: + after_tempCloneToken: - $value = $payload['watchers_count'] ?? null; + $value = $payload['allow_squash_merge'] ?? null; if ($value === null) { - $missingFields[] = 'watchers_count'; - goto after_watchersCount; + $properties['allowSquashMerge'] = null; + goto after_allowSquashMerge; } - $properties['watchersCount'] = $value; + $properties['allowSquashMerge'] = $value; - after_watchersCount: + after_allowSquashMerge: - $value = $payload['size'] ?? null; + $value = $payload['allow_auto_merge'] ?? null; if ($value === null) { - $missingFields[] = 'size'; - goto after_size; + $properties['allowAutoMerge'] = null; + goto after_allowAutoMerge; } - $properties['size'] = $value; + $properties['allowAutoMerge'] = $value; - after_size: + after_allowAutoMerge: - $value = $payload['default_branch'] ?? null; + $value = $payload['delete_branch_on_merge'] ?? null; if ($value === null) { - $missingFields[] = 'default_branch'; - goto after_defaultBranch; + $properties['deleteBranchOnMerge'] = null; + goto after_deleteBranchOnMerge; } - $properties['defaultBranch'] = $value; + $properties['deleteBranchOnMerge'] = $value; - after_defaultBranch: + after_deleteBranchOnMerge: - $value = $payload['open_issues_count'] ?? null; + $value = $payload['allow_update_branch'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues_count'; - goto after_openIssuesCount; + $properties['allowUpdateBranch'] = null; + goto after_allowUpdateBranch; } - $properties['openIssuesCount'] = $value; + $properties['allowUpdateBranch'] = $value; - after_openIssuesCount: + after_allowUpdateBranch: - $value = $payload['is_template'] ?? null; + $value = $payload['use_squash_pr_title_as_default'] ?? null; if ($value === null) { - $properties['isTemplate'] = null; - goto after_isTemplate; + $properties['useSquashPrTitleAsDefault'] = null; + goto after_useSquashPrTitleAsDefault; } - $properties['isTemplate'] = $value; + $properties['useSquashPrTitleAsDefault'] = $value; - after_isTemplate: + after_useSquashPrTitleAsDefault: - $value = $payload['topics'] ?? null; + $value = $payload['squash_merge_commit_title'] ?? null; if ($value === null) { - $properties['topics'] = null; - goto after_topics; + $properties['squashMergeCommitTitle'] = null; + goto after_squashMergeCommitTitle; } - $properties['topics'] = $value; + $properties['squashMergeCommitTitle'] = $value; - after_topics: + after_squashMergeCommitTitle: - $value = $payload['custom_properties'] ?? null; + $value = $payload['squash_merge_commit_message'] ?? null; if ($value === null) { - $properties['customProperties'] = null; - goto after_customProperties; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'customProperties'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($value); - } finally { - array_pop($this->hydrationStack); - } + $properties['squashMergeCommitMessage'] = null; + goto after_squashMergeCommitMessage; } - $properties['customProperties'] = $value; + $properties['squashMergeCommitMessage'] = $value; - after_customProperties: + after_squashMergeCommitMessage: - $value = $payload['has_issues'] ?? null; + $value = $payload['merge_commit_title'] ?? null; if ($value === null) { - $missingFields[] = 'has_issues'; - goto after_hasIssues; + $properties['mergeCommitTitle'] = null; + goto after_mergeCommitTitle; } - $properties['hasIssues'] = $value; + $properties['mergeCommitTitle'] = $value; - after_hasIssues: + after_mergeCommitTitle: - $value = $payload['has_projects'] ?? null; + $value = $payload['merge_commit_message'] ?? null; if ($value === null) { - $missingFields[] = 'has_projects'; - goto after_hasProjects; + $properties['mergeCommitMessage'] = null; + goto after_mergeCommitMessage; } - $properties['hasProjects'] = $value; + $properties['mergeCommitMessage'] = $value; - after_hasProjects: + after_mergeCommitMessage: - $value = $payload['has_wiki'] ?? null; + $value = $payload['allow_merge_commit'] ?? null; if ($value === null) { - $missingFields[] = 'has_wiki'; - goto after_hasWiki; + $properties['allowMergeCommit'] = null; + goto after_allowMergeCommit; } - $properties['hasWiki'] = $value; + $properties['allowMergeCommit'] = $value; - after_hasWiki: + after_allowMergeCommit: - $value = $payload['has_pages'] ?? null; + $value = $payload['allow_forking'] ?? null; if ($value === null) { - $missingFields[] = 'has_pages'; - goto after_hasPages; + $properties['allowForking'] = null; + goto after_allowForking; } - $properties['hasPages'] = $value; + $properties['allowForking'] = $value; - after_hasPages: + after_allowForking: - $value = $payload['has_downloads'] ?? null; + $value = $payload['web_commit_signoff_required'] ?? null; if ($value === null) { - $missingFields[] = 'has_downloads'; - goto after_hasDownloads; + $properties['webCommitSignoffRequired'] = null; + goto after_webCommitSignoffRequired; } - $properties['hasDownloads'] = $value; + $properties['webCommitSignoffRequired'] = $value; - after_hasDownloads: + after_webCommitSignoffRequired: - $value = $payload['has_discussions'] ?? null; + $value = $payload['subscribers_count'] ?? null; if ($value === null) { - $properties['hasDiscussions'] = null; - goto after_hasDiscussions; + $properties['subscribersCount'] = null; + goto after_subscribersCount; } - $properties['hasDiscussions'] = $value; + $properties['subscribersCount'] = $value; - after_hasDiscussions: + after_subscribersCount: - $value = $payload['archived'] ?? null; + $value = $payload['network_count'] ?? null; if ($value === null) { - $missingFields[] = 'archived'; - goto after_archived; + $properties['networkCount'] = null; + goto after_networkCount; } - $properties['archived'] = $value; + $properties['networkCount'] = $value; - after_archived: + after_networkCount: - $value = $payload['disabled'] ?? null; + $value = $payload['open_issues'] ?? null; if ($value === null) { - $missingFields[] = 'disabled'; - goto after_disabled; + $missingFields[] = 'open_issues'; + goto after_openIssues; } - $properties['disabled'] = $value; + $properties['openIssues'] = $value; - after_disabled: + after_openIssues: - $value = $payload['visibility'] ?? null; + $value = $payload['watchers'] ?? null; if ($value === null) { - $properties['visibility'] = null; - goto after_visibility; + $missingFields[] = 'watchers'; + goto after_watchers; } - $properties['visibility'] = $value; + $properties['watchers'] = $value; - after_visibility: + after_watchers: - $value = $payload['pushed_at'] ?? null; + $value = $payload['master_branch'] ?? null; if ($value === null) { - $properties['pushedAt'] = null; - goto after_pushedAt; + $properties['masterBranch'] = null; + goto after_masterBranch; } - $properties['pushedAt'] = $value; + $properties['masterBranch'] = $value; - after_pushedAt: + after_masterBranch: - $value = $payload['created_at'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $properties['createdAt'] = null; - goto after_createdAt; + $properties['starredAt'] = null; + goto after_starredAt; } - $properties['createdAt'] = $value; + $properties['starredAt'] = $value; - after_createdAt: + after_starredAt: - $value = $payload['updated_at'] ?? null; + $value = $payload['anonymous_access_enabled'] ?? null; if ($value === null) { - $properties['updatedAt'] = null; - goto after_updatedAt; + $properties['anonymousAccessEnabled'] = null; + goto after_anonymousAccessEnabled; } - $properties['updatedAt'] = $value; + $properties['anonymousAccessEnabled'] = $value; - after_updatedAt: + after_anonymousAccessEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks', $exception, stack: $this->hydrationStack); + } - $value = $payload['allow_rebase_merge'] ?? null; + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(RepositoryWebhooks::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new RepositoryWebhooks(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple(array $payload): LicenseSimple + { + $properties = []; + $missingFields = []; + try { + $value = $payload['key'] ?? null; if ($value === null) { - $properties['allowRebaseMerge'] = null; - goto after_allowRebaseMerge; + $missingFields[] = 'key'; + goto after_key; } - $properties['allowRebaseMerge'] = $value; + $properties['key'] = $value; - after_allowRebaseMerge: + after_key: - $value = $payload['template_repository'] ?? null; + $value = $payload['name'] ?? null; if ($value === null) { - $properties['templateRepository'] = null; - goto after_templateRepository; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'templateRepository'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($value); - } finally { - array_pop($this->hydrationStack); - } + $missingFields[] = 'name'; + goto after_name; } - $properties['templateRepository'] = $value; + $properties['name'] = $value; - after_templateRepository: + after_name: - $value = $payload['temp_clone_token'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $properties['tempCloneToken'] = null; - goto after_tempCloneToken; + $properties['url'] = null; + goto after_url; } - $properties['tempCloneToken'] = $value; + $properties['url'] = $value; - after_tempCloneToken: + after_url: - $value = $payload['allow_squash_merge'] ?? null; + $value = $payload['spdx_id'] ?? null; if ($value === null) { - $properties['allowSquashMerge'] = null; - goto after_allowSquashMerge; + $properties['spdxId'] = null; + goto after_spdxId; } - $properties['allowSquashMerge'] = $value; + $properties['spdxId'] = $value; - after_allowSquashMerge: + after_spdxId: - $value = $payload['allow_auto_merge'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $properties['allowAutoMerge'] = null; - goto after_allowAutoMerge; + $missingFields[] = 'node_id'; + goto after_nodeId; } - $properties['allowAutoMerge'] = $value; + $properties['nodeId'] = $value; - after_allowAutoMerge: + after_nodeId: - $value = $payload['delete_branch_on_merge'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $properties['deleteBranchOnMerge'] = null; - goto after_deleteBranchOnMerge; + $properties['htmlUrl'] = null; + goto after_htmlUrl; } - $properties['deleteBranchOnMerge'] = $value; + $properties['htmlUrl'] = $value; - after_deleteBranchOnMerge: + after_htmlUrl: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + } - $value = $payload['allow_update_branch'] ?? null; + 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⚡️SimpleUser(array $payload): SimpleUser + { + $properties = []; + $missingFields = []; + try { + $value = $payload['name'] ?? null; if ($value === null) { - $properties['allowUpdateBranch'] = null; - goto after_allowUpdateBranch; + $properties['name'] = null; + goto after_name; } - $properties['allowUpdateBranch'] = $value; + $properties['name'] = $value; - after_allowUpdateBranch: + after_name: - $value = $payload['use_squash_pr_title_as_default'] ?? null; + $value = $payload['email'] ?? null; if ($value === null) { - $properties['useSquashPrTitleAsDefault'] = null; - goto after_useSquashPrTitleAsDefault; + $properties['email'] = null; + goto after_email; } - $properties['useSquashPrTitleAsDefault'] = $value; + $properties['email'] = $value; - after_useSquashPrTitleAsDefault: + after_email: - $value = $payload['squash_merge_commit_title'] ?? null; + $value = $payload['login'] ?? null; if ($value === null) { - $properties['squashMergeCommitTitle'] = null; - goto after_squashMergeCommitTitle; + $missingFields[] = 'login'; + goto after_login; } - $properties['squashMergeCommitTitle'] = $value; + $properties['login'] = $value; - after_squashMergeCommitTitle: + after_login: - $value = $payload['squash_merge_commit_message'] ?? null; + $value = $payload['id'] ?? null; if ($value === null) { - $properties['squashMergeCommitMessage'] = null; - goto after_squashMergeCommitMessage; + $missingFields[] = 'id'; + goto after_id; } - $properties['squashMergeCommitMessage'] = $value; + $properties['id'] = $value; - after_squashMergeCommitMessage: + after_id: - $value = $payload['merge_commit_title'] ?? null; + $value = $payload['node_id'] ?? null; if ($value === null) { - $properties['mergeCommitTitle'] = null; - goto after_mergeCommitTitle; + $missingFields[] = 'node_id'; + goto after_nodeId; } - $properties['mergeCommitTitle'] = $value; + $properties['nodeId'] = $value; - after_mergeCommitTitle: + after_nodeId: - $value = $payload['merge_commit_message'] ?? null; + $value = $payload['avatar_url'] ?? null; if ($value === null) { - $properties['mergeCommitMessage'] = null; - goto after_mergeCommitMessage; + $missingFields[] = 'avatar_url'; + goto after_avatarUrl; } - $properties['mergeCommitMessage'] = $value; + $properties['avatarUrl'] = $value; - after_mergeCommitMessage: + after_avatarUrl: - $value = $payload['allow_merge_commit'] ?? null; + $value = $payload['gravatar_id'] ?? null; if ($value === null) { - $properties['allowMergeCommit'] = null; - goto after_allowMergeCommit; + $properties['gravatarId'] = null; + goto after_gravatarId; } - $properties['allowMergeCommit'] = $value; + $properties['gravatarId'] = $value; - after_allowMergeCommit: + after_gravatarId: - $value = $payload['allow_forking'] ?? null; + $value = $payload['url'] ?? null; if ($value === null) { - $properties['allowForking'] = null; - goto after_allowForking; + $missingFields[] = 'url'; + goto after_url; } - $properties['allowForking'] = $value; + $properties['url'] = $value; - after_allowForking: + after_url: - $value = $payload['web_commit_signoff_required'] ?? null; + $value = $payload['html_url'] ?? null; if ($value === null) { - $properties['webCommitSignoffRequired'] = null; - goto after_webCommitSignoffRequired; + $missingFields[] = 'html_url'; + goto after_htmlUrl; } - $properties['webCommitSignoffRequired'] = $value; + $properties['htmlUrl'] = $value; - after_webCommitSignoffRequired: + after_htmlUrl: - $value = $payload['subscribers_count'] ?? null; + $value = $payload['followers_url'] ?? null; if ($value === null) { - $properties['subscribersCount'] = null; - goto after_subscribersCount; + $missingFields[] = 'followers_url'; + goto after_followersUrl; } - $properties['subscribersCount'] = $value; + $properties['followersUrl'] = $value; - after_subscribersCount: + after_followersUrl: - $value = $payload['network_count'] ?? null; + $value = $payload['following_url'] ?? null; if ($value === null) { - $properties['networkCount'] = null; - goto after_networkCount; + $missingFields[] = 'following_url'; + goto after_followingUrl; } - $properties['networkCount'] = $value; + $properties['followingUrl'] = $value; - after_networkCount: + after_followingUrl: - $value = $payload['open_issues'] ?? null; + $value = $payload['gists_url'] ?? null; if ($value === null) { - $missingFields[] = 'open_issues'; - goto after_openIssues; + $missingFields[] = 'gists_url'; + goto after_gistsUrl; } - $properties['openIssues'] = $value; + $properties['gistsUrl'] = $value; - after_openIssues: + after_gistsUrl: - $value = $payload['watchers'] ?? null; + $value = $payload['starred_url'] ?? null; if ($value === null) { - $missingFields[] = 'watchers'; - goto after_watchers; + $missingFields[] = 'starred_url'; + goto after_starredUrl; } - $properties['watchers'] = $value; + $properties['starredUrl'] = $value; - after_watchers: + after_starredUrl: - $value = $payload['master_branch'] ?? null; + $value = $payload['subscriptions_url'] ?? null; if ($value === null) { - $properties['masterBranch'] = null; - goto after_masterBranch; + $missingFields[] = 'subscriptions_url'; + goto after_subscriptionsUrl; } - $properties['masterBranch'] = $value; + $properties['subscriptionsUrl'] = $value; - after_masterBranch: + after_subscriptionsUrl: - $value = $payload['starred_at'] ?? null; + $value = $payload['organizations_url'] ?? null; if ($value === null) { - $properties['starredAt'] = null; - goto after_starredAt; + $missingFields[] = 'organizations_url'; + goto after_organizationsUrl; } - $properties['starredAt'] = $value; + $properties['organizationsUrl'] = $value; - after_starredAt: + after_organizationsUrl: - $value = $payload['anonymous_access_enabled'] ?? null; + $value = $payload['repos_url'] ?? null; if ($value === null) { - $properties['anonymousAccessEnabled'] = null; - goto after_anonymousAccessEnabled; + $missingFields[] = 'repos_url'; + goto after_reposUrl; } - $properties['anonymousAccessEnabled'] = $value; - - after_anonymousAccessEnabled: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(RepositoryWebhooks::class, $missingFields, stack: $this->hydrationStack); - } + $properties['reposUrl'] = $value; - try { - return new RepositoryWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks', $exception, stack: $this->hydrationStack); - } - } + after_reposUrl: - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple(array $payload): LicenseSimple - { - $properties = []; - $missingFields = []; - try { - $value = $payload['key'] ?? null; + $value = $payload['events_url'] ?? null; if ($value === null) { - $missingFields[] = 'key'; - goto after_key; + $missingFields[] = 'events_url'; + goto after_eventsUrl; } - $properties['key'] = $value; + $properties['eventsUrl'] = $value; - after_key: + after_eventsUrl: - $value = $payload['name'] ?? null; + $value = $payload['received_events_url'] ?? null; if ($value === null) { - $missingFields[] = 'name'; - goto after_name; + $missingFields[] = 'received_events_url'; + goto after_receivedEventsUrl; } - $properties['name'] = $value; + $properties['receivedEventsUrl'] = $value; - after_name: + after_receivedEventsUrl: - $value = $payload['url'] ?? null; + $value = $payload['type'] ?? null; if ($value === null) { - $properties['url'] = null; - goto after_url; + $missingFields[] = 'type'; + goto after_type; } - $properties['url'] = $value; + $properties['type'] = $value; - after_url: + after_type: - $value = $payload['spdx_id'] ?? null; + $value = $payload['site_admin'] ?? null; if ($value === null) { - $properties['spdxId'] = null; - goto after_spdxId; + $missingFields[] = 'site_admin'; + goto after_siteAdmin; } - $properties['spdxId'] = $value; + $properties['siteAdmin'] = $value; - after_spdxId: + after_siteAdmin: - $value = $payload['node_id'] ?? null; + $value = $payload['starred_at'] ?? null; if ($value === null) { - $missingFields[] = 'node_id'; - goto after_nodeId; + $properties['starredAt'] = null; + goto after_starredAt; } - $properties['nodeId'] = $value; + $properties['starredAt'] = $value; - after_nodeId: + after_starredAt: - $value = $payload['html_url'] ?? null; + $value = $payload['user_view_type'] ?? null; if ($value === null) { - $properties['htmlUrl'] = null; - goto after_htmlUrl; + $properties['userViewType'] = null; + goto after_userViewType; } - $properties['htmlUrl'] = $value; + $properties['userViewType'] = $value; - after_htmlUrl: + after_userViewType: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(LicenseSimple::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new LicenseSimple(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -15663,7 +15667,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Comment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Comment\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️Reactions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Comment\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Comment⚡️User($object), @@ -15683,6 +15686,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), @@ -15917,12 +15921,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -15997,105 +15999,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou 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⚡️Integration⚡️Permissions(mixed $object): mixed { assert($object instanceof Permissions); @@ -17150,7 +17053,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PerformedViaGithubApp⚡️Owner(mixed $object): mixed { - assert($object instanceof Owner); + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Owner); $result = []; $avatarUrl = $object->avatarUrl; @@ -18473,6 +18376,105 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou 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⚡️RepositoryWebhooks⚡️Permissions(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\Permissions); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SubIssues.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SubIssues.php index 3354f20ac80..db44b556bf5 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SubIssues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SubIssues.php @@ -4,6 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\WebHook; +use ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue\PullRequest; @@ -16,7 +17,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties; use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; -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; @@ -2604,17 +2604,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -5464,7 +5468,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner(array $payload): Owner + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner { $properties = []; $missingFields = []; @@ -5671,11 +5675,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(Owner::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner::class, $missingFields, stack: $this->hydrationStack); } try { - return new Owner(...$properties); + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner(...$properties); } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner', $exception, stack: $this->hydrationStack); } @@ -7536,12 +7540,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; @@ -9026,7 +9028,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner(mixed $object): mixed { - assert($object instanceof Owner); + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner); $result = []; $login = $object->login; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowJob.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowJob.php index d87bb1d5d59..9c1ce387b7d 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowJob.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowJob.php @@ -4024,17 +4024,21 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $value = $payload['owner'] ?? null; if ($value === null) { - $properties['owner'] = 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); - } + static $ownerCaster1; + + if ($ownerCaster1 === null) { + $ownerCaster1 = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Attribute\CastUnionToType\Schema\Integration\Owner(...[]); + } + + $value = $ownerCaster1->cast($value, $this); + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; } $properties['owner'] = $value; @@ -7749,12 +7753,10 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_clientId: $result['client_id'] = $clientId; $owner = $object->owner; - - if ($owner === null) { - goto after_owner; - } - - $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + $owner = match ($owner::class) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Enterprise' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Enterprise($owner), + }; after_owner: $result['owner'] = $owner; $name = $object->name; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php index da72205aeef..756bbcf5800 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php @@ -40,6 +40,13 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Emojis|null $operation🌀Emojis = null; private Internal\Hydrator\Operation\EnterpriseInstallation\EnterpriseOrOrg\ServerStatistics|null $operation🌀EnterpriseInstallation🌀EnterpriseOrOrg🌀ServerStatistics = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\Cache\Usage|null $operation🌀Enterprises🌀Enterprise🌀Actions🌀Cache🌀Usage = null; + private Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners|null $operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners = null; + private Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Images\GithubOwned|null $operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀GithubOwned = null; + private Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Images\Partner|null $operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀Partner = null; + private Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Limits|null $operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Limits = null; + private Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\MachineSizes|null $operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀MachineSizes = null; + private Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Platforms|null $operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Platforms = null; + private Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\HostedRunnerId|null $operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀HostedRunnerId = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\Oidc\Customization\Issuer|null $operation🌀Enterprises🌀Enterprise🌀Actions🌀Oidc🌀Customization🌀Issuer = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\Permissions|null $operation🌀Enterprises🌀Enterprise🌀Actions🌀Permissions = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\Permissions\Organizations|null $operation🌀Enterprises🌀Enterprise🌀Actions🌀Permissions🌀Organizations = null; @@ -133,6 +140,13 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Orgs\Org|null $operation🌀Orgs🌀Org = null; private Internal\Hydrator\Operation\Orgs\Org\Actions\Cache\Usage|null $operation🌀Orgs🌀Org🌀Actions🌀Cache🌀Usage = null; private Internal\Hydrator\Operation\Orgs\Org\Actions\Cache\UsageByRepository|null $operation🌀Orgs🌀Org🌀Actions🌀Cache🌀UsageByRepository = null; + private Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners|null $operation🌀Orgs🌀Org🌀Actions🌀HostedRunners = null; + private Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Images\GithubOwned|null $operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀GithubOwned = null; + private Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Images\Partner|null $operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀Partner = null; + private Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Limits|null $operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Limits = null; + private Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\MachineSizes|null $operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀MachineSizes = null; + private Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Platforms|null $operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Platforms = null; + private Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\HostedRunnerId|null $operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀HostedRunnerId = null; private Internal\Hydrator\Operation\Orgs\Org\Actions\Oidc\Customization\Sub|null $operation🌀Orgs🌀Org🌀Actions🌀Oidc🌀Customization🌀Sub = null; private Internal\Hydrator\Operation\Orgs\Org\Actions\Permissions|null $operation🌀Orgs🌀Org🌀Actions🌀Permissions = null; private Internal\Hydrator\Operation\Orgs\Org\Actions\Permissions\Repositories|null $operation🌀Orgs🌀Org🌀Actions🌀Permissions🌀Repositories = null; @@ -141,6 +155,7 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Orgs\Org\Actions\Permissions\Workflow|null $operation🌀Orgs🌀Org🌀Actions🌀Permissions🌀Workflow = null; private Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups|null $operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups = null; private Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId|null $operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId = null; + private Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\HostedRunners|null $operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀HostedRunners = null; private Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Repositories|null $operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories = null; private Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Repositories\RepositoryId|null $operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories🌀RepositoryId = null; private Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Runners|null $operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners = null; @@ -833,18 +848,24 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Root' => $this->getObjectMapperOperation🌀Root()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BasicError', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ValidationErrorSimple' => $this->getObjectMapperOperation🌀Advisories()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory\\Cvss', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities\\CvssVThree', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities\\CvssVFour', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory\\Epss' => $this->getObjectMapperOperation🌀Advisories🌀GhsaId()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Integration', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleUser', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Integration\\Permissions' => $this->getObjectMapperOperation🌀App()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Integration', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Integration\\Permissions' => $this->getObjectMapperOperation🌀App()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookConfig' => $this->getObjectMapperOperation🌀App🌀Hook🌀Config()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ScimError', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ValidationError' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\HookDelivery', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\HookDelivery\\Request', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\HookDelivery\\Request\\Headers', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\HookDelivery\\Request\\Payload', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\HookDelivery\\Response', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\HookDelivery\\Response\\Headers' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries🌀DeliveryId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Apps\\RedeliverWebhookDelivery\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries🌀DeliveryId🌀Attempts()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Installation', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\AppPermissions' => $this->getObjectMapperOperation🌀App🌀Installations🌀InstallationId()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Installation', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\AppPermissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleUser' => $this->getObjectMapperOperation🌀App🌀Installations🌀InstallationId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\InstallationToken' => $this->getObjectMapperOperation🌀App🌀Installations🌀InstallationId🌀AccessTokens()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Authorization', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Authorization\\App', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ScopedInstallation' => $this->getObjectMapperOperation🌀Applications🌀ClientId🌀Token()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ClassroomAssignment', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleClassroomRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Classroom', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleClassroomOrganization' => $this->getObjectMapperOperation🌀Assignments🌀AssignmentId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CodeOfConduct' => $this->getObjectMapperOperation🌀CodesOfConduct🌀Key()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Emojis\\Get\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Emojis()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsCacheUsageOrgEnterprise' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀Cache🌀Usage()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListHostedRunnersForEnterprise\\Response\\ApplicationJson\\Ok', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsHostedRunner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsHostedRunnerPoolImage', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsHostedRunnerMachineSpec' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersGithubOwnedImagesForEnterprise\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀GithubOwned()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersPartnerImagesForEnterprise\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀Partner()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsHostedRunnerLimits', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsHostedRunnerLimits\\PublicIps' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Limits()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersMachineSpecsForEnterprise\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀MachineSizes()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersPlatformsForEnterprise\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Platforms()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsEnterprisePermissions' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀Permissions()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\EnterpriseAdmin\\ListSelectedOrganizationsEnabledGithubActionsEnterprise\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀Permissions🌀Organizations()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SelectedActions' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀Permissions🌀SelectedActions()->hydrateObject($className, $payload), @@ -892,10 +913,16 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Orgs\\ListCustomRoles\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Organizations🌀OrganizationId🌀CustomRoles()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\OrganizationFull', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\OrganizationFull\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Orgs\\Delete\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetActionsCacheUsageByRepoForOrg\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Cache🌀UsageByRepository()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListHostedRunnersForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersGithubOwnedImagesForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀GithubOwned()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersPartnerImagesForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀Partner()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersMachineSpecsForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀MachineSizes()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersPlatformsForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Platforms()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\OidcCustomSub', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\EmptyObject' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Oidc🌀Customization🌀Sub()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsOrganizationPermissions' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Permissions()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListSelectedRepositoriesEnabledGithubActionsOrganization\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Permissions🌀Repositories()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListSelfHostedRunnerGroupsForOrg\\Response\\ApplicationJson\\Ok', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RunnerGroupsOrg' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListGithubHostedRunnersInGroupForOrg\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀HostedRunners()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListRepoAccessToSelfHostedRunnerGroupInOrg\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListSelfHostedRunnersInGroupForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListSelfHostedRunnersForOrg\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Runners()->hydrateObject($className, $payload), @@ -1227,18 +1254,24 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Root' => $this->getObjectMapperOperation🌀Root()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BasicError', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ValidationErrorSimple' => $this->getObjectMapperOperation🌀Advisories()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory\\Cvss', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities\\CvssVThree', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CvssSeverities\\CvssVFour', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GlobalAdvisory\\Epss' => $this->getObjectMapperOperation🌀Advisories🌀GhsaId()->serializeObject($object), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Integration', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleUser', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Integration\\Permissions' => $this->getObjectMapperOperation🌀App()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Integration', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Integration\\Permissions' => $this->getObjectMapperOperation🌀App()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookConfig' => $this->getObjectMapperOperation🌀App🌀Hook🌀Config()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ScimError', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ValidationError' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\HookDelivery', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\HookDelivery\\Request', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\HookDelivery\\Request\\Headers', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\HookDelivery\\Request\\Payload', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\HookDelivery\\Response', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\HookDelivery\\Response\\Headers' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries🌀DeliveryId()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Apps\\RedeliverWebhookDelivery\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀App🌀Hook🌀Deliveries🌀DeliveryId🌀Attempts()->serializeObject($object), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Installation', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\AppPermissions' => $this->getObjectMapperOperation🌀App🌀Installations🌀InstallationId()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Installation', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\AppPermissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleUser' => $this->getObjectMapperOperation🌀App🌀Installations🌀InstallationId()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\InstallationToken' => $this->getObjectMapperOperation🌀App🌀Installations🌀InstallationId🌀AccessTokens()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Authorization', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Authorization\\App', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ScopedInstallation' => $this->getObjectMapperOperation🌀Applications🌀ClientId🌀Token()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ClassroomAssignment', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleClassroomRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Classroom', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleClassroomOrganization' => $this->getObjectMapperOperation🌀Assignments🌀AssignmentId()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CodeOfConduct' => $this->getObjectMapperOperation🌀CodesOfConduct🌀Key()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Emojis\\Get\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Emojis()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsCacheUsageOrgEnterprise' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀Cache🌀Usage()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListHostedRunnersForEnterprise\\Response\\ApplicationJson\\Ok', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsHostedRunner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsHostedRunnerPoolImage', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsHostedRunnerMachineSpec' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersGithubOwnedImagesForEnterprise\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀GithubOwned()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersPartnerImagesForEnterprise\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀Partner()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsHostedRunnerLimits', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsHostedRunnerLimits\\PublicIps' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Limits()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersMachineSpecsForEnterprise\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀MachineSizes()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersPlatformsForEnterprise\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Platforms()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsEnterprisePermissions' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀Permissions()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\EnterpriseAdmin\\ListSelectedOrganizationsEnabledGithubActionsEnterprise\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀Permissions🌀Organizations()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SelectedActions' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀Permissions🌀SelectedActions()->serializeObject($object), @@ -1286,10 +1319,16 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Orgs\\ListCustomRoles\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Organizations🌀OrganizationId🌀CustomRoles()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\OrganizationFull', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\OrganizationFull\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Orgs\\Delete\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetActionsCacheUsageByRepoForOrg\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Cache🌀UsageByRepository()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListHostedRunnersForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersGithubOwnedImagesForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀GithubOwned()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersPartnerImagesForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀Partner()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersMachineSpecsForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀MachineSizes()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\GetHostedRunnersPlatformsForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Platforms()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\OidcCustomSub', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\EmptyObject' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Oidc🌀Customization🌀Sub()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsOrganizationPermissions' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Permissions()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListSelectedRepositoriesEnabledGithubActionsOrganization\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Permissions🌀Repositories()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListSelfHostedRunnerGroupsForOrg\\Response\\ApplicationJson\\Ok', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RunnerGroupsOrg' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListGithubHostedRunnersInGroupForOrg\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀HostedRunners()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListRepoAccessToSelfHostedRunnerGroupInOrg\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListSelfHostedRunnersInGroupForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Actions\\ListSelfHostedRunnersForOrg\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Runners()->serializeObject($object), @@ -1871,6 +1910,69 @@ public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions return $this->operation🌀Enterprises🌀Enterprise🌀Actions🌀Cache🌀Usage; } + public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners(): Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners + { + if ($this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners === false) { + $this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners = new Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners(); + } + + return $this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners; + } + + public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀GithubOwned(): Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Images\GithubOwned + { + if ($this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀GithubOwned instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Images\GithubOwned === false) { + $this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀GithubOwned = new Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Images\GithubOwned(); + } + + return $this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀GithubOwned; + } + + public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀Partner(): Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Images\Partner + { + if ($this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀Partner instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Images\Partner === false) { + $this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀Partner = new Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Images\Partner(); + } + + return $this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀Partner; + } + + public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Limits(): Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Limits + { + if ($this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Limits instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Limits === false) { + $this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Limits = new Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Limits(); + } + + return $this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Limits; + } + + public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀MachineSizes(): Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\MachineSizes + { + if ($this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀MachineSizes instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\MachineSizes === false) { + $this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀MachineSizes = new Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\MachineSizes(); + } + + return $this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀MachineSizes; + } + + public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Platforms(): Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Platforms + { + if ($this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Platforms instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Platforms === false) { + $this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Platforms = new Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\Platforms(); + } + + return $this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Platforms; + } + + public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀HostedRunnerId(): Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\HostedRunnerId + { + if ($this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀HostedRunnerId instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\HostedRunnerId === false) { + $this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀HostedRunnerId = new Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\HostedRunners\HostedRunnerId(); + } + + return $this->operation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀HostedRunnerId; + } + public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀Oidc🌀Customization🌀Issuer(): Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\Oidc\Customization\Issuer { if ($this->operation🌀Enterprises🌀Enterprise🌀Actions🌀Oidc🌀Customization🌀Issuer instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\Oidc\Customization\Issuer === false) { @@ -2708,6 +2810,69 @@ public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Cache🌀U return $this->operation🌀Orgs🌀Org🌀Actions🌀Cache🌀UsageByRepository; } + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners(): Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners + { + if ($this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners === false) { + $this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners = new Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners(); + } + + return $this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners; + } + + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀GithubOwned(): Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Images\GithubOwned + { + if ($this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀GithubOwned instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Images\GithubOwned === false) { + $this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀GithubOwned = new Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Images\GithubOwned(); + } + + return $this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀GithubOwned; + } + + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀Partner(): Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Images\Partner + { + if ($this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀Partner instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Images\Partner === false) { + $this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀Partner = new Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Images\Partner(); + } + + return $this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀Partner; + } + + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Limits(): Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Limits + { + if ($this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Limits instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Limits === false) { + $this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Limits = new Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Limits(); + } + + return $this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Limits; + } + + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀MachineSizes(): Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\MachineSizes + { + if ($this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀MachineSizes instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\MachineSizes === false) { + $this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀MachineSizes = new Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\MachineSizes(); + } + + return $this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀MachineSizes; + } + + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Platforms(): Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Platforms + { + if ($this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Platforms instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Platforms === false) { + $this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Platforms = new Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\Platforms(); + } + + return $this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Platforms; + } + + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀HostedRunnerId(): Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\HostedRunnerId + { + if ($this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀HostedRunnerId instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\HostedRunnerId === false) { + $this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀HostedRunnerId = new Internal\Hydrator\Operation\Orgs\Org\Actions\HostedRunners\HostedRunnerId(); + } + + return $this->operation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀HostedRunnerId; + } + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Oidc🌀Customization🌀Sub(): Internal\Hydrator\Operation\Orgs\Org\Actions\Oidc\Customization\Sub { if ($this->operation🌀Orgs🌀Org🌀Actions🌀Oidc🌀Customization🌀Sub instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\Oidc\Customization\Sub === false) { @@ -2780,6 +2945,15 @@ public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGrou return $this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId; } + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀HostedRunners(): Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\HostedRunners + { + if ($this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀HostedRunners instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\HostedRunners === false) { + $this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀HostedRunners = new Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\HostedRunners(); + } + + return $this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀HostedRunners; + } + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories(): Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Repositories { if ($this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Repositories === false) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/CreateHostedRunnerForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/CreateHostedRunnerForEnterprise.php new file mode 100644 index 00000000000..7984b50b285 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/CreateHostedRunnerForEnterprise.php @@ -0,0 +1,62 @@ +enterprise = $enterprise; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\Actions\CreateHostedRunnerForEnterprise\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('POST', str_replace(['{enterprise}'], [$this->enterprise], '/enterprises/{enterprise}/actions/hosted-runners'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): Schema\ActionsHostedRunner + { + $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\ActionsHostedRunner::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\ActionsHostedRunner::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/CreateHostedRunnerForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/CreateHostedRunnerForOrg.php new file mode 100644 index 00000000000..7b48a86bfdf --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/CreateHostedRunnerForOrg.php @@ -0,0 +1,62 @@ +org = $org; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\Actions\CreateHostedRunnerForOrg\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('POST', str_replace(['{org}'], [$this->org], '/orgs/{org}/actions/hosted-runners'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): Schema\ActionsHostedRunner + { + $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\ActionsHostedRunner::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\ActionsHostedRunner::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/DeleteHostedRunnerForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/DeleteHostedRunnerForEnterprise.php new file mode 100644 index 00000000000..cb027244f91 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/DeleteHostedRunnerForEnterprise.php @@ -0,0 +1,62 @@ +enterprise = $enterprise; + $this->hostedRunnerId = $hostedRunnerId; + } + + public function createRequest(): RequestInterface + { + return new Request('DELETE', str_replace(['{enterprise}', '{hosted_runner_id}'], [$this->enterprise, $this->hostedRunnerId], '/enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}')); + } + + public function createResponse(ResponseInterface $response): Schema\ActionsHostedRunner + { + $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 202: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ActionsHostedRunner::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\ActionsHostedRunner::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/DeleteHostedRunnerForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/DeleteHostedRunnerForOrg.php new file mode 100644 index 00000000000..a3f3dc846da --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/DeleteHostedRunnerForOrg.php @@ -0,0 +1,62 @@ +org = $org; + $this->hostedRunnerId = $hostedRunnerId; + } + + public function createRequest(): RequestInterface + { + return new Request('DELETE', str_replace(['{org}', '{hosted_runner_id}'], [$this->org, $this->hostedRunnerId], '/orgs/{org}/actions/hosted-runners/{hosted_runner_id}')); + } + + public function createResponse(ResponseInterface $response): Schema\ActionsHostedRunner + { + $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 202: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ActionsHostedRunner::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\ActionsHostedRunner::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnerForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnerForEnterprise.php new file mode 100644 index 00000000000..8a24ae23bc6 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnerForEnterprise.php @@ -0,0 +1,62 @@ +enterprise = $enterprise; + $this->hostedRunnerId = $hostedRunnerId; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{enterprise}', '{hosted_runner_id}'], [$this->enterprise, $this->hostedRunnerId], '/enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}')); + } + + public function createResponse(ResponseInterface $response): Schema\ActionsHostedRunner + { + $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\ActionsHostedRunner::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\ActionsHostedRunner::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnerForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnerForOrg.php new file mode 100644 index 00000000000..4a78d0dac4b --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnerForOrg.php @@ -0,0 +1,62 @@ +org = $org; + $this->hostedRunnerId = $hostedRunnerId; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{org}', '{hosted_runner_id}'], [$this->org, $this->hostedRunnerId], '/orgs/{org}/actions/hosted-runners/{hosted_runner_id}')); + } + + public function createResponse(ResponseInterface $response): Schema\ActionsHostedRunner + { + $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\ActionsHostedRunner::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\ActionsHostedRunner::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForEnterprise.php new file mode 100644 index 00000000000..731ca943a5f --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForEnterprise.php @@ -0,0 +1,59 @@ +enterprise = $enterprise; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{enterprise}'], [$this->enterprise], '/enterprises/{enterprise}/actions/hosted-runners/images/github-owned')); + } + + public function createResponse(ResponseInterface $response): Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok + { + $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\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForOrg.php new file mode 100644 index 00000000000..e0115ab5c6a --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForOrg.php @@ -0,0 +1,59 @@ +org = $org; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{org}'], [$this->org], '/orgs/{org}/actions/hosted-runners/images/github-owned')); + } + + public function createResponse(ResponseInterface $response): Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json + { + $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\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersLimitsForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersLimitsForEnterprise.php new file mode 100644 index 00000000000..84d4894a39c --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersLimitsForEnterprise.php @@ -0,0 +1,59 @@ +enterprise = $enterprise; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{enterprise}'], [$this->enterprise], '/enterprises/{enterprise}/actions/hosted-runners/limits')); + } + + public function createResponse(ResponseInterface $response): Schema\ActionsHostedRunnerLimits + { + $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\ActionsHostedRunnerLimits::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\ActionsHostedRunnerLimits::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersLimitsForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersLimitsForOrg.php new file mode 100644 index 00000000000..2526b2ab247 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersLimitsForOrg.php @@ -0,0 +1,59 @@ +org = $org; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{org}'], [$this->org], '/orgs/{org}/actions/hosted-runners/limits')); + } + + public function createResponse(ResponseInterface $response): Schema\ActionsHostedRunnerLimits + { + $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\ActionsHostedRunnerLimits::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\ActionsHostedRunnerLimits::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForEnterprise.php new file mode 100644 index 00000000000..c49dd0ea8a9 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForEnterprise.php @@ -0,0 +1,59 @@ +enterprise = $enterprise; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{enterprise}'], [$this->enterprise], '/enterprises/{enterprise}/actions/hosted-runners/machine-sizes')); + } + + public function createResponse(ResponseInterface $response): Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok + { + $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\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForOrg.php new file mode 100644 index 00000000000..6fb668cdccd --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForOrg.php @@ -0,0 +1,59 @@ +org = $org; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{org}'], [$this->org], '/orgs/{org}/actions/hosted-runners/machine-sizes')); + } + + public function createResponse(ResponseInterface $response): Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json + { + $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\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForEnterprise.php new file mode 100644 index 00000000000..f6e88687ee1 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForEnterprise.php @@ -0,0 +1,59 @@ +enterprise = $enterprise; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{enterprise}'], [$this->enterprise], '/enterprises/{enterprise}/actions/hosted-runners/images/partner')); + } + + public function createResponse(ResponseInterface $response): Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json + { + $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\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForOrg.php new file mode 100644 index 00000000000..1ccc1e23ec0 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForOrg.php @@ -0,0 +1,59 @@ +org = $org; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{org}'], [$this->org], '/orgs/{org}/actions/hosted-runners/images/partner')); + } + + public function createResponse(ResponseInterface $response): Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json + { + $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\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPlatformsForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPlatformsForEnterprise.php new file mode 100644 index 00000000000..c6b1c621256 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPlatformsForEnterprise.php @@ -0,0 +1,59 @@ +enterprise = $enterprise; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{enterprise}'], [$this->enterprise], '/enterprises/{enterprise}/actions/hosted-runners/platforms')); + } + + public function createResponse(ResponseInterface $response): Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok + { + $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\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPlatformsForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPlatformsForOrg.php new file mode 100644 index 00000000000..48ba3fac7dd --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/GetHostedRunnersPlatformsForOrg.php @@ -0,0 +1,59 @@ +org = $org; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{org}'], [$this->org], '/orgs/{org}/actions/hosted-runners/platforms')); + } + + public function createResponse(ResponseInterface $response): Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json + { + $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\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/ListGithubHostedRunnersInGroupForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/ListGithubHostedRunnersInGroupForOrg.php new file mode 100644 index 00000000000..776f5a556bf --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/ListGithubHostedRunnersInGroupForOrg.php @@ -0,0 +1,68 @@ +org = $org; + $this->runnerGroupId = $runnerGroupId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{org}', '{runner_group_id}', '{per_page}', '{page}'], [$this->org, $this->runnerGroupId, $this->perPage, $this->page], '/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners' . '?per_page={per_page}&page={page}')); + } + + public function createResponse(ResponseInterface $response): Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok + { + $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\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/ListHostedRunnersForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/ListHostedRunnersForEnterprise.php new file mode 100644 index 00000000000..1e36e9541ee --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/ListHostedRunnersForEnterprise.php @@ -0,0 +1,65 @@ +enterprise = $enterprise; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{enterprise}', '{per_page}', '{page}'], [$this->enterprise, $this->perPage, $this->page], '/enterprises/{enterprise}/actions/hosted-runners' . '?per_page={per_page}&page={page}')); + } + + public function createResponse(ResponseInterface $response): Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok + { + $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\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/ListHostedRunnersForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/ListHostedRunnersForOrg.php new file mode 100644 index 00000000000..ed819daf904 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/ListHostedRunnersForOrg.php @@ -0,0 +1,65 @@ +org = $org; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{org}', '{per_page}', '{page}'], [$this->org, $this->perPage, $this->page], '/orgs/{org}/actions/hosted-runners' . '?per_page={per_page}&page={page}')); + } + + public function createResponse(ResponseInterface $response): Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json + { + $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\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/UpdateHostedRunnerForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/UpdateHostedRunnerForEnterprise.php new file mode 100644 index 00000000000..cd4a701b443 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/UpdateHostedRunnerForEnterprise.php @@ -0,0 +1,65 @@ +enterprise = $enterprise; + $this->hostedRunnerId = $hostedRunnerId; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\Actions\UpdateHostedRunnerForEnterprise\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('PATCH', str_replace(['{enterprise}', '{hosted_runner_id}'], [$this->enterprise, $this->hostedRunnerId], '/enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): Schema\ActionsHostedRunner + { + $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\ActionsHostedRunner::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\ActionsHostedRunner::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/UpdateHostedRunnerForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/UpdateHostedRunnerForOrg.php new file mode 100644 index 00000000000..3a3baa7749a --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Actions/UpdateHostedRunnerForOrg.php @@ -0,0 +1,65 @@ +org = $org; + $this->hostedRunnerId = $hostedRunnerId; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\Actions\UpdateHostedRunnerForOrg\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('PATCH', str_replace(['{org}', '{hosted_runner_id}'], [$this->org, $this->hostedRunnerId], '/orgs/{org}/actions/hosted-runners/{hosted_runner_id}'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): Schema\ActionsHostedRunner + { + $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\ActionsHostedRunner::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\ActionsHostedRunner::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/CreateHostedRunnerForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/CreateHostedRunnerForEnterprise.php new file mode 100644 index 00000000000..abc8535507d --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/CreateHostedRunnerForEnterprise.php @@ -0,0 +1,40 @@ +requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $enterprise); + $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): ActionsHostedRunner { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/CreateHostedRunnerForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/CreateHostedRunnerForOrg.php new file mode 100644 index 00000000000..b88c17ef26b --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/CreateHostedRunnerForOrg.php @@ -0,0 +1,40 @@ +requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org); + $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): ActionsHostedRunner { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/DeleteHostedRunnerForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/DeleteHostedRunnerForEnterprise.php new file mode 100644 index 00000000000..12fc0d19064 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/DeleteHostedRunnerForEnterprise.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $enterprise, $hostedRunnerId); + $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): ActionsHostedRunner { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/DeleteHostedRunnerForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/DeleteHostedRunnerForOrg.php new file mode 100644 index 00000000000..100b70c21d5 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/DeleteHostedRunnerForOrg.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $org, $hostedRunnerId); + $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): ActionsHostedRunner { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnerForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnerForEnterprise.php new file mode 100644 index 00000000000..845c6273bb1 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnerForEnterprise.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $enterprise, $hostedRunnerId); + $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): ActionsHostedRunner { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnerForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnerForOrg.php new file mode 100644 index 00000000000..4937ed70278 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnerForOrg.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $org, $hostedRunnerId); + $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): ActionsHostedRunner { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersGithubOwnedImagesForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersGithubOwnedImagesForEnterprise.php new file mode 100644 index 00000000000..5643e2dd3d7 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersGithubOwnedImagesForEnterprise.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $enterprise); + $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): Ok { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersGithubOwnedImagesForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersGithubOwnedImagesForOrg.php new file mode 100644 index 00000000000..6c4c79128cf --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersGithubOwnedImagesForOrg.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $org); + $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): Json { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersLimitsForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersLimitsForEnterprise.php new file mode 100644 index 00000000000..7c26edbf9f7 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersLimitsForEnterprise.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $enterprise); + $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): ActionsHostedRunnerLimits { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersLimitsForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersLimitsForOrg.php new file mode 100644 index 00000000000..dadd81d77c4 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersLimitsForOrg.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $org); + $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): ActionsHostedRunnerLimits { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersMachineSpecsForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersMachineSpecsForEnterprise.php new file mode 100644 index 00000000000..bd871629e19 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersMachineSpecsForEnterprise.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $enterprise); + $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): Ok { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersMachineSpecsForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersMachineSpecsForOrg.php new file mode 100644 index 00000000000..1010982f05c --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersMachineSpecsForOrg.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $org); + $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): Json { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPartnerImagesForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPartnerImagesForEnterprise.php new file mode 100644 index 00000000000..2bf63098a9a --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPartnerImagesForEnterprise.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $enterprise); + $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): Json { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPartnerImagesForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPartnerImagesForOrg.php new file mode 100644 index 00000000000..59c72ab41c9 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPartnerImagesForOrg.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $org); + $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): Json { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPlatformsForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPlatformsForEnterprise.php new file mode 100644 index 00000000000..e0650f2ddc1 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPlatformsForEnterprise.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $enterprise); + $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): Ok { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPlatformsForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPlatformsForOrg.php new file mode 100644 index 00000000000..53637544655 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/GetHostedRunnersPlatformsForOrg.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $org); + $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): Json { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/ListGithubHostedRunnersInGroupForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/ListGithubHostedRunnersInGroupForOrg.php new file mode 100644 index 00000000000..37b2a60047a --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/ListGithubHostedRunnersInGroupForOrg.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $org, $runnerGroupId, $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): Ok { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/ListHostedRunnersForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/ListHostedRunnersForEnterprise.php new file mode 100644 index 00000000000..d32dcd7e9c7 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/ListHostedRunnersForEnterprise.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $enterprise, $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): Ok { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/ListHostedRunnersForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/ListHostedRunnersForOrg.php new file mode 100644 index 00000000000..e2a7926af2a --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/ListHostedRunnersForOrg.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $org, $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): Json { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/UpdateHostedRunnerForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/UpdateHostedRunnerForEnterprise.php new file mode 100644 index 00000000000..2215b382b6d --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/UpdateHostedRunnerForEnterprise.php @@ -0,0 +1,40 @@ +requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $enterprise, $hostedRunnerId); + $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): ActionsHostedRunner { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/UpdateHostedRunnerForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/UpdateHostedRunnerForOrg.php new file mode 100644 index 00000000000..1413bd187b5 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Actions/UpdateHostedRunnerForOrg.php @@ -0,0 +1,40 @@ +requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org, $hostedRunnerId); + $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): ActionsHostedRunner { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php index bb47a8c256c..d6106f886a5 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForEnterprise.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $enterprise, string $state, string $severity, string $ecosystem, string $package, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $first = 30, int $perPage = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Dependabot\ListAlertsForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise, $state, $severity, $ecosystem, $package, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForOrg.php index d009882173d..55d8c0ded6f 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForOrg.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForOrg.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $org, string $state, string $severity, string $ecosystem, string $package, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $first = 30, int $perPage = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Dependabot\ListAlertsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $state, $severity, $ecosystem, $package, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepo.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepo.php index 1b5ae1a75f0..9f4d175ef97 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepo.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepo.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30, int $first = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Dependabot\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php index 0139748f555..82e8c9724f4 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Dependabot/ListAlertsForRepoListing.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30, int $first = 30): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Dependabot\ListAlertsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operators.php b/clients/GitHubEnterpriseCloud/src/Internal/Operators.php index 020483a7133..8c5d4a8eeca 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operators.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operators.php @@ -50,6 +50,16 @@ final class Operators private Internal\Operator\Emojis\Get|null $emojis👷Get = null; private Internal\Operator\EnterpriseAdmin\GetServerStatistics|null $enterpriseAdmin👷GetServerStatistics = null; private Internal\Operator\Actions\GetActionsCacheUsageForEnterprise|null $actions👷GetActionsCacheUsageForEnterprise = null; + private Internal\Operator\Actions\ListHostedRunnersForEnterprise|null $actions👷ListHostedRunnersForEnterprise = null; + private Internal\Operator\Actions\CreateHostedRunnerForEnterprise|null $actions👷CreateHostedRunnerForEnterprise = null; + private Internal\Operator\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise|null $actions👷GetHostedRunnersGithubOwnedImagesForEnterprise = null; + private Internal\Operator\Actions\GetHostedRunnersPartnerImagesForEnterprise|null $actions👷GetHostedRunnersPartnerImagesForEnterprise = null; + private Internal\Operator\Actions\GetHostedRunnersLimitsForEnterprise|null $actions👷GetHostedRunnersLimitsForEnterprise = null; + private Internal\Operator\Actions\GetHostedRunnersMachineSpecsForEnterprise|null $actions👷GetHostedRunnersMachineSpecsForEnterprise = null; + private Internal\Operator\Actions\GetHostedRunnersPlatformsForEnterprise|null $actions👷GetHostedRunnersPlatformsForEnterprise = null; + private Internal\Operator\Actions\GetHostedRunnerForEnterprise|null $actions👷GetHostedRunnerForEnterprise = null; + private Internal\Operator\Actions\DeleteHostedRunnerForEnterprise|null $actions👷DeleteHostedRunnerForEnterprise = null; + private Internal\Operator\Actions\UpdateHostedRunnerForEnterprise|null $actions👷UpdateHostedRunnerForEnterprise = null; private Internal\Operator\Actions\SetActionsOidcCustomIssuerPolicyForEnterprise|null $actions👷SetActionsOidcCustomIssuerPolicyForEnterprise = null; private Internal\Operator\EnterpriseAdmin\GetGithubActionsPermissionsEnterprise|null $enterpriseAdmin👷GetGithubActionsPermissionsEnterprise = null; private Internal\Operator\EnterpriseAdmin\SetGithubActionsPermissionsEnterprise|null $enterpriseAdmin👷SetGithubActionsPermissionsEnterprise = null; @@ -211,6 +221,16 @@ final class Operators private Internal\Operator\Orgs\Update|null $orgs👷Update = null; private Internal\Operator\Actions\GetActionsCacheUsageForOrg|null $actions👷GetActionsCacheUsageForOrg = null; private Internal\Operator\Actions\GetActionsCacheUsageByRepoForOrg|null $actions👷GetActionsCacheUsageByRepoForOrg = null; + private Internal\Operator\Actions\ListHostedRunnersForOrg|null $actions👷ListHostedRunnersForOrg = null; + private Internal\Operator\Actions\CreateHostedRunnerForOrg|null $actions👷CreateHostedRunnerForOrg = null; + private Internal\Operator\Actions\GetHostedRunnersGithubOwnedImagesForOrg|null $actions👷GetHostedRunnersGithubOwnedImagesForOrg = null; + private Internal\Operator\Actions\GetHostedRunnersPartnerImagesForOrg|null $actions👷GetHostedRunnersPartnerImagesForOrg = null; + private Internal\Operator\Actions\GetHostedRunnersLimitsForOrg|null $actions👷GetHostedRunnersLimitsForOrg = null; + private Internal\Operator\Actions\GetHostedRunnersMachineSpecsForOrg|null $actions👷GetHostedRunnersMachineSpecsForOrg = null; + private Internal\Operator\Actions\GetHostedRunnersPlatformsForOrg|null $actions👷GetHostedRunnersPlatformsForOrg = null; + private Internal\Operator\Actions\GetHostedRunnerForOrg|null $actions👷GetHostedRunnerForOrg = null; + private Internal\Operator\Actions\DeleteHostedRunnerForOrg|null $actions👷DeleteHostedRunnerForOrg = null; + private Internal\Operator\Actions\UpdateHostedRunnerForOrg|null $actions👷UpdateHostedRunnerForOrg = null; private Internal\Operator\Oidc\GetOidcCustomSubTemplateForOrg|null $oidc👷GetOidcCustomSubTemplateForOrg = null; private Internal\Operator\Oidc\UpdateOidcCustomSubTemplateForOrg|null $oidc👷UpdateOidcCustomSubTemplateForOrg = null; private Internal\Operator\Actions\GetGithubActionsPermissionsOrganization|null $actions👷GetGithubActionsPermissionsOrganization = null; @@ -228,6 +248,7 @@ final class Operators private Internal\Operator\Actions\GetSelfHostedRunnerGroupForOrg|null $actions👷GetSelfHostedRunnerGroupForOrg = null; private Internal\Operator\Actions\DeleteSelfHostedRunnerGroupFromOrg|null $actions👷DeleteSelfHostedRunnerGroupFromOrg = null; private Internal\Operator\Actions\UpdateSelfHostedRunnerGroupForOrg|null $actions👷UpdateSelfHostedRunnerGroupForOrg = null; + private Internal\Operator\Actions\ListGithubHostedRunnersInGroupForOrg|null $actions👷ListGithubHostedRunnersInGroupForOrg = null; private Internal\Operator\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg|null $actions👷ListRepoAccessToSelfHostedRunnerGroupInOrg = null; private Internal\Operator\Actions\SetRepoAccessToSelfHostedRunnerGroupInOrg|null $actions👷SetRepoAccessToSelfHostedRunnerGroupInOrg = null; private Internal\Operator\Actions\AddRepoAccessToSelfHostedRunnerGroupInOrg|null $actions👷AddRepoAccessToSelfHostedRunnerGroupInOrg = null; @@ -1686,6 +1707,96 @@ public function actions👷GetActionsCacheUsageForEnterprise(): Internal\Operato return $this->actions👷GetActionsCacheUsageForEnterprise; } + public function actions👷ListHostedRunnersForEnterprise(): Internal\Operator\Actions\ListHostedRunnersForEnterprise + { + if ($this->actions👷ListHostedRunnersForEnterprise instanceof Internal\Operator\Actions\ListHostedRunnersForEnterprise === false) { + $this->actions👷ListHostedRunnersForEnterprise = new Internal\Operator\Actions\ListHostedRunnersForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners()); + } + + return $this->actions👷ListHostedRunnersForEnterprise; + } + + public function actions👷CreateHostedRunnerForEnterprise(): Internal\Operator\Actions\CreateHostedRunnerForEnterprise + { + if ($this->actions👷CreateHostedRunnerForEnterprise instanceof Internal\Operator\Actions\CreateHostedRunnerForEnterprise === false) { + $this->actions👷CreateHostedRunnerForEnterprise = new Internal\Operator\Actions\CreateHostedRunnerForEnterprise($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners()); + } + + return $this->actions👷CreateHostedRunnerForEnterprise; + } + + public function actions👷GetHostedRunnersGithubOwnedImagesForEnterprise(): Internal\Operator\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise + { + if ($this->actions👷GetHostedRunnersGithubOwnedImagesForEnterprise instanceof Internal\Operator\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise === false) { + $this->actions👷GetHostedRunnersGithubOwnedImagesForEnterprise = new Internal\Operator\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀GithubOwned()); + } + + return $this->actions👷GetHostedRunnersGithubOwnedImagesForEnterprise; + } + + public function actions👷GetHostedRunnersPartnerImagesForEnterprise(): Internal\Operator\Actions\GetHostedRunnersPartnerImagesForEnterprise + { + if ($this->actions👷GetHostedRunnersPartnerImagesForEnterprise instanceof Internal\Operator\Actions\GetHostedRunnersPartnerImagesForEnterprise === false) { + $this->actions👷GetHostedRunnersPartnerImagesForEnterprise = new Internal\Operator\Actions\GetHostedRunnersPartnerImagesForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀Partner()); + } + + return $this->actions👷GetHostedRunnersPartnerImagesForEnterprise; + } + + public function actions👷GetHostedRunnersLimitsForEnterprise(): Internal\Operator\Actions\GetHostedRunnersLimitsForEnterprise + { + if ($this->actions👷GetHostedRunnersLimitsForEnterprise instanceof Internal\Operator\Actions\GetHostedRunnersLimitsForEnterprise === false) { + $this->actions👷GetHostedRunnersLimitsForEnterprise = new Internal\Operator\Actions\GetHostedRunnersLimitsForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Limits()); + } + + return $this->actions👷GetHostedRunnersLimitsForEnterprise; + } + + public function actions👷GetHostedRunnersMachineSpecsForEnterprise(): Internal\Operator\Actions\GetHostedRunnersMachineSpecsForEnterprise + { + if ($this->actions👷GetHostedRunnersMachineSpecsForEnterprise instanceof Internal\Operator\Actions\GetHostedRunnersMachineSpecsForEnterprise === false) { + $this->actions👷GetHostedRunnersMachineSpecsForEnterprise = new Internal\Operator\Actions\GetHostedRunnersMachineSpecsForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀MachineSizes()); + } + + return $this->actions👷GetHostedRunnersMachineSpecsForEnterprise; + } + + public function actions👷GetHostedRunnersPlatformsForEnterprise(): Internal\Operator\Actions\GetHostedRunnersPlatformsForEnterprise + { + if ($this->actions👷GetHostedRunnersPlatformsForEnterprise instanceof Internal\Operator\Actions\GetHostedRunnersPlatformsForEnterprise === false) { + $this->actions👷GetHostedRunnersPlatformsForEnterprise = new Internal\Operator\Actions\GetHostedRunnersPlatformsForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Platforms()); + } + + return $this->actions👷GetHostedRunnersPlatformsForEnterprise; + } + + public function actions👷GetHostedRunnerForEnterprise(): Internal\Operator\Actions\GetHostedRunnerForEnterprise + { + if ($this->actions👷GetHostedRunnerForEnterprise instanceof Internal\Operator\Actions\GetHostedRunnerForEnterprise === false) { + $this->actions👷GetHostedRunnerForEnterprise = new Internal\Operator\Actions\GetHostedRunnerForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀HostedRunnerId()); + } + + return $this->actions👷GetHostedRunnerForEnterprise; + } + + public function actions👷DeleteHostedRunnerForEnterprise(): Internal\Operator\Actions\DeleteHostedRunnerForEnterprise + { + if ($this->actions👷DeleteHostedRunnerForEnterprise instanceof Internal\Operator\Actions\DeleteHostedRunnerForEnterprise === false) { + $this->actions👷DeleteHostedRunnerForEnterprise = new Internal\Operator\Actions\DeleteHostedRunnerForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀HostedRunnerId()); + } + + return $this->actions👷DeleteHostedRunnerForEnterprise; + } + + public function actions👷UpdateHostedRunnerForEnterprise(): Internal\Operator\Actions\UpdateHostedRunnerForEnterprise + { + if ($this->actions👷UpdateHostedRunnerForEnterprise instanceof Internal\Operator\Actions\UpdateHostedRunnerForEnterprise === false) { + $this->actions👷UpdateHostedRunnerForEnterprise = new Internal\Operator\Actions\UpdateHostedRunnerForEnterprise($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀HostedRunnerId()); + } + + return $this->actions👷UpdateHostedRunnerForEnterprise; + } + public function actions👷SetActionsOidcCustomIssuerPolicyForEnterprise(): Internal\Operator\Actions\SetActionsOidcCustomIssuerPolicyForEnterprise { if ($this->actions👷SetActionsOidcCustomIssuerPolicyForEnterprise instanceof Internal\Operator\Actions\SetActionsOidcCustomIssuerPolicyForEnterprise === false) { @@ -3135,6 +3246,96 @@ public function actions👷GetActionsCacheUsageByRepoForOrg(): Internal\Operator return $this->actions👷GetActionsCacheUsageByRepoForOrg; } + public function actions👷ListHostedRunnersForOrg(): Internal\Operator\Actions\ListHostedRunnersForOrg + { + if ($this->actions👷ListHostedRunnersForOrg instanceof Internal\Operator\Actions\ListHostedRunnersForOrg === false) { + $this->actions👷ListHostedRunnersForOrg = new Internal\Operator\Actions\ListHostedRunnersForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners()); + } + + return $this->actions👷ListHostedRunnersForOrg; + } + + public function actions👷CreateHostedRunnerForOrg(): Internal\Operator\Actions\CreateHostedRunnerForOrg + { + if ($this->actions👷CreateHostedRunnerForOrg instanceof Internal\Operator\Actions\CreateHostedRunnerForOrg === false) { + $this->actions👷CreateHostedRunnerForOrg = new Internal\Operator\Actions\CreateHostedRunnerForOrg($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners()); + } + + return $this->actions👷CreateHostedRunnerForOrg; + } + + public function actions👷GetHostedRunnersGithubOwnedImagesForOrg(): Internal\Operator\Actions\GetHostedRunnersGithubOwnedImagesForOrg + { + if ($this->actions👷GetHostedRunnersGithubOwnedImagesForOrg instanceof Internal\Operator\Actions\GetHostedRunnersGithubOwnedImagesForOrg === false) { + $this->actions👷GetHostedRunnersGithubOwnedImagesForOrg = new Internal\Operator\Actions\GetHostedRunnersGithubOwnedImagesForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀GithubOwned()); + } + + return $this->actions👷GetHostedRunnersGithubOwnedImagesForOrg; + } + + public function actions👷GetHostedRunnersPartnerImagesForOrg(): Internal\Operator\Actions\GetHostedRunnersPartnerImagesForOrg + { + if ($this->actions👷GetHostedRunnersPartnerImagesForOrg instanceof Internal\Operator\Actions\GetHostedRunnersPartnerImagesForOrg === false) { + $this->actions👷GetHostedRunnersPartnerImagesForOrg = new Internal\Operator\Actions\GetHostedRunnersPartnerImagesForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀Partner()); + } + + return $this->actions👷GetHostedRunnersPartnerImagesForOrg; + } + + public function actions👷GetHostedRunnersLimitsForOrg(): Internal\Operator\Actions\GetHostedRunnersLimitsForOrg + { + if ($this->actions👷GetHostedRunnersLimitsForOrg instanceof Internal\Operator\Actions\GetHostedRunnersLimitsForOrg === false) { + $this->actions👷GetHostedRunnersLimitsForOrg = new Internal\Operator\Actions\GetHostedRunnersLimitsForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Limits()); + } + + return $this->actions👷GetHostedRunnersLimitsForOrg; + } + + public function actions👷GetHostedRunnersMachineSpecsForOrg(): Internal\Operator\Actions\GetHostedRunnersMachineSpecsForOrg + { + if ($this->actions👷GetHostedRunnersMachineSpecsForOrg instanceof Internal\Operator\Actions\GetHostedRunnersMachineSpecsForOrg === false) { + $this->actions👷GetHostedRunnersMachineSpecsForOrg = new Internal\Operator\Actions\GetHostedRunnersMachineSpecsForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀MachineSizes()); + } + + return $this->actions👷GetHostedRunnersMachineSpecsForOrg; + } + + public function actions👷GetHostedRunnersPlatformsForOrg(): Internal\Operator\Actions\GetHostedRunnersPlatformsForOrg + { + if ($this->actions👷GetHostedRunnersPlatformsForOrg instanceof Internal\Operator\Actions\GetHostedRunnersPlatformsForOrg === false) { + $this->actions👷GetHostedRunnersPlatformsForOrg = new Internal\Operator\Actions\GetHostedRunnersPlatformsForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Platforms()); + } + + return $this->actions👷GetHostedRunnersPlatformsForOrg; + } + + public function actions👷GetHostedRunnerForOrg(): Internal\Operator\Actions\GetHostedRunnerForOrg + { + if ($this->actions👷GetHostedRunnerForOrg instanceof Internal\Operator\Actions\GetHostedRunnerForOrg === false) { + $this->actions👷GetHostedRunnerForOrg = new Internal\Operator\Actions\GetHostedRunnerForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀HostedRunnerId()); + } + + return $this->actions👷GetHostedRunnerForOrg; + } + + public function actions👷DeleteHostedRunnerForOrg(): Internal\Operator\Actions\DeleteHostedRunnerForOrg + { + if ($this->actions👷DeleteHostedRunnerForOrg instanceof Internal\Operator\Actions\DeleteHostedRunnerForOrg === false) { + $this->actions👷DeleteHostedRunnerForOrg = new Internal\Operator\Actions\DeleteHostedRunnerForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀HostedRunnerId()); + } + + return $this->actions👷DeleteHostedRunnerForOrg; + } + + public function actions👷UpdateHostedRunnerForOrg(): Internal\Operator\Actions\UpdateHostedRunnerForOrg + { + if ($this->actions👷UpdateHostedRunnerForOrg instanceof Internal\Operator\Actions\UpdateHostedRunnerForOrg === false) { + $this->actions👷UpdateHostedRunnerForOrg = new Internal\Operator\Actions\UpdateHostedRunnerForOrg($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀HostedRunnerId()); + } + + return $this->actions👷UpdateHostedRunnerForOrg; + } + public function oidc👷GetOidcCustomSubTemplateForOrg(): Internal\Operator\Oidc\GetOidcCustomSubTemplateForOrg { if ($this->oidc👷GetOidcCustomSubTemplateForOrg instanceof Internal\Operator\Oidc\GetOidcCustomSubTemplateForOrg === false) { @@ -3288,6 +3489,15 @@ public function actions👷UpdateSelfHostedRunnerGroupForOrg(): Internal\Operato return $this->actions👷UpdateSelfHostedRunnerGroupForOrg; } + public function actions👷ListGithubHostedRunnersInGroupForOrg(): Internal\Operator\Actions\ListGithubHostedRunnersInGroupForOrg + { + if ($this->actions👷ListGithubHostedRunnersInGroupForOrg instanceof Internal\Operator\Actions\ListGithubHostedRunnersInGroupForOrg === false) { + $this->actions👷ListGithubHostedRunnersInGroupForOrg = new Internal\Operator\Actions\ListGithubHostedRunnersInGroupForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀HostedRunners()); + } + + return $this->actions👷ListGithubHostedRunnersInGroupForOrg; + } + public function actions👷ListRepoAccessToSelfHostedRunnerGroupInOrg(): Internal\Operator\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg { if ($this->actions👷ListRepoAccessToSelfHostedRunnerGroupInOrg instanceof Internal\Operator\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg === false) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Actions.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Actions.php index 47844e27d57..0ddb4922f99 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Actions.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Actions.php @@ -6,6 +6,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Internal; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheList; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok; use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface; @@ -22,6 +23,163 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + public function deleteHostedRunnerForEnterprise(array $params): ActionsHostedRunner + { + $arguments = []; + if (array_key_exists('enterprise', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: enterprise'); + } + + $arguments['enterprise'] = $params['enterprise']; + unset($params['enterprise']); + if (array_key_exists('hosted_runner_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: hosted_runner_id'); + } + + $arguments['hosted_runner_id'] = $params['hosted_runner_id']; + unset($params['hosted_runner_id']); + $operator = new Internal\Operator\Actions\DeleteHostedRunnerForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀HostedRunnerId()); + + return $operator->call($arguments['enterprise'], $arguments['hosted_runner_id']); + } + + public function deleteHostedRunnerForOrg(array $params): ActionsHostedRunner + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('hosted_runner_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: hosted_runner_id'); + } + + $arguments['hosted_runner_id'] = $params['hosted_runner_id']; + unset($params['hosted_runner_id']); + $operator = new Internal\Operator\Actions\DeleteHostedRunnerForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀HostedRunnerId()); + + return $operator->call($arguments['org'], $arguments['hosted_runner_id']); + } + + /** @return */ + public function deleteSelfHostedRunnerGroupFromOrg(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('runner_group_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); + } + + $arguments['runner_group_id'] = $params['runner_group_id']; + unset($params['runner_group_id']); + $operator = new Internal\Operator\Actions\DeleteSelfHostedRunnerGroupFromOrg($this->browser, $this->authentication); + + return $operator->call($arguments['org'], $arguments['runner_group_id']); + } + + /** @return */ + public function deleteSelfHostedRunnerFromOrg(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('runner_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_id'); + } + + $arguments['runner_id'] = $params['runner_id']; + unset($params['runner_id']); + $operator = new Internal\Operator\Actions\DeleteSelfHostedRunnerFromOrg($this->browser, $this->authentication); + + return $operator->call($arguments['org'], $arguments['runner_id']); + } + + /** @return */ + public function deleteOrgSecret(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('secret_name', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: secret_name'); + } + + $arguments['secret_name'] = $params['secret_name']; + unset($params['secret_name']); + $operator = new Internal\Operator\Actions\DeleteOrgSecret($this->browser, $this->authentication); + + return $operator->call($arguments['org'], $arguments['secret_name']); + } + + /** @return */ + public function deleteOrgVariable(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('name', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: name'); + } + + $arguments['name'] = $params['name']; + unset($params['name']); + $operator = new Internal\Operator\Actions\DeleteOrgVariable($this->browser, $this->authentication); + + return $operator->call($arguments['org'], $arguments['name']); + } + + /** @return */ + public function deleteActionsCacheByKey(array $params): ActionsCacheList + { + $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('key', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: key'); + } + + $arguments['key'] = $params['key']; + unset($params['key']); + if (array_key_exists('ref', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: ref'); + } + + $arguments['ref'] = $params['ref']; + unset($params['ref']); + $operator = new Internal\Operator\Actions\DeleteActionsCacheByKey($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Actions🌀Caches()); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['key'], $arguments['ref']); + } + /** @return */ public function disableSelectedRepositoryGithubActionsOrganization(array $params): WithoutBody { @@ -226,123 +384,6 @@ public function deleteRepoVariable(array $params): WithoutBody return $operator->call($arguments['owner'], $arguments['repo'], $arguments['name']); } - /** @return */ - public function deleteSelfHostedRunnerGroupFromOrg(array $params): WithoutBody - { - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - if (array_key_exists('runner_group_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); - } - - $arguments['runner_group_id'] = $params['runner_group_id']; - unset($params['runner_group_id']); - $operator = new Internal\Operator\Actions\DeleteSelfHostedRunnerGroupFromOrg($this->browser, $this->authentication); - - return $operator->call($arguments['org'], $arguments['runner_group_id']); - } - - /** @return */ - public function deleteSelfHostedRunnerFromOrg(array $params): WithoutBody - { - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - if (array_key_exists('runner_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: runner_id'); - } - - $arguments['runner_id'] = $params['runner_id']; - unset($params['runner_id']); - $operator = new Internal\Operator\Actions\DeleteSelfHostedRunnerFromOrg($this->browser, $this->authentication); - - return $operator->call($arguments['org'], $arguments['runner_id']); - } - - /** @return */ - public function deleteOrgSecret(array $params): WithoutBody - { - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - if (array_key_exists('secret_name', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: secret_name'); - } - - $arguments['secret_name'] = $params['secret_name']; - unset($params['secret_name']); - $operator = new Internal\Operator\Actions\DeleteOrgSecret($this->browser, $this->authentication); - - return $operator->call($arguments['org'], $arguments['secret_name']); - } - - /** @return */ - public function deleteOrgVariable(array $params): WithoutBody - { - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - if (array_key_exists('name', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: name'); - } - - $arguments['name'] = $params['name']; - unset($params['name']); - $operator = new Internal\Operator\Actions\DeleteOrgVariable($this->browser, $this->authentication); - - return $operator->call($arguments['org'], $arguments['name']); - } - - /** @return */ - public function deleteActionsCacheByKey(array $params): ActionsCacheList - { - $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('key', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: key'); - } - - $arguments['key'] = $params['key']; - unset($params['key']); - if (array_key_exists('ref', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: ref'); - } - - $arguments['ref'] = $params['ref']; - unset($params['ref']); - $operator = new Internal\Operator\Actions\DeleteActionsCacheByKey($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Actions🌀Caches()); - - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['key'], $arguments['ref']); - } - /** @return */ public function removeRepoAccessToSelfHostedRunnerGroupInOrg(array $params): WithoutBody { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Codespaces.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Codespaces.php index f7c4fff98d9..ee94f9f4a09 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Codespaces.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Codespaces.php @@ -50,6 +50,42 @@ public function deleteSecretForAuthenticatedUser(array $params): WithoutBody return $operator->call($arguments['secret_name']); } + /** @return */ + public function deleteCodespacesAccessUsers(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + $operator = new Internal\Operator\Codespaces\DeleteCodespacesAccessUsers($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Access🌀SelectedUsers()); + + return $operator->call($arguments['org'], $params); + } + + /** @return */ + public function deleteOrgSecret(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('secret_name', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: secret_name'); + } + + $arguments['secret_name'] = $params['secret_name']; + unset($params['secret_name']); + $operator = new Internal\Operator\Codespaces\DeleteOrgSecret($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Secrets🌀SecretName()); + + return $operator->call($arguments['org'], $arguments['secret_name']); + } + /** @return */ public function deleteFromOrganization(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|WithoutBody { @@ -125,42 +161,6 @@ public function removeRepositoryForSecretForAuthenticatedUser(array $params): Wi return $operator->call($arguments['secret_name'], $arguments['repository_id']); } - /** @return */ - public function deleteCodespacesAccessUsers(array $params): WithoutBody - { - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - $operator = new Internal\Operator\Codespaces\DeleteCodespacesAccessUsers($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Access🌀SelectedUsers()); - - return $operator->call($arguments['org'], $params); - } - - /** @return */ - public function deleteOrgSecret(array $params): WithoutBody - { - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - if (array_key_exists('secret_name', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: secret_name'); - } - - $arguments['secret_name'] = $params['secret_name']; - unset($params['secret_name']); - $operator = new Internal\Operator\Codespaces\DeleteOrgSecret($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Codespaces🌀Secrets🌀SecretName()); - - return $operator->call($arguments['org'], $arguments['secret_name']); - } - /** @return */ public function removeSelectedRepoFromOrgSecret(array $params): WithoutBody { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Dependabot.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Dependabot.php index 3fa04ecb4de..13a824d7f39 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Dependabot.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Dependabot.php @@ -20,51 +20,51 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri } /** @return */ - public function deleteRepoSecret(array $params): WithoutBody + public function deleteOrgSecret(array $params): WithoutBody { $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'); + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); } - $arguments['repo'] = $params['repo']; - unset($params['repo']); + $arguments['org'] = $params['org']; + unset($params['org']); if (array_key_exists('secret_name', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: secret_name'); } $arguments['secret_name'] = $params['secret_name']; unset($params['secret_name']); - $operator = new Internal\Operator\Dependabot\DeleteRepoSecret($this->browser, $this->authentication); + $operator = new Internal\Operator\Dependabot\DeleteOrgSecret($this->browser, $this->authentication); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['secret_name']); + return $operator->call($arguments['org'], $arguments['secret_name']); } /** @return */ - public function deleteOrgSecret(array $params): WithoutBody + public function deleteRepoSecret(array $params): WithoutBody { $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); } - $arguments['org'] = $params['org']; - unset($params['org']); + $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('secret_name', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: secret_name'); } $arguments['secret_name'] = $params['secret_name']; unset($params['secret_name']); - $operator = new Internal\Operator\Dependabot\DeleteOrgSecret($this->browser, $this->authentication); + $operator = new Internal\Operator\Dependabot\DeleteRepoSecret($this->browser, $this->authentication); - return $operator->call($arguments['org'], $arguments['secret_name']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['secret_name']); } /** @return */ diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/EnterpriseAdmin.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/EnterpriseAdmin.php index 8b7911c7c6e..db0e476fd73 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/EnterpriseAdmin.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/EnterpriseAdmin.php @@ -22,7 +22,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri } /** @return */ - public function disableSelectedOrganizationGithubActionsEnterprise(array $params): WithoutBody + public function deleteSelfHostedRunnerGroupFromEnterprise(array $params): WithoutBody { $arguments = []; if (array_key_exists('enterprise', $params) === false) { @@ -31,19 +31,19 @@ public function disableSelectedOrganizationGithubActionsEnterprise(array $params $arguments['enterprise'] = $params['enterprise']; unset($params['enterprise']); - if (array_key_exists('org_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org_id'); + if (array_key_exists('runner_group_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); } - $arguments['org_id'] = $params['org_id']; - unset($params['org_id']); - $operator = new Internal\Operator\EnterpriseAdmin\DisableSelectedOrganizationGithubActionsEnterprise($this->browser, $this->authentication); + $arguments['runner_group_id'] = $params['runner_group_id']; + unset($params['runner_group_id']); + $operator = new Internal\Operator\EnterpriseAdmin\DeleteSelfHostedRunnerGroupFromEnterprise($this->browser, $this->authentication); - return $operator->call($arguments['enterprise'], $arguments['org_id']); + return $operator->call($arguments['enterprise'], $arguments['runner_group_id']); } /** @return */ - public function removeAllCustomLabelsFromSelfHostedRunnerForEnterprise(array $params): Json + public function deleteSelfHostedRunnerFromEnterprise(array $params): WithoutBody { $arguments = []; if (array_key_exists('enterprise', $params) === false) { @@ -58,55 +58,55 @@ public function removeAllCustomLabelsFromSelfHostedRunnerForEnterprise(array $pa $arguments['runner_id'] = $params['runner_id']; unset($params['runner_id']); - $operator = new Internal\Operator\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀Runners🌀RunnerId🌀Labels()); + $operator = new Internal\Operator\EnterpriseAdmin\DeleteSelfHostedRunnerFromEnterprise($this->browser, $this->authentication); return $operator->call($arguments['enterprise'], $arguments['runner_id']); } /** @return */ - public function deleteScimGroupFromEnterprise(array $params): WithoutBody + public function deleteAuditLogStream(array $params): WithoutBody { $arguments = []; - if (array_key_exists('scim_group_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: scim_group_id'); - } - - $arguments['scim_group_id'] = $params['scim_group_id']; - unset($params['scim_group_id']); if (array_key_exists('enterprise', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: enterprise'); } $arguments['enterprise'] = $params['enterprise']; unset($params['enterprise']); - $operator = new Internal\Operator\EnterpriseAdmin\DeleteScimGroupFromEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Scim🌀V2🌀Enterprises🌀Enterprise🌀Groups🌀ScimGroupId()); + if (array_key_exists('stream_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: stream_id'); + } - return $operator->call($arguments['scim_group_id'], $arguments['enterprise']); + $arguments['stream_id'] = $params['stream_id']; + unset($params['stream_id']); + $operator = new Internal\Operator\EnterpriseAdmin\DeleteAuditLogStream($this->browser, $this->authentication); + + return $operator->call($arguments['enterprise'], $arguments['stream_id']); } /** @return */ - public function deleteUserFromEnterprise(array $params): WithoutBody + public function removeEnterpriseCustomProperty(array $params): WithoutBody { $arguments = []; - if (array_key_exists('scim_user_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: scim_user_id'); - } - - $arguments['scim_user_id'] = $params['scim_user_id']; - unset($params['scim_user_id']); if (array_key_exists('enterprise', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: enterprise'); } $arguments['enterprise'] = $params['enterprise']; unset($params['enterprise']); - $operator = new Internal\Operator\EnterpriseAdmin\DeleteUserFromEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Scim🌀V2🌀Enterprises🌀Enterprise🌀Users🌀ScimUserId()); + if (array_key_exists('custom_property_name', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: custom_property_name'); + } - return $operator->call($arguments['scim_user_id'], $arguments['enterprise']); + $arguments['custom_property_name'] = $params['custom_property_name']; + unset($params['custom_property_name']); + $operator = new Internal\Operator\EnterpriseAdmin\RemoveEnterpriseCustomProperty($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀CustomPropertyName()); + + return $operator->call($arguments['enterprise'], $arguments['custom_property_name']); } /** @return */ - public function deleteSelfHostedRunnerGroupFromEnterprise(array $params): WithoutBody + public function disableSelectedOrganizationGithubActionsEnterprise(array $params): WithoutBody { $arguments = []; if (array_key_exists('enterprise', $params) === false) { @@ -115,19 +115,19 @@ public function deleteSelfHostedRunnerGroupFromEnterprise(array $params): Withou $arguments['enterprise'] = $params['enterprise']; unset($params['enterprise']); - if (array_key_exists('runner_group_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); + if (array_key_exists('org_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org_id'); } - $arguments['runner_group_id'] = $params['runner_group_id']; - unset($params['runner_group_id']); - $operator = new Internal\Operator\EnterpriseAdmin\DeleteSelfHostedRunnerGroupFromEnterprise($this->browser, $this->authentication); + $arguments['org_id'] = $params['org_id']; + unset($params['org_id']); + $operator = new Internal\Operator\EnterpriseAdmin\DisableSelectedOrganizationGithubActionsEnterprise($this->browser, $this->authentication); - return $operator->call($arguments['enterprise'], $arguments['runner_group_id']); + return $operator->call($arguments['enterprise'], $arguments['org_id']); } /** @return */ - public function deleteSelfHostedRunnerFromEnterprise(array $params): WithoutBody + public function removeAllCustomLabelsFromSelfHostedRunnerForEnterprise(array $params): Json { $arguments = []; if (array_key_exists('enterprise', $params) === false) { @@ -142,51 +142,51 @@ public function deleteSelfHostedRunnerFromEnterprise(array $params): WithoutBody $arguments['runner_id'] = $params['runner_id']; unset($params['runner_id']); - $operator = new Internal\Operator\EnterpriseAdmin\DeleteSelfHostedRunnerFromEnterprise($this->browser, $this->authentication); + $operator = new Internal\Operator\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀Runners🌀RunnerId🌀Labels()); return $operator->call($arguments['enterprise'], $arguments['runner_id']); } /** @return */ - public function deleteAuditLogStream(array $params): WithoutBody + public function deleteScimGroupFromEnterprise(array $params): WithoutBody { $arguments = []; + if (array_key_exists('scim_group_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: scim_group_id'); + } + + $arguments['scim_group_id'] = $params['scim_group_id']; + unset($params['scim_group_id']); if (array_key_exists('enterprise', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: enterprise'); } $arguments['enterprise'] = $params['enterprise']; unset($params['enterprise']); - if (array_key_exists('stream_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: stream_id'); - } - - $arguments['stream_id'] = $params['stream_id']; - unset($params['stream_id']); - $operator = new Internal\Operator\EnterpriseAdmin\DeleteAuditLogStream($this->browser, $this->authentication); + $operator = new Internal\Operator\EnterpriseAdmin\DeleteScimGroupFromEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Scim🌀V2🌀Enterprises🌀Enterprise🌀Groups🌀ScimGroupId()); - return $operator->call($arguments['enterprise'], $arguments['stream_id']); + return $operator->call($arguments['scim_group_id'], $arguments['enterprise']); } /** @return */ - public function removeEnterpriseCustomProperty(array $params): WithoutBody + public function deleteUserFromEnterprise(array $params): WithoutBody { $arguments = []; + if (array_key_exists('scim_user_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: scim_user_id'); + } + + $arguments['scim_user_id'] = $params['scim_user_id']; + unset($params['scim_user_id']); if (array_key_exists('enterprise', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: enterprise'); } $arguments['enterprise'] = $params['enterprise']; unset($params['enterprise']); - if (array_key_exists('custom_property_name', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: custom_property_name'); - } - - $arguments['custom_property_name'] = $params['custom_property_name']; - unset($params['custom_property_name']); - $operator = new Internal\Operator\EnterpriseAdmin\RemoveEnterpriseCustomProperty($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀CustomPropertyName()); + $operator = new Internal\Operator\EnterpriseAdmin\DeleteUserFromEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Scim🌀V2🌀Enterprises🌀Enterprise🌀Users🌀ScimUserId()); - return $operator->call($arguments['enterprise'], $arguments['custom_property_name']); + return $operator->call($arguments['scim_user_id'], $arguments['enterprise']); } /** @return */ diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Issues.php index 2f640ee39be..425886fda8e 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Issues.php @@ -23,7 +23,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri } /** @return */ - public function deleteComment(array $params): WithoutBody + public function deleteLabel(array $params): WithoutBody { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -38,19 +38,19 @@ public function deleteComment(array $params): WithoutBody $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('comment_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: comment_id'); + if (array_key_exists('name', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: name'); } - $arguments['comment_id'] = $params['comment_id']; - unset($params['comment_id']); - $operator = new Internal\Operator\Issues\DeleteComment($this->browser, $this->authentication); + $arguments['name'] = $params['name']; + unset($params['name']); + $operator = new Internal\Operator\Issues\DeleteLabel($this->browser, $this->authentication); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['name']); } /** @return */ - public function removeAssignees(array $params): Issue + public function deleteMilestone(array $params): WithoutBody { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -65,19 +65,19 @@ public function removeAssignees(array $params): Issue $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('issue_number', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: issue_number'); + if (array_key_exists('milestone_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: milestone_number'); } - $arguments['issue_number'] = $params['issue_number']; - unset($params['issue_number']); - $operator = new Internal\Operator\Issues\RemoveAssignees($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Assignees()); + $arguments['milestone_number'] = $params['milestone_number']; + unset($params['milestone_number']); + $operator = new Internal\Operator\Issues\DeleteMilestone($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Milestones🌀MilestoneNumber()); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $params); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone_number']); } /** @return */ - public function removeAllLabels(array $params): BasicError|WithoutBody + public function deleteComment(array $params): WithoutBody { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -92,19 +92,19 @@ public function removeAllLabels(array $params): BasicError|WithoutBody $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('issue_number', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: issue_number'); + if (array_key_exists('comment_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: comment_id'); } - $arguments['issue_number'] = $params['issue_number']; - unset($params['issue_number']); - $operator = new Internal\Operator\Issues\RemoveAllLabels($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Labels()); + $arguments['comment_id'] = $params['comment_id']; + unset($params['comment_id']); + $operator = new Internal\Operator\Issues\DeleteComment($this->browser, $this->authentication); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id']); } /** @return */ - public function unlock(array $params): WithoutBody + public function removeAssignees(array $params): Issue { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -125,13 +125,13 @@ public function unlock(array $params): WithoutBody $arguments['issue_number'] = $params['issue_number']; unset($params['issue_number']); - $operator = new Internal\Operator\Issues\Unlock($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Lock()); + $operator = new Internal\Operator\Issues\RemoveAssignees($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Assignees()); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $params); } /** @return */ - public function removeSubIssue(array $params): Issue + public function removeAllLabels(array $params): BasicError|WithoutBody { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -152,13 +152,13 @@ public function removeSubIssue(array $params): Issue $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()); + $operator = new Internal\Operator\Issues\RemoveAllLabels($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Labels()); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $params); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number']); } /** @return */ - public function deleteLabel(array $params): WithoutBody + public function unlock(array $params): WithoutBody { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -173,19 +173,19 @@ public function deleteLabel(array $params): WithoutBody $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('name', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: name'); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); } - $arguments['name'] = $params['name']; - unset($params['name']); - $operator = new Internal\Operator\Issues\DeleteLabel($this->browser, $this->authentication); + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + $operator = new Internal\Operator\Issues\Unlock($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Lock()); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['name']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number']); } /** @return */ - public function deleteMilestone(array $params): WithoutBody + public function removeSubIssue(array $params): Issue { $arguments = []; if (array_key_exists('owner', $params) === false) { @@ -200,15 +200,15 @@ public function deleteMilestone(array $params): WithoutBody $arguments['repo'] = $params['repo']; unset($params['repo']); - if (array_key_exists('milestone_number', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: milestone_number'); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); } - $arguments['milestone_number'] = $params['milestone_number']; - unset($params['milestone_number']); - $operator = new Internal\Operator\Issues\DeleteMilestone($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Milestones🌀MilestoneNumber()); + $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['milestone_number']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $params); } /** @return Observable|Schema\BasicError */ diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Migrations.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Migrations.php index 49348e7aa58..1c1efe7e97c 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Migrations.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Migrations.php @@ -56,45 +56,45 @@ public function deleteArchiveForAuthenticatedUser(array $params): WithoutBody } /** @return */ - public function unlockRepoForAuthenticatedUser(array $params): WithoutBody + public function deleteArchiveForOrg(array $params): WithoutBody { $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); if (array_key_exists('migration_id', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: migration_id'); } $arguments['migration_id'] = $params['migration_id']; unset($params['migration_id']); - if (array_key_exists('repo_name', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: repo_name'); - } - - $arguments['repo_name'] = $params['repo_name']; - unset($params['repo_name']); - $operator = new Internal\Operator\Migrations\UnlockRepoForAuthenticatedUser($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Migrations🌀MigrationId🌀Repos🌀RepoName🌀Lock()); + $operator = new Internal\Operator\Migrations\DeleteArchiveForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Migrations🌀MigrationId🌀Archive()); - return $operator->call($arguments['migration_id'], $arguments['repo_name']); + return $operator->call($arguments['org'], $arguments['migration_id']); } /** @return */ - public function deleteArchiveForOrg(array $params): WithoutBody + public function unlockRepoForAuthenticatedUser(array $params): WithoutBody { $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); if (array_key_exists('migration_id', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: migration_id'); } $arguments['migration_id'] = $params['migration_id']; unset($params['migration_id']); - $operator = new Internal\Operator\Migrations\DeleteArchiveForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Migrations🌀MigrationId🌀Archive()); + if (array_key_exists('repo_name', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo_name'); + } - return $operator->call($arguments['org'], $arguments['migration_id']); + $arguments['repo_name'] = $params['repo_name']; + unset($params['repo_name']); + $operator = new Internal\Operator\Migrations\UnlockRepoForAuthenticatedUser($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Migrations🌀MigrationId🌀Repos🌀RepoName🌀Lock()); + + return $operator->call($arguments['migration_id'], $arguments['repo_name']); } /** @return */ diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Orgs.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Orgs.php index 40e34fd63f7..4bf6410d77d 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Orgs.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Orgs.php @@ -252,7 +252,7 @@ public function removePublicMembershipForAuthenticatedUser(array $params): Witho } /** @return */ - public function revokeOrgRoleTeam(array $params): WithoutBody + public function revokeAllOrgRolesTeam(array $params): WithoutBody { $arguments = []; if (array_key_exists('org', $params) === false) { @@ -267,19 +267,13 @@ public function revokeOrgRoleTeam(array $params): WithoutBody $arguments['team_slug'] = $params['team_slug']; unset($params['team_slug']); - if (array_key_exists('role_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: role_id'); - } - - $arguments['role_id'] = $params['role_id']; - unset($params['role_id']); - $operator = new Internal\Operator\Orgs\RevokeOrgRoleTeam($this->browser, $this->authentication); + $operator = new Internal\Operator\Orgs\RevokeAllOrgRolesTeam($this->browser, $this->authentication); - return $operator->call($arguments['org'], $arguments['team_slug'], $arguments['role_id']); + return $operator->call($arguments['org'], $arguments['team_slug']); } /** @return */ - public function revokeOrgRoleUser(array $params): WithoutBody + public function revokeAllOrgRolesUser(array $params): WithoutBody { $arguments = []; if (array_key_exists('org', $params) === false) { @@ -294,19 +288,13 @@ public function revokeOrgRoleUser(array $params): WithoutBody $arguments['username'] = $params['username']; unset($params['username']); - if (array_key_exists('role_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: role_id'); - } - - $arguments['role_id'] = $params['role_id']; - unset($params['role_id']); - $operator = new Internal\Operator\Orgs\RevokeOrgRoleUser($this->browser, $this->authentication); + $operator = new Internal\Operator\Orgs\RevokeAllOrgRolesUser($this->browser, $this->authentication); - return $operator->call($arguments['org'], $arguments['username'], $arguments['role_id']); + return $operator->call($arguments['org'], $arguments['username']); } /** @return */ - public function revokeAllOrgRolesTeam(array $params): WithoutBody + public function removeCustomProperty(array $params): WithoutBody { $arguments = []; if (array_key_exists('org', $params) === false) { @@ -315,19 +303,19 @@ public function revokeAllOrgRolesTeam(array $params): WithoutBody $arguments['org'] = $params['org']; unset($params['org']); - if (array_key_exists('team_slug', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: team_slug'); + if (array_key_exists('custom_property_name', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: custom_property_name'); } - $arguments['team_slug'] = $params['team_slug']; - unset($params['team_slug']); - $operator = new Internal\Operator\Orgs\RevokeAllOrgRolesTeam($this->browser, $this->authentication); + $arguments['custom_property_name'] = $params['custom_property_name']; + unset($params['custom_property_name']); + $operator = new Internal\Operator\Orgs\RemoveCustomProperty($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Properties🌀Schema🌀CustomPropertyName()); - return $operator->call($arguments['org'], $arguments['team_slug']); + return $operator->call($arguments['org'], $arguments['custom_property_name']); } /** @return */ - public function revokeAllOrgRolesUser(array $params): WithoutBody + public function removeSecurityManagerTeam(array $params): WithoutBody { $arguments = []; if (array_key_exists('org', $params) === false) { @@ -336,19 +324,19 @@ public function revokeAllOrgRolesUser(array $params): WithoutBody $arguments['org'] = $params['org']; unset($params['org']); - if (array_key_exists('username', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: username'); + if (array_key_exists('team_slug', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_slug'); } - $arguments['username'] = $params['username']; - unset($params['username']); - $operator = new Internal\Operator\Orgs\RevokeAllOrgRolesUser($this->browser, $this->authentication); + $arguments['team_slug'] = $params['team_slug']; + unset($params['team_slug']); + $operator = new Internal\Operator\Orgs\RemoveSecurityManagerTeam($this->browser, $this->authentication); - return $operator->call($arguments['org'], $arguments['username']); + return $operator->call($arguments['org'], $arguments['team_slug']); } /** @return */ - public function removeCustomProperty(array $params): WithoutBody + public function revokeOrgRoleTeam(array $params): WithoutBody { $arguments = []; if (array_key_exists('org', $params) === false) { @@ -357,19 +345,25 @@ public function removeCustomProperty(array $params): WithoutBody $arguments['org'] = $params['org']; unset($params['org']); - if (array_key_exists('custom_property_name', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: custom_property_name'); + if (array_key_exists('team_slug', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_slug'); } - $arguments['custom_property_name'] = $params['custom_property_name']; - unset($params['custom_property_name']); - $operator = new Internal\Operator\Orgs\RemoveCustomProperty($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Properties🌀Schema🌀CustomPropertyName()); + $arguments['team_slug'] = $params['team_slug']; + unset($params['team_slug']); + if (array_key_exists('role_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: role_id'); + } - return $operator->call($arguments['org'], $arguments['custom_property_name']); + $arguments['role_id'] = $params['role_id']; + unset($params['role_id']); + $operator = new Internal\Operator\Orgs\RevokeOrgRoleTeam($this->browser, $this->authentication); + + return $operator->call($arguments['org'], $arguments['team_slug'], $arguments['role_id']); } /** @return */ - public function removeSecurityManagerTeam(array $params): WithoutBody + public function revokeOrgRoleUser(array $params): WithoutBody { $arguments = []; if (array_key_exists('org', $params) === false) { @@ -378,15 +372,21 @@ public function removeSecurityManagerTeam(array $params): WithoutBody $arguments['org'] = $params['org']; unset($params['org']); - if (array_key_exists('team_slug', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: team_slug'); + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); } - $arguments['team_slug'] = $params['team_slug']; - unset($params['team_slug']); - $operator = new Internal\Operator\Orgs\RemoveSecurityManagerTeam($this->browser, $this->authentication); + $arguments['username'] = $params['username']; + unset($params['username']); + if (array_key_exists('role_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: role_id'); + } - return $operator->call($arguments['org'], $arguments['team_slug']); + $arguments['role_id'] = $params['role_id']; + unset($params['role_id']); + $operator = new Internal\Operator\Orgs\RevokeOrgRoleUser($this->browser, $this->authentication); + + return $operator->call($arguments['org'], $arguments['username'], $arguments['role_id']); } /** @return */ diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Packages.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Packages.php index 0ae2382cfff..a283ea8095a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Packages.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Packages.php @@ -41,7 +41,7 @@ public function deletePackageForAuthenticatedUser(array $params): WithoutBody } /** @return */ - public function deletePackageVersionForAuthenticatedUser(array $params): WithoutBody + public function deletePackageForOrg(array $params): WithoutBody { $arguments = []; if (array_key_exists('package_type', $params) === false) { @@ -56,19 +56,19 @@ public function deletePackageVersionForAuthenticatedUser(array $params): Without $arguments['package_name'] = $params['package_name']; unset($params['package_name']); - if (array_key_exists('package_version_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: package_version_id'); + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); } - $arguments['package_version_id'] = $params['package_version_id']; - unset($params['package_version_id']); - $operator = new Internal\Operator\Packages\DeletePackageVersionForAuthenticatedUser($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Packages🌀PackageType🌀PackageName🌀Versions🌀PackageVersionId()); + $arguments['org'] = $params['org']; + unset($params['org']); + $operator = new Internal\Operator\Packages\DeletePackageForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Packages🌀PackageType🌀PackageName()); - return $operator->call($arguments['package_type'], $arguments['package_name'], $arguments['package_version_id']); + return $operator->call($arguments['package_type'], $arguments['package_name'], $arguments['org']); } /** @return */ - public function deletePackageForOrg(array $params): WithoutBody + public function deletePackageForUser(array $params): WithoutBody { $arguments = []; if (array_key_exists('package_type', $params) === false) { @@ -83,19 +83,19 @@ public function deletePackageForOrg(array $params): WithoutBody $arguments['package_name'] = $params['package_name']; unset($params['package_name']); - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); } - $arguments['org'] = $params['org']; - unset($params['org']); - $operator = new Internal\Operator\Packages\DeletePackageForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Packages🌀PackageType🌀PackageName()); + $arguments['username'] = $params['username']; + unset($params['username']); + $operator = new Internal\Operator\Packages\DeletePackageForUser($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Packages🌀PackageType🌀PackageName()); - return $operator->call($arguments['package_type'], $arguments['package_name'], $arguments['org']); + return $operator->call($arguments['package_type'], $arguments['package_name'], $arguments['username']); } /** @return */ - public function deletePackageForUser(array $params): WithoutBody + public function deletePackageVersionForAuthenticatedUser(array $params): WithoutBody { $arguments = []; if (array_key_exists('package_type', $params) === false) { @@ -110,15 +110,15 @@ public function deletePackageForUser(array $params): WithoutBody $arguments['package_name'] = $params['package_name']; unset($params['package_name']); - if (array_key_exists('username', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: username'); + if (array_key_exists('package_version_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: package_version_id'); } - $arguments['username'] = $params['username']; - unset($params['username']); - $operator = new Internal\Operator\Packages\DeletePackageForUser($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Packages🌀PackageType🌀PackageName()); + $arguments['package_version_id'] = $params['package_version_id']; + unset($params['package_version_id']); + $operator = new Internal\Operator\Packages\DeletePackageVersionForAuthenticatedUser($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Packages🌀PackageType🌀PackageName🌀Versions🌀PackageVersionId()); - return $operator->call($arguments['package_type'], $arguments['package_name'], $arguments['username']); + return $operator->call($arguments['package_type'], $arguments['package_name'], $arguments['package_version_id']); } /** @return */ diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Repos.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Repos.php index 97822831cd4..241ac1ad978 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Repos.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Repos.php @@ -205,87 +205,6 @@ public function disableVulnerabilityAlerts(array $params): WithoutBody return $operator->call($arguments['owner'], $arguments['repo']); } - /** @return */ - public function deleteBranchProtection(array $params): WithoutBody - { - $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('branch', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: branch'); - } - - $arguments['branch'] = $params['branch']; - unset($params['branch']); - $operator = new Internal\Operator\Repos\DeleteBranchProtection($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Branches🌀Branch🌀Protection()); - - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch']); - } - - /** @return */ - public function deleteReleaseAsset(array $params): WithoutBody - { - $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('asset_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: asset_id'); - } - - $arguments['asset_id'] = $params['asset_id']; - unset($params['asset_id']); - $operator = new Internal\Operator\Repos\DeleteReleaseAsset($this->browser, $this->authentication); - - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['asset_id']); - } - - /** @return */ - public function deleteTagProtection(array $params): WithoutBody - { - $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('tag_protection_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: tag_protection_id'); - } - - $arguments['tag_protection_id'] = $params['tag_protection_id']; - unset($params['tag_protection_id']); - $operator = new Internal\Operator\Repos\DeleteTagProtection($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Tags🌀Protection🌀TagProtectionId()); - - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['tag_protection_id']); - } - /** @return */ public function deleteAutolink(array $params): WithoutBody { @@ -583,6 +502,87 @@ public function deleteRepoRuleset(array $params): WithoutBody return $operator->call($arguments['owner'], $arguments['repo'], $arguments['ruleset_id']); } + /** @return */ + public function deleteBranchProtection(array $params): WithoutBody + { + $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('branch', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: branch'); + } + + $arguments['branch'] = $params['branch']; + unset($params['branch']); + $operator = new Internal\Operator\Repos\DeleteBranchProtection($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Branches🌀Branch🌀Protection()); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch']); + } + + /** @return */ + public function deleteReleaseAsset(array $params): WithoutBody + { + $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('asset_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: asset_id'); + } + + $arguments['asset_id'] = $params['asset_id']; + unset($params['asset_id']); + $operator = new Internal\Operator\Repos\DeleteReleaseAsset($this->browser, $this->authentication); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['asset_id']); + } + + /** @return */ + public function deleteTagProtection(array $params): WithoutBody + { + $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('tag_protection_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: tag_protection_id'); + } + + $arguments['tag_protection_id'] = $params['tag_protection_id']; + unset($params['tag_protection_id']); + $operator = new Internal\Operator\Repos\DeleteTagProtection($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Tags🌀Protection🌀TagProtectionId()); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['tag_protection_id']); + } + /** @return */ public function deleteAdminBranchProtection(array $params): WithoutBody { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php index 9a4988d20e5..1d79a7642a5 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php @@ -6,6 +6,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Internal\Routers; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheList; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\FileCommit; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok; use ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody; @@ -17,13 +18,20 @@ public function __construct(private Routers $routers) { } - public function call(string $call, array $params, array $pathChunks): WithoutBody|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|ActionsCacheList|FileCommit + /** @return Schema\ActionsHostedRunner| */ + public function call(string $call, array $params, array $pathChunks): ActionsHostedRunner|WithoutBody|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|ActionsCacheList|FileCommit { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'enterprises') { if ($pathChunks[2] === '{enterprise}') { if ($pathChunks[3] === 'actions') { - if ($pathChunks[4] === 'runner-groups') { + if ($pathChunks[4] === 'hosted-runners') { + if ($pathChunks[5] === '{hosted_runner_id}') { + if ($call === 'DELETE /enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}') { + return $this->routers->internal🔀Router🔀Delete🔀Actions()->deleteHostedRunnerForEnterprise($params); + } + } + } elseif ($pathChunks[4] === 'runner-groups') { if ($pathChunks[5] === '{runner_group_id}') { if ($call === 'DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}') { return $this->routers->internal🔀Router🔀Delete🔀EnterpriseAdmin()->deleteSelfHostedRunnerGroupFromEnterprise($params); @@ -65,7 +73,13 @@ public function call(string $call, array $params, array $pathChunks): WithoutBod } elseif ($pathChunks[1] === 'orgs') { if ($pathChunks[2] === '{org}') { if ($pathChunks[3] === 'actions') { - if ($pathChunks[4] === 'runner-groups') { + if ($pathChunks[4] === 'hosted-runners') { + if ($pathChunks[5] === '{hosted_runner_id}') { + if ($call === 'DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}') { + return $this->routers->internal🔀Router🔀Delete🔀Actions()->deleteHostedRunnerForOrg($params); + } + } + } elseif ($pathChunks[4] === 'runner-groups') { if ($pathChunks[5] === '{runner_group_id}') { if ($call === 'DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}') { return $this->routers->internal🔀Router🔀Delete🔀Actions()->deleteSelfHostedRunnerGroupFromOrg($params); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Teams.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Teams.php index fd211539989..28fc8d60aec 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Teams.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Teams.php @@ -124,6 +124,54 @@ public function removeProjectLegacy(array $params): WithoutBody return $operator->call($arguments['team_id'], $arguments['project_id']); } + /** @return */ + public function unlinkExternalIdpGroupFromTeamForOrg(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('team_slug', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_slug'); + } + + $arguments['team_slug'] = $params['team_slug']; + unset($params['team_slug']); + $operator = new Internal\Operator\Teams\UnlinkExternalIdpGroupFromTeamForOrg($this->browser, $this->authentication); + + return $operator->call($arguments['org'], $arguments['team_slug']); + } + + /** @return */ + public function removeRepoLegacy(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('team_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_id'); + } + + $arguments['team_id'] = $params['team_id']; + unset($params['team_id']); + 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']); + $operator = new Internal\Operator\Teams\RemoveRepoLegacy($this->browser, $this->authentication); + + return $operator->call($arguments['team_id'], $arguments['owner'], $arguments['repo']); + } + /** @return */ public function deleteDiscussionInOrg(array $params): WithoutBody { @@ -232,54 +280,6 @@ public function deleteDiscussionCommentLegacy(array $params): WithoutBody return $operator->call($arguments['team_id'], $arguments['discussion_number'], $arguments['comment_number']); } - /** @return */ - public function unlinkExternalIdpGroupFromTeamForOrg(array $params): WithoutBody - { - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - if (array_key_exists('team_slug', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: team_slug'); - } - - $arguments['team_slug'] = $params['team_slug']; - unset($params['team_slug']); - $operator = new Internal\Operator\Teams\UnlinkExternalIdpGroupFromTeamForOrg($this->browser, $this->authentication); - - return $operator->call($arguments['org'], $arguments['team_slug']); - } - - /** @return */ - public function removeRepoLegacy(array $params): WithoutBody - { - $arguments = []; - if (array_key_exists('team_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: team_id'); - } - - $arguments['team_id'] = $params['team_id']; - unset($params['team_id']); - 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']); - $operator = new Internal\Operator\Teams\RemoveRepoLegacy($this->browser, $this->authentication); - - return $operator->call($arguments['team_id'], $arguments['owner'], $arguments['repo']); - } - /** @return */ public function removeRepoInOrg(array $params): WithoutBody { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Actions.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Actions.php index 2198a22f9f1..d88c92fbcb2 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Actions.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Actions.php @@ -10,6 +10,8 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageByRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageOrgEnterprise; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsGetDefaultWorkflowPermissions; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsOrganizationPermissions; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsPublicKey; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsRepositoryPermissions; @@ -19,8 +21,8 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\Artifact; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Job; use ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSubRepo; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json; use ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsSecret; use ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsVariable; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Runner; @@ -44,6 +46,58 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + public function listHostedRunnersForEnterprise(array $params): Ok + { + $arguments = []; + if (array_key_exists('enterprise', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: enterprise'); + } + + $arguments['enterprise'] = $params['enterprise']; + unset($params['enterprise']); + 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\Actions\ListHostedRunnersForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners()); + + return $operator->call($arguments['enterprise'], $arguments['per_page'], $arguments['page']); + } + + public function listHostedRunnersForOrg(array $params): Json + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + 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\Actions\ListHostedRunnersForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners()); + + return $operator->call($arguments['org'], $arguments['per_page'], $arguments['page']); + } + /** @return */ public function getGithubActionsPermissionsOrganization(array $params): ActionsOrganizationPermissions { @@ -60,7 +114,7 @@ public function getGithubActionsPermissionsOrganization(array $params): ActionsO } /** @return */ - public function listSelfHostedRunnerGroupsForOrg(array $params): Ok + public function listSelfHostedRunnerGroupsForOrg(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok { $arguments = []; if (array_key_exists('org', $params) === false) { @@ -194,6 +248,68 @@ public function getActionsCacheUsageForEnterprise(array $params): ActionsCacheUs return $operator->call($arguments['enterprise']); } + public function getHostedRunnersLimitsForEnterprise(array $params): ActionsHostedRunnerLimits + { + $arguments = []; + if (array_key_exists('enterprise', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: enterprise'); + } + + $arguments['enterprise'] = $params['enterprise']; + unset($params['enterprise']); + $operator = new Internal\Operator\Actions\GetHostedRunnersLimitsForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Limits()); + + return $operator->call($arguments['enterprise']); + } + + public function getHostedRunnersMachineSpecsForEnterprise(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok + { + $arguments = []; + if (array_key_exists('enterprise', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: enterprise'); + } + + $arguments['enterprise'] = $params['enterprise']; + unset($params['enterprise']); + $operator = new Internal\Operator\Actions\GetHostedRunnersMachineSpecsForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀MachineSizes()); + + return $operator->call($arguments['enterprise']); + } + + public function getHostedRunnersPlatformsForEnterprise(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok + { + $arguments = []; + if (array_key_exists('enterprise', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: enterprise'); + } + + $arguments['enterprise'] = $params['enterprise']; + unset($params['enterprise']); + $operator = new Internal\Operator\Actions\GetHostedRunnersPlatformsForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Platforms()); + + return $operator->call($arguments['enterprise']); + } + + public function getHostedRunnerForEnterprise(array $params): ActionsHostedRunner + { + $arguments = []; + if (array_key_exists('enterprise', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: enterprise'); + } + + $arguments['enterprise'] = $params['enterprise']; + unset($params['enterprise']); + if (array_key_exists('hosted_runner_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: hosted_runner_id'); + } + + $arguments['hosted_runner_id'] = $params['hosted_runner_id']; + unset($params['hosted_runner_id']); + $operator = new Internal\Operator\Actions\GetHostedRunnerForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀HostedRunnerId()); + + return $operator->call($arguments['enterprise'], $arguments['hosted_runner_id']); + } + /** @return */ public function getGithubActionsDefaultWorkflowPermissionsEnterprise(array $params): ActionsGetDefaultWorkflowPermissions { @@ -251,6 +367,68 @@ public function getActionsCacheUsageByRepoForOrg(array $params): \ApiClients\Cli return $operator->call($arguments['org'], $arguments['per_page'], $arguments['page']); } + public function getHostedRunnersLimitsForOrg(array $params): ActionsHostedRunnerLimits + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + $operator = new Internal\Operator\Actions\GetHostedRunnersLimitsForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Limits()); + + return $operator->call($arguments['org']); + } + + public function getHostedRunnersMachineSpecsForOrg(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + $operator = new Internal\Operator\Actions\GetHostedRunnersMachineSpecsForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀MachineSizes()); + + return $operator->call($arguments['org']); + } + + public function getHostedRunnersPlatformsForOrg(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + $operator = new Internal\Operator\Actions\GetHostedRunnersPlatformsForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Platforms()); + + return $operator->call($arguments['org']); + } + + public function getHostedRunnerForOrg(array $params): ActionsHostedRunner + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('hosted_runner_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: hosted_runner_id'); + } + + $arguments['hosted_runner_id'] = $params['hosted_runner_id']; + unset($params['hosted_runner_id']); + $operator = new Internal\Operator\Actions\GetHostedRunnerForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀HostedRunnerId()); + + return $operator->call($arguments['org'], $arguments['hosted_runner_id']); + } + /** @return */ public function listSelectedRepositoriesEnabledGithubActionsOrganization(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok { @@ -606,7 +784,7 @@ public function getGithubActionsPermissionsRepository(array $params): ActionsRep } /** @return */ - public function listSelfHostedRunnersForRepo(array $params): Json + public function listSelfHostedRunnersForRepo(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json { $arguments = []; if (array_key_exists('name', $params) === false) { @@ -824,6 +1002,94 @@ public function listRepoWorkflows(array $params): \ApiClients\Client\GitHubEnter return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } + public function getHostedRunnersGithubOwnedImagesForEnterprise(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok + { + $arguments = []; + if (array_key_exists('enterprise', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: enterprise'); + } + + $arguments['enterprise'] = $params['enterprise']; + unset($params['enterprise']); + $operator = new Internal\Operator\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀GithubOwned()); + + return $operator->call($arguments['enterprise']); + } + + public function getHostedRunnersPartnerImagesForEnterprise(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json + { + $arguments = []; + if (array_key_exists('enterprise', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: enterprise'); + } + + $arguments['enterprise'] = $params['enterprise']; + unset($params['enterprise']); + $operator = new Internal\Operator\Actions\GetHostedRunnersPartnerImagesForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀Images🌀Partner()); + + return $operator->call($arguments['enterprise']); + } + + public function getHostedRunnersGithubOwnedImagesForOrg(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + $operator = new Internal\Operator\Actions\GetHostedRunnersGithubOwnedImagesForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀GithubOwned()); + + return $operator->call($arguments['org']); + } + + public function getHostedRunnersPartnerImagesForOrg(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + $operator = new Internal\Operator\Actions\GetHostedRunnersPartnerImagesForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀Images🌀Partner()); + + return $operator->call($arguments['org']); + } + + public function listGithubHostedRunnersInGroupForOrg(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('runner_group_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); + } + + $arguments['runner_group_id'] = $params['runner_group_id']; + unset($params['runner_group_id']); + 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\Actions\ListGithubHostedRunnersInGroupForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀HostedRunners()); + + return $operator->call($arguments['org'], $arguments['runner_group_id'], $arguments['per_page'], $arguments['page']); + } + /** @return */ public function listRepoAccessToSelfHostedRunnerGroupInOrg(array $params): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Dependabot.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Dependabot.php index 37c6c42ef9d..f2e8b17e743 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Dependabot.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Dependabot.php @@ -26,7 +26,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForEnterprise(array $params): iterable|WithoutBody { $arguments = []; @@ -113,7 +113,7 @@ public function listAlertsForEnterprise(array $params): iterable|WithoutBody return $operator->call($arguments['enterprise'], $arguments['state'], $arguments['severity'], $arguments['ecosystem'], $arguments['package'], $arguments['scope'], $arguments['before'], $arguments['after'], $arguments['last'], $arguments['sort'], $arguments['direction'], $arguments['first'], $arguments['per_page']); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForOrg(array $params): iterable|WithoutBody { $arguments = []; @@ -263,7 +263,7 @@ public function getOrgSecret(array $params): OrganizationDependabotSecret return $operator->call($arguments['org'], $arguments['secret_name']); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepo(array $params): iterable|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php index 3964badabe1..34ae796c0d9 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php @@ -27,8 +27,8 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseContent; use ApiClients\Client\GitHubEnterpriseCloud\Schema\MarketplacePurchase; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Migration; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One; use ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationCustomRepositoryRole; use ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationRole; @@ -57,8 +57,8 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|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|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|RepositoryRuleset|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|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|OrgPrivateRegistryConfiguration|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 + /** @return |Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok|Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Schema\BasicError|Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json|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|Ok|ActionsEnterprisePermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|AuditLogStreamKey|iterable|WithoutBody|RepositoryRuleset|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|Json|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|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|OrgPrivateRegistryConfiguration|GroupMapping|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\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] === '') { if ($pathChunks[1] === 'app') { @@ -74,7 +74,11 @@ public function call(string $call, array $params, array $pathChunks): HookDelive } elseif ($pathChunks[1] === 'enterprises') { if ($pathChunks[2] === '{enterprise}') { if ($pathChunks[3] === 'actions') { - if ($pathChunks[4] === 'permissions') { + if ($pathChunks[4] === 'hosted-runners') { + if ($call === 'GET /enterprises/{enterprise}/actions/hosted-runners') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->listHostedRunnersForEnterprise($params); + } + } elseif ($pathChunks[4] === 'permissions') { if ($call === 'GET /enterprises/{enterprise}/actions/permissions') { return $this->routers->internal🔀Router🔀Get🔀EnterpriseAdmin()->getGithubActionsPermissionsEnterprise($params); } @@ -196,7 +200,11 @@ public function call(string $call, array $params, array $pathChunks): HookDelive } elseif ($pathChunks[1] === 'orgs') { if ($pathChunks[2] === '{org}') { if ($pathChunks[3] === 'actions') { - if ($pathChunks[4] === 'permissions') { + if ($pathChunks[4] === 'hosted-runners') { + if ($call === 'GET /orgs/{org}/actions/hosted-runners') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->listHostedRunnersForOrg($params); + } + } elseif ($pathChunks[4] === 'permissions') { if ($call === 'GET /orgs/{org}/actions/permissions') { return $this->routers->internal🔀Router🔀Get🔀Actions()->getGithubActionsPermissionsOrganization($params); } diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php index d89c25d47d6..d21e74e33ae 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php @@ -34,8 +34,8 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueEvent; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Job; use ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSub; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json; use ApiClients\Client\GitHubEnterpriseCloud\Schema\PackageVersion; use ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuild; use ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesDeploymentStatus; @@ -68,14 +68,26 @@ 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|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 */ - 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|PushRuleBypassRequest|\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 + /** @return Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok|Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json||Observable|Observable|Observable|Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json|Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|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 */ + public function call(string $call, array $params, array $pathChunks): Ok|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|iterable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\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|PushRuleBypassRequest|\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] === '') { if ($pathChunks[1] === 'enterprises') { if ($pathChunks[2] === '{enterprise}') { if ($pathChunks[3] === 'actions') { - if ($pathChunks[4] === 'runner-groups') { + if ($pathChunks[4] === 'hosted-runners') { + if ($pathChunks[5] === 'images') { + if ($pathChunks[6] === 'github-owned') { + if ($call === 'GET /enterprises/{enterprise}/actions/hosted-runners/images/github-owned') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->getHostedRunnersGithubOwnedImagesForEnterprise($params); + } + } elseif ($pathChunks[6] === 'partner') { + if ($call === 'GET /enterprises/{enterprise}/actions/hosted-runners/images/partner') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->getHostedRunnersPartnerImagesForEnterprise($params); + } + } + } + } elseif ($pathChunks[4] === 'runner-groups') { if ($pathChunks[5] === '{runner_group_id}') { if ($pathChunks[6] === 'organizations') { if ($call === 'GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations') { @@ -125,7 +137,19 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A } elseif ($pathChunks[1] === 'orgs') { if ($pathChunks[2] === '{org}') { if ($pathChunks[3] === 'actions') { - if ($pathChunks[4] === 'oidc') { + if ($pathChunks[4] === 'hosted-runners') { + if ($pathChunks[5] === 'images') { + if ($pathChunks[6] === 'github-owned') { + if ($call === 'GET /orgs/{org}/actions/hosted-runners/images/github-owned') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->getHostedRunnersGithubOwnedImagesForOrg($params); + } + } elseif ($pathChunks[6] === 'partner') { + if ($call === 'GET /orgs/{org}/actions/hosted-runners/images/partner') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->getHostedRunnersPartnerImagesForOrg($params); + } + } + } + } elseif ($pathChunks[4] === 'oidc') { if ($pathChunks[5] === 'customization') { if ($pathChunks[6] === 'sub') { if ($call === 'GET /orgs/{org}/actions/oidc/customization/sub') { @@ -135,7 +159,11 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A } } elseif ($pathChunks[4] === 'runner-groups') { if ($pathChunks[5] === '{runner_group_id}') { - if ($pathChunks[6] === 'repositories') { + if ($pathChunks[6] === 'hosted-runners') { + if ($call === 'GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->listGithubHostedRunnersInGroupForOrg($params); + } + } elseif ($pathChunks[6] === 'repositories') { if ($call === 'GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories') { return $this->routers->internal🔀Router🔀Get🔀Actions()->listRepoAccessToSelfHostedRunnerGroupInOrg($params); } diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php index f3e9401ed27..f7112d64bb0 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php @@ -9,6 +9,8 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheList; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageOrgEnterprise; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsGetDefaultWorkflowPermissions; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsPublicKey; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsRepositoryPermissions; use ApiClients\Client\GitHubEnterpriseCloud\Schema\AdvancedSecurityActiveCommitters; @@ -51,8 +53,8 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Label; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise\Response\ApplicationJson\Ok; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json; use ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsSecret; use ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsVariable; use ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationDependabotSecret; @@ -86,8 +88,8 @@ 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|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|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|CodeSecurityConfiguration|WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|CustomProperty|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|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ApiInsightsSummaryStats|Json|CopilotSeatDetails|Package|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 + /** @return |Schema\ActionsHostedRunnerLimits|Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok|Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok|Schema\ActionsHostedRunner|Observable|Observable|Observable|Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json|Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json|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|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|ActionsHostedRunnerLimits|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok|ActionsHostedRunner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|GetAuditLogStreamConfig|CodeSecurityConfiguration|WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|CustomProperty|ActionsBillingUsage|AdvancedSecurityActiveCommitters|GetAllCostCenters|PackagesBillingUsage|CombinedBillingUsage|BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ApiInsightsSummaryStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|CopilotSeatDetails|Package|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] === '') { if ($pathChunks[1] === 'enterprises') { @@ -99,6 +101,24 @@ public function call(string $call, array $params, array $pathChunks): ActionsCac return $this->routers->internal🔀Router🔀Get🔀Actions()->getActionsCacheUsageForEnterprise($params); } } + } elseif ($pathChunks[4] === 'hosted-runners') { + if ($pathChunks[5] === 'limits') { + if ($call === 'GET /enterprises/{enterprise}/actions/hosted-runners/limits') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->getHostedRunnersLimitsForEnterprise($params); + } + } elseif ($pathChunks[5] === 'machine-sizes') { + if ($call === 'GET /enterprises/{enterprise}/actions/hosted-runners/machine-sizes') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->getHostedRunnersMachineSpecsForEnterprise($params); + } + } elseif ($pathChunks[5] === 'platforms') { + if ($call === 'GET /enterprises/{enterprise}/actions/hosted-runners/platforms') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->getHostedRunnersPlatformsForEnterprise($params); + } + } elseif ($pathChunks[5] === '{hosted_runner_id}') { + if ($call === 'GET /enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->getHostedRunnerForEnterprise($params); + } + } } elseif ($pathChunks[4] === 'permissions') { if ($pathChunks[5] === 'organizations') { if ($call === 'GET /enterprises/{enterprise}/actions/permissions/organizations') { @@ -233,6 +253,24 @@ public function call(string $call, array $params, array $pathChunks): ActionsCac return $this->routers->internal🔀Router🔀Get🔀Actions()->getActionsCacheUsageByRepoForOrg($params); } } + } elseif ($pathChunks[4] === 'hosted-runners') { + if ($pathChunks[5] === 'limits') { + if ($call === 'GET /orgs/{org}/actions/hosted-runners/limits') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->getHostedRunnersLimitsForOrg($params); + } + } elseif ($pathChunks[5] === 'machine-sizes') { + if ($call === 'GET /orgs/{org}/actions/hosted-runners/machine-sizes') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->getHostedRunnersMachineSpecsForOrg($params); + } + } elseif ($pathChunks[5] === 'platforms') { + if ($call === 'GET /orgs/{org}/actions/hosted-runners/platforms') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->getHostedRunnersPlatformsForOrg($params); + } + } elseif ($pathChunks[5] === '{hosted_runner_id}') { + if ($call === 'GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->getHostedRunnerForOrg($params); + } + } } elseif ($pathChunks[4] === 'permissions') { if ($pathChunks[5] === 'repositories') { if ($call === 'GET /orgs/{org}/actions/permissions/repositories') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Dependabot.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Dependabot.php index 41acdcc214d..781181c7309 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Dependabot.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Dependabot.php @@ -21,7 +21,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepoListing(array $params): iterable|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php index e23026fc5e3..9bcdddf48e6 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|Observable|WithoutBody|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|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Actions.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Actions.php index 5888d6ce5c9..23ce4ecba92 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Actions.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Actions.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Router\Patch; use ApiClients\Client\GitHubEnterpriseCloud\Internal; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsOrg; use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface; use ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody; @@ -20,6 +21,46 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + public function updateHostedRunnerForEnterprise(array $params): ActionsHostedRunner + { + $arguments = []; + if (array_key_exists('enterprise', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: enterprise'); + } + + $arguments['enterprise'] = $params['enterprise']; + unset($params['enterprise']); + if (array_key_exists('hosted_runner_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: hosted_runner_id'); + } + + $arguments['hosted_runner_id'] = $params['hosted_runner_id']; + unset($params['hosted_runner_id']); + $operator = new Internal\Operator\Actions\UpdateHostedRunnerForEnterprise($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners🌀HostedRunnerId()); + + return $operator->call($arguments['enterprise'], $arguments['hosted_runner_id'], $params); + } + + public function updateHostedRunnerForOrg(array $params): ActionsHostedRunner + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('hosted_runner_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: hosted_runner_id'); + } + + $arguments['hosted_runner_id'] = $params['hosted_runner_id']; + unset($params['hosted_runner_id']); + $operator = new Internal\Operator\Actions\UpdateHostedRunnerForOrg($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners🌀HostedRunnerId()); + + return $operator->call($arguments['org'], $arguments['hosted_runner_id'], $params); + } + /** @return */ public function updateSelfHostedRunnerGroupForOrg(array $params): RunnerGroupsOrg { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Six.php index cf6f0197ec5..b8e03165c54 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Six.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Router\Patch; use ApiClients\Client\GitHubEnterpriseCloud\Internal\Routers; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuitePreference; @@ -34,13 +35,20 @@ public function __construct(private Routers $routers) { } - public function call(string $call, array $params, array $pathChunks): RunnerGroupsEnterprise|CodeSecurityConfiguration|WithoutBody|RunnerGroupsOrg|WebhookConfig|ExternalGroup|CheckRun|CheckSuitePreference|EmptyObject|CodeScanningDefaultSetupUpdateResponse|CommitComment|Hook|Import|RepositoryInvitation|Issue|BasicError|Label|Milestone|PullRequest|Release|RepositoryAdvisory + /** @return Schema\ActionsHostedRunner| */ + public function call(string $call, array $params, array $pathChunks): ActionsHostedRunner|RunnerGroupsEnterprise|CodeSecurityConfiguration|WithoutBody|RunnerGroupsOrg|WebhookConfig|ExternalGroup|CheckRun|CheckSuitePreference|EmptyObject|CodeScanningDefaultSetupUpdateResponse|CommitComment|Hook|Import|RepositoryInvitation|Issue|BasicError|Label|Milestone|PullRequest|Release|RepositoryAdvisory { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'enterprises') { if ($pathChunks[2] === '{enterprise}') { if ($pathChunks[3] === 'actions') { - if ($pathChunks[4] === 'runner-groups') { + if ($pathChunks[4] === 'hosted-runners') { + if ($pathChunks[5] === '{hosted_runner_id}') { + if ($call === 'PATCH /enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}') { + return $this->routers->internal🔀Router🔀Patch🔀Actions()->updateHostedRunnerForEnterprise($params); + } + } + } elseif ($pathChunks[4] === 'runner-groups') { if ($pathChunks[5] === '{runner_group_id}') { if ($call === 'PATCH /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}') { return $this->routers->internal🔀Router🔀Patch🔀EnterpriseAdmin()->updateSelfHostedRunnerGroupForEnterprise($params); @@ -60,7 +68,13 @@ public function call(string $call, array $params, array $pathChunks): RunnerGrou } elseif ($pathChunks[1] === 'orgs') { if ($pathChunks[2] === '{org}') { if ($pathChunks[3] === 'actions') { - if ($pathChunks[4] === 'runner-groups') { + if ($pathChunks[4] === 'hosted-runners') { + if ($pathChunks[5] === '{hosted_runner_id}') { + if ($call === 'PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}') { + return $this->routers->internal🔀Router🔀Patch🔀Actions()->updateHostedRunnerForOrg($params); + } + } + } elseif ($pathChunks[4] === 'runner-groups') { if ($pathChunks[5] === '{runner_group_id}') { if ($call === 'PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}') { return $this->routers->internal🔀Router🔀Patch🔀Actions()->updateSelfHostedRunnerGroupForOrg($params); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Actions.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Actions.php index 873e5109b5d..771c21a96e7 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Actions.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Actions.php @@ -6,6 +6,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Internal; use ApiClients\Client\GitHubEnterpriseCloud\Schema; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\AuthenticationToken; use ApiClients\Client\GitHubEnterpriseCloud\Schema\EmptyObject; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GenerateRunnerJitconfigForEnterprise\Response\ApplicationJson\Created; @@ -106,6 +107,34 @@ public function createRepoVariable(array $params): EmptyObject return $operator->call($arguments['owner'], $arguments['repo'], $params); } + public function createHostedRunnerForEnterprise(array $params): ActionsHostedRunner + { + $arguments = []; + if (array_key_exists('enterprise', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: enterprise'); + } + + $arguments['enterprise'] = $params['enterprise']; + unset($params['enterprise']); + $operator = new Internal\Operator\Actions\CreateHostedRunnerForEnterprise($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Actions🌀HostedRunners()); + + return $operator->call($arguments['enterprise'], $params); + } + + public function createHostedRunnerForOrg(array $params): ActionsHostedRunner + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + $operator = new Internal\Operator\Actions\CreateHostedRunnerForOrg($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀HostedRunners()); + + return $operator->call($arguments['org'], $params); + } + /** @return */ public function createSelfHostedRunnerGroupForOrg(array $params): RunnerGroupsOrg { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Five.php index 2b4f704600d..b706f051529 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Five.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Router\Post; use ApiClients\Client\GitHubEnterpriseCloud\Internal\Routers; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Authorization; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Autolink; use ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun; @@ -46,7 +47,8 @@ public function __construct(private Routers $routers) { } - public function call(string $call, array $params, array $pathChunks): InstallationToken|Authorization|RunnerGroupsEnterprise|GetAuditLogStreamConfig|CodeSecurityConfiguration|WithoutBody|RunnerGroupsOrg|EmptyObject|ProjectCard|Json|Created|Autolink|CheckRun|CheckSuite|Codespace|Deployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|FullRepository|Hook|Issue|DeployKey|Label|MergedUpstream|Commit|Milestone|Page|Project|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|MinimalRepository|CodespaceExportDetails|CodespaceWithFullRepository + /** @return |Schema\ActionsHostedRunner */ + public function call(string $call, array $params, array $pathChunks): InstallationToken|Authorization|ActionsHostedRunner|RunnerGroupsEnterprise|GetAuditLogStreamConfig|CodeSecurityConfiguration|WithoutBody|RunnerGroupsOrg|EmptyObject|ProjectCard|Json|Created|Autolink|CheckRun|CheckSuite|Codespace|Deployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|FullRepository|Hook|Issue|DeployKey|Label|MergedUpstream|Commit|Milestone|Page|Project|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|MinimalRepository|CodespaceExportDetails|CodespaceWithFullRepository { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'app') { @@ -72,7 +74,11 @@ public function call(string $call, array $params, array $pathChunks): Installati } elseif ($pathChunks[1] === 'enterprises') { if ($pathChunks[2] === '{enterprise}') { if ($pathChunks[3] === 'actions') { - if ($pathChunks[4] === 'runner-groups') { + if ($pathChunks[4] === 'hosted-runners') { + if ($call === 'POST /enterprises/{enterprise}/actions/hosted-runners') { + return $this->routers->internal🔀Router🔀Post🔀Actions()->createHostedRunnerForEnterprise($params); + } + } elseif ($pathChunks[4] === 'runner-groups') { if ($call === 'POST /enterprises/{enterprise}/actions/runner-groups') { return $this->routers->internal🔀Router🔀Post🔀EnterpriseAdmin()->createSelfHostedRunnerGroupForEnterprise($params); } @@ -100,7 +106,11 @@ public function call(string $call, array $params, array $pathChunks): Installati } elseif ($pathChunks[1] === 'orgs') { if ($pathChunks[2] === '{org}') { if ($pathChunks[3] === 'actions') { - if ($pathChunks[4] === 'runner-groups') { + if ($pathChunks[4] === 'hosted-runners') { + if ($call === 'POST /orgs/{org}/actions/hosted-runners') { + return $this->routers->internal🔀Router🔀Post🔀Actions()->createHostedRunnerForOrg($params); + } + } elseif ($pathChunks[4] === 'runner-groups') { if ($call === 'POST /orgs/{org}/actions/runner-groups') { return $this->routers->internal🔀Router🔀Post🔀Actions()->createSelfHostedRunnerGroupForOrg($params); } diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Routers.php b/clients/GitHubEnterpriseCloud/src/Internal/Routers.php index 900253a40f6..89a1fde4e5e 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Routers.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Routers.php @@ -37,11 +37,11 @@ final class Routers private Internal\Router\Get\AnnouncementBanners|null $internal🔀Router🔀Get🔀AnnouncementBanners = null; private Internal\Router\Get\SecretScanning|null $internal🔀Router🔀Get🔀SecretScanning = null; private Internal\Router\Get\PrivateRegistries|null $internal🔀Router🔀Get🔀PrivateRegistries = null; + private Internal\Router\Get\Actions|null $internal🔀Router🔀Get🔀Actions = null; private Internal\Router\Get\CodeScanning|null $internal🔀Router🔀Get🔀CodeScanning = null; private Internal\Router\Get\CodeSecurity|null $internal🔀Router🔀Get🔀CodeSecurity = null; private Internal\Router\Get\Copilot|null $internal🔀Router🔀Get🔀Copilot = null; private Internal\Router\Get\Dependabot|null $internal🔀Router🔀Get🔀Dependabot = null; - private Internal\Router\Get\Actions|null $internal🔀Router🔀Get🔀Actions = null; private Internal\Router\Get\Pulls|null $internal🔀Router🔀Get🔀Pulls = null; private Internal\Router\Get\Billing|null $internal🔀Router🔀Get🔀Billing = null; private Internal\Router\Get\ApiInsights|null $internal🔀Router🔀Get🔀ApiInsights = null; @@ -86,9 +86,9 @@ final class Routers private Internal\Router\Patch\Repos|null $internal🔀Router🔀Patch🔀Repos = null; private Internal\Router\Patch\Codespaces|null $internal🔀Router🔀Patch🔀Codespaces = null; private Internal\Router\Patch\Users|null $internal🔀Router🔀Patch🔀Users = null; + private Internal\Router\Patch\Actions|null $internal🔀Router🔀Patch🔀Actions = null; private Internal\Router\Patch\EnterpriseAdmin|null $internal🔀Router🔀Patch🔀EnterpriseAdmin = null; private Internal\Router\Patch\CodeSecurity|null $internal🔀Router🔀Patch🔀CodeSecurity = null; - private Internal\Router\Patch\Actions|null $internal🔀Router🔀Patch🔀Actions = null; private Internal\Router\Patch\Orgs|null $internal🔀Router🔀Patch🔀Orgs = null; private Internal\Router\Patch\Teams|null $internal🔀Router🔀Patch🔀Teams = null; private Internal\Router\Patch\Checks|null $internal🔀Router🔀Patch🔀Checks = null; @@ -138,16 +138,16 @@ final class Routers private Internal\Router\Delete\Teams|null $internal🔀Router🔀Delete🔀Teams = null; private Internal\Router\Delete\Migrations|null $internal🔀Router🔀Delete🔀Migrations = null; private Internal\Router\Delete\Packages|null $internal🔀Router🔀Delete🔀Packages = null; - private Internal\Router\Delete\EnterpriseAdmin|null $internal🔀Router🔀Delete🔀EnterpriseAdmin = null; private Internal\Router\Delete\Actions|null $internal🔀Router🔀Delete🔀Actions = null; - private Internal\Router\Delete\CodeScanning|null $internal🔀Router🔀Delete🔀CodeScanning = null; + private Internal\Router\Delete\EnterpriseAdmin|null $internal🔀Router🔀Delete🔀EnterpriseAdmin = null; + private Internal\Router\Delete\CodeSecurity|null $internal🔀Router🔀Delete🔀CodeSecurity = null; + private Internal\Router\Delete\Copilot|null $internal🔀Router🔀Delete🔀Copilot = null; private Internal\Router\Delete\Dependabot|null $internal🔀Router🔀Delete🔀Dependabot = null; - private Internal\Router\Delete\Git|null $internal🔀Router🔀Delete🔀Git = null; private Internal\Router\Delete\Issues|null $internal🔀Router🔀Delete🔀Issues = null; + private Internal\Router\Delete\CodeScanning|null $internal🔀Router🔀Delete🔀CodeScanning = null; + private Internal\Router\Delete\Git|null $internal🔀Router🔀Delete🔀Git = null; private Internal\Router\Delete\Pulls|null $internal🔀Router🔀Delete🔀Pulls = null; private Internal\Router\Delete\Scim|null $internal🔀Router🔀Delete🔀Scim = null; - private Internal\Router\Delete\CodeSecurity|null $internal🔀Router🔀Delete🔀CodeSecurity = null; - private Internal\Router\Delete\Copilot|null $internal🔀Router🔀Delete🔀Copilot = null; private Internal\Router\Delete\Billing|null $internal🔀Router🔀Delete🔀Billing = null; private Internal\Router\Delete\Reactions|null $internal🔀Router🔀Delete🔀Reactions = null; private Internal\Router\Put\Apps|null $internal🔀Router🔀Put🔀Apps = null; @@ -411,6 +411,15 @@ public function internal🔀Router🔀Get🔀PrivateRegistries(): Internal\Route return $this->internal🔀Router🔀Get🔀PrivateRegistries; } + public function internal🔀Router🔀Get🔀Actions(): Internal\Router\Get\Actions + { + if ($this->internal🔀Router🔀Get🔀Actions instanceof Internal\Router\Get\Actions === false) { + $this->internal🔀Router🔀Get🔀Actions = new Internal\Router\Get\Actions(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + } + + return $this->internal🔀Router🔀Get🔀Actions; + } + public function internal🔀Router🔀Get🔀CodeScanning(): Internal\Router\Get\CodeScanning { if ($this->internal🔀Router🔀Get🔀CodeScanning instanceof Internal\Router\Get\CodeScanning === false) { @@ -447,15 +456,6 @@ public function internal🔀Router🔀Get🔀Dependabot(): Internal\Router\Get\D return $this->internal🔀Router🔀Get🔀Dependabot; } - public function internal🔀Router🔀Get🔀Actions(): Internal\Router\Get\Actions - { - if ($this->internal🔀Router🔀Get🔀Actions instanceof Internal\Router\Get\Actions === false) { - $this->internal🔀Router🔀Get🔀Actions = new Internal\Router\Get\Actions(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); - } - - return $this->internal🔀Router🔀Get🔀Actions; - } - public function internal🔀Router🔀Get🔀Pulls(): Internal\Router\Get\Pulls { if ($this->internal🔀Router🔀Get🔀Pulls instanceof Internal\Router\Get\Pulls === false) { @@ -852,6 +852,15 @@ public function internal🔀Router🔀Patch🔀Users(): Internal\Router\Patch\Us return $this->internal🔀Router🔀Patch🔀Users; } + public function internal🔀Router🔀Patch🔀Actions(): Internal\Router\Patch\Actions + { + if ($this->internal🔀Router🔀Patch🔀Actions instanceof Internal\Router\Patch\Actions === false) { + $this->internal🔀Router🔀Patch🔀Actions = new Internal\Router\Patch\Actions(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + } + + return $this->internal🔀Router🔀Patch🔀Actions; + } + public function internal🔀Router🔀Patch🔀EnterpriseAdmin(): Internal\Router\Patch\EnterpriseAdmin { if ($this->internal🔀Router🔀Patch🔀EnterpriseAdmin instanceof Internal\Router\Patch\EnterpriseAdmin === false) { @@ -870,15 +879,6 @@ public function internal🔀Router🔀Patch🔀CodeSecurity(): Internal\Router\P return $this->internal🔀Router🔀Patch🔀CodeSecurity; } - public function internal🔀Router🔀Patch🔀Actions(): Internal\Router\Patch\Actions - { - if ($this->internal🔀Router🔀Patch🔀Actions instanceof Internal\Router\Patch\Actions === false) { - $this->internal🔀Router🔀Patch🔀Actions = new Internal\Router\Patch\Actions(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); - } - - return $this->internal🔀Router🔀Patch🔀Actions; - } - public function internal🔀Router🔀Patch🔀Orgs(): Internal\Router\Patch\Orgs { if ($this->internal🔀Router🔀Patch🔀Orgs instanceof Internal\Router\Patch\Orgs === false) { @@ -1320,6 +1320,15 @@ public function internal🔀Router🔀Delete🔀Packages(): Internal\Router\Dele return $this->internal🔀Router🔀Delete🔀Packages; } + public function internal🔀Router🔀Delete🔀Actions(): Internal\Router\Delete\Actions + { + if ($this->internal🔀Router🔀Delete🔀Actions instanceof Internal\Router\Delete\Actions === false) { + $this->internal🔀Router🔀Delete🔀Actions = new Internal\Router\Delete\Actions(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + } + + return $this->internal🔀Router🔀Delete🔀Actions; + } + public function internal🔀Router🔀Delete🔀EnterpriseAdmin(): Internal\Router\Delete\EnterpriseAdmin { if ($this->internal🔀Router🔀Delete🔀EnterpriseAdmin instanceof Internal\Router\Delete\EnterpriseAdmin === false) { @@ -1329,22 +1338,22 @@ public function internal🔀Router🔀Delete🔀EnterpriseAdmin(): Internal\Rout return $this->internal🔀Router🔀Delete🔀EnterpriseAdmin; } - public function internal🔀Router🔀Delete🔀Actions(): Internal\Router\Delete\Actions + public function internal🔀Router🔀Delete🔀CodeSecurity(): Internal\Router\Delete\CodeSecurity { - if ($this->internal🔀Router🔀Delete🔀Actions instanceof Internal\Router\Delete\Actions === false) { - $this->internal🔀Router🔀Delete🔀Actions = new Internal\Router\Delete\Actions(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + if ($this->internal🔀Router🔀Delete🔀CodeSecurity instanceof Internal\Router\Delete\CodeSecurity === false) { + $this->internal🔀Router🔀Delete🔀CodeSecurity = new Internal\Router\Delete\CodeSecurity(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); } - return $this->internal🔀Router🔀Delete🔀Actions; + return $this->internal🔀Router🔀Delete🔀CodeSecurity; } - public function internal🔀Router🔀Delete🔀CodeScanning(): Internal\Router\Delete\CodeScanning + public function internal🔀Router🔀Delete🔀Copilot(): Internal\Router\Delete\Copilot { - if ($this->internal🔀Router🔀Delete🔀CodeScanning instanceof Internal\Router\Delete\CodeScanning === false) { - $this->internal🔀Router🔀Delete🔀CodeScanning = new Internal\Router\Delete\CodeScanning(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + if ($this->internal🔀Router🔀Delete🔀Copilot instanceof Internal\Router\Delete\Copilot === false) { + $this->internal🔀Router🔀Delete🔀Copilot = new Internal\Router\Delete\Copilot(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); } - return $this->internal🔀Router🔀Delete🔀CodeScanning; + return $this->internal🔀Router🔀Delete🔀Copilot; } public function internal🔀Router🔀Delete🔀Dependabot(): Internal\Router\Delete\Dependabot @@ -1356,15 +1365,6 @@ public function internal🔀Router🔀Delete🔀Dependabot(): Internal\Router\De return $this->internal🔀Router🔀Delete🔀Dependabot; } - public function internal🔀Router🔀Delete🔀Git(): Internal\Router\Delete\Git - { - if ($this->internal🔀Router🔀Delete🔀Git instanceof Internal\Router\Delete\Git === false) { - $this->internal🔀Router🔀Delete🔀Git = new Internal\Router\Delete\Git(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); - } - - return $this->internal🔀Router🔀Delete🔀Git; - } - public function internal🔀Router🔀Delete🔀Issues(): Internal\Router\Delete\Issues { if ($this->internal🔀Router🔀Delete🔀Issues instanceof Internal\Router\Delete\Issues === false) { @@ -1374,40 +1374,40 @@ public function internal🔀Router🔀Delete🔀Issues(): Internal\Router\Delete return $this->internal🔀Router🔀Delete🔀Issues; } - public function internal🔀Router🔀Delete🔀Pulls(): Internal\Router\Delete\Pulls + public function internal🔀Router🔀Delete🔀CodeScanning(): Internal\Router\Delete\CodeScanning { - if ($this->internal🔀Router🔀Delete🔀Pulls instanceof Internal\Router\Delete\Pulls === false) { - $this->internal🔀Router🔀Delete🔀Pulls = new Internal\Router\Delete\Pulls(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + if ($this->internal🔀Router🔀Delete🔀CodeScanning instanceof Internal\Router\Delete\CodeScanning === false) { + $this->internal🔀Router🔀Delete🔀CodeScanning = new Internal\Router\Delete\CodeScanning(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); } - return $this->internal🔀Router🔀Delete🔀Pulls; + return $this->internal🔀Router🔀Delete🔀CodeScanning; } - public function internal🔀Router🔀Delete🔀Scim(): Internal\Router\Delete\Scim + public function internal🔀Router🔀Delete🔀Git(): Internal\Router\Delete\Git { - if ($this->internal🔀Router🔀Delete🔀Scim instanceof Internal\Router\Delete\Scim === false) { - $this->internal🔀Router🔀Delete🔀Scim = new Internal\Router\Delete\Scim(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + if ($this->internal🔀Router🔀Delete🔀Git instanceof Internal\Router\Delete\Git === false) { + $this->internal🔀Router🔀Delete🔀Git = new Internal\Router\Delete\Git(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); } - return $this->internal🔀Router🔀Delete🔀Scim; + return $this->internal🔀Router🔀Delete🔀Git; } - public function internal🔀Router🔀Delete🔀CodeSecurity(): Internal\Router\Delete\CodeSecurity + public function internal🔀Router🔀Delete🔀Pulls(): Internal\Router\Delete\Pulls { - if ($this->internal🔀Router🔀Delete🔀CodeSecurity instanceof Internal\Router\Delete\CodeSecurity === false) { - $this->internal🔀Router🔀Delete🔀CodeSecurity = new Internal\Router\Delete\CodeSecurity(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + if ($this->internal🔀Router🔀Delete🔀Pulls instanceof Internal\Router\Delete\Pulls === false) { + $this->internal🔀Router🔀Delete🔀Pulls = new Internal\Router\Delete\Pulls(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); } - return $this->internal🔀Router🔀Delete🔀CodeSecurity; + return $this->internal🔀Router🔀Delete🔀Pulls; } - public function internal🔀Router🔀Delete🔀Copilot(): Internal\Router\Delete\Copilot + public function internal🔀Router🔀Delete🔀Scim(): Internal\Router\Delete\Scim { - if ($this->internal🔀Router🔀Delete🔀Copilot instanceof Internal\Router\Delete\Copilot === false) { - $this->internal🔀Router🔀Delete🔀Copilot = new Internal\Router\Delete\Copilot(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + if ($this->internal🔀Router🔀Delete🔀Scim instanceof Internal\Router\Delete\Scim === false) { + $this->internal🔀Router🔀Delete🔀Scim = new Internal\Router\Delete\Scim(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); } - return $this->internal🔀Router🔀Delete🔀Copilot; + return $this->internal🔀Router🔀Delete🔀Scim; } public function internal🔀Router🔀Delete🔀Billing(): Internal\Router\Delete\Billing diff --git a/clients/GitHubEnterpriseCloud/src/Operation/Actions.php b/clients/GitHubEnterpriseCloud/src/Operation/Actions.php index 4ee9b354410..6ca164f5038 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Actions.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Actions.php @@ -10,6 +10,8 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageByRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageOrgEnterprise; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsGetDefaultWorkflowPermissions; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsOrganizationPermissions; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsPublicKey; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsRepositoryPermissions; @@ -22,8 +24,8 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\Job; use ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSubRepo; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GenerateRunnerJitconfigForEnterprise\Response\ApplicationJson\Created; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok; use ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsSecret; use ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsVariable; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Runner; @@ -47,6 +49,56 @@ public function getActionsCacheUsageForEnterprise(string $enterprise): ActionsCa return $this->operators->actions👷GetActionsCacheUsageForEnterprise()->call($enterprise); } + public function listHostedRunnersForEnterprise(string $enterprise, int $perPage, int $page): Ok + { + return $this->operators->actions👷ListHostedRunnersForEnterprise()->call($enterprise, $perPage, $page); + } + + public function createHostedRunnerForEnterprise(string $enterprise, array $params): ActionsHostedRunner + { + return $this->operators->actions👷CreateHostedRunnerForEnterprise()->call($enterprise, $params); + } + + public function getHostedRunnersGithubOwnedImagesForEnterprise(string $enterprise): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok + { + return $this->operators->actions👷GetHostedRunnersGithubOwnedImagesForEnterprise()->call($enterprise); + } + + public function getHostedRunnersPartnerImagesForEnterprise(string $enterprise): Json + { + return $this->operators->actions👷GetHostedRunnersPartnerImagesForEnterprise()->call($enterprise); + } + + public function getHostedRunnersLimitsForEnterprise(string $enterprise): ActionsHostedRunnerLimits + { + return $this->operators->actions👷GetHostedRunnersLimitsForEnterprise()->call($enterprise); + } + + public function getHostedRunnersMachineSpecsForEnterprise(string $enterprise): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok + { + return $this->operators->actions👷GetHostedRunnersMachineSpecsForEnterprise()->call($enterprise); + } + + public function getHostedRunnersPlatformsForEnterprise(string $enterprise): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok + { + return $this->operators->actions👷GetHostedRunnersPlatformsForEnterprise()->call($enterprise); + } + + public function getHostedRunnerForEnterprise(string $enterprise, int $hostedRunnerId): ActionsHostedRunner + { + return $this->operators->actions👷GetHostedRunnerForEnterprise()->call($enterprise, $hostedRunnerId); + } + + public function deleteHostedRunnerForEnterprise(string $enterprise, int $hostedRunnerId): ActionsHostedRunner + { + return $this->operators->actions👷DeleteHostedRunnerForEnterprise()->call($enterprise, $hostedRunnerId); + } + + public function updateHostedRunnerForEnterprise(string $enterprise, int $hostedRunnerId, array $params): ActionsHostedRunner + { + return $this->operators->actions👷UpdateHostedRunnerForEnterprise()->call($enterprise, $hostedRunnerId, $params); + } + /** @return */ public function setActionsOidcCustomIssuerPolicyForEnterprise(string $enterprise, array $params): WithoutBody { @@ -78,11 +130,61 @@ public function getActionsCacheUsageForOrg(string $org): ActionsCacheUsageOrgEnt } /** @return */ - public function getActionsCacheUsageByRepoForOrg(string $org, int $perPage, int $page): Ok + public function getActionsCacheUsageByRepoForOrg(string $org, int $perPage, int $page): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok { return $this->operators->actions👷GetActionsCacheUsageByRepoForOrg()->call($org, $perPage, $page); } + public function listHostedRunnersForOrg(string $org, int $perPage, int $page): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json + { + return $this->operators->actions👷ListHostedRunnersForOrg()->call($org, $perPage, $page); + } + + public function createHostedRunnerForOrg(string $org, array $params): ActionsHostedRunner + { + return $this->operators->actions👷CreateHostedRunnerForOrg()->call($org, $params); + } + + public function getHostedRunnersGithubOwnedImagesForOrg(string $org): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json + { + return $this->operators->actions👷GetHostedRunnersGithubOwnedImagesForOrg()->call($org); + } + + public function getHostedRunnersPartnerImagesForOrg(string $org): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json + { + return $this->operators->actions👷GetHostedRunnersPartnerImagesForOrg()->call($org); + } + + public function getHostedRunnersLimitsForOrg(string $org): ActionsHostedRunnerLimits + { + return $this->operators->actions👷GetHostedRunnersLimitsForOrg()->call($org); + } + + public function getHostedRunnersMachineSpecsForOrg(string $org): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json + { + return $this->operators->actions👷GetHostedRunnersMachineSpecsForOrg()->call($org); + } + + public function getHostedRunnersPlatformsForOrg(string $org): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json + { + return $this->operators->actions👷GetHostedRunnersPlatformsForOrg()->call($org); + } + + public function getHostedRunnerForOrg(string $org, int $hostedRunnerId): ActionsHostedRunner + { + return $this->operators->actions👷GetHostedRunnerForOrg()->call($org, $hostedRunnerId); + } + + public function deleteHostedRunnerForOrg(string $org, int $hostedRunnerId): ActionsHostedRunner + { + return $this->operators->actions👷DeleteHostedRunnerForOrg()->call($org, $hostedRunnerId); + } + + public function updateHostedRunnerForOrg(string $org, int $hostedRunnerId, array $params): ActionsHostedRunner + { + return $this->operators->actions👷UpdateHostedRunnerForOrg()->call($org, $hostedRunnerId, $params); + } + /** @return */ public function getGithubActionsPermissionsOrganization(string $org): ActionsOrganizationPermissions { @@ -173,6 +275,11 @@ public function updateSelfHostedRunnerGroupForOrg(string $org, int $runnerGroupI return $this->operators->actions👷UpdateSelfHostedRunnerGroupForOrg()->call($org, $runnerGroupId, $params); } + public function listGithubHostedRunnersInGroupForOrg(string $org, int $runnerGroupId, int $perPage, int $page): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok + { + return $this->operators->actions👷ListGithubHostedRunnersInGroupForOrg()->call($org, $runnerGroupId, $perPage, $page); + } + /** @return */ public function listRepoAccessToSelfHostedRunnerGroupInOrg(string $org, int $runnerGroupId, int $page, int $perPage): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok { @@ -198,7 +305,7 @@ public function removeRepoAccessToSelfHostedRunnerGroupInOrg(string $org, int $r } /** @return */ - public function listSelfHostedRunnersInGroupForOrg(string $org, int $runnerGroupId, int $perPage, int $page): Json + public function listSelfHostedRunnersInGroupForOrg(string $org, int $runnerGroupId, int $perPage, int $page): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json { return $this->operators->actions👷ListSelfHostedRunnersInGroupForOrg()->call($org, $runnerGroupId, $perPage, $page); } diff --git a/clients/GitHubEnterpriseCloud/src/Operation/Dependabot.php b/clients/GitHubEnterpriseCloud/src/Operation/Dependabot.php index 3f6f0a79bc9..e9614b69166 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Dependabot.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Dependabot.php @@ -21,13 +21,13 @@ public function __construct(private Internal\Operators $operators) { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForEnterprise(string $enterprise, string $state, string $severity, string $ecosystem, string $package, string $scope, string $before, string $after, int $last, string $sort, string $direction, int $first, int $perPage): iterable|WithoutBody { return $this->operators->dependabot👷ListAlertsForEnterprise()->call($enterprise, $state, $severity, $ecosystem, $package, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForOrg(string $org, string $state, string $severity, string $ecosystem, string $package, string $scope, string $before, string $after, int $last, string $sort, string $direction, int $first, int $perPage): iterable|WithoutBody { return $this->operators->dependabot👷ListAlertsForOrg()->call($org, $state, $severity, $ecosystem, $package, $scope, $before, $after, $last, $sort, $direction, $first, $perPage); @@ -87,13 +87,13 @@ public function removeSelectedRepoFromOrgSecret(string $org, string $secretName, return $this->operators->dependabot👷RemoveSelectedRepoFromOrgSecret()->call($org, $secretName, $repositoryId); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepo(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $scope, string $before, string $after, int $last, string $sort, string $direction, int $page, int $perPage, int $first): iterable|WithoutBody { return $this->operators->dependabot👷ListAlertsForRepo()->call($owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepoListing(string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $scope, string $before, string $after, int $last, string $sort, string $direction, int $page, int $perPage, int $first): iterable|WithoutBody { return $this->operators->dependabot👷ListAlertsForRepoListing()->call($owner, $repo, $state, $severity, $ecosystem, $package, $manifest, $scope, $before, $after, $last, $sort, $direction, $page, $perPage, $first); diff --git a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index 73c97dd7cd9..fd5a8f2fd27 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -199,6 +199,46 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve(''); } + if ($call === 'GET /enterprises/{enterprise}/actions/hosted-runners') { + return $this->typeResolver->resolve('Schema\\Operations\\Actions\\ListHostedRunnersForEnterprise\\Response\\ApplicationJson\\Ok'); + } + + if ($call === 'POST /enterprises/{enterprise}/actions/hosted-runners') { + return $this->typeResolver->resolve('Schema\\ActionsHostedRunner'); + } + + if ($call === 'GET /enterprises/{enterprise}/actions/hosted-runners/images/github-owned') { + return $this->typeResolver->resolve('Schema\\Operations\\Actions\\GetHostedRunnersGithubOwnedImagesForEnterprise\\Response\\ApplicationJson\\Ok'); + } + + if ($call === 'GET /enterprises/{enterprise}/actions/hosted-runners/images/partner') { + return $this->typeResolver->resolve('Schema\\Operations\\Actions\\GetHostedRunnersPartnerImagesForEnterprise\\Response\\ApplicationJson\\Ok\\Application\\Json'); + } + + if ($call === 'GET /enterprises/{enterprise}/actions/hosted-runners/limits') { + return $this->typeResolver->resolve('Schema\\ActionsHostedRunnerLimits'); + } + + if ($call === 'GET /enterprises/{enterprise}/actions/hosted-runners/machine-sizes') { + return $this->typeResolver->resolve('Schema\\Operations\\Actions\\GetHostedRunnersMachineSpecsForEnterprise\\Response\\ApplicationJson\\Ok'); + } + + if ($call === 'GET /enterprises/{enterprise}/actions/hosted-runners/platforms') { + return $this->typeResolver->resolve('Schema\\Operations\\Actions\\GetHostedRunnersPlatformsForEnterprise\\Response\\ApplicationJson\\Ok'); + } + + if ($call === 'GET /enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}') { + return $this->typeResolver->resolve('Schema\\ActionsHostedRunner'); + } + + if ($call === 'DELETE /enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}') { + return $this->typeResolver->resolve('Schema\\ActionsHostedRunner'); + } + + if ($call === 'PATCH /enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}') { + return $this->typeResolver->resolve('Schema\\ActionsHostedRunner'); + } + if ($call === 'PUT /enterprises/{enterprise}/actions/oidc/customization/issuer') { return $this->typeResolver->resolve(''); } @@ -464,7 +504,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /enterprises/{enterprise}/dependabot/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'GET /enterprises/{enterprise}/license-sync-status') { @@ -843,6 +883,46 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve(''); } + if ($call === 'GET /orgs/{org}/actions/hosted-runners') { + return $this->typeResolver->resolve('Schema\\Operations\\Actions\\ListHostedRunnersForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json'); + } + + if ($call === 'POST /orgs/{org}/actions/hosted-runners') { + return $this->typeResolver->resolve('Schema\\ActionsHostedRunner'); + } + + if ($call === 'GET /orgs/{org}/actions/hosted-runners/images/github-owned') { + return $this->typeResolver->resolve('Schema\\Operations\\Actions\\GetHostedRunnersGithubOwnedImagesForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json'); + } + + if ($call === 'GET /orgs/{org}/actions/hosted-runners/images/partner') { + return $this->typeResolver->resolve('Schema\\Operations\\Actions\\GetHostedRunnersPartnerImagesForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json'); + } + + if ($call === 'GET /orgs/{org}/actions/hosted-runners/limits') { + return $this->typeResolver->resolve('Schema\\ActionsHostedRunnerLimits'); + } + + if ($call === 'GET /orgs/{org}/actions/hosted-runners/machine-sizes') { + return $this->typeResolver->resolve('Schema\\Operations\\Actions\\GetHostedRunnersMachineSpecsForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json'); + } + + if ($call === 'GET /orgs/{org}/actions/hosted-runners/platforms') { + return $this->typeResolver->resolve('Schema\\Operations\\Actions\\GetHostedRunnersPlatformsForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json'); + } + + if ($call === 'GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}') { + return $this->typeResolver->resolve('Schema\\ActionsHostedRunner'); + } + + if ($call === 'DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}') { + return $this->typeResolver->resolve('Schema\\ActionsHostedRunner'); + } + + if ($call === 'PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}') { + return $this->typeResolver->resolve('Schema\\ActionsHostedRunner'); + } + if ($call === 'GET /orgs/{org}/actions/oidc/customization/sub') { return $this->typeResolver->resolve(''); } @@ -911,6 +991,10 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve(''); } + if ($call === 'GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners') { + return $this->typeResolver->resolve('Schema\\Operations\\Actions\\ListGithubHostedRunnersInGroupForOrg\\Response\\ApplicationJson\\Ok'); + } + if ($call === 'GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories') { return $this->typeResolver->resolve(''); } @@ -1300,7 +1384,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/dependabot/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'GET /orgs/{org}/dependabot/secrets') { @@ -3128,11 +3212,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/dependabot/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'LIST /repos/{owner}/{repo}/dependabot/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}') { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Actions/CreateHostedRunnerForEnterprise/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Actions/CreateHostedRunnerForEnterprise/Request/ApplicationJson.php new file mode 100644 index 00000000000..f434cc3c0cc --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Schema/Actions/CreateHostedRunnerForEnterprise/Request/ApplicationJson.php @@ -0,0 +1,100 @@ + 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunner::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', '/enterprises/generated/actions/hosted-runners', Argument::type('array'), json_encode(json_decode(Schema\Actions\CreateHostedRunnerForEnterprise\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\CreateHostedRunnerForEnterprise::OPERATION_MATCH, (static function (array $data): array { + $data['enterprise'] = 'generated'; + + return $data; + })(json_decode(Schema\Actions\CreateHostedRunnerForEnterprise\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\ActionsHostedRunner::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', '/enterprises/generated/actions/hosted-runners', Argument::type('array'), json_encode(json_decode(Schema\Actions\CreateHostedRunnerForEnterprise\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->createHostedRunnerForEnterprise('generated', json_decode(Schema\Actions\CreateHostedRunnerForEnterprise\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/CreateHostedRunnerForOrgTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/CreateHostedRunnerForOrgTest.php new file mode 100644 index 00000000000..2bb53beab04 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/CreateHostedRunnerForOrgTest.php @@ -0,0 +1,54 @@ + 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunner::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', '/orgs/generated/actions/hosted-runners', Argument::type('array'), json_encode(json_decode(Schema\Actions\CreateHostedRunnerForOrg\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\CreateHostedRunnerForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + + return $data; + })(json_decode(Schema\Actions\CreateHostedRunnerForOrg\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\ActionsHostedRunner::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', '/orgs/generated/actions/hosted-runners', Argument::type('array'), json_encode(json_decode(Schema\Actions\CreateHostedRunnerForOrg\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->createHostedRunnerForOrg('generated', json_decode(Schema\Actions\CreateHostedRunnerForOrg\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/DeleteHostedRunnerForEnterpriseTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/DeleteHostedRunnerForEnterpriseTest.php new file mode 100644 index 00000000000..2eb7cd48d1c --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/DeleteHostedRunnerForEnterpriseTest.php @@ -0,0 +1,55 @@ + 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunner::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', '/enterprises/generated/actions/hosted-runners/16', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\DeleteHostedRunnerForEnterprise::OPERATION_MATCH, (static function (array $data): array { + $data['enterprise'] = 'generated'; + $data['hosted_runner_id'] = 16; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_202_responseContentType_application_json_zero(): void + { + $response = new Response(202, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunner::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', '/enterprises/generated/actions/hosted-runners/16', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->deleteHostedRunnerForEnterprise('generated', 16); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/DeleteHostedRunnerForOrgTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/DeleteHostedRunnerForOrgTest.php new file mode 100644 index 00000000000..d0032a2e600 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/DeleteHostedRunnerForOrgTest.php @@ -0,0 +1,55 @@ + 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunner::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', '/orgs/generated/actions/hosted-runners/16', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\DeleteHostedRunnerForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['hosted_runner_id'] = 16; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_202_responseContentType_application_json_zero(): void + { + $response = new Response(202, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunner::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', '/orgs/generated/actions/hosted-runners/16', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->deleteHostedRunnerForOrg('generated', 16); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnerForEnterpriseTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnerForEnterpriseTest.php new file mode 100644 index 00000000000..f27e4bec535 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnerForEnterpriseTest.php @@ -0,0 +1,55 @@ + 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunner::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', '/enterprises/generated/actions/hosted-runners/16', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\GetHostedRunnerForEnterprise::OPERATION_MATCH, (static function (array $data): array { + $data['enterprise'] = 'generated'; + $data['hosted_runner_id'] = 16; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunner::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', '/enterprises/generated/actions/hosted-runners/16', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->getHostedRunnerForEnterprise('generated', 16); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnerForOrgTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnerForOrgTest.php new file mode 100644 index 00000000000..03fbde2197f --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnerForOrgTest.php @@ -0,0 +1,55 @@ + 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunner::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', '/orgs/generated/actions/hosted-runners/16', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\GetHostedRunnerForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['hosted_runner_id'] = 16; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunner::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', '/orgs/generated/actions/hosted-runners/16', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->getHostedRunnerForOrg('generated', 16); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForEnterpriseTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForEnterpriseTest.php new file mode 100644 index 00000000000..04aaac6449a --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForEnterpriseTest.php @@ -0,0 +1,54 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok::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', '/enterprises/generated/actions/hosted-runners/images/github-owned', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise::OPERATION_MATCH, (static function (array $data): array { + $data['enterprise'] = 'generated'; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok::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', '/enterprises/generated/actions/hosted-runners/images/github-owned', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->getHostedRunnersGithubOwnedImagesForEnterprise('generated'); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForOrgTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForOrgTest.php new file mode 100644 index 00000000000..95fbf8ff223 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersGithubOwnedImagesForOrgTest.php @@ -0,0 +1,54 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json::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', '/orgs/generated/actions/hosted-runners/images/github-owned', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\GetHostedRunnersGithubOwnedImagesForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json::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', '/orgs/generated/actions/hosted-runners/images/github-owned', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->getHostedRunnersGithubOwnedImagesForOrg('generated'); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersLimitsForEnterpriseTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersLimitsForEnterpriseTest.php new file mode 100644 index 00000000000..3f0c1728c5a --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersLimitsForEnterpriseTest.php @@ -0,0 +1,54 @@ + 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunnerLimits::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', '/enterprises/generated/actions/hosted-runners/limits', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\GetHostedRunnersLimitsForEnterprise::OPERATION_MATCH, (static function (array $data): array { + $data['enterprise'] = 'generated'; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunnerLimits::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', '/enterprises/generated/actions/hosted-runners/limits', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->getHostedRunnersLimitsForEnterprise('generated'); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersLimitsForOrgTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersLimitsForOrgTest.php new file mode 100644 index 00000000000..91b7082ded4 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersLimitsForOrgTest.php @@ -0,0 +1,54 @@ + 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunnerLimits::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', '/orgs/generated/actions/hosted-runners/limits', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\GetHostedRunnersLimitsForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunnerLimits::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', '/orgs/generated/actions/hosted-runners/limits', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->getHostedRunnersLimitsForOrg('generated'); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForEnterpriseTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForEnterpriseTest.php new file mode 100644 index 00000000000..9d2a1c3e77f --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForEnterpriseTest.php @@ -0,0 +1,54 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok::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', '/enterprises/generated/actions/hosted-runners/machine-sizes', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\GetHostedRunnersMachineSpecsForEnterprise::OPERATION_MATCH, (static function (array $data): array { + $data['enterprise'] = 'generated'; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok::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', '/enterprises/generated/actions/hosted-runners/machine-sizes', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->getHostedRunnersMachineSpecsForEnterprise('generated'); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForOrgTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForOrgTest.php new file mode 100644 index 00000000000..4279dd071ea --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersMachineSpecsForOrgTest.php @@ -0,0 +1,54 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json::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', '/orgs/generated/actions/hosted-runners/machine-sizes', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\GetHostedRunnersMachineSpecsForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json::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', '/orgs/generated/actions/hosted-runners/machine-sizes', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->getHostedRunnersMachineSpecsForOrg('generated'); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForEnterpriseTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForEnterpriseTest.php new file mode 100644 index 00000000000..1619e1b9420 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForEnterpriseTest.php @@ -0,0 +1,54 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json::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', '/enterprises/generated/actions/hosted-runners/images/partner', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\GetHostedRunnersPartnerImagesForEnterprise::OPERATION_MATCH, (static function (array $data): array { + $data['enterprise'] = 'generated'; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json::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', '/enterprises/generated/actions/hosted-runners/images/partner', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->getHostedRunnersPartnerImagesForEnterprise('generated'); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForOrgTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForOrgTest.php new file mode 100644 index 00000000000..63fd41b7726 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPartnerImagesForOrgTest.php @@ -0,0 +1,54 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json::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', '/orgs/generated/actions/hosted-runners/images/partner', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\GetHostedRunnersPartnerImagesForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json::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', '/orgs/generated/actions/hosted-runners/images/partner', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->getHostedRunnersPartnerImagesForOrg('generated'); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPlatformsForEnterpriseTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPlatformsForEnterpriseTest.php new file mode 100644 index 00000000000..5669f3bb3ec --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPlatformsForEnterpriseTest.php @@ -0,0 +1,54 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok::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', '/enterprises/generated/actions/hosted-runners/platforms', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\GetHostedRunnersPlatformsForEnterprise::OPERATION_MATCH, (static function (array $data): array { + $data['enterprise'] = 'generated'; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok::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', '/enterprises/generated/actions/hosted-runners/platforms', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->getHostedRunnersPlatformsForEnterprise('generated'); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPlatformsForOrgTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPlatformsForOrgTest.php new file mode 100644 index 00000000000..82c146177b8 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/GetHostedRunnersPlatformsForOrgTest.php @@ -0,0 +1,54 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json::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', '/orgs/generated/actions/hosted-runners/platforms', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\GetHostedRunnersPlatformsForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json::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', '/orgs/generated/actions/hosted-runners/platforms', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->getHostedRunnersPlatformsForOrg('generated'); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/ListGithubHostedRunnersInGroupForOrgTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/ListGithubHostedRunnersInGroupForOrgTest.php new file mode 100644 index 00000000000..76598e1bcf8 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/ListGithubHostedRunnersInGroupForOrgTest.php @@ -0,0 +1,57 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok::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', '/orgs/generated/actions/runner-groups/15/hosted-runners?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\Actions\ListGithubHostedRunnersInGroupForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['runner_group_id'] = 15; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok::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', '/orgs/generated/actions/runner-groups/15/hosted-runners?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->listGithubHostedRunnersInGroupForOrg('generated', 15, 8, 1); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/ListHostedRunnersForEnterpriseTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/ListHostedRunnersForEnterpriseTest.php new file mode 100644 index 00000000000..e25a8a196d7 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/ListHostedRunnersForEnterpriseTest.php @@ -0,0 +1,56 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok::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', '/enterprises/generated/actions/hosted-runners?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\Actions\ListHostedRunnersForEnterprise::OPERATION_MATCH, (static function (array $data): array { + $data['enterprise'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok::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', '/enterprises/generated/actions/hosted-runners?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->listHostedRunnersForEnterprise('generated', 8, 1); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/ListHostedRunnersForOrgTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/ListHostedRunnersForOrgTest.php new file mode 100644 index 00000000000..f364269358c --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/ListHostedRunnersForOrgTest.php @@ -0,0 +1,56 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json::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', '/orgs/generated/actions/hosted-runners?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\Actions\ListHostedRunnersForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json::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', '/orgs/generated/actions/hosted-runners?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->listHostedRunnersForOrg('generated', 8, 1); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/UpdateHostedRunnerForEnterpriseTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/UpdateHostedRunnerForEnterpriseTest.php new file mode 100644 index 00000000000..30f55f1daad --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/UpdateHostedRunnerForEnterpriseTest.php @@ -0,0 +1,55 @@ + 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunner::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', '/enterprises/generated/actions/hosted-runners/16', Argument::type('array'), json_encode(json_decode(Schema\Actions\UpdateHostedRunnerForEnterprise\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\UpdateHostedRunnerForEnterprise::OPERATION_MATCH, (static function (array $data): array { + $data['enterprise'] = 'generated'; + $data['hosted_runner_id'] = 16; + + return $data; + })(json_decode(Schema\Actions\UpdateHostedRunnerForEnterprise\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\ActionsHostedRunner::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', '/enterprises/generated/actions/hosted-runners/16', Argument::type('array'), json_encode(json_decode(Schema\Actions\UpdateHostedRunnerForEnterprise\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->updateHostedRunnerForEnterprise('generated', 16, json_decode(Schema\Actions\UpdateHostedRunnerForEnterprise\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/UpdateHostedRunnerForOrgTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/UpdateHostedRunnerForOrgTest.php new file mode 100644 index 00000000000..22d4baa0559 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Actions/UpdateHostedRunnerForOrgTest.php @@ -0,0 +1,55 @@ + 'application/json'], json_encode(json_decode(Schema\ActionsHostedRunner::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', '/orgs/generated/actions/hosted-runners/16', Argument::type('array'), json_encode(json_decode(Schema\Actions\UpdateHostedRunnerForOrg\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\UpdateHostedRunnerForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['hosted_runner_id'] = 16; + + return $data; + })(json_decode(Schema\Actions\UpdateHostedRunnerForOrg\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\ActionsHostedRunner::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', '/orgs/generated/actions/hosted-runners/16', Argument::type('array'), json_encode(json_decode(Schema\Actions\UpdateHostedRunnerForOrg\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->updateHostedRunnerForOrg('generated', 16, json_decode(Schema\Actions\UpdateHostedRunnerForOrg\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php index 2781a958158..9124f2c9204 100644 --- a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php @@ -56,6 +56,16 @@ function authHeader(): string assertType('', $client->call('GET /emojis')); assertType('Observable', $client->call('GET /enterprise-installation/{enterprise_or_org}/server-statistics')); assertType('', $client->call('GET /enterprises/{enterprise}/actions/cache/usage')); +assertType('Schema\\Operations\\Actions\\ListHostedRunnersForEnterprise\\Response\\ApplicationJson\\Ok', $client->call('GET /enterprises/{enterprise}/actions/hosted-runners')); +assertType('Schema\\ActionsHostedRunner', $client->call('POST /enterprises/{enterprise}/actions/hosted-runners')); +assertType('Schema\\Operations\\Actions\\GetHostedRunnersGithubOwnedImagesForEnterprise\\Response\\ApplicationJson\\Ok', $client->call('GET /enterprises/{enterprise}/actions/hosted-runners/images/github-owned')); +assertType('Schema\\Operations\\Actions\\GetHostedRunnersPartnerImagesForEnterprise\\Response\\ApplicationJson\\Ok\\Application\\Json', $client->call('GET /enterprises/{enterprise}/actions/hosted-runners/images/partner')); +assertType('Schema\\ActionsHostedRunnerLimits', $client->call('GET /enterprises/{enterprise}/actions/hosted-runners/limits')); +assertType('Schema\\Operations\\Actions\\GetHostedRunnersMachineSpecsForEnterprise\\Response\\ApplicationJson\\Ok', $client->call('GET /enterprises/{enterprise}/actions/hosted-runners/machine-sizes')); +assertType('Schema\\Operations\\Actions\\GetHostedRunnersPlatformsForEnterprise\\Response\\ApplicationJson\\Ok', $client->call('GET /enterprises/{enterprise}/actions/hosted-runners/platforms')); +assertType('Schema\\ActionsHostedRunner', $client->call('GET /enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}')); +assertType('Schema\\ActionsHostedRunner', $client->call('DELETE /enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}')); +assertType('Schema\\ActionsHostedRunner', $client->call('PATCH /enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}')); assertType('', $client->call('PUT /enterprises/{enterprise}/actions/oidc/customization/issuer')); assertType('', $client->call('GET /enterprises/{enterprise}/actions/permissions')); assertType('', $client->call('PUT /enterprises/{enterprise}/actions/permissions')); @@ -122,7 +132,7 @@ function authHeader(): string assertType('Observable', $client->call('LIST /enterprises/{enterprise}/copilot/metrics')); assertType('Observable', $client->call('GET /enterprises/{enterprise}/copilot/usage')); assertType('Observable', $client->call('LIST /enterprises/{enterprise}/copilot/usage')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /enterprises/{enterprise}/dependabot/alerts')); +assertType('Observable|WithoutBody', $client->call('GET /enterprises/{enterprise}/dependabot/alerts')); assertType('', $client->call('GET /enterprises/{enterprise}/license-sync-status')); assertType('Observable', $client->call('GET /enterprises/{enterprise}/properties/schema')); assertType('Observable', $client->call('PATCH /enterprises/{enterprise}/properties/schema')); @@ -217,6 +227,16 @@ function authHeader(): string assertType('', $client->call('PATCH /orgs/{org}')); assertType('', $client->call('GET /orgs/{org}/actions/cache/usage')); assertType('', $client->call('GET /orgs/{org}/actions/cache/usage-by-repository')); +assertType('Schema\\Operations\\Actions\\ListHostedRunnersForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json', $client->call('GET /orgs/{org}/actions/hosted-runners')); +assertType('Schema\\ActionsHostedRunner', $client->call('POST /orgs/{org}/actions/hosted-runners')); +assertType('Schema\\Operations\\Actions\\GetHostedRunnersGithubOwnedImagesForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json', $client->call('GET /orgs/{org}/actions/hosted-runners/images/github-owned')); +assertType('Schema\\Operations\\Actions\\GetHostedRunnersPartnerImagesForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json', $client->call('GET /orgs/{org}/actions/hosted-runners/images/partner')); +assertType('Schema\\ActionsHostedRunnerLimits', $client->call('GET /orgs/{org}/actions/hosted-runners/limits')); +assertType('Schema\\Operations\\Actions\\GetHostedRunnersMachineSpecsForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json', $client->call('GET /orgs/{org}/actions/hosted-runners/machine-sizes')); +assertType('Schema\\Operations\\Actions\\GetHostedRunnersPlatformsForOrg\\Response\\ApplicationJson\\Ok\\Application\\Json', $client->call('GET /orgs/{org}/actions/hosted-runners/platforms')); +assertType('Schema\\ActionsHostedRunner', $client->call('GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}')); +assertType('Schema\\ActionsHostedRunner', $client->call('DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}')); +assertType('Schema\\ActionsHostedRunner', $client->call('PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}')); assertType('', $client->call('GET /orgs/{org}/actions/oidc/customization/sub')); assertType('', $client->call('PUT /orgs/{org}/actions/oidc/customization/sub')); assertType('', $client->call('GET /orgs/{org}/actions/permissions')); @@ -234,6 +254,7 @@ function authHeader(): string assertType('', $client->call('GET /orgs/{org}/actions/runner-groups/{runner_group_id}')); assertType('', $client->call('DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}')); assertType('', $client->call('PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}')); +assertType('Schema\\Operations\\Actions\\ListGithubHostedRunnersInGroupForOrg\\Response\\ApplicationJson\\Ok', $client->call('GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners')); assertType('', $client->call('GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories')); assertType('', $client->call('PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories')); assertType('', $client->call('PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}')); @@ -331,7 +352,7 @@ function authHeader(): string assertType('', $client->call('GET /orgs/{org}/custom_roles/{role_id}')); assertType('', $client->call('DELETE /orgs/{org}/custom_roles/{role_id}')); assertType('', $client->call('PATCH /orgs/{org}/custom_roles/{role_id}')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /orgs/{org}/dependabot/alerts')); +assertType('Observable|WithoutBody', $client->call('GET /orgs/{org}/dependabot/alerts')); assertType('', $client->call('GET /orgs/{org}/dependabot/secrets')); assertType('', $client->call('GET /orgs/{org}/dependabot/secrets/public-key')); assertType('', $client->call('GET /orgs/{org}/dependabot/secrets/{secret_name}')); @@ -788,8 +809,8 @@ function authHeader(): string assertType('', $client->call('DELETE /repos/{owner}/{repo}/contents/{path}')); assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/contributors')); assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/contributors')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/dependabot/alerts')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('LIST /repos/{owner}/{repo}/dependabot/alerts')); +assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/dependabot/alerts')); +assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/dependabot/alerts')); assertType('', $client->call('GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}')); assertType('', $client->call('GET /repos/{owner}/{repo}/dependabot/secrets')); diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index 429eeb27291..2f45ea5fb41 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -1524,6 +1524,460 @@ paths: githubCloudOnly: true category: actions subcategory: cache + "/enterprises/{enterprise}/actions/hosted-runners": + get: + summary: List GitHub-hosted runners for an enterprise + description: |- + Lists all GitHub-hosted runners configured in an enterprise. + + OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. + tags: + - actions + operationId: actions/list-hosted-runners-for-enterprise + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#list-github-hosted-runners-for-an-enterprise + parameters: + - "$ref": "#/components/parameters/enterprise" + - "$ref": "#/components/parameters/per-page" + - "$ref": "#/components/parameters/page" + responses: + '200': + description: Response + content: + application/json: + schema: + type: object + required: + - total_count + - runners + properties: + total_count: + type: integer + runners: + type: array + items: + "$ref": "#/components/schemas/actions-hosted-runner" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner-paginated" + headers: + Link: + "$ref": "#/components/headers/link" + x-github: + githubCloudOnly: true + enabledForGitHubApps: false + category: actions + subcategory: hosted-runners + post: + summary: Create a GitHub-hosted runner for an enterprise + description: |- + Creates a GitHub-hosted runner for an enterprise. + OAuth tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. + operationId: actions/create-hosted-runner-for-enterprise + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#create-a-github-hosted-runner-for-an-enterprise + parameters: + - "$ref": "#/components/parameters/enterprise" + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + name: + description: Name of the runner. Must be between 1 and 64 characters + and may only contain upper and lowercase letters a-z, numbers + 0-9, '.', '-', and '_'. + type: string + image: + description: The image of runner. To list all available images, + use `GET /actions/hosted-runners/images/github-owned` or `GET + /actions/hosted-runners/images/partner`. + type: object + properties: + id: + description: The unique identifier of the runner image. + type: string + source: + description: The source of the runner image. + type: string + enum: + - github + - partner + - custom + version: + description: The version of the runner image to deploy. This + is relevant only for runners using custom images. + type: + - string + - 'null' + size: + description: The machine size of the runner. To list available sizes, + use `GET actions/hosted-runners/machine-sizes` + type: string + runner_group_id: + description: The existing runner group to add this runner to. + type: integer + maximum_runners: + description: The maximum amount of runners to scale up to. Runners + will not auto-scale above this number. Use this setting to limit + your cost. + type: integer + default: 50 + enable_static_ip: + description: Whether this runner should be created with a static + public IP. Note limit on account. To list limits on account, use + `GET actions/hosted-runners/limits` + type: boolean + default: false + required: + - name + - image + - size + - runner_group_id + examples: + default: + value: + name: My Hosted runner + image: + id: ubuntu-latest + source: github + version: latest + runner_group_id: 1 + size: 4-core + maximum_runners: 10 + responses: + '201': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/actions-hosted-runner" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner" + x-github: + enabledForGitHubApps: false + githubCloudOnly: true + category: actions + subcategory: hosted-runners + "/enterprises/{enterprise}/actions/hosted-runners/images/github-owned": + get: + summary: Get GitHub-owned images for GitHub-hosted runners in an enterprise + description: Get the list of GitHub-owned images available for GitHub-hosted + runners for an enterprise. + operationId: actions/get-hosted-runners-github-owned-images-for-enterprise + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-owned-images-for-github-hosted-runners-in-an-enterprise + parameters: + - "$ref": "#/components/parameters/enterprise" + responses: + '200': + description: Response + content: + application/json: + schema: + type: object + required: + - total_count + - images + properties: + total_count: + type: integer + images: + type: array + items: + "$ref": "#/components/schemas/actions-hosted-runner-image" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner-image" + x-github: + githubCloudOnly: true + enabledForGitHubApps: false + category: actions + subcategory: hosted-runners + "/enterprises/{enterprise}/actions/hosted-runners/images/partner": + get: + summary: Get partner images for GitHub-hosted runners in an enterprise + description: Get the list of partner images available for GitHub-hosted runners + for an enterprise. + operationId: actions/get-hosted-runners-partner-images-for-enterprise + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-partner-images-for-github-hosted-runners-in-an-enterprise + parameters: + - "$ref": "#/components/parameters/enterprise" + responses: + '200': + description: Response + content: + application/json: + schema: + type: object + required: + - total_count + - images + properties: + total_count: + type: integer + images: + type: array + items: + "$ref": "#/components/schemas/actions-hosted-runner-image" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner-image" + x-github: + githubCloudOnly: true + enabledForGitHubApps: false + category: actions + subcategory: hosted-runners + "/enterprises/{enterprise}/actions/hosted-runners/limits": + get: + summary: Get limits on GitHub-hosted runners for an enterprise + description: Get the GitHub-hosted runners limits for an enterprise. + tags: + - actions + operationId: actions/get-hosted-runners-limits-for-enterprise + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-limits-on-github-hosted-runners-for-an-enterprise + parameters: + - "$ref": "#/components/parameters/enterprise" + responses: + '200': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/actions-hosted-runner-limits" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner-limits-default" + x-github: + githubCloudOnly: true + enabledForGitHubApps: false + category: actions + subcategory: hosted-runners + "/enterprises/{enterprise}/actions/hosted-runners/machine-sizes": + get: + summary: Get GitHub-hosted runners machine specs for an enterprise + description: Get the list of machine specs available for GitHub-hosted runners + for an enterprise. + operationId: actions/get-hosted-runners-machine-specs-for-enterprise + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-hosted-runners-machine-specs-for-an-enterprise + parameters: + - "$ref": "#/components/parameters/enterprise" + responses: + '200': + description: Response + content: + application/json: + schema: + type: object + required: + - total_count + - machine_specs + properties: + total_count: + type: integer + machine_specs: + type: array + items: + "$ref": "#/components/schemas/actions-hosted-runner-machine-spec" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner-machine-spec" + x-github: + githubCloudOnly: true + enabledForGitHubApps: false + category: actions + subcategory: hosted-runners + "/enterprises/{enterprise}/actions/hosted-runners/platforms": + get: + summary: Get platforms for GitHub-hosted runners in an enterprise + description: Get the list of platforms available for GitHub-hosted runners for + an enterprise. + operationId: actions/get-hosted-runners-platforms-for-enterprise + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-platforms-for-github-hosted-runners-in-an-enterprise + parameters: + - "$ref": "#/components/parameters/enterprise" + responses: + '200': + description: Response + content: + application/json: + schema: + type: object + required: + - total_count + - platforms + properties: + total_count: + type: integer + platforms: + type: array + items: + type: string + examples: + default: + value: + total_count: 1 + platforms: + - linux-x64 + - win-x64 + x-github: + githubCloudOnly: true + enabledForGitHubApps: false + category: actions + subcategory: hosted-runners + "/enterprises/{enterprise}/actions/hosted-runners/{hosted_runner_id}": + get: + summary: Get a GitHub-hosted runner for an enterprise + description: |- + Gets a GitHub-hosted runner configured in an enterprise. + + OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. + tags: + - actions + operationId: actions/get-hosted-runner-for-enterprise + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-a-github-hosted-runner-for-an-enterprise + parameters: + - "$ref": "#/components/parameters/enterprise" + - "$ref": "#/components/parameters/hosted-runner-id" + responses: + '200': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/actions-hosted-runner" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner" + headers: + Link: + "$ref": "#/components/headers/link" + x-github: + githubCloudOnly: true + enabledForGitHubApps: true + category: actions + subcategory: hosted-runners + patch: + summary: Update a GitHub-hosted runner for an enterprise + description: |- + Updates a GitHub-hosted runner for an enterprise. + OAuth app tokens and personal access tokens (classic) need the `manage_runners:enterprise` scope to use this endpoint. + operationId: actions/update-hosted-runner-for-enterprise + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#update-a-github-hosted-runner-for-an-enterprise + parameters: + - "$ref": "#/components/parameters/enterprise" + - "$ref": "#/components/parameters/hosted-runner-id" + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + name: + description: Name of the runner. Must be between 1 and 64 characters + and may only contain upper and lowercase letters a-z, numbers + 0-9, '.', '-', and '_'. + type: string + runner_group_id: + description: The existing runner group to add this runner to. + type: integer + maximum_runners: + description: The maximum amount of runners to scale up to. Runners + will not auto-scale above this number. Use this setting to limit + your cost. + type: integer + enable_static_ip: + description: Whether this runner should be updated with a static + public IP. Note limit on account. To list limits on account, use + `GET actions/hosted-runners/limits` + type: boolean + image_version: + description: The version of the runner image to deploy. This is + relevant only for runners using custom images. + type: + - string + - 'null' + examples: + default: + value: + name: My Hosted runner + runner_group_id: 1 + maximum_runners: 50 + enable_static_ip: false + image_version: 1.0.0 + responses: + '200': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/actions-hosted-runner" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner" + x-github: + enabledForGitHubApps: false + githubCloudOnly: true + category: actions + subcategory: hosted-runners + delete: + summary: Delete a GitHub-hosted runner for an enterprise + description: Deletes a GitHub-hosted runner for an enterprise. + operationId: actions/delete-hosted-runner-for-enterprise + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#delete-a-github-hosted-runner-for-an-enterprise + parameters: + - "$ref": "#/components/parameters/enterprise" + - "$ref": "#/components/parameters/hosted-runner-id" + responses: + '202': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/actions-hosted-runner" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner" + x-github: + githubCloudOnly: true + enabledForGitHubApps: false + category: actions + subcategory: hosted-runners "/enterprises/{enterprise}/actions/oidc/customization/issuer": put: summary: Set the GitHub Actions OIDC custom issuer policy for an enterprise @@ -1991,6 +2445,9 @@ paths: to run. Note that a ref, tag, or long SHA is required. examples: - octo-org/octo-repo/.github/workflows/deploy.yaml@main + network_configuration_id: + description: The identifier of a hosted compute network configuration. + type: string required: - name examples: @@ -2103,6 +2560,11 @@ paths: to run. Note that a ref, tag, or long SHA is required. examples: - octo-org/octo-repo/.github/workflows/deploy.yaml@main + network_configuration_id: + description: The identifier of a hosted compute network configuration. + type: + - string + - 'null' examples: default: value: @@ -8137,6 +8599,459 @@ paths: enabledForGitHubApps: true category: actions subcategory: cache + "/orgs/{org}/actions/hosted-runners": + get: + summary: List GitHub-hosted runners for an organization + description: |- + Lists all GitHub-hosted runners configured in an organization. + + OAuth app tokens and personal access tokens (classic) need the `manage_runner:org` scope to use this endpoint. + tags: + - actions + operationId: actions/list-hosted-runners-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#list-github-hosted-runners-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/per-page" + - "$ref": "#/components/parameters/page" + responses: + '200': + description: Response + content: + application/json: + schema: + type: object + required: + - total_count + - runners + properties: + total_count: + type: integer + runners: + type: array + items: + "$ref": "#/components/schemas/actions-hosted-runner" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner-paginated" + headers: + Link: + "$ref": "#/components/headers/link" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: actions + subcategory: hosted-runners + post: + summary: Create a GitHub-hosted runner for an organization + description: |- + Creates a GitHub-hosted runner for an organization. + OAuth tokens and personal access tokens (classic) need the `manage_runners:org` scope to use this endpoint. + operationId: actions/create-hosted-runner-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#create-a-github-hosted-runner-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + name: + description: Name of the runner. Must be between 1 and 64 characters + and may only contain upper and lowercase letters a-z, numbers + 0-9, '.', '-', and '_'. + type: string + image: + description: The image of runner. To list all available images, + use `GET /actions/hosted-runners/images/github-owned` or `GET + /actions/hosted-runners/images/partner`. + type: object + properties: + id: + description: The unique identifier of the runner image. + type: string + source: + description: The source of the runner image. + type: string + enum: + - github + - partner + - custom + version: + description: The version of the runner image to deploy. This + is relevant only for runners using custom images. + type: + - string + - 'null' + size: + description: The machine size of the runner. To list available sizes, + use `GET actions/hosted-runners/machine-sizes` + type: string + runner_group_id: + description: The existing runner group to add this runner to. + type: integer + maximum_runners: + description: The maximum amount of runners to scale up to. Runners + will not auto-scale above this number. Use this setting to limit + your cost. + type: integer + enable_static_ip: + description: Whether this runner should be created with a static + public IP. Note limit on account. To list limits on account, use + `GET actions/hosted-runners/limits` + type: boolean + required: + - name + - image + - size + - runner_group_id + examples: + default: + value: + name: My Hosted runner + image: + id: ubuntu-latest + source: github + version: latest + runner_group_id: 1 + size: 4-core + maximum_runners: 50 + enable_static_ip: false + responses: + '201': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/actions-hosted-runner" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner" + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: hosted-runners + "/orgs/{org}/actions/hosted-runners/images/github-owned": + get: + summary: Get GitHub-owned images for GitHub-hosted runners in an organization + description: Get the list of GitHub-owned images available for GitHub-hosted + runners for an organization. + operationId: actions/get-hosted-runners-github-owned-images-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-owned-images-for-github-hosted-runners-in-an-organization + parameters: + - "$ref": "#/components/parameters/org" + responses: + '200': + description: Response + content: + application/json: + schema: + type: object + required: + - total_count + - images + properties: + total_count: + type: integer + images: + type: array + items: + "$ref": "#/components/schemas/actions-hosted-runner-image" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner-image" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: actions + subcategory: hosted-runners + "/orgs/{org}/actions/hosted-runners/images/partner": + get: + summary: Get partner images for GitHub-hosted runners in an organization + description: Get the list of partner images available for GitHub-hosted runners + for an organization. + operationId: actions/get-hosted-runners-partner-images-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-partner-images-for-github-hosted-runners-in-an-organization + parameters: + - "$ref": "#/components/parameters/org" + responses: + '200': + description: Response + content: + application/json: + schema: + type: object + required: + - total_count + - images + properties: + total_count: + type: integer + images: + type: array + items: + "$ref": "#/components/schemas/actions-hosted-runner-image" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner-image" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: actions + subcategory: hosted-runners + "/orgs/{org}/actions/hosted-runners/limits": + get: + summary: Get limits on GitHub-hosted runners for an organization + description: Get the GitHub-hosted runners limits for an organization. + operationId: actions/get-hosted-runners-limits-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-limits-on-github-hosted-runners-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + responses: + '200': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/actions-hosted-runner-limits" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner-limits-default" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: actions + subcategory: hosted-runners + "/orgs/{org}/actions/hosted-runners/machine-sizes": + get: + summary: Get GitHub-hosted runners machine specs for an organization + description: Get the list of machine specs available for GitHub-hosted runners + for an organization. + operationId: actions/get-hosted-runners-machine-specs-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-github-hosted-runners-machine-specs-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + responses: + '200': + description: Response + content: + application/json: + schema: + type: object + required: + - total_count + - machine_specs + properties: + total_count: + type: integer + machine_specs: + type: array + items: + "$ref": "#/components/schemas/actions-hosted-runner-machine-spec" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner-machine-spec" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: actions + subcategory: hosted-runners + "/orgs/{org}/actions/hosted-runners/platforms": + get: + summary: Get platforms for GitHub-hosted runners in an organization + description: Get the list of platforms available for GitHub-hosted runners for + an organization. + operationId: actions/get-hosted-runners-platforms-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-platforms-for-github-hosted-runners-in-an-organization + parameters: + - "$ref": "#/components/parameters/org" + responses: + '200': + description: Response + content: + application/json: + schema: + type: object + required: + - total_count + - platforms + properties: + total_count: + type: integer + platforms: + type: array + items: + type: string + examples: + default: + value: + total_count: 1 + platforms: + - linux-x64 + - win-x64 + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: actions + subcategory: hosted-runners + "/orgs/{org}/actions/hosted-runners/{hosted_runner_id}": + get: + summary: Get a GitHub-hosted runner for an organization + description: |- + Gets a GitHub-hosted runner configured in an organization. + + OAuth app tokens and personal access tokens (classic) need the `manage_runners:org` scope to use this endpoint. + tags: + - actions + operationId: actions/get-hosted-runner-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#get-a-github-hosted-runner-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/hosted-runner-id" + responses: + '200': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/actions-hosted-runner" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner" + headers: + Link: + "$ref": "#/components/headers/link" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: actions + subcategory: hosted-runners + patch: + summary: Update a GitHub-hosted runner for an organization + description: |- + Updates a GitHub-hosted runner for an organization. + OAuth app tokens and personal access tokens (classic) need the `manage_runners:org` scope to use this endpoint. + operationId: actions/update-hosted-runner-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#update-a-github-hosted-runner-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/hosted-runner-id" + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + name: + description: Name of the runner. Must be between 1 and 64 characters + and may only contain upper and lowercase letters a-z, numbers + 0-9, '.', '-', and '_'. + type: string + runner_group_id: + description: The existing runner group to add this runner to. + type: integer + maximum_runners: + description: The maximum amount of runners to scale up to. Runners + will not auto-scale above this number. Use this setting to limit + your cost. + type: integer + enable_static_ip: + description: Whether this runner should be updated with a static + public IP. Note limit on account. To list limits on account, use + `GET actions/hosted-runners/limits` + type: boolean + image_version: + description: The version of the runner image to deploy. This is + relevant only for runners using custom images. + type: + - string + - 'null' + examples: + default: + value: + name: My larger runner + runner_group_id: 1 + maximum_runners: 50 + enable_static_ip: false + image_version: 1.0.0 + responses: + '200': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/actions-hosted-runner" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner" + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: hosted-runners + delete: + summary: Delete a GitHub-hosted runner for an organization + description: Deletes a GitHub-hosted runner for an organization. + operationId: actions/delete-hosted-runner-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/hosted-runners#delete-a-github-hosted-runner-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/hosted-runner-id" + responses: + '202': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/actions-hosted-runner" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner" + x-github: + githubCloudOnly: false + enabledForGitHubApps: false + category: actions + subcategory: hosted-runners "/orgs/{org}/actions/oidc/customization/sub": get: summary: Get the customization template for an OIDC subject claim for an organization @@ -8654,6 +9569,9 @@ paths: to run. Note that a ref, tag, or long SHA is required. examples: - octo-org/octo-repo/.github/workflows/deploy.yaml@main + network_configuration_id: + description: The identifier of a hosted compute network configuration. + type: string required: - name examples: @@ -8766,6 +9684,11 @@ paths: to run. Note that a ref, tag, or long SHA is required. examples: - octo-org/octo-repo/.github/workflows/deploy.yaml@main + network_configuration_id: + description: The identifier of a hosted compute network configuration. + type: + - string + - 'null' required: - name examples: @@ -8811,6 +9734,52 @@ paths: githubCloudOnly: false category: actions subcategory: self-hosted-runner-groups + "/orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners": + get: + summary: List GitHub-hosted runners in a group for an organization + description: |- + Lists the GitHub-hosted runners in an organization group. + + OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + operationId: actions/list-github-hosted-runners-in-group-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runner-groups#list-github-hosted-runners-in-a-group-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/runner-group-id" + - "$ref": "#/components/parameters/per-page" + - "$ref": "#/components/parameters/page" + responses: + '200': + description: Response + content: + application/json: + schema: + type: object + required: + - total_count + - runners + properties: + total_count: + type: number + runners: + type: array + items: + "$ref": "#/components/schemas/actions-hosted-runner" + examples: + default: + "$ref": "#/components/examples/actions-hosted-runner-paginated" + headers: + Link: + "$ref": "#/components/headers/link" + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: self-hosted-runner-groups "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": get: summary: List repository access to a self-hosted runner group in an organization @@ -74257,6 +75226,72 @@ components: type: array items: type: string + enterprise: + title: Enterprise + description: An enterprise on GitHub. + type: object + properties: + description: + description: A short description of the enterprise. + type: + - string + - 'null' + html_url: + type: string + format: uri + examples: + - https://github.com/enterprises/octo-business + website_url: + description: The enterprise's website URL. + type: + - string + - 'null' + format: uri + id: + description: Unique identifier of the enterprise + type: integer + examples: + - 42 + node_id: + type: string + examples: + - MDEwOlJlcG9zaXRvcnkxMjk2MjY5 + name: + description: The name of the enterprise. + type: string + examples: + - Octo Business + slug: + description: The slug url identifier for the enterprise. + type: string + examples: + - octo-business + created_at: + type: + - string + - 'null' + format: date-time + examples: + - '2019-01-26T19:01:12Z' + updated_at: + type: + - string + - 'null' + format: date-time + examples: + - '2019-01-26T19:14:43Z' + avatar_url: + type: string + format: uri + required: + - id + - node_id + - name + - slug + - html_url + - created_at + - updated_at + - avatar_url integration: title: GitHub app description: GitHub apps are a new way to extend GitHub. They can be installed @@ -74286,9 +75321,9 @@ components: examples: - '"Iv1.25b5d1e65ffc4022"' owner: - anyOf: - - type: 'null' + oneOf: - "$ref": "#/components/schemas/simple-user" + - "$ref": "#/components/schemas/enterprise" name: description: The name of the GitHub app type: string @@ -74711,72 +75746,6 @@ components: - repository_id - request - response - enterprise: - title: Enterprise - description: An enterprise on GitHub. - type: object - properties: - description: - description: A short description of the enterprise. - type: - - string - - 'null' - html_url: - type: string - format: uri - examples: - - https://github.com/enterprises/octo-business - website_url: - description: The enterprise's website URL. - type: - - string - - 'null' - format: uri - id: - description: Unique identifier of the enterprise - type: integer - examples: - - 42 - node_id: - type: string - examples: - - MDEwOlJlcG9zaXRvcnkxMjk2MjY5 - name: - description: The name of the enterprise. - type: string - examples: - - Octo Business - slug: - description: The slug url identifier for the enterprise. - type: string - examples: - - octo-business - created_at: - type: - - string - - 'null' - format: date-time - examples: - - '2019-01-26T19:01:12Z' - updated_at: - type: - - string - - 'null' - format: date-time - examples: - - '2019-01-26T19:14:43Z' - avatar_url: - type: string - format: uri - required: - - id - - node_id - - name - - slug - - html_url - - created_at - - updated_at - - avatar_url integration-installation-request: title: Integration Installation Request description: Request to install an integration on a target @@ -76867,6 +77836,237 @@ components: required: - total_active_caches_count - total_active_caches_size_in_bytes + actions-hosted-runner-pool-image: + title: GitHub-hosted runner image details. + description: Provides details of a hosted runner image + type: object + properties: + id: + description: The ID of the image. Use this ID for the `image` parameter + when creating a new larger runner. + type: string + examples: + - ubuntu-20.04 + size_gb: + description: Image size in GB. + type: integer + examples: + - 86 + display_name: + description: Display name for this image. + type: string + examples: + - 20.04 + source: + description: The image provider. + type: string + enum: + - github + - partner + - custom + version: + description: The image version of the hosted runner pool. + type: string + examples: + - latest + required: + - id + - size_gb + - display_name + - source + - version + actions-hosted-runner-machine-spec: + title: Github-owned VM details. + description: Provides details of a particular machine spec. + type: object + properties: + id: + description: The ID used for the `size` parameter when creating a new runner. + type: string + examples: + - 8-core + cpu_cores: + description: The number of cores. + type: integer + examples: + - 8 + memory_gb: + description: The available RAM for the machine spec. + type: integer + examples: + - 32 + storage_gb: + description: The available SSD storage for the machine spec. + type: integer + examples: + - 300 + required: + - id + - cpu_cores + - memory_gb + - storage_gb + public-ip: + title: Public IP for a GitHub-hosted larger runners. + description: Provides details of Public IP for a GitHub-hosted larger runners + type: object + properties: + enabled: + description: Whether public IP is enabled. + type: boolean + examples: + - true + prefix: + description: The prefix for the public IP. + type: string + examples: + - 20.80.208.150 + length: + description: The length of the IP prefix. + type: integer + examples: + - 28 + actions-hosted-runner: + title: GitHub-hosted hosted runner + description: A Github-hosted hosted runner. + type: object + properties: + id: + description: The unique identifier of the hosted runner. + type: integer + examples: + - 5 + name: + description: The name of the hosted runner. + type: string + examples: + - my-github-hosted-runner + runner_group_id: + description: The unique identifier of the group that the hosted runner belongs + to. + type: integer + examples: + - 2 + image_details: + anyOf: + - type: 'null' + - "$ref": "#/components/schemas/actions-hosted-runner-pool-image" + machine_size_details: + "$ref": "#/components/schemas/actions-hosted-runner-machine-spec" + status: + description: The status of the runner. + type: string + enum: + - Ready + - Provisioning + - Shutdown + - Deleting + - Stuck + examples: + - Ready + platform: + description: The operating system of the image. + type: string + examples: + - linux-x64 + maximum_runners: + description: The maximum amount of hosted runners. Runners will not scale + automatically above this number. Use this setting to limit your cost. + type: integer + default: 10 + examples: + - 5 + public_ip_enabled: + description: Whether public IP is enabled for the hosted runners. + type: boolean + examples: + - true + public_ips: + description: The public IP ranges when public IP is enabled for the hosted + runners. + type: array + items: + "$ref": "#/components/schemas/public-ip" + last_active_on: + description: The time at which the runner was last used, in ISO 8601 format. + type: + - string + - 'null' + format: date-time + examples: + - '2022-10-09T23:39:01Z' + required: + - id + - name + - image_details + - machine_size_details + - status + - public_ip_enabled + - platform + actions-hosted-runner-image: + title: GitHub-hosted runner image details. + description: Provides details of a hosted runner image + type: object + properties: + id: + description: The ID of the image. Use this ID for the `image` parameter + when creating a new larger runner. + type: string + examples: + - ubuntu-20.04 + platform: + description: The operating system of the image. + type: string + examples: + - linux-x64 + size_gb: + description: Image size in GB. + type: integer + examples: + - 86 + display_name: + description: Display name for this image. + type: string + examples: + - 20.04 + source: + description: The image provider. + type: string + enum: + - github + - partner + - custom + required: + - id + - platform + - size_gb + - display_name + - source + actions-hosted-runner-limits: + type: object + properties: + public_ips: + title: Static public IP Limits for GitHub-hosted Hosted Runners. + description: Provides details of static public IP limits for GitHub-hosted + Hosted Runners + type: object + properties: + maximum: + type: integer + description: The maximum number of static public IP addresses that can + be used for Hosted Runners. + examples: + - 50 + current_usage: + type: integer + description: The current number of static public IP addresses in use + by Hosted Runners. + examples: + - 17 + required: + - maximum + - current_usage + required: + - public_ips actions-oidc-custom-issuer-policy-for-enterprise: type: object properties: @@ -77046,6 +78246,9 @@ components: type: string hosted_runners_url: type: string + network_configuration_id: + description: The identifier of a hosted compute network configuration. + type: string allows_public_repositories: type: boolean workflow_restrictions_read_only: @@ -83845,6 +85048,9 @@ components: type: string hosted_runners_url: type: string + network_configuration_id: + description: The identifier of a hosted compute network configuration. + type: string inherited: type: boolean inherited_allows_public_repositories: @@ -213077,6 +214283,87 @@ components: value: total_active_caches_size_in_bytes: 3344284 total_active_caches_count: 5 + actions-hosted-runner-paginated: + value: + total_count: 2 + runners: + - id: 5 + name: My hosted ubuntu runner + runner_group_id: 2 + platform: linux-x64 + image: + id: ubuntu-20.04 + size: 86 + machine_size_details: + id: 4-core + cpu_cores: 4 + memory_gb: 16 + storage_gb: 150 + status: Ready + maximum_runners: 10 + public_ip_enabled: true + public_ips: + - enabled: true + prefix: 20.80.208.150 + length: 31 + last_active_on: '2022-10-09T23:39:01Z' + - id: 7 + name: My hosted Windows runner + runner_group_id: 2 + platform: win-x64 + image: + id: windows-latest + size: 256 + machine_size_details: + id: 8-core + cpu_cores: 8 + memory_gb: 32 + storage_gb: 300 + status: Ready + maximum_runners: 20 + public_ip_enabled: false + public_ips: [] + last_active_on: '2023-04-26T15:23:37Z' + actions-hosted-runner: + value: + id: 5 + name: My hosted ubuntu runner + runner_group_id: 2 + platform: linux-x64 + image: + id: ubuntu-20.04 + size: 86 + machine_size_details: + id: 4-core + cpu_cores: 4 + memory_gb: 16 + storage_gb: 150 + status: Ready + maximum_runners: 10 + public_ip_enabled: true + public_ips: + - enabled: true + prefix: 20.80.208.150 + length: 31 + last_active_on: '2022-10-09T23:39:01Z' + actions-hosted-runner-image: + value: + id: ubuntu-20.04 + platform: linux-x64 + size_gb: 86 + display_name: '20.04' + source: github + actions-hosted-runner-limits-default: + value: + public_ips: + current_usage: 17 + maximum: 50 + actions-hosted-runner-machine-spec: + value: + id: 4-core + cpu_cores: 4 + memory_gb: 16 + storage_gb: 150 actions-oidc-custom-issuer-policy-for-enterprise: value: include_enterprise_slug: true @@ -238377,6 +239664,13 @@ components: required: true schema: type: string + hosted-runner-id: + name: hosted_runner_id + description: Unique identifier of the GitHub-hosted runner. + in: path + required: true + schema: + type: integer org-id: name: org_id description: The unique identifier of the organization.