From b8dff0c10f56c4f2bdae210d4ce499b67840beac Mon Sep 17 00:00:00 2001 From: WyriHaximus <147145+WyriHaximus@users.noreply.github.com> Date: Mon, 30 Sep 2024 18:22:01 +0000 Subject: [PATCH] =?UTF-8?q?[GitHubEnterpriseCloud]=20Update=20to=201.1.4-e?= =?UTF-8?q?00d8234bb59cf8cf984a3d8bf324323=20from=201.1.4-7b73af1e4dbdd002?= =?UTF-8?q?5b62a706c5a2f386=20Detected=20Schema=20changes:=202024-09-30=20?= =?UTF-8?q?17:29:00=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=202024-09-30=2017:29:00=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=202024-09-30=2017:29:00=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=202024-09-30=2017:29:03=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=20error:=20open=20/=5F=5Fw/githu?= =?UTF-8?q?b-root/github-root/server-statistics-actions.yaml:=20no=20such?= =?UTF-8?q?=20file=20or=20directory=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=20file:=20/=5F=5Fw/gith?= =?UTF-8?q?ub-root/github-root/server-statistics-actions.yaml=202024-09-30?= =?UTF-8?q?=2017:29:03=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=202024-09-30=2017:29:03=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[207908:11]=20ERROR:=20cannot=20resolve=20reference=20`serve?= =?UTF-8?q?r-statistics-packages.yaml`,=20it's=20missing:=20=20[207910:11]?= =?UTF-8?q?=20ERROR:=20cannot=20resolve=20reference=20`server-statistics-a?= =?UTF-8?q?dvisory-db.yaml`,=20it's=20missing:=20=20[207912: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[208020:11]=20ERROR:=20cannot=20r?= =?UTF-8?q?esolve=20reference=20`server-statistics-packages.yaml`,=20it's?= =?UTF-8?q?=20missing:=20=20[208022:11]=20ERROR:=20cannot=20resolve=20refe?= =?UTF-8?q?rence=20`server-statistics-advisory-db.yaml`,=20it's=20missing:?= =?UTF-8?q?=20=20[208024:11]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clients/GitHubEnterpriseCloud/README.md | 12 + .../etc/openapi-client-generator.state | 746 +++++++++--------- .../WebHook/BranchProtectionConfiguration.php | 352 +-------- .../Hydrator/WebHook/BranchProtectionRule.php | 356 +-------- .../Internal/Hydrator/WebHook/CheckRun.php | 360 +-------- .../Internal/Hydrator/WebHook/CheckSuite.php | 356 +-------- .../Hydrator/WebHook/CodeScanningAlert.php | 368 +-------- .../Hydrator/WebHook/CommitComment.php | 348 +------- .../src/Internal/Hydrator/WebHook/Create.php | 348 +------- .../Hydrator/WebHook/CustomProperty.php | 32 +- .../Hydrator/WebHook/CustomPropertyValues.php | 348 +------- .../src/Internal/Hydrator/WebHook/Delete.php | 348 +------- .../Hydrator/WebHook/DependabotAlert.php | 372 +-------- .../Internal/Hydrator/WebHook/DeployKey.php | 352 +-------- .../Internal/Hydrator/WebHook/Deployment.php | 348 +------- .../WebHook/DeploymentProtectionRule.php | 348 +------- .../Hydrator/WebHook/DeploymentReview.php | 356 +-------- .../Hydrator/WebHook/DeploymentStatus.php | 348 +------- .../Internal/Hydrator/WebHook/Discussion.php | 404 +--------- .../Hydrator/WebHook/DiscussionComment.php | 356 +-------- .../WebHook/ExemptionRequestPushRuleset.php | 364 +-------- .../ExemptionRequestSecretScanning.php | 364 +-------- .../src/Internal/Hydrator/WebHook/Fork.php | 348 +------- .../WebHook/GithubAppAuthorization.php | 24 +- .../src/Internal/Hydrator/WebHook/Gollum.php | 348 +------- .../Hydrator/WebHook/Installation.php | 364 +-------- .../WebHook/InstallationRepositories.php | 352 +-------- .../Hydrator/WebHook/InstallationTarget.php | 348 +------- .../Hydrator/WebHook/IssueComment.php | 356 +-------- .../src/Internal/Hydrator/WebHook/Issues.php | 408 +--------- .../src/Internal/Hydrator/WebHook/Label.php | 356 +-------- .../Hydrator/WebHook/MarketplacePurchase.php | 364 +-------- .../src/Internal/Hydrator/WebHook/Member.php | 356 +-------- .../Internal/Hydrator/WebHook/MergeGroup.php | 352 +-------- .../src/Internal/Hydrator/WebHook/Meta.php | 348 +------- .../Internal/Hydrator/WebHook/Milestone.php | 364 +-------- .../Internal/Hydrator/WebHook/OrgBlock.php | 352 +-------- .../Hydrator/WebHook/Organization.php | 364 +-------- .../src/Internal/Hydrator/WebHook/Package.php | 352 +-------- .../Internal/Hydrator/WebHook/PageBuild.php | 348 +------- .../WebHook/PersonalAccessTokenRequest.php | 360 +-------- .../src/Internal/Hydrator/WebHook/Ping.php | 348 +------- .../src/Internal/Hydrator/WebHook/Project.php | 364 +-------- .../Internal/Hydrator/WebHook/ProjectCard.php | 364 +-------- .../Hydrator/WebHook/ProjectColumn.php | 360 +-------- .../Internal/Hydrator/WebHook/ProjectsV2.php | 364 +-------- .../Hydrator/WebHook/ProjectsV2Item.php | 372 +-------- .../WebHook/ProjectsV2StatusUpdate.php | 356 +-------- .../src/Internal/Hydrator/WebHook/Public_.php | 348 +------- .../Internal/Hydrator/WebHook/PullRequest.php | 420 +--------- .../Hydrator/WebHook/PullRequestReview.php | 356 +-------- .../WebHook/PullRequestReviewComment.php | 356 +-------- .../WebHook/PullRequestReviewThread.php | 352 +-------- .../src/Internal/Hydrator/WebHook/Push.php | 24 +- .../Hydrator/WebHook/RegistryPackage.php | 352 +-------- .../src/Internal/Hydrator/WebHook/Release.php | 372 +-------- .../Internal/Hydrator/WebHook/Repository.php | 380 +-------- .../Hydrator/WebHook/RepositoryAdvisory.php | 352 +-------- .../Hydrator/WebHook/RepositoryDispatch.php | 348 +------- .../Hydrator/WebHook/RepositoryImport.php | 348 +------- .../Hydrator/WebHook/RepositoryRuleset.php | 356 +-------- .../WebHook/RepositoryVulnerabilityAlert.php | 360 +-------- .../Hydrator/WebHook/SecretScanningAlert.php | 360 +-------- .../WebHook/SecretScanningAlertLocation.php | 348 +------- .../Hydrator/WebHook/SecurityAdvisory.php | 356 +-------- .../Hydrator/WebHook/SecurityAndAnalysis.php | 348 +------- .../Internal/Hydrator/WebHook/Sponsorship.php | 368 +-------- .../src/Internal/Hydrator/WebHook/Star.php | 352 +-------- .../src/Internal/Hydrator/WebHook/Status.php | 348 +------- .../Internal/Hydrator/WebHook/SubIssues.php | 360 +-------- .../src/Internal/Hydrator/WebHook/Team.php | 40 +- .../src/Internal/Hydrator/WebHook/TeamAdd.php | 348 +------- .../src/Internal/Hydrator/WebHook/Watch.php | 348 +------- .../Hydrator/WebHook/WorkflowDispatch.php | 348 +------- .../Internal/Hydrator/WebHook/WorkflowJob.php | 360 +-------- .../Internal/Hydrator/WebHook/WorkflowRun.php | 356 +-------- .../src/Internal/Hydrators.php | 4 +- .../CodeScanning/ListAlertInstances.php | 7 +- .../ListAlertInstancesListing.php | 7 +- .../CodeScanning/ListAlertsForRepo.php | 7 +- .../CodeScanning/ListAlertsForRepoListing.php | 7 +- .../CodeScanning/ListRecentAnalyses.php | 7 +- .../ListRecentAnalysesListing.php | 7 +- ...ListAcceptedAssignmentsForAnAssignment.php | 2 +- ...eptedAssignmentsForAnAssignmentListing.php | 2 +- .../CodeScanning/ListAlertInstances.php | 6 +- .../ListAlertInstancesListing.php | 6 +- .../CodeScanning/ListAlertsForRepo.php | 6 +- .../CodeScanning/ListAlertsForRepoListing.php | 6 +- .../CodeScanning/ListRecentAnalyses.php | 6 +- .../ListRecentAnalysesListing.php | 6 +- .../src/Internal/Router/Get/Classroom.php | 2 +- .../src/Internal/Router/Get/CodeScanning.php | 30 +- .../src/Internal/Router/Get/Eight.php | 2 +- .../src/Internal/Router/Get/Four.php | 2 +- .../src/Internal/Router/Get/Six.php | 2 +- .../src/Internal/Router/List/Classroom.php | 2 +- .../src/Internal/Router/List/CodeScanning.php | 30 +- .../src/Internal/Router/List/Eight.php | 2 +- .../src/Internal/Router/List/Four.php | 2 +- .../src/Internal/Router/List/Six.php | 2 +- .../src/Operation/Classroom.php | 4 +- .../src/Operation/CodeScanning.php | 36 +- .../src/PHPStan/ClientCallReturnTypes.php | 16 +- .../src/Schema/OrgRulesetConditions.php | 6 +- .../Request/ApplicationJson.php | 12 +- .../Request/ApplicationJson.php | 6 +- .../Request/ApplicationJson.php | 12 +- .../Request/ApplicationJson.php | 6 +- .../src/Schema/RepositoryRuleset.php | 8 +- .../Schema/RepositoryRulesetBypassActor.php | 10 +- .../src/Schema/SimpleUserWebhooks.php | 216 ----- ...kBranchProtectionConfigurationDisabled.php | 7 +- ...okBranchProtectionConfigurationEnabled.php | 7 +- .../WebhookBranchProtectionRuleCreated.php | 7 +- .../WebhookBranchProtectionRuleDeleted.php | 7 +- .../WebhookBranchProtectionRuleEdited.php | 7 +- .../src/Schema/WebhookCheckRunCompleted.php | 7 +- .../src/Schema/WebhookCheckRunCreated.php | 7 +- .../Schema/WebhookCheckRunRequestedAction.php | 7 +- .../src/Schema/WebhookCheckRunRerequested.php | 7 +- .../src/Schema/WebhookCheckSuiteCompleted.php | 7 +- .../src/Schema/WebhookCheckSuiteRequested.php | 7 +- .../Schema/WebhookCheckSuiteRerequested.php | 7 +- ...bhookCodeScanningAlertAppearedInBranch.php | 7 +- .../WebhookCodeScanningAlertClosedByUser.php | 7 +- .../WebhookCodeScanningAlertCreated.php | 7 +- .../Schema/WebhookCodeScanningAlertFixed.php | 7 +- .../WebhookCodeScanningAlertReopened.php | 7 +- ...WebhookCodeScanningAlertReopenedByUser.php | 7 +- .../Schema/WebhookCommitCommentCreated.php | 11 +- .../WebhookCommitCommentCreated/Comment.php | 4 +- .../src/Schema/WebhookCreate.php | 7 +- .../Schema/WebhookCustomPropertyCreated.php | 7 +- .../Schema/WebhookCustomPropertyDeleted.php | 7 +- .../Schema/WebhookCustomPropertyUpdated.php | 7 +- .../WebhookCustomPropertyValuesUpdated.php | 7 +- .../src/Schema/WebhookDelete.php | 7 +- .../WebhookDependabotAlertAutoDismissed.php | 7 +- .../WebhookDependabotAlertAutoReopened.php | 7 +- .../Schema/WebhookDependabotAlertCreated.php | 7 +- .../WebhookDependabotAlertDismissed.php | 7 +- .../Schema/WebhookDependabotAlertFixed.php | 7 +- .../WebhookDependabotAlertReintroduced.php | 7 +- .../Schema/WebhookDependabotAlertReopened.php | 7 +- .../src/Schema/WebhookDeployKeyCreated.php | 7 +- .../src/Schema/WebhookDeployKeyDeleted.php | 7 +- .../src/Schema/WebhookDeploymentCreated.php | 7 +- ...bhookDeploymentProtectionRuleRequested.php | 7 +- .../WebhookDeploymentReviewApproved.php | 7 +- .../WebhookDeploymentReviewRejected.php | 7 +- .../WebhookDeploymentReviewRequested.php | 7 +- .../Schema/WebhookDeploymentStatusCreated.php | 7 +- .../src/Schema/WebhookDiscussionAnswered.php | 7 +- .../WebhookDiscussionCategoryChanged.php | 7 +- .../src/Schema/WebhookDiscussionClosed.php | 7 +- .../WebhookDiscussionCommentCreated.php | 7 +- .../WebhookDiscussionCommentDeleted.php | 7 +- .../Schema/WebhookDiscussionCommentEdited.php | 7 +- .../src/Schema/WebhookDiscussionCreated.php | 7 +- .../src/Schema/WebhookDiscussionDeleted.php | 7 +- .../src/Schema/WebhookDiscussionEdited.php | 7 +- .../src/Schema/WebhookDiscussionLabeled.php | 7 +- .../src/Schema/WebhookDiscussionLocked.php | 7 +- .../src/Schema/WebhookDiscussionPinned.php | 7 +- .../src/Schema/WebhookDiscussionReopened.php | 7 +- .../Schema/WebhookDiscussionTransferred.php | 7 +- .../Schema/WebhookDiscussionUnanswered.php | 7 +- .../src/Schema/WebhookDiscussionUnlabeled.php | 7 +- .../src/Schema/WebhookDiscussionUnlocked.php | 7 +- .../src/Schema/WebhookDiscussionUnpinned.php | 7 +- .../WebhookExemptionRequestCancelled.php | 7 +- .../WebhookExemptionRequestCompleted.php | 7 +- .../Schema/WebhookExemptionRequestCreated.php | 7 +- ...bhookExemptionRequestResponseDismissed.php | 7 +- ...bhookExemptionRequestResponseSubmitted.php | 7 +- .../src/Schema/WebhookFork.php | 7 +- .../WebhookGithubAppAuthorizationRevoked.php | 7 +- .../src/Schema/WebhookGollum.php | 7 +- .../src/Schema/WebhookInstallationCreated.php | 7 +- .../src/Schema/WebhookInstallationDeleted.php | 7 +- ...hookInstallationNewPermissionsAccepted.php | 7 +- .../WebhookInstallationRepositoriesAdded.php | 7 +- ...WebhookInstallationRepositoriesRemoved.php | 7 +- .../src/Schema/WebhookInstallationSuspend.php | 7 +- .../WebhookInstallationTargetRenamed.php | 7 +- .../Schema/WebhookInstallationUnsuspend.php | 7 +- .../src/Schema/WebhookIssueCommentCreated.php | 7 +- .../src/Schema/WebhookIssueCommentDeleted.php | 7 +- .../src/Schema/WebhookIssueCommentEdited.php | 7 +- .../src/Schema/WebhookIssuesAssigned.php | 7 +- .../src/Schema/WebhookIssuesClosed.php | 7 +- .../src/Schema/WebhookIssuesDeleted.php | 7 +- .../src/Schema/WebhookIssuesDemilestoned.php | 7 +- .../src/Schema/WebhookIssuesEdited.php | 7 +- .../src/Schema/WebhookIssuesLabeled.php | 7 +- .../src/Schema/WebhookIssuesLocked.php | 7 +- .../src/Schema/WebhookIssuesMilestoned.php | 7 +- .../src/Schema/WebhookIssuesOpened.php | 7 +- .../src/Schema/WebhookIssuesPinned.php | 7 +- .../src/Schema/WebhookIssuesReopened.php | 7 +- .../src/Schema/WebhookIssuesTransferred.php | 7 +- .../src/Schema/WebhookIssuesUnassigned.php | 7 +- .../src/Schema/WebhookIssuesUnlabeled.php | 7 +- .../src/Schema/WebhookIssuesUnlocked.php | 7 +- .../src/Schema/WebhookIssuesUnpinned.php | 7 +- .../src/Schema/WebhookLabelCreated.php | 7 +- .../src/Schema/WebhookLabelDeleted.php | 7 +- .../src/Schema/WebhookLabelEdited.php | 7 +- .../WebhookMarketplacePurchaseCancelled.php | 7 +- .../WebhookMarketplacePurchaseChanged.php | 7 +- ...ebhookMarketplacePurchasePendingChange.php | 7 +- ...ketplacePurchasePendingChangeCancelled.php | 7 +- .../WebhookMarketplacePurchasePurchased.php | 7 +- .../src/Schema/WebhookMemberAdded.php | 7 +- .../src/Schema/WebhookMemberEdited.php | 7 +- .../src/Schema/WebhookMemberRemoved.php | 7 +- .../WebhookMergeGroupChecksRequested.php | 7 +- .../src/Schema/WebhookMergeGroupDestroyed.php | 7 +- .../src/Schema/WebhookMetaDeleted.php | 7 +- .../src/Schema/WebhookMilestoneClosed.php | 7 +- .../src/Schema/WebhookMilestoneCreated.php | 7 +- .../src/Schema/WebhookMilestoneDeleted.php | 7 +- .../src/Schema/WebhookMilestoneEdited.php | 7 +- .../src/Schema/WebhookMilestoneOpened.php | 7 +- .../src/Schema/WebhookOrgBlockBlocked.php | 7 +- .../src/Schema/WebhookOrgBlockUnblocked.php | 7 +- .../src/Schema/WebhookOrganizationDeleted.php | 7 +- .../Schema/WebhookOrganizationMemberAdded.php | 7 +- .../WebhookOrganizationMemberInvited.php | 7 +- .../WebhookOrganizationMemberRemoved.php | 7 +- .../src/Schema/WebhookOrganizationRenamed.php | 7 +- .../src/Schema/WebhookPackagePublished.php | 7 +- .../src/Schema/WebhookPackageUpdated.php | 7 +- .../src/Schema/WebhookPageBuild.php | 7 +- ...hookPersonalAccessTokenRequestApproved.php | 7 +- ...ookPersonalAccessTokenRequestCancelled.php | 7 +- ...bhookPersonalAccessTokenRequestCreated.php | 7 +- ...ebhookPersonalAccessTokenRequestDenied.php | 7 +- .../src/Schema/WebhookPing.php | 7 +- .../Schema/WebhookProjectCardConverted.php | 7 +- .../src/Schema/WebhookProjectCardCreated.php | 7 +- .../src/Schema/WebhookProjectCardDeleted.php | 7 +- .../src/Schema/WebhookProjectCardEdited.php | 7 +- .../src/Schema/WebhookProjectCardMoved.php | 7 +- .../src/Schema/WebhookProjectClosed.php | 7 +- .../Schema/WebhookProjectColumnCreated.php | 7 +- .../Schema/WebhookProjectColumnDeleted.php | 7 +- .../src/Schema/WebhookProjectColumnEdited.php | 7 +- .../src/Schema/WebhookProjectColumnMoved.php | 7 +- .../src/Schema/WebhookProjectCreated.php | 7 +- .../src/Schema/WebhookProjectDeleted.php | 7 +- .../src/Schema/WebhookProjectEdited.php | 7 +- .../src/Schema/WebhookProjectReopened.php | 7 +- .../Schema/WebhookProjectsV2ItemArchived.php | 7 +- .../Schema/WebhookProjectsV2ItemConverted.php | 7 +- .../Schema/WebhookProjectsV2ItemCreated.php | 7 +- .../Schema/WebhookProjectsV2ItemDeleted.php | 7 +- .../Schema/WebhookProjectsV2ItemEdited.php | 7 +- .../Schema/WebhookProjectsV2ItemReordered.php | 7 +- .../Schema/WebhookProjectsV2ItemRestored.php | 7 +- .../Schema/WebhookProjectsV2ProjectClosed.php | 7 +- .../WebhookProjectsV2ProjectCreated.php | 7 +- .../WebhookProjectsV2ProjectDeleted.php | 7 +- .../Schema/WebhookProjectsV2ProjectEdited.php | 7 +- .../WebhookProjectsV2ProjectReopened.php | 7 +- .../WebhookProjectsV2StatusUpdateCreated.php | 7 +- .../WebhookProjectsV2StatusUpdateDeleted.php | 7 +- .../WebhookProjectsV2StatusUpdateEdited.php | 7 +- .../src/Schema/WebhookPublic.php | 7 +- .../src/Schema/WebhookPullRequestAssigned.php | 7 +- .../WebhookPullRequestAutoMergeDisabled.php | 7 +- .../WebhookPullRequestAutoMergeEnabled.php | 7 +- .../src/Schema/WebhookPullRequestClosed.php | 7 +- .../WebhookPullRequestConvertedToDraft.php | 7 +- .../Schema/WebhookPullRequestDemilestoned.php | 7 +- .../src/Schema/WebhookPullRequestDequeued.php | 7 +- .../src/Schema/WebhookPullRequestEdited.php | 7 +- .../src/Schema/WebhookPullRequestEnqueued.php | 7 +- .../src/Schema/WebhookPullRequestLabeled.php | 7 +- .../src/Schema/WebhookPullRequestLocked.php | 7 +- .../Schema/WebhookPullRequestMilestoned.php | 7 +- .../src/Schema/WebhookPullRequestOpened.php | 7 +- .../WebhookPullRequestReadyForReview.php | 7 +- .../src/Schema/WebhookPullRequestReopened.php | 7 +- ...WebhookPullRequestReviewCommentCreated.php | 7 +- ...WebhookPullRequestReviewCommentDeleted.php | 7 +- .../WebhookPullRequestReviewCommentEdited.php | 7 +- .../WebhookPullRequestReviewDismissed.php | 7 +- .../Schema/WebhookPullRequestReviewEdited.php | 7 +- ...WebhookPullRequestReviewRequestRemoved.php | 6 +- .../WebhookPullRequestReviewRequested.php | 6 +- .../WebhookPullRequestReviewSubmitted.php | 7 +- ...WebhookPullRequestReviewThreadResolved.php | 7 +- ...bhookPullRequestReviewThreadUnresolved.php | 7 +- .../Schema/WebhookPullRequestSynchronize.php | 7 +- .../Schema/WebhookPullRequestUnassigned.php | 7 +- .../Schema/WebhookPullRequestUnlabeled.php | 7 +- .../src/Schema/WebhookPullRequestUnlocked.php | 7 +- .../src/Schema/WebhookPush.php | 7 +- .../WebhookRegistryPackagePublished.php | 7 +- .../Schema/WebhookRegistryPackageUpdated.php | 7 +- .../src/Schema/WebhookReleaseCreated.php | 7 +- .../src/Schema/WebhookReleaseDeleted.php | 7 +- .../src/Schema/WebhookReleaseEdited.php | 7 +- .../src/Schema/WebhookReleasePrereleased.php | 7 +- .../src/Schema/WebhookReleasePublished.php | 7 +- .../src/Schema/WebhookReleaseReleased.php | 7 +- .../src/Schema/WebhookReleaseUnpublished.php | 7 +- .../WebhookRepositoryAdvisoryPublished.php | 7 +- .../WebhookRepositoryAdvisoryReported.php | 7 +- .../src/Schema/WebhookRepositoryArchived.php | 7 +- .../src/Schema/WebhookRepositoryCreated.php | 7 +- .../src/Schema/WebhookRepositoryDeleted.php | 7 +- .../WebhookRepositoryDispatchSample.php | 7 +- .../src/Schema/WebhookRepositoryEdited.php | 7 +- .../src/Schema/WebhookRepositoryImport.php | 7 +- .../Schema/WebhookRepositoryPrivatized.php | 7 +- .../Schema/WebhookRepositoryPublicized.php | 7 +- .../src/Schema/WebhookRepositoryRenamed.php | 7 +- .../WebhookRepositoryRulesetCreated.php | 15 +- .../WebhookRepositoryRulesetDeleted.php | 15 +- .../Schema/WebhookRepositoryRulesetEdited.php | 15 +- .../Schema/WebhookRepositoryTransferred.php | 7 +- .../Schema/WebhookRepositoryUnarchived.php | 7 +- ...hookRepositoryVulnerabilityAlertCreate.php | 7 +- ...ookRepositoryVulnerabilityAlertDismiss.php | 7 +- ...hookRepositoryVulnerabilityAlertReopen.php | 7 +- ...ookRepositoryVulnerabilityAlertResolve.php | 7 +- .../WebhookSecretScanningAlertCreated.php | 7 +- ...hookSecretScanningAlertLocationCreated.php | 7 +- .../WebhookSecretScanningAlertReopened.php | 7 +- .../WebhookSecretScanningAlertResolved.php | 7 +- .../WebhookSecretScanningAlertValidated.php | 7 +- .../WebhookSecurityAdvisoryPublished.php | 7 +- .../Schema/WebhookSecurityAdvisoryUpdated.php | 7 +- .../WebhookSecurityAdvisoryWithdrawn.php | 7 +- .../src/Schema/WebhookSecurityAndAnalysis.php | 7 +- .../Schema/WebhookSponsorshipCancelled.php | 7 +- .../src/Schema/WebhookSponsorshipCreated.php | 7 +- .../src/Schema/WebhookSponsorshipEdited.php | 7 +- .../WebhookSponsorshipPendingCancellation.php | 7 +- .../WebhookSponsorshipPendingTierChange.php | 7 +- .../Schema/WebhookSponsorshipTierChanged.php | 7 +- .../src/Schema/WebhookStarCreated.php | 7 +- .../src/Schema/WebhookStarDeleted.php | 7 +- .../src/Schema/WebhookStatus.php | 7 +- .../WebhookSubIssuesParentIssueAdded.php | 7 +- .../WebhookSubIssuesParentIssueRemoved.php | 7 +- .../Schema/WebhookSubIssuesSubIssueAdded.php | 7 +- .../WebhookSubIssuesSubIssueRemoved.php | 7 +- .../src/Schema/WebhookTeamAdd.php | 7 +- .../Schema/WebhookTeamAddedToRepository.php | 7 +- .../src/Schema/WebhookTeamCreated.php | 7 +- .../src/Schema/WebhookTeamDeleted.php | 7 +- .../src/Schema/WebhookTeamEdited.php | 7 +- .../WebhookTeamRemovedFromRepository.php | 7 +- .../src/Schema/WebhookWatchStarted.php | 7 +- .../src/Schema/WebhookWorkflowDispatch.php | 7 +- .../Schema/WebhookWorkflowJobCompleted.php | 7 +- .../Schema/WebhookWorkflowJobInProgress.php | 7 +- .../src/Schema/WebhookWorkflowJobQueued.php | 7 +- .../src/Schema/WebhookWorkflowJobWaiting.php | 7 +- .../Schema/WebhookWorkflowRunCompleted.php | 7 +- .../Schema/WebhookWorkflowRunInProgress.php | 7 +- .../Schema/WebhookWorkflowRunRequested.php | 7 +- .../ListAlertInstancesListingTest.php | 21 +- .../CodeScanning/ListAlertInstancesTest.php | 21 +- .../ListAlertsForRepoListingTest.php | 28 +- .../CodeScanning/ListAlertsForRepoTest.php | 28 +- .../ListRecentAnalysesListingTest.php | 21 +- .../CodeScanning/ListRecentAnalysesTest.php | 21 +- .../tests/Types/ClientCallReturnTypes.php | 16 +- .../GitHubEnterpriseCloud/current.spec.yaml | 653 +++++++-------- 374 files changed, 2494 insertions(+), 26552 deletions(-) delete mode 100644 clients/GitHubEnterpriseCloud/src/Schema/SimpleUserWebhooks.php diff --git a/clients/GitHubEnterpriseCloud/README.md b/clients/GitHubEnterpriseCloud/README.md index ba16360cf1c..434c859ab3f 100644 --- a/clients/GitHubEnterpriseCloud/README.md +++ b/clients/GitHubEnterpriseCloud/README.md @@ -15341,6 +15341,7 @@ $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts', [ 'tool_name' => 'generated', 'tool_guid' => , 'ref' => 'generated', + 'pr' => 2, 'state' => 'generated', 'severity' => 'generated', 'page' => 1, @@ -15357,6 +15358,7 @@ $client->operations()->codeScanning()->listAlertsForRepo( owner: 'generat tool_name: 'generated', tool_guid: , ref: 'generated', + pr: 2, state: 'generated', severity: 'generated', page: 1, @@ -15381,6 +15383,7 @@ $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts', [ 'tool_name' => 'generated', 'tool_guid' => , 'ref' => 'generated', + 'pr' => 2, 'state' => 'generated', 'severity' => 'generated', 'page' => 1, @@ -15397,6 +15400,7 @@ $client->operations()->codeScanning()->listAlertsForRepoListing( owner: ' tool_name: 'generated', tool_guid: , ref: 'generated', + pr: 2, state: 'generated', severity: 'generated', page: 1, @@ -15468,6 +15472,7 @@ $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/ins 'repo' => 'generated', 'alert_number' => 12, 'ref' => 'generated', + 'pr' => 2, 'page' => 1, 'per_page' => 8, ]); @@ -15479,6 +15484,7 @@ $client->operations()->codeScanning()->listAlertInstances( owner: 'genera repo: 'generated', alert_number: 12, ref: 'generated', + pr: 2, page: 1, per_page: 8, ); @@ -15498,6 +15504,7 @@ $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/in 'repo' => 'generated', 'alert_number' => 12, 'ref' => 'generated', + 'pr' => 2, 'page' => 1, 'per_page' => 8, ]); @@ -15509,6 +15516,7 @@ $client->operations()->codeScanning()->listAlertInstancesListing( owner: repo: 'generated', alert_number: 12, ref: 'generated', + pr: 2, page: 1, per_page: 8, ); @@ -15528,6 +15536,7 @@ $client->call('GET /repos/{owner}/{repo}/code-scanning/analyses', [ 'repo' => 'generated', 'tool_name' => 'generated', 'tool_guid' => , + 'pr' => 2, 'ref' => 'generated', 'sarif_id' => 'generated', 'page' => 1, @@ -15543,6 +15552,7 @@ $client->operations()->codeScanning()->listRecentAnalyses( owner: 'genera repo: 'generated', tool_name: 'generated', tool_guid: , + pr: 2, ref: 'generated', sarif_id: 'generated', page: 1, @@ -15566,6 +15576,7 @@ $client->call('LIST /repos/{owner}/{repo}/code-scanning/analyses', [ 'repo' => 'generated', 'tool_name' => 'generated', 'tool_guid' => , + 'pr' => 2, 'ref' => 'generated', 'sarif_id' => 'generated', 'page' => 1, @@ -15581,6 +15592,7 @@ $client->operations()->codeScanning()->listRecentAnalysesListing( owner: repo: 'generated', tool_name: 'generated', tool_guid: , + pr: 2, ref: 'generated', sarif_id: 'generated', page: 1, diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index 682d564488d..6adbe8b3fc0 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "7b73af1e4dbdd0025b62a706c5a2f386", + "specHash": "e00d8234bb59cf8cf984a3d8bf324323", "generatedFiles": { "files": [ { @@ -636,7 +636,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRulesetBypassActor.php", - "hash": "2e0619fff68b3f8748c16e7c8be50d33" + "hash": "40ea7d45d09c11290f7d1164306fd57e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRulesetConditions.php", @@ -648,7 +648,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/OrgRulesetConditions.php", - "hash": "1fb8c124ad67f25dc4aed7fa8ec1dd67" + "hash": "3717faad65f3d23356d87519e860da26" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleCreation.php", @@ -716,7 +716,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php", - "hash": "f73ec1eba3cba0f5a6dd3d287e1f3b9c" + "hash": "ccb67fbd81aebfea262b86c2317ec132" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GroupMapping.php", @@ -1684,19 +1684,19 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookBranchProtectionRuleCreated.php", - "hash": "90b92fac325cbc91e3ad90df1f33ce39" + "hash": "32d080f54504b70813fb5ecfeaeab5e5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookBranchProtectionRuleDeleted.php", - "hash": "a2290a419f186a6e47211fa14dad31a2" + "hash": "a7742cd2a1e7c5de4889520cd07f8cc5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookBranchProtectionRuleEdited.php", - "hash": "c5d148be96827695bffb6bfa4bf41920" + "hash": "c31c3aeb281a4c94da659077285294cd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCompleted.php", - "hash": "1ff6c7ba754af72fc5937eff0dd3b36b" + "hash": "5da7ee2f9d538a9d6bb135b62c5a2a66" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCompletedFormEncoded.php", @@ -1704,7 +1704,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCreated.php", - "hash": "2f0646bf485cc14c6f5a2e569d207c3a" + "hash": "a9ad677d90584c0446983def54878ffd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCreatedFormEncoded.php", @@ -1712,7 +1712,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRequestedAction.php", - "hash": "6c444b74820f3924ff1a75517c4b454b" + "hash": "f660031213212db8a0a7a1509351d88f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRequestedActionFormEncoded.php", @@ -1720,7 +1720,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRerequested.php", - "hash": "52fa487fb8cb0bccd1a6b542a8e85aa2" + "hash": "19b99cb1f76e79a79b53d2fc1bee51ee" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRerequestedFormEncoded.php", @@ -1728,335 +1728,335 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckSuiteCompleted.php", - "hash": "f4d14adf2c0fa10b3126c1d2d1868483" + "hash": "55ff77ef2dc09d508a9dcc89dc2568f6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckSuiteRequested.php", - "hash": "47cc38f27ffa2dcaab9ba3f2e6dc8af1" + "hash": "95823d65483a0a1c4893c66cc862270e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckSuiteRerequested.php", - "hash": "252156df4e2684fdaa420c27ae84ea28" + "hash": "79eee5a277f51aff1491771be056c65f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertAppearedInBranch.php", - "hash": "a0210a8c1f94c4e8b03c55e3e070f9bf" + "hash": "9cd19463bf7b6c76f017c807b5caf0b2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertClosedByUser.php", - "hash": "aad689b17aa4d64e850f4b4a5cfbeab0" + "hash": "e9b342fdc4089fd9c9b943c7bbd287bf" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertCreated.php", - "hash": "aeaeb8d3231c50c084d102580acaff56" + "hash": "2ea07421d62124ef63671b07f6e4b6dd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertFixed.php", - "hash": "c49df9733e93da1a57139bb46e274fba" + "hash": "eb07591c03f6c47bc49227f442a3d7e2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopened.php", - "hash": "292be24fc4e6004121c1a39382db2d04" + "hash": "849fb1022e29e5a589156b28886dfa4f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCodeScanningAlertReopenedByUser.php", - "hash": "b521aba66721f54a07201f1755c19f12" + "hash": "86c713ed3499f41303645b87880098a2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCommitCommentCreated.php", - "hash": "008cfac67b48fdb269dd6e82cd108849" + "hash": "34c5ebf37b9a99b1758ac4d579950b40" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCreate.php", - "hash": "497049f0311bb20f0f1e0ce0efe2e11f" + "hash": "88f7efe6019d5d8fee12f687940b2b98" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDelete.php", - "hash": "4b3d89812e6fb5d42b327f68fe8081a1" + "hash": "a1346db6e6a760ba57c0aa42bfe48ce8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertAutoDismissed.php", - "hash": "f70f80bad80148fa8f64eecf7da5afd4" + "hash": "980a1ea001dda725990f269482035695" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertAutoReopened.php", - "hash": "adb888756d57dfddd03184fa56b37eaa" + "hash": "5321ef17f3d242544cfb36df05c3d713" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertCreated.php", - "hash": "f7018d2c43bab34ff2853208fe3b2385" + "hash": "44635fd2145a86c0742939a91aea382a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertDismissed.php", - "hash": "4e4daa7c45aceef0124e6575a6e70891" + "hash": "93aa87fb3b3a2a29a4021e65a584ed16" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertFixed.php", - "hash": "5a9660db886e64034fc5ecb41d42a68b" + "hash": "071eafe8440c8f9ade195835c55a0e2e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertReintroduced.php", - "hash": "0d196a2b0ed6b8bbee2c4f3563273563" + "hash": "8798bd9b9b42fb12e13765c803a9f010" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDependabotAlertReopened.php", - "hash": "8391aaaa7b9e86719e0890910e041fbe" + "hash": "733134a4788ba0f84a9fcba0f72e327e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDeployKeyCreated.php", - "hash": "fbf066d592e5bd3fa6d2a945c954c9fa" + "hash": "293c37591e536c3fc80bd8fbef308228" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDeployKeyDeleted.php", - "hash": "1920efeaed390fcf01c3964f93d7d285" + "hash": "defabcc33864ea8484eee44a7cdbf3ef" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentCreated.php", - "hash": "717dc25c68b7832e38a19f2ef36f84a3" + "hash": "6a5e82a99ec30c2fdf78a3eaad00d4ae" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentProtectionRuleRequested.php", - "hash": "e802694e9c4b6d00c3e2223471e34242" + "hash": "59a5d66c925bd2a91e000ef034f1efbc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentStatusCreated.php", - "hash": "5ae9c65376e0b8c69900982d7b9c5b0e" + "hash": "e4b7e3270fc5deaf61389cf10c13e834" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionAnswered.php", - "hash": "19e268478bcf3b6f09c10198c62c2a51" + "hash": "45dee67e9460026b38357aedff41f1d0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionCategoryChanged.php", - "hash": "7c2d604eaf67000b0ed78f5d25681c54" + "hash": "9058263976b973558d56d2d720dcfa7f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionClosed.php", - "hash": "51f1aed851ae6cf7f0937a181124870c" + "hash": "a475cdfbbf8506d1ea087bd2f7a5b71e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionCommentCreated.php", - "hash": "035b78660efd864806351a0e2afdb5e7" + "hash": "16fae621320f0c875e26d9e8d066248c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionCommentDeleted.php", - "hash": "a191dcfb11a66243a7c42409c1e1ae28" + "hash": "e8d31a1f81727901e109b85fe0a6f9b5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionCommentEdited.php", - "hash": "fd24ddc450d946bb0b239744a166af66" + "hash": "ad6353b71274293559922866cde07a0e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionCreated.php", - "hash": "bcfcd83ac38751e44e35329923e5a73c" + "hash": "f0bcf32250ab32114604172131a1b513" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionDeleted.php", - "hash": "728458ca7813fe60cfff51579dd92d5e" + "hash": "4e14b05cfe29bf9486db94329a90184c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionEdited.php", - "hash": "ec79caca7846799261200a377f3453eb" + "hash": "f90273f147681b457e29444c579f0fff" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionLabeled.php", - "hash": "5a00bd47ac23b9edffe3f35f7437cbfa" + "hash": "3efc2257edd78002ccc587549950b42a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionLocked.php", - "hash": "96a7f08bb70da69a40f5fe9e6b84ba65" + "hash": "c6e01ca74b4ee6bd146ae8e223c427cd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionPinned.php", - "hash": "252aa715674260514a3f57fdc5008b35" + "hash": "b588d72c8d2030906c522addc0b5cf10" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionReopened.php", - "hash": "c69f732ca4937ac1943207159bfe3abb" + "hash": "db38d77dac7fb2a0624221e4926895d3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionTransferred.php", - "hash": "57448505059c86184a7d1203db391600" + "hash": "812d743afbac90b84a4a870d7fcf3af4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionUnanswered.php", - "hash": "3bc7d38036bb4036e8a699376d9fe955" + "hash": "3767d7ded73c49b19ff2f5e49d4d07ce" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionUnlabeled.php", - "hash": "936dc8b50d3e4d7fea518379d91ff1e2" + "hash": "c563e3e115ede337ea660d26874fd5d0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionUnlocked.php", - "hash": "184716458ee5efe715834289276b7685" + "hash": "ef74c34bbe532a008ddcdb3aae12f40f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDiscussionUnpinned.php", - "hash": "34100833dffa6b3746a379726a63052b" + "hash": "a805dd27fc804cab29d42e60564c6a26" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookFork.php", - "hash": "434ad087eaaceb1d09f4cbf8289eddbe" + "hash": "da5b8a393e96ae55425fe6a8e37da918" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookGithubAppAuthorizationRevoked.php", - "hash": "130ed37bd917ca8ede97a799b015a1ea" + "hash": "2e9c883d8ae9c5ff2d96d6c5aff1df14" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookGollum.php", - "hash": "7ac3446f5b1bb3d7bdecbf10e038e888" + "hash": "0a6b243e467fb37baafcd1dd65a7ef89" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookInstallationCreated.php", - "hash": "89e08e3b5e59e6ddaf633c0d81dcfea2" + "hash": "5d97b5f75181da45cc2e1c8a68123729" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookInstallationDeleted.php", - "hash": "04e853b3bdaa2872e74fe8e0dd4e8bc4" + "hash": "0632421cfcca694531b04c8e2976c001" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookInstallationNewPermissionsAccepted.php", - "hash": "66a6af2bf925bf2fce2e257e27671a89" + "hash": "f8ae6cefa24f852f650b6b0d42383919" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookInstallationRepositoriesAdded.php", - "hash": "3691b44c6fb415ea08e789f6ccd8609b" + "hash": "aa493fee9086d944b769adde096e4635" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookInstallationRepositoriesRemoved.php", - "hash": "76e43ca81eccf77bc6da03e6a10d0fb0" + "hash": "6d894f2119c51640337a6f9dc4e4d58c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookInstallationSuspend.php", - "hash": "e3057c0684d32235ddf4a67a3dd05085" + "hash": "7c9e750d138cf78cf14cf16e4ac69823" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookInstallationTargetRenamed.php", - "hash": "5a747de7e771678d06672b0d6b0f9542" + "hash": "33104fa9e490ccf2d3ffc68e63c81911" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookInstallationUnsuspend.php", - "hash": "b4c9bfd2d5a79dd34a4b555542b4fbe1" + "hash": "902fae2e9c38cd41fe51c6aef84b3da3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated.php", - "hash": "3b9e35eb2d884d2fefb28d5393d36d16" + "hash": "681c5e16f5efe2c1c1e0a7f807e9c4ed" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted.php", - "hash": "02abbb4ce555932bca4416913d296c14" + "hash": "12cb7a522bce320ab5efdb7f5d25b7a0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited.php", - "hash": "01fdb494582180335cad666f4bb69300" + "hash": "5e78fbf62af6cd5770e0b70481831ba3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesAssigned.php", - "hash": "9487bf49390af7458a64f2339b7bdaac" + "hash": "ed5a533814e4babf92ab0365eab20a28" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed.php", - "hash": "4e35c2a83149418adabf35eaab8000e6" + "hash": "3b0a5abb7e938694aa730c3c3083109c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted.php", - "hash": "2232a93761c14ba9a1fbed8325b38f1f" + "hash": "b5806dafe8b9b1e97ccf25a3734893c8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned.php", - "hash": "6bc973aaa0db2496bb7bec7066cadd0a" + "hash": "16edd71ded6dfdad440bc682e79a1871" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited.php", - "hash": "b4f9bc094828d493d1b7a33120da5ca4" + "hash": "3dc1b132cab54da15ad34a2366e0e0d4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled.php", - "hash": "19249827e4ffc6da767cbf58b980a6cf" + "hash": "a23ded1f8cf99d83c229f075cc58476c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked.php", - "hash": "e53c8470524a5bd11097448c861aa24f" + "hash": "c34c88363720328f7fc4ace9cc58f717" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned.php", - "hash": "38c9f7f884e73661c43c7d63a78f4c2f" + "hash": "76b5245b413172753d5f3c8fdcbde6dd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened.php", - "hash": "d243ed0354707c7d6d65cfce543c20df" + "hash": "5f1fc4661824209e2d09dda0b4b1d0d9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesPinned.php", - "hash": "03300965c5794efcd374d12522ce6788" + "hash": "8a4a1b5f073310496ff367eb820f79a3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened.php", - "hash": "07c57775c1294361d3b53550973480ed" + "hash": "3910ac5f5863a600feb7169a928978f3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred.php", - "hash": "7343af2e0b666a1d1d43c12bb1509b36" + "hash": "134f0710e5f984ee487e6c2d2a803704" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnassigned.php", - "hash": "80e770988ee21d27a066c8538f22aa33" + "hash": "0ba7ca9c933d0e5cad60fe7440596f69" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlabeled.php", - "hash": "cb57e64e3db9e0ddd1a3864ba374ec72" + "hash": "787179181b80273ef04b1d4d94908b8f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked.php", - "hash": "a34bce498c14238a416b694944c7c894" + "hash": "a5f210d2cca6a4a58d839e98922781d6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnpinned.php", - "hash": "177ad1792f533c716d36a51596e3e381" + "hash": "226966b2b1be5490ea39fb447c34f442" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookLabelCreated.php", - "hash": "092f35d80bcd8adec903d5529bbb6fb9" + "hash": "910864e53e14cfa6a604d479d51c322e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookLabelDeleted.php", - "hash": "4d74e0a7104d45fdc8ce5110ba7ec2cc" + "hash": "8e5e1c25d957dcbdc99dccfbc2afe950" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookLabelEdited.php", - "hash": "22152ee777f6f4d12d75f32d3450bbd5" + "hash": "d1cb0a30462817a5ab07f1eb697b761b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMarketplacePurchaseCancelled.php", - "hash": "12848c0d1037a6f6be96e3ddfca317a9" + "hash": "b7bab8516f395681d3cf2f4193a1dba8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMarketplacePurchaseChanged.php", - "hash": "51bb1ff90ab8c8a6af1fec573a27c52e" + "hash": "62ca4a556b72b10d3d8810bc3f6ebf8d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMarketplacePurchasePendingChange.php", - "hash": "42dd180426a6a855d460ec57c8e12cb8" + "hash": "d354521a395941806e06be5c75b619e7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMarketplacePurchasePendingChangeCancelled.php", - "hash": "3f859ec01756d981466188368b7ab5d2" + "hash": "2b170e39144a93a913f42c7c3c5fb12b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMarketplacePurchasePurchased.php", - "hash": "0cdd7941f8322b2893c3fcfae2013b3a" + "hash": "35375b1bdb8a1fa4f99eb0b446d9c638" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMemberAdded.php", - "hash": "19bfbf9f8a1920a038ffd4b220329c76" + "hash": "cfa70b5cf186722f03a3e2011f1f5224" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMemberEdited.php", - "hash": "ff9f2693bb7040408505f816753c7763" + "hash": "8a7e5474fc20516576a704e895e37174" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMemberRemoved.php", - "hash": "e25c315b4a2b0927b8fe538d5bd1f14d" + "hash": "c6f2ad871cc89f3f35e017ac87c6c468" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMembershipAdded.php", @@ -2068,63 +2068,63 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMergeGroupChecksRequested.php", - "hash": "484ed85889ef0e92bf3d3bd819e5b3ef" + "hash": "224747ee324b51a4ed8a6eebe812aa1e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMergeGroupDestroyed.php", - "hash": "c02af3a72b6c946a4526cf549078c6e0" + "hash": "975c1a1343add421758db3d89898cffa" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMetaDeleted.php", - "hash": "ad049183bd79e372f3fb26052fd542d3" + "hash": "eca94df434aba436beb6471375dcda97" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMilestoneClosed.php", - "hash": "7375a740c8286f051c0027a16c8af0dd" + "hash": "d80a9da0e7b925eec04e74b99e709725" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMilestoneCreated.php", - "hash": "3f74c1f2d1f0dfe76c05151c4d9612c9" + "hash": "07f92ed5d1f10498a181b5c07624f83e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMilestoneDeleted.php", - "hash": "b43febf818161dfe361d2668ad4afb0f" + "hash": "c4fa1beb09e93ce044f00bdeccdb3819" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMilestoneEdited.php", - "hash": "cf14f7e9b34dfb3499a0f501a5316120" + "hash": "c7f2389c56b398323c623f316807283e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMilestoneOpened.php", - "hash": "244db2749a44192b4702793309316ee1" + "hash": "9541ce6ccc39669db7f7e96fad53b080" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookOrgBlockBlocked.php", - "hash": "b518e1f1c8c65f3a56024f3d6001a990" + "hash": "e0349a9addecb9b1f76a1ed98c633bac" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookOrgBlockUnblocked.php", - "hash": "0c97483f47847c43cfa4a7da5fbf691d" + "hash": "a0c53d9e5f2f4b88ee564643ba771228" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookOrganizationDeleted.php", - "hash": "6aedb1dbd3e6911d7a2d8fb93d195af0" + "hash": "5929272d4f7f21f7096dbc8c8e91015e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookOrganizationMemberAdded.php", - "hash": "098ccaf1a6dce5a5995f60af85dba809" + "hash": "3ee28c9334998526bf93b33feca175fb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookOrganizationMemberInvited.php", - "hash": "67fa9e5db4bc353c2c1442cac3a25d33" + "hash": "b1fc230f0a248114bdc9c5c4a371cd90" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookOrganizationMemberRemoved.php", - "hash": "55aea266775d2d2947b1306eccc17661" + "hash": "773481991683e3e494b3e99f0e84e6e8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookOrganizationRenamed.php", - "hash": "d26b6318612c28a4394f51b7dae09833" + "hash": "fcc0dec1596eee7cb1f2bacce449ae26" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRubygemsMetadata.php", @@ -2132,35 +2132,35 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPackagePublished.php", - "hash": "7abef0108efc6d5de892d80a633cbdae" + "hash": "e825b83ac3720afdff432cd9a6752e86" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPackageUpdated.php", - "hash": "55fa70fd26399c177c296b468d8c6424" + "hash": "cf847158441b3a65048b280101810e35" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPageBuild.php", - "hash": "bcfeea437863f3d0966df0043bd3af37" + "hash": "96a3403f2836408d07ac2a4f8ce02137" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPersonalAccessTokenRequestApproved.php", - "hash": "aaabb2e693d04a561ef1af4fde724dad" + "hash": "663639e6c75217a8c7c8c04ab949aa9f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPersonalAccessTokenRequestCancelled.php", - "hash": "0d0feaf28c606fe2772c7592d4c6bf10" + "hash": "3cfc54428b9dde2b411fe6f309ab5280" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPersonalAccessTokenRequestCreated.php", - "hash": "59562178a7a2dc46329ba9f46172ae01" + "hash": "f52667c0914a9eea62602dd3f60b57ea" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPersonalAccessTokenRequestDenied.php", - "hash": "13ba8586aa8f6807f901f7e2314a3eba" + "hash": "0468ae19539d9e4588e4f94eef0540f4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPing.php", - "hash": "400d5c23d31752614419c44ed12f96b5" + "hash": "ae999ec04fc320d0ab8ee090ba94a227" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPingFormEncoded.php", @@ -2168,343 +2168,343 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectCardConverted.php", - "hash": "ce18eeddce6b98c3d9ad5fb181713386" + "hash": "1cfb52441b399434968c0ab60cd959a9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectCardCreated.php", - "hash": "89a7964432d66f7550f3727392118640" + "hash": "5052786d10efaa7c0e164b3cb05fb3e7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectCardDeleted.php", - "hash": "9b4d53a0489fdcf9c298f85bb8ab1d0f" + "hash": "7093b38585f234af5d710defbb5537b7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectCardEdited.php", - "hash": "bd9f79dfd333757cdb708055f8481abb" + "hash": "1f6388836beb2e5605ab6e59f2542233" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectCardMoved.php", - "hash": "fcbbb16ec4b88ea7d8aea8e4591333c9" + "hash": "f15c97b13270e98d200b9c90d7472020" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectClosed.php", - "hash": "443f3ed49f909306e52fb37cc1a795b4" + "hash": "c1ee3b05ce27e5fc24cd038de8fc6cfe" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectColumnCreated.php", - "hash": "2e69cb6b34d9fda2a14c5b705afeb028" + "hash": "3ac8cbbf751a66d13d2d7a26c8b70faa" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectColumnDeleted.php", - "hash": "3382f0b3ae6777838e4268df17540085" + "hash": "be68a51cb55fb3cb26577c63fc38649c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectColumnEdited.php", - "hash": "27622c8ab9edaafed1e2beeddd463c88" + "hash": "764ea28ebb94319a4be358c7010c96d9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectColumnMoved.php", - "hash": "24e73282ea7c67cc1b289b4b66da356a" + "hash": "6cd587400b98e1d212b64aa86eb0f4f1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectCreated.php", - "hash": "1c0254db056bd61f0a79ea69d238b610" + "hash": "41036231b68bf006278f1a367789a49d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectDeleted.php", - "hash": "e4e72c81d8feb8a523ba699e722cfa0c" + "hash": "9579e1da85bcc89bfbc8babb26fcf461" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectEdited.php", - "hash": "301f4a6d908cb27a76906525f492185b" + "hash": "ded814f171e5b4e80327ffff53b275dc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectReopened.php", - "hash": "8b2c4c556186743eef42f0ca922d046d" + "hash": "5fdef3470de4313d808ea422417e92a9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ProjectClosed.php", - "hash": "a5aae04f0192a419bb81c39ddf9d8048" + "hash": "da0e50fcdebe2442383df7fdf7c1e9bb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ProjectCreated.php", - "hash": "9af4d3081f14be7f310d90d7385f3b24" + "hash": "df130a2421ab618e380658bc0875f017" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ProjectDeleted.php", - "hash": "db5a96e8aae3c2e40719ee86b231d355" + "hash": "3c925386b85e884d8fb96df945ed7aa2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ProjectEdited.php", - "hash": "69f0e82970c66cb450093043ca3b662a" + "hash": "14e29b7f1059306c6c28c0fa06ca4385" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ItemArchived.php", - "hash": "c42b0d875d76d57031da0464b01bbf0f" + "hash": "9f3e30a3430d783c8cf1e27e98421118" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ItemConverted.php", - "hash": "6e9c62be759b019431daff16e9665671" + "hash": "3b550222aa0cdf15ad0e411f2888fb0d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ItemCreated.php", - "hash": "ef4d6eaa1000cf6c54603958a2df344e" + "hash": "9f4faaef95d9a862ee4327c9c57604d1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ItemDeleted.php", - "hash": "ec0483c1960fb93e86379a4373c11dd0" + "hash": "ecb6eddb8ba68e2cacda78cd34913eef" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ItemEdited.php", - "hash": "a9c99e1afd6d81ddad2177d7a92ced7d" + "hash": "f36c2815fda4b1c32e3e5d21a76ebc99" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ItemReordered.php", - "hash": "e40c335c49d6061997c886a551a0a393" + "hash": "04d06603c17c87b088042a5adbacc5e7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ItemRestored.php", - "hash": "fc4beadf191df43193a267fb52e7e3eb" + "hash": "fb1eb8f96e95763908e3029fe3e2af07" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2ProjectReopened.php", - "hash": "6ada45db0eb084cb06c00630fd8f2a2d" + "hash": "44d73aeb427392c083d428bcbf547743" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPublic.php", - "hash": "052b0a493ecdec7b1379c6e89d46f3f9" + "hash": "d44370a60121a320ceeacbc977959121" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestAssigned.php", - "hash": "75d9fc5490aa0da8a55d79fb11e37f3f" + "hash": "cb93e60fba89e81e1353453f28d5ae11" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestAutoMergeDisabled.php", - "hash": "f7f994b933eaf93a54b05677ed1572bc" + "hash": "30406f77e76b3684e1486c6db6bb0cf7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestAutoMergeEnabled.php", - "hash": "0629969d833c4f1c2f5d79bcc9e4de3d" + "hash": "cf0bb1b439c316f87822a1234a59c300" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestClosed.php", - "hash": "62acd20f6ed06b924db3531f10f10309" + "hash": "4ea6f1c095821ad35c99d5b5139a9621" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestConvertedToDraft.php", - "hash": "fee91bd278b2e7700e961acde7a751c0" + "hash": "1a71c5073ce15ed7cacb460daa64ea07" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestDemilestoned.php", - "hash": "d096614ddc9583b4f2354cdb296dce70" + "hash": "39db92a5c990a1278801801fc9316666" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestDequeued.php", - "hash": "dcb65fbc73254ea02f6386878f976ee4" + "hash": "ae96ed16e0682490f59bb1cd4f6b663b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestEdited.php", - "hash": "cc98bb8529cb19b96e5078a46a8caff6" + "hash": "8225bf92188d8c83ccbb3654f3d9ba9b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestEnqueued.php", - "hash": "c6af8903aed7de2372bf83e0fc925a26" + "hash": "333ed819a4ab992b3a470e45f039ae3e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestLabeled.php", - "hash": "161b5ee310dabaca775b968c3cbf020e" + "hash": "50a023c6e00895ed0f24eb775cc89070" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestLocked.php", - "hash": "e6169668f7f979dabc839d183ff2f9a8" + "hash": "43c88c41aa969cfb5594da53b6b6b1a1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestMilestoned.php", - "hash": "dcc5661295b64d964aa60f3d0aafefe4" + "hash": "7e2600d6ce9e43390467599e6ab955a3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestOpened.php", - "hash": "227fd22e64d09695aeb3ba5af85cdd82" + "hash": "3ff5517d0c8468cf516831db307098ac" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReadyForReview.php", - "hash": "168bd4e65884326ab284f6215d47eca4" + "hash": "d23532b0edcee7f5aa98179fb9ee073a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReopened.php", - "hash": "ac3247401d9d2836b9077270eb5d1e4f" + "hash": "6ad37d0a0874d2f816e820b970940510" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewCommentCreated.php", - "hash": "97e572c5b307166addd1f3514eb0ea11" + "hash": "51251251e0c14e5696721fb9b244ba72" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewCommentDeleted.php", - "hash": "0de325bff951c743c528137403c3e982" + "hash": "cfa94ac48da316932a8f822e34be4db0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewCommentEdited.php", - "hash": "fa1402a7f27d1925de4138b494329a91" + "hash": "4d6290786d591b2991fa2e52fd75e1b0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewDismissed.php", - "hash": "6244504871a5b595e095b7df55eca94c" + "hash": "9257933f38290409aca3abfba5e9befa" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewEdited.php", - "hash": "0ebf37c1f9dbffdb8f1f4c583564f18e" + "hash": "5a9c6cfa4acfb4bb4c7058e985c7490c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewRequestRemoved.php", - "hash": "f7c1018237b77ce63e2c704ab5e40e4f" + "hash": "23275cb794e608111e82528752c55ded" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewRequested.php", - "hash": "f4bce80ed02c20baec5bc4859d5d47bc" + "hash": "a7888e338398266d9bf0530f7480265a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewSubmitted.php", - "hash": "2bdf0b83a4e12803b23d7d7ec0bf5b20" + "hash": "59096222740f23b7bd3cee1a44d47fb6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewThreadResolved.php", - "hash": "785a24de2ca214dc7dc12c0a65f94e24" + "hash": "49ef22de576ce21b07555c2ea133348d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewThreadUnresolved.php", - "hash": "591c9611646949318097e831ce533545" + "hash": "05913936448462dff666b284484aba7f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestSynchronize.php", - "hash": "fc2481c443c915552b69871209cbc153" + "hash": "961bcda66b4feaf3e4db0fcffe0c23e4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestUnassigned.php", - "hash": "33109a753f43df3fdf56e6b504e2398b" + "hash": "ea523c27c50fe27b5d287c6f40229804" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestUnlabeled.php", - "hash": "a84b81a9bd449aa2d3889c943763f90c" + "hash": "24c6449ebd78deab25bb72c207db7534" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestUnlocked.php", - "hash": "2d4a63254ed73c4550ef4c807ffe2327" + "hash": "7ca91fa1999dd1a47cd3085b854c1e01" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPush.php", - "hash": "cce6583027382f000504e7b296854017" + "hash": "8e720bbe830ed7f60d0deeb11fe3d12e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRegistryPackagePublished.php", - "hash": "434edb079b4378947360a74fe18246e1" + "hash": "612b5a9aaf8697da052034c33f198cce" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRegistryPackageUpdated.php", - "hash": "24fe371480a48b133fdc14567b06b0bb" + "hash": "dba48201bab180c56a30f4f627c061d4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookReleaseCreated.php", - "hash": "a46288b6a2c7530f32c9e1468c273042" + "hash": "dd401cf0445914cd00d47209412ca9e2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookReleaseDeleted.php", - "hash": "d4a6b94e2b8e41e78b193033c9c0abe7" + "hash": "71577b76a5ef7bd5f61bd78594e4fc96" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookReleaseEdited.php", - "hash": "e64329bc6dba5c021133c604812a27d1" + "hash": "23700cef2c5b4ddc68f12f820b504ac3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookReleasePrereleased.php", - "hash": "de2c5ba794cfa0e3d5d6fec0dd16b444" + "hash": "33771c89817fc18a582a21958d3a6f6c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookReleasePublished.php", - "hash": "4e1bdd7a38080dbac9e91077c8caff5c" + "hash": "e3f27fd167b0232344eb6d91c720fbc6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookReleaseReleased.php", - "hash": "7c714385db0d7d2cc21f5044a72a21be" + "hash": "e0d91edc05932b23ab31a023b8f9d9b0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookReleaseUnpublished.php", - "hash": "d4ec5a016914701ad3b27fb6e1c8e15b" + "hash": "ec0834a33ec24190d34b3f7ddf367924" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryAdvisoryPublished.php", - "hash": "03df421ac6dc0cc9931c083418559233" + "hash": "fed078a6dca885366a971d09c3c90293" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryAdvisoryReported.php", - "hash": "f369e7a2447cc7be7786e6da385e89b3" + "hash": "5e7a6024ba55f11df9b0bfa7f77402b8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryArchived.php", - "hash": "492d41b710228f541074be12d89f63a7" + "hash": "6575b72fcd62a62d5f10cf3d22a710fc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryCreated.php", - "hash": "b0e0ed2aba1dc83388b01fe06d7891e0" + "hash": "cffc835203caec59def2f1937ebcab69" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryDeleted.php", - "hash": "c66d9ecd314aedcd02e65c7a9208a486" + "hash": "2f6cbefd47a031e6df37fd89ba3b4a78" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryDispatchSample.php", - "hash": "55ad658f563b87768edd66032d180006" + "hash": "9cb9af88d966aa295f8f0c9d3bcc7ad5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryEdited.php", - "hash": "3d413e7115b402767bd80072a7193d0c" + "hash": "d1139c449c39c295a2f8e33beee99c04" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryImport.php", - "hash": "d8b55bd5390beb8a399657a7d1dbaa09" + "hash": "2bc4254b7bef00e384bd3b4eea10b377" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryPrivatized.php", - "hash": "a08880b0df03851d22aa5354b78a4622" + "hash": "61e0a516154e3276375fd6f18812fa7d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryPublicized.php", - "hash": "4c38d214f9e3668a68d40b3ab7ed0b7e" + "hash": "bb678ef592227aef0a0d4ed1a5e12cba" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRenamed.php", - "hash": "a780f34e8b4f04caa66d9482b692e2f6" + "hash": "9c080fd23aeebbda5b9c1f415768f512" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryTransferred.php", - "hash": "6e40b892e06f998c53d46b104f563850" + "hash": "423d48d726d1f58a5a486eb48ee3da87" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryUnarchived.php", - "hash": "7364c10596aa9ddae8fb75a5961e5421" + "hash": "04ebba9eee7a5bc1d6568f1b951e82e6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryVulnerabilityAlertCreate.php", - "hash": "0c1e0cba2d67c75c04495f4085595a61" + "hash": "40295ba1e65f9554b508f324b7d757ba" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryVulnerabilityAlertDismiss.php", - "hash": "ce725c14d5a89e0365dc641a5b8cc8bc" + "hash": "e2f5a3ac883c1cf9aa06fd00b8c79401" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryVulnerabilityAlertReopen.php", - "hash": "d694722145d8b1bed447d3f3ac8e9936" + "hash": "0e4ff03036079572528cf16b548318e3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryVulnerabilityAlertResolve.php", - "hash": "85d9b363271e74a46b181f3096a92cf0" + "hash": "12bfe0b7e05eda9c133e979a5c08d926" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertCreated.php", - "hash": "96c6d3aa7d47f524a3b408b5e3ecb7cd" + "hash": "eaaadc243e2f18eddfc30e42b25e7de3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertLocationCreated.php", - "hash": "e9f85dc5f1cf8279196f7ba0411f3889" + "hash": "b92762e591e378e177951fef4b868067" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertLocationCreatedFormEncoded.php", @@ -2512,123 +2512,123 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertReopened.php", - "hash": "2b4a8fb662e631ec8c074a4ae9f256c0" + "hash": "0a4fcb8d268ef85512faf9cbc4cca7a7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertResolved.php", - "hash": "4d51aa91c1d223f0e923c69cd19d0a9e" + "hash": "6764a4d88e5ab488794b7869e0057753" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAdvisoryPublished.php", - "hash": "022a242a3911efd93b03126e20b65846" + "hash": "0844d601d9228808c76dd84542fdd4b6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAdvisoryUpdated.php", - "hash": "e2c208db6a3be5734b791b80aa243b5c" + "hash": "92762ee81a1acd51394e569fefe5bbf4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAdvisoryWithdrawn.php", - "hash": "4beca5a4f371374c6c48806faeb25e2a" + "hash": "63c753fe73ef9d5a1ea48c4d9434d9e5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAndAnalysis.php", - "hash": "8da3d6df33ab1a5c8b7f71eb48631b36" + "hash": "badab5d491045454a19c8d35cd83e2ad" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipCancelled.php", - "hash": "041a772d7c1722c97fda74657daa95db" + "hash": "021ea796cae9eef5502fa3fa0a5d3641" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipCreated.php", - "hash": "31d3d4805ea6cb34c0463333c929b1f6" + "hash": "30f606b151284b73f9984fbb274f8291" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipEdited.php", - "hash": "7aa2f5c5c1b1df53841d0da0370191ee" + "hash": "cc4e74e661f18369a2347ce5f2301621" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipPendingCancellation.php", - "hash": "dfc0ce5cafbd9f9368ecc5e3388c30a0" + "hash": "e5f4c0666e96e41e9e2087d937150303" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipPendingTierChange.php", - "hash": "4ace865a795f34b3bdbf233133c7e1e4" + "hash": "6513f182567e119940c602932f322b02" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipTierChanged.php", - "hash": "f42a6f09873b5f829677220c8c5d0f76" + "hash": "5aaef9c3777078cc0fbe25ea0b5d7e3f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookStarCreated.php", - "hash": "9dd6eafcb3bd8fb10cc70162dee34fda" + "hash": "57e4a229b00f575c2b0315e4f2e4fec7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookStarDeleted.php", - "hash": "1633bd112e10b9ec1b607709adec3d03" + "hash": "dff67d8cbe38a7041238198f9e330cc3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookStatus.php", - "hash": "88c5138932265123129def45db3216d4" + "hash": "b5a7ce4efa0fa3c4158a76bca280f97d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookTeamAdd.php", - "hash": "74929011ab9fb668acde42da2ec75063" + "hash": "0a1c67c267c8f2213a86cb6f6cf33b62" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookTeamAddedToRepository.php", - "hash": "c4f0a141208d2f78d668bb237346100f" + "hash": "1d201a63efdfc00aa96c681068681c23" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookTeamCreated.php", - "hash": "17f912b69e45b75eb0f9d1efbbc85c9d" + "hash": "34b75a4823bf1fb7daf261bef9ac21c9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookTeamDeleted.php", - "hash": "673429cf01d06630970a10ce7aef1fbd" + "hash": "ff93cbf4a9b7ed6e206ce7054f277a54" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookTeamEdited.php", - "hash": "aa6f99735e1c1475fb9c2dbec4ed6835" + "hash": "b935a56fe583c5c7f066671a28ebc606" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookTeamRemovedFromRepository.php", - "hash": "2a11915ce5a35e44644aa7dad7802586" + "hash": "54dc03385590cdce55db80d82a37cb28" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookWatchStarted.php", - "hash": "f0e616d7b11622d2132eeef025c32651" + "hash": "ecb344dafd4eda5aca1e0d791efcf258" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowDispatch.php", - "hash": "c0bc23f4966cd305a42851d5fa8222fb" + "hash": "f1b5f0fed3e17ffd925cb549a12c5374" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobCompleted.php", - "hash": "46146a738509c610e72fc0ce774dee67" + "hash": "6fdc635888a9eb1db12bfa51a1d19dc7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobInProgress.php", - "hash": "1806a1d0766f451d6a41c9cea971d85d" + "hash": "58bffa4ac9871025ed5df8c833a80fd1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobQueued.php", - "hash": "8d9251dc8a0c08cc9d4de4a759fed391" + "hash": "e0fe3d7583e79303be8fadfce65e3520" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowJobWaiting.php", - "hash": "8f03901188ea814575fd6af3d1ffd326" + "hash": "2bc986ac0209aff2f1f75693aa010e79" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowRunCompleted.php", - "hash": "bdcfaa7620cb454e6db945cba3534db9" + "hash": "8191272a79dae18ddcd1f6e9f1f66063" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowRunInProgress.php", - "hash": "1e834cc307ab25e23af7205269df36fe" + "hash": "949ddf82022b48503f8cdec0093647dd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookWorkflowRunRequested.php", - "hash": "c4f82d7c8396df4264f3876d8a92d758" + "hash": "27baef71e705e9e266c559f6e9ede86a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Integration\/Permissions.php", @@ -3636,7 +3636,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCommitCommentCreated\/Comment.php", - "hash": "e93fb81d6c607a612b21491680dfc4ee" + "hash": "4d4faf1e92d9b3e468dc214d59af8125" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentCreated\/Deployment.php", @@ -4928,11 +4928,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "6ce0f5980b25b5e0b6eef72ce49ad35f" + "hash": "f862c10b18535281f438d1fbec0c3e32" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "91b3f78a0a1a55299971f8d8c9bde8fd" + "hash": "39b7d2a55e49ac5dde21a5f6427f3ed9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Teams\/Create\/Request\/ApplicationJson.php", @@ -5648,11 +5648,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/CreateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "42c0debe628a033b4a77dba59415e51a" + "hash": "b61167971914b1bcb506e43350a796dc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "cf9686db0898010dc431ed85b2d2c4f0" + "hash": "ecdd0e1b756a0a481dc77604e510232d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanning\/UpdateAlert\/Request\/ApplicationJson.php", @@ -5908,7 +5908,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/CodeScanning.php", - "hash": "f08caf827c17c05537bcd2ceac1ffbdb" + "hash": "70bd510902fd24c575e8b36da5ccc197" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/SecretScanning.php", @@ -12260,27 +12260,27 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewApproved.php", - "hash": "95d99d96ec3bcdb03ce12f680fb656c5" + "hash": "d6bb6d7297ab95c0d3e8acebdde9609a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewRejected.php", - "hash": "805a0a3bac10d1090cbea408327c21a9" + "hash": "187de16ef1726dce43dae7a8b0c653e2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewRequested.php", - "hash": "8cb4440743cbcc3144c8185282062be1" + "hash": "8d1cf6b59937ef868c432e4b66004599" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php", - "hash": "a9f640c730494728b766cf3aa408f82a" + "hash": "39670611879d73026aee4d8e3812db0d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php", - "hash": "f3b82bb3b954a8899c6f3f314de87186" + "hash": "737ff37de9230c4c2524ad695c1f2568" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php", - "hash": "636d849d96d0047c1cc79fcc0ed7666f" + "hash": "0d6ccdf8bcb22690fda5a5a4e1b64856" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/SecurityAdvisories\/CreateRepositoryAdvisoryCveRequest\/Response\/ApplicationJson\/Accepted.php", @@ -19124,27 +19124,27 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepo.php", - "hash": "cd534311fa9bd40cb68ca090562ea131" + "hash": "fb4d0aa194b31834145007e8a1bb0f62" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListAlertsForRepo.php", - "hash": "15fa6058933f4f841ef6b0ae36933605" + "hash": "3321ac1b9ff5a4d14fb616aecff9a487" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepoTest.php", - "hash": "f2b382361c38041e51849e87672b4e6d" + "hash": "6906381a4d67a1672c04f27e740e8558" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepoListing.php", - "hash": "0a32bcf9a4cdd026fc139b9dfa647deb" + "hash": "b7b492f4a4dd375ef76c7a19d2fd2a57" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListAlertsForRepoListing.php", - "hash": "f5d52f99384eb57d1a7141ebed51a640" + "hash": "2c96dbdbcb58ae6b69b6eedabf9d336e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepoListingTest.php", - "hash": "d9af945cfd29fef5a93e8d86d4e8d18c" + "hash": "fbb5acc77865200cd2bf0acc0b8520a7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/GetAlert.php", @@ -19172,51 +19172,51 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListAlertInstances.php", - "hash": "f66c88a04568ceb8bc710cecb3bfd6ca" + "hash": "64e4a670857c2b74410e649701122434" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListAlertInstances.php", - "hash": "cae82dec41a3b6db84109ffe2ef21529" + "hash": "42fcc49e2d68555a2e7c4c927adc46bb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListAlertInstancesTest.php", - "hash": "608be4da68cdda1d29e6cb79092d0039" + "hash": "784b6ff73435b9452e634dec88d4d7ee" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListAlertInstancesListing.php", - "hash": "ee040adee83fccca56f81248e2e5181c" + "hash": "2439d62b03c97ec59aed96478d56bdd4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListAlertInstancesListing.php", - "hash": "0dbfd92b0587c8e10d9b67d7a45243aa" + "hash": "baa88455f42ae40c60668b0e8689c8f7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListAlertInstancesListingTest.php", - "hash": "dcbe9f3a2040f03179088530db2925e2" + "hash": "a770e35407014bec89ed9c9a926f331b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListRecentAnalyses.php", - "hash": "cafe2a7f9715cd2d69d3f33dcac77a32" + "hash": "093984630cf5dff9d83adecbc0806777" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListRecentAnalyses.php", - "hash": "1e5f105092039adc242ae7222e9905c5" + "hash": "a02bc6d5d5ba60ffa9dd1973b5bf532f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListRecentAnalysesTest.php", - "hash": "23d6a8bde348272663be2c9c33cbe548" + "hash": "94db41da54d94bc131fbc42878c29bc7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListRecentAnalysesListing.php", - "hash": "1b44277be97f53f1d5e4bbaa24143447" + "hash": "368a6debd10dc1561a4a399620863848" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListRecentAnalysesListing.php", - "hash": "54e3b52dad23aecbc06f67a0d6c9f0e0" + "hash": "425e260d04aa658ac775e39678b25201" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListRecentAnalysesListingTest.php", - "hash": "5cc7a81ff9292eb056a493f2485bf3fc" + "hash": "d8c1e695ceee6f858df4a108a3929fd3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/GetAnalysis.php", @@ -25960,11 +25960,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookBranchProtectionConfigurationDisabled.php", - "hash": "5dd9dcba499e54cafec3694330bc7a23" + "hash": "c9f0ca0c0bff43e3010475e08c35e212" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookBranchProtectionConfigurationEnabled.php", - "hash": "385edebfce1c6ed0b16a1fbc776f784a" + "hash": "07b498a976cf68b93b6aa4b7b7d87cf0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/WebhookProjectsV2ItemEdited\/Changes.php", @@ -26148,7 +26148,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeScanning.php", - "hash": "1b6754582b6e3e5946c558713bdf6e36" + "hash": "970411a4ca5d002d358e2b856d83339a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Dependabot.php", @@ -26428,7 +26428,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/CodeScanning.php", - "hash": "db0d7b60cd0355aa6fb7dcb545c70620" + "hash": "9154c231889dae484772a6850665ed2f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/SecretScanning.php", @@ -26644,7 +26644,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php", - "hash": "33b6a3b93b5a4e7daea08442df5f68e6" + "hash": "84baabab6ef8bb8c8b3c3f087fdfd342" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", @@ -26652,7 +26652,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "77cf4e9f2070d524bd40e99d7a32ad14" + "hash": "2014150963529b43cc83f62aec1d76b6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -26660,7 +26660,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", - "hash": "710927ca5a60788ee53d7b42a98e72a3" + "hash": "76793865eba0d5ff1d66bfbb57e579c4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Nine.php", @@ -26744,7 +26744,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php", - "hash": "5e5cd15d2359ac8520c6d733964930b6" + "hash": "603ef2017db782aa7bb02ff55436588f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", @@ -26756,7 +26756,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", - "hash": "2cc43ed3de040350a0aad4f187e57e9e" + "hash": "2f5651418ef8728eab5f722ecccdfb6f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", @@ -26764,7 +26764,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", - "hash": "09e8d9aa4b5f085a498d86e1b24ed0c3" + "hash": "eac263fb986c59c066b20e37b97d038a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Ten.php", @@ -29028,7 +29028,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "f83633d89f250466759485b7ee48484c" + "hash": "bf0ddf9257c01bdec967621b29c30e08" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php", @@ -29254,10 +29254,6 @@ "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryWebhooks.php", "hash": "29a6239c21a3e9e0e532220e8b5b7047" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SimpleUserWebhooks.php", - "hash": "f00aa09e943a0123df8de0e676b9cecd" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryWebhooks\/Permissions.php", "hash": "d43c483294ba23a4c31f8c303b757570" @@ -29396,15 +29392,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Classroom.php", - "hash": "02f6372552db046c05b441836f161c6d" + "hash": "ed20500b8835d6fcd62dcbb3f9e156e3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Classroom.php", - "hash": "4c9c9a2e77b2feb8cbdf700ce0f35596" + "hash": "f0bbf21281af97440effc0843dc69d2b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Classroom.php", - "hash": "807e4e22eecda39075d932568777714e" + "hash": "32894857f64ee444d59d4563e17df8c2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Assignments\/AssignmentId.php", @@ -29744,19 +29740,19 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyCreated.php", - "hash": "92b395f839c62f409ced3dbb027b8aa2" + "hash": "1d0b4884ad77502533164db0612989d1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyDeleted.php", - "hash": "a61f2596cc9e3bf07331e7b04f21304f" + "hash": "d425d782e20da2e3ccd9f838026720ad" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyUpdated.php", - "hash": "af3b0cdbc4324d3707789b7e58452d33" + "hash": "60a7b0d6121b45b1755600c71990cc0e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyValuesUpdated.php", - "hash": "cf725dd9310b7fa5372b5fce0cfdf900" + "hash": "2041c61c8275bc5c39bdec8a4309f09d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet822B8B83\/Tiet93E9FF34\/Tiet64571DFE\/Tiet4D2FA622.php", @@ -29836,11 +29832,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "66c86c106d5f40c841df6ce14baf6614" + "hash": "1c3415b9d6264025844fb6b5ea85fd09" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "7a6a047d8b1714aff9bd196c1033c803" + "hash": "9fc6c55f06a2a3c2fe63cf0b67b6eb92" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -30132,119 +30128,119 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/BranchProtectionConfiguration.php", - "hash": "c4cb1f03d147e92d4ce9b57b47048efa" + "hash": "8edd896a42323e150f3f68edf2da1182" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/BranchProtectionRule.php", - "hash": "877af9401dec8a0680a896ed61e87c63" + "hash": "67226999b6c7ae5259657975f8171387" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CheckRun.php", - "hash": "f79aada6ae26df5f3b2dfc7101165c21" + "hash": "4bc00d9abd88621a05158052befd5656" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CheckSuite.php", - "hash": "45fc8d742c5edbfbbdcd8440bd052cb3" + "hash": "d7e37cab46a37ca6051a770c97bcb4c5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CodeScanningAlert.php", - "hash": "3a20399bbe40f5fadfc9c99f9d02c541" + "hash": "a0019683be374cec3bee486fc134b1f1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CommitComment.php", - "hash": "13b98bcb302af01ee274c10249665a9a" + "hash": "1782269a44b57353315748286ec21b1a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Create.php", - "hash": "0e31ccfd5ff45a0e05d392f7c4959877" + "hash": "2c618d9bb4800b4dc7fc7c576b463082" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomProperty.php", - "hash": "7a5b573365afdfc68442c32b5a11abd2" + "hash": "13ecbf9e024c8609a69246cc1ba7c2a7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomPropertyValues.php", - "hash": "c8d6f7d4dcaa3f5983eb4cb986afa8a0" + "hash": "25ba272c161e2b830b0e4dbb544bd897" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Delete.php", - "hash": "4be7080a8c8d423685d72e52b677d893" + "hash": "f62e5215cc3f8c7898ff217b63587e70" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DependabotAlert.php", - "hash": "3ffe4cb7654ba91a9bcf3111e7f329af" + "hash": "0364697d4ca334ed1531de6cd4ca6501" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DeployKey.php", - "hash": "0b86f2a004038e70c32b5e02b36dc000" + "hash": "b01e7ad4e5e289555d30f130d220996c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Deployment.php", - "hash": "a2abab578de852d786eefe59f17bd15c" + "hash": "27a53e74c45f07a7be5d29cae9a0b183" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DeploymentProtectionRule.php", - "hash": "0c7d874c34bbfa1d0f3e32d6bee3031e" + "hash": "2058e3ce35c8e4da7e9afbaa3d84bd4e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DeploymentReview.php", - "hash": "3e5d8fc1269907711e5e47c9fb668656" + "hash": "bb105c6ea0ed485ec01fb55d58650838" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DeploymentStatus.php", - "hash": "c04ce5c54d97942af588cfec7722ba96" + "hash": "efd3874ef7d234f1bbb51e8e41fef7d3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Discussion.php", - "hash": "e99ec2c466bb869021b7e5fd8ca1332d" + "hash": "5aaa887ad912646c436e9fe6c73133dd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/DiscussionComment.php", - "hash": "f4fb0678f79a58faaf425fa4af4bf1e8" + "hash": "719ca81e6b39e7d24c5998efe3f8bcad" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Fork.php", - "hash": "456604aa98c02e76e2989b386942a446" + "hash": "4cc3eeebdaa9c887d5fb8f0916926d32" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/GithubAppAuthorization.php", - "hash": "f451093fed37a50b2d243687136ea56b" + "hash": "639fda31454a652036ed345c92499e87" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Gollum.php", - "hash": "516441d22889cbc19e17037863bc4793" + "hash": "438ff11c97d34848d3806710a8d36737" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Installation.php", - "hash": "558a94485bcdda60ff82a77064a08201" + "hash": "277669e0716d3a5943b77ace257eb79e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/InstallationRepositories.php", - "hash": "e38c0c782fca9c5b1b6dbec24a2cdc02" + "hash": "799db2c44fb16d44e068801882223de1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/InstallationTarget.php", - "hash": "a0d9128faee4ce1fe8c6fb2093089b0b" + "hash": "7e0dbdb430dc445548d309e93ddc20b3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/IssueComment.php", - "hash": "eb0a38c1860fa2d000b067a901afe357" + "hash": "457976e78f64c35b1ef745e09173ebd3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Issues.php", - "hash": "9a4799824947cfd8221714c2a3cfa2bf" + "hash": "bc2349b101fb7aa60bd2d84a250c3caf" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Label.php", - "hash": "8d7b8a1861fe96790707e8239f9bf0ea" + "hash": "72f533de4fce51526a79c798d5f6169e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/MarketplacePurchase.php", - "hash": "8677a81376103df55ffcad429b0d129d" + "hash": "e22f3df73a03dcec8f246e55d7e5f005" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Member.php", - "hash": "87ed505d9aa058d2d3ab08ff6155f0dd" + "hash": "8984065ad365f7e959e70ea6305e4f55" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Membership.php", @@ -30252,167 +30248,167 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/MergeGroup.php", - "hash": "0f11220258c7eaba974e882e86593eea" + "hash": "b8f2cf5e39b3ffe1317eb57d4ae2dbe3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Meta.php", - "hash": "7591a8e854d6efcde9080fe54108b10b" + "hash": "33dd512e641a7c570c6d600a3384f100" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Milestone.php", - "hash": "2d666429c524c7a3305f01696bd2a9c5" + "hash": "9435d7c16c5888a82c53dff17448d919" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/OrgBlock.php", - "hash": "8b752a388ef65dedd2326f4f33822fbf" + "hash": "89a2c339cafd36e1d7b346a6b6aa0dd2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Organization.php", - "hash": "0a98078e5f76b7fe1f4ac0c06f3f5cbf" + "hash": "4e31510f3f213421bfadaaa6c5463a3f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Package.php", - "hash": "03d7ddb1e14ba2e5b99631e096486266" + "hash": "2be69a5a412bf3aff988c440f191b5b3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/PageBuild.php", - "hash": "3627922b79e681d59cbde7b38aef6905" + "hash": "4675ea4ff6e13370d89d55e0b503ff88" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/PersonalAccessTokenRequest.php", - "hash": "8f57fd4ab4c60ed5b3d19085771e5b05" + "hash": "adfcc68be4395955191f68d1d187e8c8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Ping.php", - "hash": "e1a3a9d60fa844d6b648f910e2c48a11" + "hash": "3aa0a7fceeda39b39c47b0de6b5cc4fb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/ProjectCard.php", - "hash": "0355348ace151f423d831782af885f81" + "hash": "c74d7dc4a9cfb9b4d255cd4e91877011" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Project.php", - "hash": "738111ca212679f4b314c875f24e713e" + "hash": "99ae343686c8fe52183567e02a0cb0b6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/ProjectColumn.php", - "hash": "dc0b961c12c9f5fc31fa6e62b5bdca9d" + "hash": "65835a1bdbd8fae27e204afe027bb9c9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/ProjectsV2.php", - "hash": "8727a29705e7ec7671848bbab129ec32" + "hash": "a850409bffbf080118aafbdccb65150e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/ProjectsV2Item.php", - "hash": "19fe7974c2ad7b6bd7da8d45a1954a4d" + "hash": "b63f5f3a51b5404c42d698634036c24c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Public_.php", - "hash": "7e8c1bf800df5b9ae19ba01241c779a6" + "hash": "9846103cadcee8ab13535fa603fc7a44" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/PullRequest.php", - "hash": "dcef79ad28649d906679cc8f3d3cc6ed" + "hash": "7a8d78c550bdc4f78d8ca862ac299cc7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/PullRequestReviewComment.php", - "hash": "43d7756d33f7d9e930536732d2a54882" + "hash": "2d6ded98f543317a8182f405fda00b44" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/PullRequestReview.php", - "hash": "ac6e034723b332bdafe08cae6a05773c" + "hash": "368e62466dfe5376901cbc0d94d56993" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/PullRequestReviewThread.php", - "hash": "cb65089185409d912cca71a9a28cb574" + "hash": "914d0ac966090ca4812d1c5379ae18d2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Push.php", - "hash": "97bb7bb09ba72f9f2f8d0d514c996cea" + "hash": "a6671eb90522355d980b0d9dff1e8b35" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/RegistryPackage.php", - "hash": "533c8e97c86848173471a4a9e8741e67" + "hash": "7194f552d31f58b9a2c597356c1b23a3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Release.php", - "hash": "7736348ee2ac2811567f44b658e29b29" + "hash": "7ec6844a466b688ed92e4ac3cad2c2f7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/RepositoryAdvisory.php", - "hash": "5a9c8b42fcd6f46b7b0d1caed95a6bd1" + "hash": "e4c7a7759b46ed543df7c1615ad2e675" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Repository.php", - "hash": "295ef2668c9c8d838295b00e35c3f815" + "hash": "c5af00aa4cea7fe01233ee3e48c16c4a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/RepositoryDispatch.php", - "hash": "f7172e885ca1c3523000928481de2174" + "hash": "3e8ed9131645406867aae7f5700a3367" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/RepositoryImport.php", - "hash": "c4663ff04559120a0d49b69b0518468f" + "hash": "e44954e2c43ebd9bb328b2f34ab5ea12" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/RepositoryRuleset.php", - "hash": "434e54d552b82072baa50e1e99827bc1" + "hash": "500542c0b1ee5aa5513fe8f2cb7b73e9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/RepositoryVulnerabilityAlert.php", - "hash": "b3ddf420a50d176c819356b8d6e10000" + "hash": "b6ad77c31461266eac96d9f92e2449de" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecretScanningAlert.php", - "hash": "4771fcc14a8eec2bc3bc28a3cdcb7230" + "hash": "7576c69c79d601f6d70eeb3d7b375020" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecretScanningAlertLocation.php", - "hash": "653f1c3fb3f498379eaeb3e480130337" + "hash": "4fbe5d0987c9f53d8214f494f3e334cf" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecurityAdvisory.php", - "hash": "7cc6c2156bd956ea8ab22acb78283650" + "hash": "27d8eda0e88d7ef642c1fae0365d8e7b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecurityAndAnalysis.php", - "hash": "f1aae5b0c44ebcaab8ed0f9a9d747c6a" + "hash": "c3377cd833273331d4704456351a75a7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Sponsorship.php", - "hash": "0e1a54235970cde9e53db1b55d807234" + "hash": "54a35f76cd633f7e4f92dbc8996aa387" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Star.php", - "hash": "365917894e3123157bd65e8554a12eb4" + "hash": "10291f93ecf4bf343e17c51836eca80d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Status.php", - "hash": "8d031655db6b75cf7a5b5175ea83417a" + "hash": "b821aaa4e1158bd800b7cd0e3cfdeb42" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/TeamAdd.php", - "hash": "0a8e0f598b020e75b88a4e616e6bdb41" + "hash": "29a7117c3cd2ce1dbd4101a14d3470dd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Team.php", - "hash": "afec1a2e2b86e7a58e6ea31ed8c93b7c" + "hash": "7601a746059e37888d4ba4027a8bcb2a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Watch.php", - "hash": "70d4ba1cac64cd3ebf82b715b01c3fbe" + "hash": "81ff725ec3a0fe9d70cbc5ebfe8c7a81" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/WorkflowDispatch.php", - "hash": "49c5ded50bdc85f8bc8e4054bb57c986" + "hash": "c758047b3e94f1e19675c14b3b18747d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/WorkflowJob.php", - "hash": "f092c73a538082e950c5612d49de4a65" + "hash": "906a7c8c151c67f04e10d8c2b35aafd5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/WorkflowRun.php", - "hash": "69d23f8a0c4863161c404c62a9f7c1ff" + "hash": "495b09394f00501cf83b7e1ca9116e3d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeScanningRefFull.php", @@ -30720,7 +30716,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertValidated.php", - "hash": "4c28828e38c00252576ddef4ec4d765c" + "hash": "bb1521a70f9d99da78aaa05511268732" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Pages\/Deployments.php", @@ -31844,23 +31840,23 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookExemptionRequestCancelled.php", - "hash": "7de4afa3cd68500099ed0c5b3980b8dd" + "hash": "b14d1403e17ade5440737eeb6d3f9123" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookExemptionRequestCompleted.php", - "hash": "aa8a781b76eb9ab1d5ff3269fad5c12b" + "hash": "de39202803f4a9c7ef4d2fc9d75c6395" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookExemptionRequestCreated.php", - "hash": "724de6556ad46cc228e2edd1113babc3" + "hash": "5b913b651e66ba12ada052fb7f6a97da" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookExemptionRequestResponseDismissed.php", - "hash": "7ac066e40c28ab19ccaba2fa55f91e04" + "hash": "05ed70452abd39036e2c0248df0373bd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookExemptionRequestResponseSubmitted.php", - "hash": "f1259db41434d4b29491ebc97908815c" + "hash": "978e391e935229b5b93b5f0ca4063bb3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ExemptionRequestPushRulesetBypass\/Data.php", @@ -31876,7 +31872,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/ExemptionRequestSecretScanning.php", - "hash": "e57aa27dcf7436a8d8c0da997f57dc22" + "hash": "5195c33125efbfb928756af9fc5e3712" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/EnterpriseTeam.php", @@ -31892,7 +31888,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/ExemptionRequestPushRuleset.php", - "hash": "47927660875a8fff462e6bb2e63d61f2" + "hash": "16b21de30ff2511919b52e2975f69cbc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/TeamRoleAssignment.php", @@ -32368,15 +32364,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2StatusUpdateCreated.php", - "hash": "4993d305516c07623d25e7966b3d18e4" + "hash": "889c28fef8ed8b5aaa657de770a2fb69" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2StatusUpdateDeleted.php", - "hash": "be71b36712ed59b5d5463e7ae2886a11" + "hash": "adafe855a1820278e18eaa3c6d2fc3f6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookProjectsV2StatusUpdateEdited.php", - "hash": "efe2c7d7b8094f33d6e282cbb870b64f" + "hash": "c8a0a7a6a68f48d29c1d407da0e80eec" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet8B8BCF54\/TietBDCE4C1B\/Tiet5B8E1256\/Tiet2DC1C4C9.php", @@ -32424,7 +32420,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/ProjectsV2StatusUpdate.php", - "hash": "3df0cf1602a5b3cf11cdc10f80acd559" + "hash": "33be6841f855fe494405e6c37022b378" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietCE7694F2\/Tiet7ECCBCAF\/TietF71CBA25\/Tiet10035FEE.php", @@ -32744,19 +32740,19 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesParentIssueAdded.php", - "hash": "13ae9b1045dca94e5609eb09a1e42b29" + "hash": "1c588ee82e2b95447163b391a8bcf3ba" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesParentIssueRemoved.php", - "hash": "0fea12966e232a70da000be831e737c4" + "hash": "357b5f8fb1cdb0345ffd318cbb4d72e2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesSubIssueAdded.php", - "hash": "a6ff3e3c0fd724a30be9ad312529b54d" + "hash": "62effff809b8188b0947560aa599195d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesSubIssueRemoved.php", - "hash": "27c51f2252977da4b455984e9b51a23c" + "hash": "75d3e6c981db82c95228d4ba3d3b0a29" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory\/Epss.php", @@ -32772,7 +32768,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SubIssues.php", - "hash": "e133405715af7c12ffef981d5433ac3f" + "hash": "8ae19af647e51b1468987356de72b42c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/OrganizationCustomOrganizationRoleCreateSchema.php", @@ -32800,7 +32796,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssignmentsForAnAssignment.php", - "hash": "936779952fb42e0e18409b4035105166" + "hash": "0f71ff90ae75c611242e2ff33ebab0d0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentTest.php", @@ -32812,7 +32808,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListing.php", - "hash": "31dd17eabacd5546384856ddd2f2c8b9" + "hash": "e8ae2a0a87ca7904d07135620c3f63c2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Classroom\/ListAcceptedAssignmentsForAnAssignmentListingTest.php", diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/BranchProtectionConfiguration.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/BranchProtectionConfiguration.php index 9768a8f6833..666c7ee60d4 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/BranchProtectionConfiguration.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/BranchProtectionConfiguration.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookBranchProtectionConfigurationDisabled; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookBranchProtectionConfigurationEnabled; use EventSauce\ObjectHydrator\IterableList; @@ -63,7 +62,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookBranchProtectionConfigurationEnabled' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookBranchProtectionConfigurationEnabled($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -176,7 +174,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3388,256 +3386,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookBranchProtectionConfigurationEnabled(array $payload): WebhookBranchProtectionConfigurationEnabled { $properties = []; @@ -3744,7 +3492,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3830,7 +3578,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookBranchProtectionConfigurationEnabled' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookBranchProtectionConfigurationEnabled($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -3934,7 +3681,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5635,97 +5382,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookBranchProtectionConfigurationEnabled(mixed $object): mixed { assert($object instanceof WebhookBranchProtectionConfigurationEnabled); @@ -5766,7 +5422,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/BranchProtectionRule.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/BranchProtectionRule.php index 7ed11eab12b..b1e148e777f 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/BranchProtectionRule.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/BranchProtectionRule.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookBranchProtectionRuleCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookBranchProtectionRuleDeleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookBranchProtectionRuleEdited; @@ -78,7 +77,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksRule' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksRule($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookBranchProtectionRuleDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookBranchProtectionRuleDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookBranchProtectionRuleEdited' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookBranchProtectionRuleEdited($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookBranchProtectionRuleEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes($payload), @@ -224,7 +222,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3763,256 +3761,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookBranchProtectionRuleDeleted(array $payload): WebhookBranchProtectionRuleDeleted { $properties = []; @@ -4139,7 +3887,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4309,7 +4057,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4965,7 +4713,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksRule' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksRule($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookBranchProtectionRuleDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookBranchProtectionRuleDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookBranchProtectionRuleEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookBranchProtectionRuleEdited($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookBranchProtectionRuleEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes($object), @@ -5086,7 +4833,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_rule: $result['rule'] = $rule; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6908,97 +6655,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookBranchProtectionRuleDeleted(mixed $object): mixed { assert($object instanceof WebhookBranchProtectionRuleDeleted); @@ -7043,7 +6699,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_rule: $result['rule'] = $rule; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7102,7 +6758,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_rule: $result['rule'] = $rule; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckRun.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckRun.php index 9ae5ca2a43e..10f761e4079 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckRun.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckRun.php @@ -28,7 +28,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleCheckSuite; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckRunCompleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckRunCompletedFormEncoded; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckRunCreated; @@ -100,7 +99,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckRunCompletedFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckRunCompletedFormEncoded($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckRunCreated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckRunCreated($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckRunCreatedFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckRunCreatedFormEncoded($payload), @@ -220,7 +218,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5852,256 +5850,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckRunCompletedFormEncoded(array $payload): WebhookCheckRunCompletedFormEncoded { $properties = []; @@ -6238,7 +5986,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6418,7 +6166,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6608,7 +6356,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6740,7 +6488,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckRunCompletedFormEncoded' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckRunCompletedFormEncoded($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckRunCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckRunCreated($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckRunCreatedFormEncoded' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckRunCreatedFormEncoded($object), @@ -6851,7 +6598,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9761,97 +9508,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckRunCompletedFormEncoded(mixed $object): mixed { assert($object instanceof WebhookCheckRunCompletedFormEncoded); @@ -9903,7 +9559,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9964,7 +9620,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_requestedAction: $result['requested_action'] = $requestedAction; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -10037,7 +9693,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckSuite.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckSuite.php index 7ab7ee007ac..f2d3b323e9b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckSuite.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckSuite.php @@ -12,7 +12,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckSuiteCompleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckSuiteCompleted\CheckSuite\App; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckSuiteCompleted\CheckSuite\App\Owner; @@ -75,7 +74,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckSuiteRequested' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckSuiteRequested($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckSuiteRequested\CheckSuite' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckSuiteRequested⚡️CheckSuite($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckSuiteRequested\CheckSuite\App' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckSuiteRequested⚡️CheckSuite⚡️App($payload), @@ -223,7 +221,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4733,256 +4731,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckSuiteRequested(array $payload): WebhookCheckSuiteRequested { $properties = []; @@ -5109,7 +4857,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6557,7 +6305,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7948,7 +7696,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckSuiteRequested' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckSuiteRequested($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckSuiteRequested\CheckSuite' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckSuiteRequested⚡️CheckSuite($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCheckSuiteRequested\CheckSuite\App' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckSuiteRequested⚡️CheckSuite⚡️App($object), @@ -8071,7 +7818,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -10536,97 +10283,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCheckSuiteRequested(mixed $object): mixed { assert($object instanceof WebhookCheckSuiteRequested); @@ -10671,7 +10327,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11485,7 +11141,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CodeScanningAlert.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CodeScanningAlert.php index b50847bd967..05647c8e22c 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CodeScanningAlert.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CodeScanningAlert.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCodeScanningAlertAppearedInBranch; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCodeScanningAlertAppearedInBranch\Alert\DismissedBy; @@ -81,7 +80,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCodeScanningAlertClosedByUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCodeScanningAlertClosedByUser\Alert' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissedBy' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️DismissedBy($payload), @@ -273,7 +271,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4244,256 +4242,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser(array $payload): WebhookCodeScanningAlertClosedByUser { $properties = []; @@ -4642,7 +4390,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5639,7 +5387,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6421,7 +6169,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7429,7 +7177,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -8176,7 +7924,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -8789,7 +8537,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCodeScanningAlertClosedByUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCodeScanningAlertClosedByUser\Alert' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCodeScanningAlertClosedByUser\Alert\DismissedBy' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser⚡️Alert⚡️DismissedBy($object), @@ -8939,7 +8686,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11045,97 +10792,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCodeScanningAlertClosedByUser(mixed $object): mixed { assert($object instanceof WebhookCodeScanningAlertClosedByUser); @@ -11186,7 +10842,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11697,7 +11353,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -12068,7 +11724,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -12607,7 +12263,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -12957,7 +12613,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CommitComment.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CommitComment.php index 5271f0bc8ae..e16f1f60743 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CommitComment.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CommitComment.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCommitCommentCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCommitCommentCreated\Comment; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCommitCommentCreated\Comment\Reactions; @@ -68,7 +67,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -200,7 +198,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3982,256 +3980,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -4297,7 +4045,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -4404,7 +4151,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6386,97 +6133,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Create.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Create.php index 6be3eca1579..e927eca06b0 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Create.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Create.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCreate; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -218,7 +216,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3430,256 +3428,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3742,7 +3490,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3862,7 +3609,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5563,97 +5310,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CustomProperty.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CustomProperty.php index fcf6560d96c..2051d4a0fb7 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CustomProperty.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CustomProperty.php @@ -7,7 +7,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCustomPropertyCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCustomPropertyDeleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCustomPropertyDeleted\Definition; @@ -52,7 +52,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️EnterpriseWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCustomPropertyDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCustomPropertyDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCustomPropertyDeleted\Definition' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCustomPropertyDeleted⚡️Definition($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCustomPropertyUpdated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCustomPropertyUpdated($payload), @@ -166,7 +166,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -618,7 +618,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(array $payload): SimpleUser { $properties = []; $missingFields = []; @@ -854,17 +854,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_starredAt: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new SimpleUserWebhooks(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -974,7 +974,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1134,7 +1134,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1194,7 +1194,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️EnterpriseWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCustomPropertyDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCustomPropertyDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCustomPropertyDeleted\Definition' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCustomPropertyDeleted⚡️Definition($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCustomPropertyUpdated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookCustomPropertyUpdated($object), @@ -1305,7 +1305,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -1508,9 +1508,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(mixed $object): mixed { - assert($object instanceof SimpleUserWebhooks); + assert($object instanceof SimpleUser); $result = []; $name = $object->name; @@ -1644,7 +1644,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -1706,7 +1706,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CustomPropertyValues.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CustomPropertyValues.php index da07865704a..f542e730bb5 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CustomPropertyValues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CustomPropertyValues.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookCustomPropertyValuesUpdated; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -174,7 +172,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3408,256 +3406,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3720,7 +3468,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3823,7 +3570,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $newPropertyValues = $object->newPropertyValues; @@ -5544,97 +5291,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Delete.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Delete.php index c6ea3e19cb9..798e07fac0c 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Delete.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Delete.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDelete; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -196,7 +194,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3408,256 +3406,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3720,7 +3468,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3829,7 +3576,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5530,97 +5277,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DependabotAlert.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DependabotAlert.php index 5349a154e80..a9638d820eb 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DependabotAlert.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DependabotAlert.php @@ -23,7 +23,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDependabotAlertAutoDismissed; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDependabotAlertAutoReopened; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDependabotAlertCreated; @@ -87,7 +86,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDependabotAlertAutoReopened' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDependabotAlertAutoReopened($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDependabotAlertCreated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDependabotAlertCreated($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDependabotAlertDismissed' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDependabotAlertDismissed($payload), @@ -225,7 +223,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4243,256 +4241,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDependabotAlertAutoReopened(array $payload): WebhookDependabotAlertAutoReopened { $properties = []; @@ -4619,7 +4367,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4769,7 +4517,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4919,7 +4667,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5069,7 +4817,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5219,7 +4967,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5369,7 +5117,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5465,7 +5213,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDependabotAlertAutoReopened' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDependabotAlertAutoReopened($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDependabotAlertCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDependabotAlertCreated($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDependabotAlertDismissed' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDependabotAlertDismissed($object), @@ -5578,7 +5325,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7639,97 +7386,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDependabotAlertAutoReopened(mixed $object): mixed { assert($object instanceof WebhookDependabotAlertAutoReopened); @@ -7774,7 +7430,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7824,7 +7480,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7874,7 +7530,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7924,7 +7580,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7974,7 +7630,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8024,7 +7680,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeployKey.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeployKey.php index 83dfd12ad53..a20feb43782 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeployKey.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeployKey.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeployKeyCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeployKeyDeleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksDeployKey; @@ -65,7 +64,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeployKeyDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeployKeyDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -198,7 +196,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3528,256 +3526,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeployKeyDeleted(array $payload): WebhookDeployKeyDeleted { $properties = []; @@ -3904,7 +3652,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3991,7 +3739,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeployKeyDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeployKeyDeleted($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -4099,7 +3846,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5845,97 +5592,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeployKeyDeleted(mixed $object): mixed { assert($object instanceof WebhookDeployKeyDeleted); @@ -5980,7 +5636,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Deployment.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Deployment.php index b100246e8f3..c6778694398 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Deployment.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Deployment.php @@ -13,7 +13,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\Deployment\Creator; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp; @@ -77,7 +76,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksWorkflow' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\WorkflowRun' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\WorkflowRun\Actor' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️Actor($payload), @@ -217,7 +215,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4790,256 +4788,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow(array $payload): WebhooksWorkflow { $properties = []; @@ -7678,7 +7426,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksWorkflow' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\WorkflowRun' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\WorkflowRun\Actor' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️Actor($object), @@ -7793,7 +7540,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflow = $object->workflow; @@ -10323,97 +10070,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow(mixed $object): mixed { assert($object instanceof WebhooksWorkflow); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php index 3a854a2741b..34bf5adfdb8 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentProtectionRule.php @@ -16,7 +16,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentProtectionRuleRequested; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -67,7 +66,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -223,7 +221,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3852,256 +3850,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -4166,7 +3914,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -4323,7 +4070,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6220,97 +5967,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentReview.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentReview.php index 352d31906aa..1a02829a96c 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentReview.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentReview.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentReviewApproved; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentReviewApproved\WorkflowRun; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentReviewApproved\WorkflowRun\Actor; @@ -75,7 +74,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksWorkflowJobRun' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflowJobRun($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentReviewApproved\WorkflowRun' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentReviewApproved⚡️WorkflowRun($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentReviewApproved\WorkflowRun\Actor' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentReviewApproved⚡️WorkflowRun⚡️Actor($payload), @@ -258,7 +256,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3749,256 +3747,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflowJobRun(array $payload): WebhooksWorkflowJobRun { $properties = []; @@ -6705,7 +6453,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -9390,7 +9138,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -12396,7 +12144,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksWorkflowJobRun' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflowJobRun($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentReviewApproved\WorkflowRun' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentReviewApproved⚡️WorkflowRun($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentReviewApproved\WorkflowRun\Actor' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentReviewApproved⚡️WorkflowRun⚡️Actor($object), @@ -12552,7 +12299,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_reviewers: $result['reviewers'] = $reviewers; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $since = $object->since; @@ -14441,97 +14188,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflowJobRun(mixed $object): mixed { assert($object instanceof WebhooksWorkflowJobRun); @@ -16228,7 +15884,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_reviewers: $result['reviewers'] = $reviewers; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $since = $object->since; @@ -17924,7 +17580,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_reviewers: $result['reviewers'] = $reviewers; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $since = $object->since; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentStatus.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentStatus.php index a658f923782..db425f051c4 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentStatus.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DeploymentStatus.php @@ -13,7 +13,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentStatusCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentStatusCreated\CheckRun; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentStatusCreated\Deployment; @@ -85,7 +84,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksWorkflow' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentStatusCreated\WorkflowRun' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentStatusCreated⚡️WorkflowRun($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentStatusCreated\WorkflowRun\Actor' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentStatusCreated⚡️WorkflowRun⚡️Actor($payload), @@ -266,7 +264,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6265,256 +6263,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow(array $payload): WebhooksWorkflow { $properties = []; @@ -9376,7 +9124,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksWorkflow' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentStatusCreated\WorkflowRun' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentStatusCreated⚡️WorkflowRun($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentStatusCreated\WorkflowRun\Actor' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentStatusCreated⚡️WorkflowRun⚡️Actor($object), @@ -9504,7 +9251,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflow = $object->workflow; @@ -12881,97 +12628,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow(mixed $object): mixed { assert($object instanceof WebhooksWorkflow); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Discussion.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Discussion.php index 6292eadef4f..cac58426935 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Discussion.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Discussion.php @@ -16,7 +16,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionAnswered; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCategoryChanged; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCategoryChanged\Changes; @@ -94,7 +93,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCategoryChanged' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCategoryChanged($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCategoryChanged\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCategoryChanged⚡️Changes($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCategoryChanged\Changes\Category' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCategoryChanged⚡️Changes⚡️Category($payload), @@ -268,7 +266,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5105,256 +5103,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCategoryChanged(array $payload): WebhookDiscussionCategoryChanged { $properties = []; @@ -5501,7 +5249,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5858,7 +5606,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6008,7 +5756,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6158,7 +5906,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6328,7 +6076,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6617,7 +6365,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6863,7 +6611,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7013,7 +6761,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7163,7 +6911,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7333,7 +7081,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7522,7 +7270,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7692,7 +7440,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7842,7 +7590,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7992,7 +7740,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -8086,7 +7834,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCategoryChanged' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCategoryChanged($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCategoryChanged\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCategoryChanged⚡️Changes($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCategoryChanged\Changes\Category' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCategoryChanged⚡️Changes⚡️Category($object), @@ -8219,7 +7966,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -10729,97 +10476,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCategoryChanged(mixed $object): mixed { assert($object instanceof WebhookDiscussionCategoryChanged); @@ -10868,7 +10524,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -10985,7 +10641,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11035,7 +10691,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11085,7 +10741,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11144,7 +10800,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11246,7 +10902,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11330,7 +10986,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11380,7 +11036,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11430,7 +11086,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11484,7 +11140,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11541,7 +11197,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11595,7 +11251,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11645,7 +11301,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11695,7 +11351,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DiscussionComment.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DiscussionComment.php index 22c244f463d..fe1f2db569d 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DiscussionComment.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/DiscussionComment.php @@ -17,7 +17,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCommentCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCommentDeleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCommentEdited; @@ -80,7 +79,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCommentDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCommentDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCommentEdited' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCommentEdited($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCommentEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes($payload), @@ -236,7 +234,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5073,256 +5071,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCommentDeleted(array $payload): WebhookDiscussionCommentDeleted { $properties = []; @@ -5469,7 +5217,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5659,7 +5407,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5822,7 +5570,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCommentDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCommentDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCommentEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCommentEdited($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDiscussionCommentEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCommentEdited⚡️Changes($object), @@ -5937,7 +5684,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8447,97 +8194,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDiscussionCommentDeleted(mixed $object): mixed { assert($object instanceof WebhookDiscussionCommentDeleted); @@ -8586,7 +8242,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8644,7 +8300,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ExemptionRequestPushRuleset.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ExemptionRequestPushRuleset.php index c2c0393e6d1..61c02926cc9 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ExemptionRequestPushRuleset.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ExemptionRequestPushRuleset.php @@ -19,7 +19,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestCancelled; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestCompleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestCreated; @@ -73,7 +72,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ExemptionRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ExemptionRequest($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestCompleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestCompleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestCreated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestCreated($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestResponseDismissed' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestResponseDismissed($payload), @@ -211,7 +209,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3642,256 +3640,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestCompleted(array $payload): WebhookExemptionRequestCompleted { $properties = []; @@ -4018,7 +3766,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4168,7 +3916,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4338,7 +4086,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4582,7 +4330,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4710,7 +4458,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ExemptionRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ExemptionRequest($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestCompleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestCompleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestCreated($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestResponseDismissed' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestResponseDismissed($object), @@ -4827,7 +4574,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_exemptionRequest: $result['exemption_request'] = $exemptionRequest; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6668,97 +6415,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestCompleted(mixed $object): mixed { assert($object instanceof WebhookExemptionRequestCompleted); @@ -6808,7 +6464,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_exemptionRequest: $result['exemption_request'] = $exemptionRequest; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6863,7 +6519,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_exemptionRequest: $result['exemption_request'] = $exemptionRequest; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6922,7 +6578,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_exemptionResponse: $result['exemption_response'] = $exemptionResponse; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7029,7 +6685,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_exemptionResponse: $result['exemption_response'] = $exemptionResponse; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ExemptionRequestSecretScanning.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ExemptionRequestSecretScanning.php index 33f6d00d265..430d6c96bf8 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ExemptionRequestSecretScanning.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ExemptionRequestSecretScanning.php @@ -19,7 +19,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestCancelled; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestCompleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestCreated; @@ -73,7 +72,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ExemptionRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ExemptionRequest($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestCompleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestCompleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestCreated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestCreated($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestResponseDismissed' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestResponseDismissed($payload), @@ -211,7 +209,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3642,256 +3640,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestCompleted(array $payload): WebhookExemptionRequestCompleted { $properties = []; @@ -4018,7 +3766,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4168,7 +3916,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4338,7 +4086,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4582,7 +4330,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4710,7 +4458,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ExemptionRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ExemptionRequest($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestCompleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestCompleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestCreated($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookExemptionRequestResponseDismissed' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestResponseDismissed($object), @@ -4827,7 +4574,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_exemptionRequest: $result['exemption_request'] = $exemptionRequest; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6668,97 +6415,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookExemptionRequestCompleted(mixed $object): mixed { assert($object instanceof WebhookExemptionRequestCompleted); @@ -6808,7 +6464,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_exemptionRequest: $result['exemption_request'] = $exemptionRequest; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6863,7 +6519,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_exemptionRequest: $result['exemption_request'] = $exemptionRequest; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6922,7 +6578,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_exemptionResponse: $result['exemption_response'] = $exemptionResponse; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7029,7 +6685,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_exemptionResponse: $result['exemption_response'] = $exemptionResponse; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Fork.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Fork.php index 86ee820038c..66fffa7a015 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Fork.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Fork.php @@ -12,7 +12,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookFork; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookFork\Forkee; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookFork\Forkee\License; @@ -68,7 +67,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -189,7 +187,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4835,256 +4833,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -5151,7 +4899,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -5255,7 +5002,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7581,97 +7328,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/GithubAppAuthorization.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/GithubAppAuthorization.php index f25760bb43c..54136cc2714 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/GithubAppAuthorization.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/GithubAppAuthorization.php @@ -4,7 +4,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\WebHook; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookGithubAppAuthorizationRevoked; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -42,7 +42,7 @@ public function hydrateObject(string $className, array $payload): object { return match ($className) { 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookGithubAppAuthorizationRevoked' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookGithubAppAuthorizationRevoked($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } @@ -73,7 +73,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -97,7 +97,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(array $payload): SimpleUser { $properties = []; $missingFields = []; @@ -333,17 +333,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_starredAt: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new SimpleUserWebhooks(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -379,7 +379,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookGithubAppAuthorizationRevoked' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookGithubAppAuthorizationRevoked($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -451,15 +451,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_action: $result['action'] = $action; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(mixed $object): mixed { - assert($object instanceof SimpleUserWebhooks); + assert($object instanceof SimpleUser); $result = []; $name = $object->name; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Gollum.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Gollum.php index 5bbbc0d2624..998f16de350 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Gollum.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Gollum.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookGollum; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -174,7 +172,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3386,256 +3384,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3698,7 +3446,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3808,7 +3555,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5509,97 +5256,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Installation.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Installation.php index 34e155b0dbc..abb9536ef01 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Installation.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Installation.php @@ -15,7 +15,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationDeleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationNewPermissionsAccepted; @@ -70,7 +69,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksUser($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookInstallationDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationNewPermissionsAccepted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookInstallationNewPermissionsAccepted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationSuspend' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookInstallationSuspend($payload), @@ -217,7 +215,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4455,256 +4453,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookInstallationDeleted(array $payload): WebhookInstallationDeleted { $properties = []; @@ -4833,7 +4581,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4985,7 +4733,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5137,7 +4885,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5289,7 +5037,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5377,7 +5125,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksUser($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookInstallationDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationNewPermissionsAccepted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookInstallationNewPermissionsAccepted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationSuspend' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookInstallationSuspend($object), @@ -5508,7 +5255,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_requester: $result['requester'] = $requester; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7871,97 +7618,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookInstallationDeleted(mixed $object): mixed { assert($object instanceof WebhookInstallationDeleted); @@ -8020,7 +7676,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_requester: $result['requester'] = $requester; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8084,7 +7740,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_requester: $result['requester'] = $requester; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8148,7 +7804,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_requester: $result['requester'] = $requester; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8212,7 +7868,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_requester: $result['requester'] = $requester; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/InstallationRepositories.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/InstallationRepositories.php index b294858c98c..2cf073e863b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/InstallationRepositories.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/InstallationRepositories.php @@ -16,7 +16,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationRepositoriesAdded; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationRepositoriesRemoved; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksUser; @@ -68,7 +67,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksUser($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationRepositoriesRemoved' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookInstallationRepositoriesRemoved($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -234,7 +232,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4472,256 +4470,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookInstallationRepositoriesRemoved(array $payload): WebhookInstallationRepositoriesRemoved { $properties = []; @@ -4881,7 +4629,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4969,7 +4717,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksUser($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationRepositoriesRemoved' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookInstallationRepositoriesRemoved($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -5105,7 +4852,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_requester: $result['requester'] = $requester; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7468,97 +7215,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookInstallationRepositoriesRemoved(mixed $object): mixed { assert($object instanceof WebhookInstallationRepositoriesRemoved); @@ -7631,7 +7287,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_requester: $result['requester'] = $requester; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/InstallationTarget.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/InstallationTarget.php index 53c7afc6381..fa181f458f6 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/InstallationTarget.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/InstallationTarget.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationTargetRenamed; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationTargetRenamed\Account; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookInstallationTargetRenamed\Changes; @@ -70,7 +69,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -222,7 +220,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3979,256 +3977,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -4295,7 +4043,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -4411,7 +4158,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $targetType = $object->targetType; @@ -6429,97 +6176,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/IssueComment.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/IssueComment.php index 825262ee9d4..d46c754bdf1 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/IssueComment.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/IssueComment.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Comment; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Comment\Reactions; @@ -92,7 +91,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssueComment' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssueComment($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssueComment\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssueComment⚡️Reactions($payload), @@ -282,7 +280,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6732,256 +6730,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted(array $payload): WebhookIssueCommentDeleted { $properties = []; @@ -7128,7 +6876,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -10258,7 +10006,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -15445,7 +15193,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssueComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssueComment($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssueComment\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssueComment⚡️Reactions($object), @@ -15583,7 +15330,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -19102,97 +18849,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted(mixed $object): mixed { assert($object instanceof WebhookIssueCommentDeleted); @@ -19241,7 +18897,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -20961,7 +20617,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Issues.php index 0f5b110a7d3..5ad627d7608 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Issues.php @@ -12,7 +12,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesAssigned; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue; @@ -110,7 +109,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\Assignee' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️Assignee($payload), @@ -426,7 +424,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6271,256 +6269,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed(array $payload): WebhookIssuesClosed { $properties = []; @@ -6647,7 +6395,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -9180,7 +8928,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -11733,7 +11481,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -14760,7 +14508,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -17528,7 +17276,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -20061,7 +19809,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -22614,7 +22362,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -25167,7 +24915,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -31607,7 +31355,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -34140,7 +33888,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -36693,7 +36441,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -40770,7 +40518,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -41190,7 +40938,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -41340,7 +41088,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -43873,7 +43621,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -44010,7 +43758,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\Assignee' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️Assignee($object), @@ -44288,7 +44035,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -47556,97 +47303,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed(mixed $object): mixed { assert($object instanceof WebhookIssuesClosed); @@ -47691,7 +47347,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -49142,7 +48798,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -50602,7 +50258,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -52309,7 +51965,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -53851,7 +53507,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -55302,7 +54958,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -56752,7 +56408,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -58212,7 +57868,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -61727,7 +61383,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -63178,7 +62834,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -64628,7 +64284,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -66741,7 +66397,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -66966,7 +66622,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -67016,7 +66672,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -68462,7 +68118,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Label.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Label.php index 78edc8fa9ad..9edbf89a168 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Label.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Label.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookLabelCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookLabelDeleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookLabelEdited; @@ -70,7 +69,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookLabelDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookLabelDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookLabelEdited' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookLabelEdited($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookLabelEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookLabelEdited⚡️Changes($payload), @@ -208,7 +206,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3516,256 +3514,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookLabelDeleted(array $payload): WebhookLabelDeleted { $properties = []; @@ -3892,7 +3640,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4062,7 +3810,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4318,7 +4066,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookLabelDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookLabelDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookLabelEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookLabelEdited($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookLabelEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookLabelEdited⚡️Changes($object), @@ -4436,7 +4183,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6171,97 +5918,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookLabelDeleted(mixed $object): mixed { assert($object instanceof WebhookLabelDeleted); @@ -6306,7 +5962,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6365,7 +6021,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/MarketplacePurchase.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/MarketplacePurchase.php index a358e53dbcd..7715829b380 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/MarketplacePurchase.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/MarketplacePurchase.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMarketplacePurchaseCancelled; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMarketplacePurchaseChanged; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase; @@ -77,7 +76,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMarketplacePurchaseChanged' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMarketplacePurchaseChanged($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMarketplacePurchaseChanged⚡️PreviousMarketplacePurchase($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase\Account' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMarketplacePurchaseChanged⚡️PreviousMarketplacePurchase⚡️Account($payload), @@ -253,7 +251,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4077,256 +4075,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMarketplacePurchaseChanged(array $payload): WebhookMarketplacePurchaseChanged { $properties = []; @@ -4484,7 +4232,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4971,7 +4719,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5458,7 +5206,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5945,7 +5693,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6037,7 +5785,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMarketplacePurchaseChanged' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMarketplacePurchaseChanged($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMarketplacePurchaseChanged⚡️PreviousMarketplacePurchase($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMarketplacePurchaseChanged\PreviousMarketplacePurchase\Account' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMarketplacePurchaseChanged⚡️PreviousMarketplacePurchase⚡️Account($object), @@ -6174,7 +5921,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8102,97 +7849,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMarketplacePurchaseChanged(mixed $object): mixed { assert($object instanceof WebhookMarketplacePurchaseChanged); @@ -8254,7 +7910,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8442,7 +8098,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8625,7 +8281,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8803,7 +8459,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Member.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Member.php index 46966e94be9..53d06c882e4 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Member.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Member.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMemberAdded; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMemberAdded\Changes; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMemberAdded\Changes\Permission; @@ -73,7 +72,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMemberEdited' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMemberEdited($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMemberEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMemberEdited⚡️Changes($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMemberEdited\Changes\OldPermission' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️OldPermission($payload), @@ -230,7 +228,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3811,256 +3809,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMemberEdited(array $payload): WebhookMemberEdited { $properties = []; @@ -4207,7 +3955,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4487,7 +4235,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4577,7 +4325,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMemberEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMemberEdited($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMemberEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMemberEdited⚡️Changes($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMemberEdited\Changes\OldPermission' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMemberEdited⚡️Changes⚡️OldPermission($object), @@ -4703,7 +4450,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6618,97 +6365,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMemberEdited(mixed $object): mixed { assert($object instanceof WebhookMemberEdited); @@ -6762,7 +6418,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6878,7 +6534,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/MergeGroup.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/MergeGroup.php index 457853c0f15..1f45173fd6b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/MergeGroup.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/MergeGroup.php @@ -16,7 +16,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleCommit\Committer; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMergeGroupChecksRequested; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMergeGroupDestroyed; use EventSauce\ObjectHydrator\IterableList; @@ -68,7 +67,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMergeGroupDestroyed' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMergeGroupDestroyed($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -181,7 +179,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3532,256 +3530,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMergeGroupDestroyed(array $payload): WebhookMergeGroupDestroyed { $properties = []; @@ -3899,7 +3647,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3988,7 +3736,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMergeGroupDestroyed' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMergeGroupDestroyed($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -4097,7 +3844,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5830,97 +5577,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMergeGroupDestroyed(mixed $object): mixed { assert($object instanceof WebhookMergeGroupDestroyed); @@ -5974,7 +5630,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Meta.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Meta.php index bf36dd46482..9a2c89d1470 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Meta.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Meta.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMetaDeleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMetaDeleted\Hook; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMetaDeleted\Hook\Config; @@ -66,7 +65,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -209,7 +207,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3600,256 +3598,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3914,7 +3662,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -4034,7 +3781,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5800,97 +5547,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Milestone.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Milestone.php index a7d3e0f230d..a3deba8b60e 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Milestone.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Milestone.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMilestoneClosed; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMilestoneCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMilestoneDeleted; @@ -75,7 +74,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMilestoneCreated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMilestoneCreated($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksMilestone3' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksMilestone3($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksMilestone3\Creator' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksMilestone3⚡️Creator($payload), @@ -217,7 +215,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3883,256 +3881,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMilestoneCreated(array $payload): WebhookMilestoneCreated { $properties = []; @@ -4259,7 +4007,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4863,7 +4611,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5033,7 +4781,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5352,7 +5100,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5440,7 +5188,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookMilestoneCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMilestoneCreated($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksMilestone3' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksMilestone3($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksMilestone3\Creator' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksMilestone3⚡️Creator($object), @@ -5557,7 +5304,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7501,97 +7248,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookMilestoneCreated(mixed $object): mixed { assert($object instanceof WebhookMilestoneCreated); @@ -7636,7 +7292,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7929,7 +7585,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7983,7 +7639,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8101,7 +7757,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/OrgBlock.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/OrgBlock.php index cdfb7106621..ec850409ea0 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/OrgBlock.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/OrgBlock.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookOrgBlockBlocked; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookOrgBlockUnblocked; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksUser; @@ -65,7 +64,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookOrgBlockUnblocked' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookOrgBlockUnblocked($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -198,7 +196,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3660,256 +3658,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookOrgBlockUnblocked(array $payload): WebhookOrgBlockUnblocked { $properties = []; @@ -4036,7 +3784,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4123,7 +3871,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookOrgBlockUnblocked' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookOrgBlockUnblocked($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -4236,7 +3983,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6103,97 +5850,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookOrgBlockUnblocked(mixed $object): mixed { assert($object instanceof WebhookOrgBlockUnblocked); @@ -6243,7 +5899,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Organization.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Organization.php index e35fcd543f0..f913df4e466 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Organization.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Organization.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookOrganizationDeleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookOrganizationMemberAdded; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookOrganizationMemberInvited; @@ -75,7 +74,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookOrganizationMemberAdded' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookOrganizationMemberAdded($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookOrganizationMemberInvited' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookOrganizationMemberInvited($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookOrganizationMemberInvited\Invitation' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookOrganizationMemberInvited⚡️Invitation($payload), @@ -216,7 +214,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3761,256 +3759,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookOrganizationMemberAdded(array $payload): WebhookOrganizationMemberAdded { $properties = []; @@ -4137,7 +3885,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4287,7 +4035,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5117,7 +4865,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5287,7 +5035,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5444,7 +5192,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookOrganizationMemberAdded' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookOrganizationMemberAdded($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookOrganizationMemberInvited' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookOrganizationMemberInvited($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookOrganizationMemberInvited\Invitation' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookOrganizationMemberInvited⚡️Invitation($object), @@ -5565,7 +5312,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7461,97 +7208,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookOrganizationMemberAdded(mixed $object): mixed { assert($object instanceof WebhookOrganizationMemberAdded); @@ -7596,7 +7252,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7646,7 +7302,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $user = $object->user; @@ -8112,7 +7768,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8176,7 +7832,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Package.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Package.php index 6cfb286d065..04539ecc834 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Package.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Package.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPackagePublished; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPackagePublished\Package\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPackagePublished\Package\PackageVersion; @@ -96,7 +95,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPackageUpdated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPackageUpdated($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPackageUpdated\Package' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPackageUpdated⚡️Package($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPackageUpdated\Package\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️Owner($payload), @@ -251,7 +249,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5653,256 +5651,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPackageUpdated(array $payload): WebhookPackageUpdated { $properties = []; @@ -6029,7 +5777,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7888,7 +7636,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPackageUpdated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPackageUpdated($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPackageUpdated\Package' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPackageUpdated⚡️Package($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPackageUpdated\Package\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPackageUpdated⚡️Package⚡️Owner($object), @@ -8008,7 +7755,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -11007,97 +10754,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPackageUpdated(mixed $object): mixed { assert($object instanceof WebhookPackageUpdated); @@ -11142,7 +10798,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PageBuild.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PageBuild.php index 37a787d4817..a3c6d3816e0 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PageBuild.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PageBuild.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPageBuild; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPageBuild\Build; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPageBuild\Build\Error; @@ -68,7 +67,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -200,7 +198,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3817,256 +3815,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -4132,7 +3880,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -4239,7 +3986,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6166,97 +5913,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PersonalAccessTokenRequest.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PersonalAccessTokenRequest.php index 8f71be844a1..06817be2cb6 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PersonalAccessTokenRequest.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PersonalAccessTokenRequest.php @@ -14,7 +14,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\PersonalAccessTokenRequest\PermissionsUpgraded; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPersonalAccessTokenRequestApproved; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPersonalAccessTokenRequestCancelled; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPersonalAccessTokenRequestCreated; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\PersonalAccessTokenRequest\PermissionsResult' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️PersonalAccessTokenRequest⚡️PermissionsResult($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️EnterpriseWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPersonalAccessTokenRequestCancelled' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPersonalAccessTokenRequestCancelled($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPersonalAccessTokenRequestCreated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPersonalAccessTokenRequestCreated($payload), @@ -166,7 +164,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1164,256 +1162,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation(array $payload): SimpleInstallation { $properties = []; @@ -1541,7 +1289,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1671,7 +1419,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1801,7 +1549,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -2064,7 +1812,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\PersonalAccessTokenRequest\PermissionsResult' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️PersonalAccessTokenRequest⚡️PermissionsResult($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️EnterpriseWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPersonalAccessTokenRequestCancelled' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPersonalAccessTokenRequestCancelled($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPersonalAccessTokenRequestCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPersonalAccessTokenRequestCreated($object), @@ -2157,7 +1904,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_organization: $result['organization'] = $organization; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $installation = $object->installation; @@ -2545,97 +2292,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation(mixed $object): mixed { assert($object instanceof SimpleInstallation); @@ -2676,7 +2332,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_organization: $result['organization'] = $organization; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $installation = $object->installation; @@ -2712,7 +2368,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_organization: $result['organization'] = $organization; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $installation = $object->installation; @@ -2753,7 +2409,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_enterprise: $result['enterprise'] = $enterprise; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $installation = $object->installation; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Ping.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Ping.php index ca0b2eb5509..36843caf726 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Ping.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Ping.php @@ -13,7 +13,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPing; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPing\Hook; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPing\Hook\Config; @@ -65,7 +64,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPingFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPingFormEncoded($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -158,7 +156,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3517,256 +3515,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPingFormEncoded(array $payload): WebhookPingFormEncoded { $properties = []; @@ -3860,7 +3608,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPingFormEncoded' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPingFormEncoded($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -3970,7 +3717,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $zen = $object->zen; @@ -5768,97 +5515,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPingFormEncoded(mixed $object): mixed { assert($object instanceof WebhookPingFormEncoded); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Project.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Project.php index c27e9acb1f4..7c6363f4538 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Project.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Project.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectClosed; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectDeleted; @@ -73,7 +72,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectCreated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectCreated($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectEdited' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectEdited($payload), @@ -212,7 +210,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3845,256 +3843,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectCreated(array $payload): WebhookProjectCreated { $properties = []; @@ -4221,7 +3969,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4371,7 +4119,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4541,7 +4289,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4810,7 +4558,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4898,7 +4646,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectCreated($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectEdited($object), @@ -5017,7 +4764,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6942,97 +6689,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectCreated(mixed $object): mixed { assert($object instanceof WebhookProjectCreated); @@ -7082,7 +6738,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7142,7 +6798,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7211,7 +6867,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7314,7 +6970,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectCard.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectCard.php index d75cb07d267..9cacdb63046 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectCard.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectCard.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectCardConverted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectCardConverted\Changes; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectCardConverted\Changes\Note; @@ -75,7 +74,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectCardCreated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectCardCreated($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectCardDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectCardDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectCardDeleted\ProjectCard' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectCardDeleted⚡️ProjectCard($payload), @@ -239,7 +237,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3941,256 +3939,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectCardCreated(array $payload): WebhookProjectCardCreated { $properties = []; @@ -4317,7 +4065,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4467,7 +4215,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5058,7 +4806,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5297,7 +5045,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5877,7 +5625,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectCardCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectCardCreated($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectCardDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectCardDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectCardDeleted\ProjectCard' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectCardDeleted⚡️ProjectCard($object), @@ -6005,7 +5752,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7963,97 +7710,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectCardCreated(mixed $object): mixed { assert($object instanceof WebhookProjectCardCreated); @@ -8103,7 +7759,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8158,7 +7814,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8456,7 +8112,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8548,7 +8204,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectColumn.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectColumn.php index 6ef407227e1..f327c9df694 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectColumn.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectColumn.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectColumnCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectColumnDeleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectColumnEdited; @@ -69,7 +68,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectColumnDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectColumnDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectColumnEdited' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectColumnEdited($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectColumnEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectColumnEdited⚡️Changes($payload), @@ -206,7 +204,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3536,256 +3534,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectColumnDeleted(array $payload): WebhookProjectColumnDeleted { $properties = []; @@ -3912,7 +3660,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4082,7 +3830,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4301,7 +4049,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4388,7 +4136,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectColumnDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectColumnDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectColumnEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectColumnEdited($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectColumnEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectColumnEdited⚡️Changes($object), @@ -4510,7 +4257,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6251,97 +5998,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectColumnDeleted(mixed $object): mixed { assert($object instanceof WebhookProjectColumnDeleted); @@ -6396,7 +6052,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6460,7 +6116,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6543,7 +6199,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectsV2.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectsV2.php index 54e486b2706..19877ae5514 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectsV2.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectsV2.php @@ -7,7 +7,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ProjectClosed; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ProjectCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ProjectDeleted; @@ -58,7 +57,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectsV2' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ProjectsV2($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ProjectCreated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ProjectCreated($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ProjectDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ProjectDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ProjectEdited' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ProjectEdited($payload), @@ -158,7 +156,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -824,256 +822,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ProjectCreated(array $payload): WebhookProjectsV2ProjectCreated { $properties = []; @@ -1160,7 +908,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1270,7 +1018,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1400,7 +1148,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1773,7 +1521,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1833,7 +1581,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectsV2' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ProjectsV2($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ProjectCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ProjectCreated($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ProjectDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ProjectDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ProjectEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ProjectEdited($object), @@ -1931,7 +1678,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_projectsVTwo: $result['projects_v2'] = $projectsVTwo; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2169,97 +1916,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ProjectCreated(mixed $object): mixed { assert($object instanceof WebhookProjectsV2ProjectCreated); @@ -2286,7 +1942,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_projectsVTwo: $result['projects_v2'] = $projectsVTwo; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2318,7 +1974,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_projectsVTwo: $result['projects_v2'] = $projectsVTwo; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2354,7 +2010,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_projectsVTwo: $result['projects_v2'] = $projectsVTwo; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2526,7 +2182,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_projectsVTwo: $result['projects_v2'] = $projectsVTwo; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectsV2Item.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectsV2Item.php index a1011267601..cf21f13a15c 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectsV2Item.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectsV2Item.php @@ -7,7 +7,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ItemArchived; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ItemConverted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ItemConverted\Changes; @@ -63,7 +62,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectsV2Item' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ProjectsV2Item($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ItemConverted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ItemConverted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ItemConverted\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ItemConverted⚡️Changes($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ItemConverted\Changes\ContentType' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ItemConverted⚡️Changes⚡️ContentType($payload), @@ -184,7 +182,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -857,256 +855,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ItemConverted(array $payload): WebhookProjectsV2ItemConverted { $properties = []; @@ -1213,7 +961,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1403,7 +1151,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1513,7 +1261,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1647,7 +1395,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1777,7 +1525,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1987,7 +1735,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -2049,7 +1797,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectsV2Item' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ProjectsV2Item($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ItemConverted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ItemConverted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ItemConverted\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ItemConverted⚡️Changes($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2ItemConverted\Changes\ContentType' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ItemConverted⚡️Changes⚡️ContentType($object), @@ -2152,7 +1899,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_projectsVTwoItem: $result['projects_v2_item'] = $projectsVTwoItem; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2409,97 +2156,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2ItemConverted(mixed $object): mixed { assert($object instanceof WebhookProjectsV2ItemConverted); @@ -2530,7 +2186,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_projectsVTwoItem: $result['projects_v2_item'] = $projectsVTwoItem; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2603,7 +2259,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_projectsVTwoItem: $result['projects_v2_item'] = $projectsVTwoItem; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2635,7 +2291,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_projectsVTwoItem: $result['projects_v2_item'] = $projectsVTwoItem; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2679,7 +2335,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_projectsVTwoItem: $result['projects_v2_item'] = $projectsVTwoItem; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2715,7 +2371,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_projectsVTwoItem: $result['projects_v2_item'] = $projectsVTwoItem; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2792,7 +2448,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_projectsVTwoItem: $result['projects_v2_item'] = $projectsVTwoItem; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectsV2StatusUpdate.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectsV2StatusUpdate.php index 7bfea89b6d0..81f35163817 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectsV2StatusUpdate.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/ProjectsV2StatusUpdate.php @@ -7,7 +7,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2StatusUpdateCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2StatusUpdateDeleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2StatusUpdateEdited; @@ -56,7 +55,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectsV2StatusUpdate' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ProjectsV2StatusUpdate($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2StatusUpdateDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2StatusUpdateDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2StatusUpdateEdited' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2StatusUpdateEdited($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2StatusUpdateEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2StatusUpdateEdited⚡️Changes($payload), @@ -154,7 +152,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -758,256 +756,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2StatusUpdateDeleted(array $payload): WebhookProjectsV2StatusUpdateDeleted { $properties = []; @@ -1094,7 +842,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1224,7 +972,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -1547,7 +1295,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectsV2StatusUpdate' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ProjectsV2StatusUpdate($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2StatusUpdateDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2StatusUpdateDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2StatusUpdateEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2StatusUpdateEdited($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookProjectsV2StatusUpdateEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2StatusUpdateEdited⚡️Changes($object), @@ -1643,7 +1390,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_projectsVTwoStatusUpdate: $result['projects_v2_status_update'] = $projectsVTwoStatusUpdate; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -1872,97 +1619,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookProjectsV2StatusUpdateDeleted(mixed $object): mixed { assert($object instanceof WebhookProjectsV2StatusUpdateDeleted); @@ -1989,7 +1645,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_projectsVTwoStatusUpdate: $result['projects_v2_status_update'] = $projectsVTwoStatusUpdate; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -2030,7 +1686,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_projectsVTwoStatusUpdate: $result['projects_v2_status_update'] = $projectsVTwoStatusUpdate; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Public_.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Public_.php index a409e8253bd..d6fed1c7387 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Public_.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Public_.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPublic; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -163,7 +161,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3375,256 +3373,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3687,7 +3435,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3787,7 +3534,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5488,97 +5235,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequest.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequest.php index 23d1904c971..f4715f3950c 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequest.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequest.php @@ -13,7 +13,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestAssigned; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestAssigned\PullRequest\Assignee; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestAssigned\PullRequest\AutoMerge; @@ -140,7 +139,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestAutoMergeDisabled' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Links' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest⚡️Links($payload), @@ -669,7 +667,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -10379,256 +10377,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled(array $payload): WebhookPullRequestAutoMergeDisabled { $properties = []; @@ -10777,7 +10525,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -17197,7 +16945,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -23606,7 +23354,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -28107,7 +27855,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -28268,7 +28016,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -34688,7 +34436,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -41117,7 +40865,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -41536,7 +41284,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -47965,7 +47713,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -54470,7 +54218,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -60879,7 +60627,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -61040,7 +60788,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -61201,7 +60949,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -61362,7 +61110,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -61545,7 +61293,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -67974,7 +67722,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -74653,7 +74401,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -81062,7 +80810,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -89528,7 +89276,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestAutoMergeDisabled' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestAutoMergeDisabled\PullRequest\Links' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled⚡️PullRequest⚡️Links($object), @@ -90008,7 +89755,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -94977,97 +94724,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestAutoMergeDisabled(mixed $object): mixed { assert($object instanceof WebhookPullRequestAutoMergeDisabled); @@ -95118,7 +94774,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -98271,7 +97927,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -101416,7 +101072,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -103009,7 +102665,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -103067,7 +102723,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -106215,7 +105871,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -109369,7 +109025,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -109517,7 +109173,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -112671,7 +112327,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -115860,7 +115516,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -119020,7 +118676,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -119073,7 +118729,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -119126,7 +118782,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -119179,7 +118835,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -119238,7 +118894,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -122397,7 +122053,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -125732,7 +125388,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -128887,7 +128543,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequestReview.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequestReview.php index 0e965f08cdc..1429be35518 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequestReview.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequestReview.php @@ -12,7 +12,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewDismissed; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewDismissed\PullRequest; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewDismissed\PullRequest\Assignee; @@ -121,7 +120,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewDismissed\Review\Links\Html' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️Links⚡️Html($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewDismissed\Review\Links\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️Links⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewDismissed\Review\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️User($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewEdited' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewEdited($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Changes($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewEdited\Changes\Body' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Changes⚡️Body($payload), @@ -361,7 +359,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -9957,256 +9955,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewEdited(array $payload): WebhookPullRequestReviewEdited { $properties = []; @@ -10373,7 +10121,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -16842,7 +16590,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -28660,7 +28408,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewDismissed\Review\Links\Html' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️Links⚡️Html($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewDismissed\Review\Links\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️Links⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewDismissed\Review\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewDismissed⚡️Review⚡️User($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewEdited($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Changes($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewEdited\Changes\Body' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewEdited⚡️Changes⚡️Body($object), @@ -28836,7 +28583,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_review: $result['review'] = $review; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -33628,97 +33375,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewEdited(mixed $object): mixed { assert($object instanceof WebhookPullRequestReviewEdited); @@ -33771,7 +33427,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_review: $result['review'] = $review; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -36847,7 +36503,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_review: $result['review'] = $review; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequestReviewComment.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequestReviewComment.php index b56553c208f..60bc915846c 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequestReviewComment.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequestReviewComment.php @@ -12,7 +12,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewCommentCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewCommentCreated\Comment; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewCommentCreated\Comment\Links; @@ -124,7 +123,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewCommentDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksReviewComment' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksReviewComment($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksReviewComment\Links' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksReviewComment⚡️Links($payload), @@ -362,7 +360,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -10322,256 +10320,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted(array $payload): WebhookPullRequestReviewCommentDeleted { $properties = []; @@ -10718,7 +10466,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -17656,7 +17404,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -26841,7 +26589,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewCommentDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksReviewComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksReviewComment($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksReviewComment\Links' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksReviewComment⚡️Links($object), @@ -27019,7 +26766,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -31963,97 +31710,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewCommentDeleted(mixed $object): mixed { assert($object instanceof WebhookPullRequestReviewCommentDeleted); @@ -32102,7 +31758,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -35393,7 +35049,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequestReviewThread.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequestReviewThread.php index 63ecbacae06..fdc4657b116 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequestReviewThread.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/PullRequestReviewThread.php @@ -12,7 +12,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewThreadResolved; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewThreadResolved\PullRequest; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Assignee; @@ -112,7 +111,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewThreadResolved\Thread' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️Thread($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewThreadUnresolved' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest($payload), @@ -285,7 +283,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -9264,256 +9262,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️Thread(array $payload): Thread { $properties = []; @@ -9681,7 +9429,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -16343,7 +16091,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewThreadResolved\Thread' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️Thread($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewThreadUnresolved' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPullRequestReviewThreadUnresolved\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewThreadUnresolved⚡️PullRequest($object), @@ -16486,7 +16233,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $thread = $object->thread; @@ -20950,97 +20697,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPullRequestReviewThreadResolved⚡️Thread(mixed $object): mixed { assert($object instanceof Thread); @@ -21111,7 +20767,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $thread = $object->thread; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Push.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Push.php index f2accce6a7f..dfae5d395d9 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Push.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Push.php @@ -7,7 +7,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository\CustomProperties; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPush; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPush\HeadCommit; @@ -65,7 +65,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPush\Repository\License' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPush⚡️Repository⚡️License($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPush\Repository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPush⚡️Repository⚡️Owner($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPush\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPush⚡️Repository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️CustomProperties($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository\License' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️License($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️Owner($payload), @@ -308,7 +308,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -2465,7 +2465,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(array $payload): SimpleUser { $properties = []; $missingFields = []; @@ -2701,17 +2701,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_starredAt: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new SimpleUserWebhooks(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -3176,7 +3176,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPush\Repository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPush⚡️Repository⚡️License($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPush\Repository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPush⚡️Repository⚡️Owner($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookPush\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookPush⚡️Repository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3333,7 +3333,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -4281,9 +4281,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(mixed $object): mixed { - assert($object instanceof SimpleUserWebhooks); + assert($object instanceof SimpleUser); $result = []; $name = $object->name; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RegistryPackage.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RegistryPackage.php index a04db62cc81..3b400f82957 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RegistryPackage.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RegistryPackage.php @@ -18,7 +18,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRegistryPackagePublished; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRegistryPackagePublished\RegistryPackage\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRegistryPackagePublished\RegistryPackage\PackageVersion; @@ -96,7 +95,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRegistryPackageUpdated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRegistryPackageUpdated($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRegistryPackageUpdated\RegistryPackage' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRegistryPackageUpdated\RegistryPackage\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️Owner($payload), @@ -246,7 +244,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5558,256 +5556,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRegistryPackageUpdated(array $payload): WebhookRegistryPackageUpdated { $properties = []; @@ -5934,7 +5682,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7529,7 +7277,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRegistryPackageUpdated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRegistryPackageUpdated($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRegistryPackageUpdated\RegistryPackage' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRegistryPackageUpdated\RegistryPackage\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRegistryPackageUpdated⚡️RegistryPackage⚡️Owner($object), @@ -7648,7 +7395,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -10492,97 +10239,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRegistryPackageUpdated(mixed $object): mixed { assert($object instanceof WebhookRegistryPackageUpdated); @@ -10632,7 +10288,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Release.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Release.php index f3a97db4eb5..0a68540488e 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Release.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Release.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookReleaseCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookReleaseDeleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookReleaseEdited; @@ -79,7 +78,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookReleaseDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookReleaseDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookReleaseEdited' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookReleaseEdited($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookReleaseEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookReleaseEdited⚡️Changes($payload), @@ -227,7 +225,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4075,256 +4073,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookReleaseDeleted(array $payload): WebhookReleaseDeleted { $properties = []; @@ -4451,7 +4199,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4621,7 +4369,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4940,7 +4688,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5726,7 +5474,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6512,7 +6260,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6662,7 +6410,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6751,7 +6499,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookReleaseDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookReleaseDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookReleaseEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookReleaseEdited($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookReleaseEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookReleaseEdited⚡️Changes($object), @@ -6874,7 +6621,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8901,97 +8648,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookReleaseDeleted(mixed $object): mixed { assert($object instanceof WebhookReleaseDeleted); @@ -9036,7 +8692,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9095,7 +8751,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9218,7 +8874,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9599,7 +9255,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9980,7 +9636,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -10035,7 +9691,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Repository.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Repository.php index 96b347d5474..8dae20e9f07 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Repository.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Repository.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryArchived; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryDeleted; @@ -79,7 +78,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryCreated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryCreated($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryEdited' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryEdited($payload), @@ -212,7 +210,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3424,256 +3422,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryCreated(array $payload): WebhookRepositoryCreated { $properties = []; @@ -3780,7 +3528,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3910,7 +3658,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4060,7 +3808,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4409,7 +4157,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4539,7 +4287,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4689,7 +4437,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4947,7 +4695,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5626,7 +5374,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5712,7 +5460,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryCreated($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryEdited($object), @@ -5836,7 +5583,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7537,97 +7284,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryCreated(mixed $object): mixed { assert($object instanceof WebhookRepositoryCreated); @@ -7668,7 +7324,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7714,7 +7370,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7764,7 +7420,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7920,7 +7576,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7966,7 +7622,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8016,7 +7672,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8101,7 +7757,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8420,7 +8076,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryAdvisory.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryAdvisory.php index 0c30e85dbbe..f2716b327cd 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryAdvisory.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryAdvisory.php @@ -20,7 +20,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleRepository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryAdvisoryPublished; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryAdvisoryReported; use EventSauce\ObjectHydrator\IterableList; @@ -76,7 +75,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleRepository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleRepository($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryAdvisoryReported' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryAdvisoryReported($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -209,7 +207,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4537,256 +4535,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryAdvisoryReported(array $payload): WebhookRepositoryAdvisoryReported { $properties = []; @@ -4913,7 +4661,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5006,7 +4754,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleRepository($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryAdvisoryReported' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryAdvisoryReported($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -5119,7 +4866,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7322,97 +7069,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryAdvisoryReported(mixed $object): mixed { assert($object instanceof WebhookRepositoryAdvisoryReported); @@ -7462,7 +7118,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryDispatch.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryDispatch.php index 07fd59ddb3a..dcc30983809 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryDispatch.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryDispatch.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryDispatchSample; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryDispatchSample\ClientPayload; use EventSauce\ObjectHydrator\IterableList; @@ -63,7 +62,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryDispatchSample\ClientPayload' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryDispatchSample⚡️ClientPayload($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -207,7 +205,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3419,256 +3417,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryDispatchSample⚡️ClientPayload(array $payload): ClientPayload { $properties = []; @@ -3751,7 +3499,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3861,7 +3608,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5562,97 +5309,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryImport.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryImport.php index bd86a8c90df..d0be229eeb6 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryImport.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryImport.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryImport; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -163,7 +161,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3386,256 +3384,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3698,7 +3446,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3798,7 +3545,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $status = $object->status; @@ -5502,97 +5249,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryRuleset.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryRuleset.php index 1361d7336ce..fb8f002a4e9 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryRuleset.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryRuleset.php @@ -18,7 +18,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryRulesetCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryRulesetDeleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryRulesetEdited; @@ -77,7 +76,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset\Links' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryRuleset⚡️Links($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset\Links\Self_' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryRuleset⚡️Links⚡️Self_($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset\Links\Html' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryRuleset⚡️Links⚡️Html($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryRulesetDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryRulesetDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryRulesetEdited' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryRulesetEdited($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryRulesetEdited\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryRulesetEdited⚡️Changes($payload), @@ -216,7 +214,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3742,256 +3740,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryRulesetDeleted(array $payload): WebhookRepositoryRulesetDeleted { $properties = []; @@ -4118,7 +3866,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4288,7 +4036,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4641,7 +4389,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset\Links' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryRuleset⚡️Links($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset\Links\Self_' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryRuleset⚡️Links⚡️Self_($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset\Links\Html' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryRuleset⚡️Links⚡️Html($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryRulesetDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryRulesetDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryRulesetEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryRulesetEdited($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryRulesetEdited\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryRulesetEdited⚡️Changes($object), @@ -4760,7 +4507,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repositoryRuleset: $result['repository_ruleset'] = $repositoryRuleset; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6645,97 +6392,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryRulesetDeleted(mixed $object): mixed { assert($object instanceof WebhookRepositoryRulesetDeleted); @@ -6785,7 +6441,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repositoryRuleset: $result['repository_ruleset'] = $repositoryRuleset; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6849,7 +6505,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_changes: $result['changes'] = $changes; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryVulnerabilityAlert.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryVulnerabilityAlert.php index 3b0b0e7e73d..5e3db2c997a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryVulnerabilityAlert.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/RepositoryVulnerabilityAlert.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryVulnerabilityAlertCreate; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryVulnerabilityAlertDismiss; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryVulnerabilityAlertDismiss\Alert; @@ -70,7 +69,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryVulnerabilityAlertDismiss' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryVulnerabilityAlertDismiss\Alert' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss⚡️Alert($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryVulnerabilityAlertDismiss\Alert\Dismisser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss⚡️Alert⚡️Dismisser($payload), @@ -209,7 +207,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3886,256 +3884,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss(array $payload): WebhookRepositoryVulnerabilityAlertDismiss { $properties = []; @@ -4262,7 +4010,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4888,7 +4636,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5038,7 +4786,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5591,7 +5339,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryVulnerabilityAlertDismiss' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryVulnerabilityAlertDismiss\Alert' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss⚡️Alert($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookRepositoryVulnerabilityAlertDismiss\Alert\Dismisser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss⚡️Alert⚡️Dismisser($object), @@ -5705,7 +5452,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -7667,97 +7414,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookRepositoryVulnerabilityAlertDismiss(mixed $object): mixed { assert($object instanceof WebhookRepositoryVulnerabilityAlertDismiss); @@ -7802,7 +7458,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8111,7 +7767,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -8161,7 +7817,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecretScanningAlert.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecretScanningAlert.php index e5b385ae677..4605ff371f3 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecretScanningAlert.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecretScanningAlert.php @@ -15,7 +15,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningAlertWebhook; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertReopened; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertResolved; @@ -67,7 +66,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertReopened' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertReopened($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertResolved' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertResolved($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertValidated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertValidated($payload), @@ -202,7 +200,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3627,256 +3625,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertReopened(array $payload): WebhookSecretScanningAlertReopened { $properties = []; @@ -4003,7 +3751,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4153,7 +3901,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4303,7 +4051,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4390,7 +4138,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertReopened' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertReopened($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertResolved' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertResolved($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertValidated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertValidated($object), @@ -4505,7 +4252,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6344,97 +6091,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertReopened(mixed $object): mixed { assert($object instanceof WebhookSecretScanningAlertReopened); @@ -6484,7 +6140,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6539,7 +6195,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6594,7 +6250,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php index 03745407b92..24429b12fa8 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php @@ -16,7 +16,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningLocation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertLocationCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertLocationCreatedFormEncoded; use EventSauce\ObjectHydrator\IterableList; @@ -67,7 +66,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertLocationCreatedFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertLocationCreatedFormEncoded($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -200,7 +198,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3550,256 +3548,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertLocationCreatedFormEncoded(array $payload): WebhookSecretScanningAlertLocationCreatedFormEncoded { $properties = []; @@ -3893,7 +3641,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertLocationCreatedFormEncoded' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertLocationCreatedFormEncoded($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -4001,7 +3748,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5810,97 +5557,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertLocationCreatedFormEncoded(mixed $object): mixed { assert($object instanceof WebhookSecretScanningAlertLocationCreatedFormEncoded); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecurityAdvisory.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecurityAdvisory.php index 2e43e2c2a93..e9f22c566e8 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecurityAdvisory.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecurityAdvisory.php @@ -17,7 +17,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecurityAdvisoryPublished; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecurityAdvisoryUpdated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecurityAdvisoryWithdrawn; @@ -74,7 +73,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecurityAdvisoryUpdated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecurityAdvisoryUpdated($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecurityAdvisoryWithdrawn' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn⚡️SecurityAdvisory($payload), @@ -210,7 +208,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3784,256 +3782,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecurityAdvisoryUpdated(array $payload): WebhookSecurityAdvisoryUpdated { $properties = []; @@ -4160,7 +3908,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4310,7 +4058,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4622,7 +4370,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecurityAdvisoryUpdated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecurityAdvisoryUpdated($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecurityAdvisoryWithdrawn' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecurityAdvisoryWithdrawn\SecurityAdvisory' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecurityAdvisoryWithdrawn⚡️SecurityAdvisory($object), @@ -4743,7 +4490,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6624,97 +6371,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecurityAdvisoryUpdated(mixed $object): mixed { assert($object instanceof WebhookSecurityAdvisoryUpdated); @@ -6769,7 +6425,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -6829,7 +6485,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php index 6294534aefa..727da992645 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php @@ -20,7 +20,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecurityAndAnalysis; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecurityAndAnalysis\Changes; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecurityAndAnalysis\Changes\From; @@ -79,7 +78,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConductSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeOfConductSimple($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -200,7 +198,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3821,256 +3819,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -4142,7 +3890,6 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConductSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeOfConductSimple($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -4251,7 +3998,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5745,97 +5492,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Sponsorship.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Sponsorship.php index 466468ba327..513762b5e1b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Sponsorship.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Sponsorship.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksChanges8; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksChanges8\Tier\From; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSponsorshipCancelled; @@ -76,7 +75,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksSponsorship' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksSponsorship($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksSponsorship\Maintainer' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksSponsorship⚡️Maintainer($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksSponsorship\Sponsor' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksSponsorship⚡️Sponsor($payload), @@ -203,7 +201,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3435,256 +3433,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksSponsorship(array $payload): WebhooksSponsorship { $properties = []; @@ -4758,7 +4506,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4928,7 +4676,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5158,7 +4906,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5339,7 +5087,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5705,7 +5453,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5811,7 +5559,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksSponsorship' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksSponsorship($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksSponsorship\Maintainer' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksSponsorship⚡️Maintainer($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksSponsorship\Sponsor' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksSponsorship⚡️Sponsor($object), @@ -5934,7 +5681,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $sponsorship = $object->sponsorship; @@ -7639,97 +7386,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksSponsorship(mixed $object): mixed { assert($object instanceof WebhooksSponsorship); @@ -8352,7 +8008,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $sponsorship = $object->sponsorship; @@ -8411,7 +8067,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $sponsorship = $object->sponsorship; @@ -8502,7 +8158,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $sponsorship = $object->sponsorship; @@ -8569,7 +8225,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $sponsorship = $object->sponsorship; @@ -8697,7 +8353,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $sponsorship = $object->sponsorship; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Star.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Star.php index 0a3beed57a8..a1661458c57 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Star.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Star.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookStarCreated; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookStarDeleted; use EventSauce\ObjectHydrator\IterableList; @@ -63,7 +62,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookStarDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookStarDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -176,7 +174,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3399,256 +3397,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookStarDeleted(array $payload): WebhookStarDeleted { $properties = []; @@ -3755,7 +3503,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3852,7 +3600,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookStarDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookStarDeleted($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -3956,7 +3703,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $starredAt = $object->starredAt; @@ -5665,97 +5412,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookStarDeleted(mixed $object): mixed { assert($object instanceof WebhookStarDeleted); @@ -5796,7 +5452,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $starredAt = $object->starredAt; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Status.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Status.php index cdd2966dd42..7bc9ca98266 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Status.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Status.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookStatus; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookStatus\Commit; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookStatus\Commit\Author; @@ -75,7 +74,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -273,7 +271,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4536,256 +4534,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -4856,7 +4604,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -4998,7 +4745,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $sha = $object->sha; @@ -7270,97 +7017,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SubIssues.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SubIssues.php index 0685706710e..87670a64a13 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SubIssues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SubIssues.php @@ -19,7 +19,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSubIssuesParentIssueAdded; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSubIssuesParentIssueRemoved; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSubIssuesSubIssueAdded; @@ -77,7 +76,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSubIssuesParentIssueRemoved' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSubIssuesParentIssueRemoved($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSubIssuesSubIssueAdded' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSubIssuesSubIssueAdded($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSubIssuesSubIssueRemoved' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSubIssuesSubIssueRemoved($payload), @@ -254,7 +252,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5672,256 +5670,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSubIssuesParentIssueRemoved(array $payload): WebhookSubIssuesParentIssueRemoved { $properties = []; @@ -6090,7 +5838,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6282,7 +6030,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6474,7 +6222,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -6567,7 +6315,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSubIssuesParentIssueRemoved' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSubIssuesParentIssueRemoved($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSubIssuesSubIssueAdded' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSubIssuesSubIssueAdded($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSubIssuesSubIssueRemoved' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSubIssuesSubIssueRemoved($object), @@ -6692,7 +6439,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9357,97 +9104,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSubIssuesParentIssueRemoved(mixed $object): mixed { assert($object instanceof WebhookSubIssuesParentIssueRemoved); @@ -9507,7 +9163,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9572,7 +9228,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -9637,7 +9293,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Team.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Team.php index 0bdb169c1a3..359c698ab0a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Team.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Team.php @@ -7,7 +7,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; -use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksTeam1; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksTeam1\Parent_; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookTeamAddedToRepository; @@ -69,7 +69,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookTeamAddedToRepository\Repository\License' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookTeamAddedToRepository⚡️Repository⚡️License($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookTeamAddedToRepository\Repository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookTeamAddedToRepository⚡️Repository⚡️Owner($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookTeamAddedToRepository\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookTeamAddedToRepository⚡️Repository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksTeam1' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksTeam1($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksTeam1\Parent_' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksTeam1⚡️Parent_($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookTeamCreated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookTeamCreated($payload), @@ -211,7 +211,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -2019,7 +2019,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(array $payload): SimpleUser { $properties = []; $missingFields = []; @@ -2255,17 +2255,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_starredAt: } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); } try { - return new SimpleUserWebhooks(...$properties); + return new SimpleUser(...$properties); } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); } } @@ -2708,7 +2708,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -4301,7 +4301,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5914,7 +5914,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -7876,7 +7876,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -9422,7 +9422,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookTeamAddedToRepository\Repository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookTeamAddedToRepository⚡️Repository⚡️License($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookTeamAddedToRepository\Repository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookTeamAddedToRepository⚡️Repository⚡️Owner($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookTeamAddedToRepository\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookTeamAddedToRepository⚡️Repository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksTeam1' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksTeam1($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksTeam1\Parent_' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksTeam1⚡️Parent_($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookTeamCreated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookTeamCreated($object), @@ -9560,7 +9560,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $team = $object->team; @@ -10317,9 +10317,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(mixed $object): mixed { - assert($object instanceof SimpleUserWebhooks); + assert($object instanceof SimpleUser); $result = []; $name = $object->name; @@ -10608,7 +10608,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $team = $object->team; @@ -11289,7 +11289,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou goto after_sender; } - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $team = $object->team; @@ -11969,7 +11969,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $team = $object->team; @@ -12798,7 +12798,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $team = $object->team; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/TeamAdd.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/TeamAdd.php index 0184b1f0cdd..4ceba89cd6c 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/TeamAdd.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/TeamAdd.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksTeam1; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksTeam1\Parent_; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookTeamAdd; @@ -64,7 +63,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksTeam1' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksTeam1($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksTeam1\Parent_' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksTeam1⚡️Parent_($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), @@ -167,7 +165,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3399,256 +3397,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksTeam1(array $payload): WebhooksTeam1 { $properties = []; @@ -4044,7 +3792,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksTeam1' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksTeam1($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksTeam1\Parent_' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksTeam1⚡️Parent_($object), default => throw new LogicException("No serialization defined for $className"), @@ -4146,7 +3893,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $team = $object->team; @@ -5851,97 +5598,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksTeam1(mixed $object): mixed { assert($object instanceof WebhooksTeam1); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Watch.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Watch.php index f09a4016260..dc85ab4815a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Watch.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Watch.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWatchStarted; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -62,7 +61,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -174,7 +172,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3386,256 +3384,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3698,7 +3446,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3801,7 +3548,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; return $result; @@ -5502,97 +5249,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowDispatch.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowDispatch.php index 946be8396a3..61157b02943 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowDispatch.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowDispatch.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowDispatch; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowDispatch\Inputs; use EventSauce\ObjectHydrator\IterableList; @@ -63,7 +62,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowDispatch\Inputs' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookWorkflowDispatch⚡️Inputs($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -196,7 +194,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3419,256 +3417,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookWorkflowDispatch⚡️Inputs(array $payload): Inputs { $properties = []; @@ -3751,7 +3499,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3863,7 +3610,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflow = $object->workflow; @@ -5567,97 +5314,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowJob.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowJob.php index c58c3225a48..b164f12121e 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowJob.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowJob.php @@ -17,7 +17,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowJobCompleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowJobInProgress; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowJobQueued; @@ -69,7 +68,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowJobCompleted\WorkflowJob' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookWorkflowJobCompleted⚡️WorkflowJob($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Deployment' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Deployment($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), @@ -191,7 +189,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3443,256 +3441,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookWorkflowJobCompleted⚡️WorkflowJob(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowJobCompleted\WorkflowJob { $properties = []; @@ -4617,7 +4365,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5059,7 +4807,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5501,7 +5249,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -5899,7 +5647,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowJobCompleted\WorkflowJob' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookWorkflowJobCompleted⚡️WorkflowJob($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Deployment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Deployment($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), @@ -6012,7 +5759,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflowJob = $object->workflowJob; @@ -7726,97 +7473,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookWorkflowJobCompleted⚡️WorkflowJob(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowJobCompleted\WorkflowJob); @@ -8242,7 +7898,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflowJob = $object->workflowJob; @@ -8432,7 +8088,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflowJob = $object->workflowJob; @@ -8622,7 +8278,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflowJob = $object->workflowJob; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowRun.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowRun.php index 77dbf950c0e..402f64bcd12 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowRun.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/WorkflowRun.php @@ -14,7 +14,6 @@ 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\SimpleUserWebhooks; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksWorkflow; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowRunCompleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowRunCompleted\WorkflowRun\Actor; @@ -72,7 +71,6 @@ public function hydrateObject(string $className, array $payload): object '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksWorkflow' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowRunCompleted\WorkflowRun' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookWorkflowRunCompleted⚡️WorkflowRun($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowRunCompleted\WorkflowRun\Actor' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookWorkflowRunCompleted⚡️WorkflowRun⚡️Actor($payload), @@ -219,7 +217,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -3471,256 +3469,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(array $payload): SimpleUserWebhooks - { - $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: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(SimpleUserWebhooks::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new SimpleUserWebhooks(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks', $exception, stack: $this->hydrationStack); - } - } - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow(array $payload): WebhooksWorkflow { $properties = []; @@ -6702,7 +6450,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -9607,7 +9355,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S if (is_array($value)) { try { $this->hydrationStack[] = 'sender'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($value); + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); } finally { array_pop($this->hydrationStack); } @@ -12605,7 +12353,6 @@ public function serializeObjectOfType(object $object, string $className): mixed '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), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksWorkflow' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowRunCompleted\WorkflowRun' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookWorkflowRunCompleted⚡️WorkflowRun($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookWorkflowRunCompleted\WorkflowRun\Actor' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookWorkflowRunCompleted⚡️WorkflowRun⚡️Actor($object), @@ -12741,7 +12488,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflow = $object->workflow; @@ -14455,97 +14202,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks(mixed $object): mixed - { - assert($object instanceof SimpleUserWebhooks); - $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; - - return $result; - } - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow(mixed $object): mixed { assert($object instanceof WebhooksWorkflow); @@ -15872,7 +15528,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflow = $object->workflow; @@ -17176,7 +16832,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_repository: $result['repository'] = $repository; $sender = $object->sender; - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender); + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); after_sender: $result['sender'] = $sender; $workflow = $object->workflow; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php index 9ec2bc04628..63c1213f387 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php @@ -1073,7 +1073,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SshSigningKey' => $this->getObjectMapperOperation🌀User🌀SshSigningKeys()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Users\\ListAttestations\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Users🌀Username🌀Attestations🌀SubjectDigest()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Hovercard' => $this->getObjectMapperOperation🌀Users🌀Username🌀Hovercard()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionConfigurationDisabled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\EnterpriseWebhooks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleInstallation', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\OrganizationSimpleWebhooks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\TemplateRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\TemplateRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\TemplateRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleUserWebhooks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionConfigurationEnabled' => $this->getObjectMapperWebHook🪝BranchProtectionConfiguration()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionConfigurationDisabled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\EnterpriseWebhooks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleInstallation', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\OrganizationSimpleWebhooks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\TemplateRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\TemplateRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\TemplateRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionConfigurationEnabled' => $this->getObjectMapperWebHook🪝BranchProtectionConfiguration()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksRule', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AdminEnforced', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedActorNames', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedActorsOnly', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedDismissalActorsOnly', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LinearHistoryRequirementEnforcementLevel', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LockBranchEnforcementLevel', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LockAllowsForkSync', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\PullRequestReviewsEnforcementLevel', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequireLastPushApproval', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequiredStatusChecks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequiredStatusChecksEnforcementLevel' => $this->getObjectMapperWebHook🪝BranchProtectionRule()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookExemptionRequestCancelled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ExemptionRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookExemptionRequestCompleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookExemptionRequestCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookExemptionRequestResponseDismissed', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ExemptionResponse', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookExemptionRequestResponseSubmitted' => $this->getObjectMapperWebHook🪝ExemptionRequestPushRuleset()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunCompleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckRunWithSimpleCheckSuite', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleCheckSuite', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckRunWithSimpleCheckSuite\\Output', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunCompletedFormEncoded', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunCreatedFormEncoded', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunRequestedAction', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunRequestedAction\\RequestedAction', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunRequestedActionFormEncoded', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunRerequested', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunRerequestedFormEncoded' => $this->getObjectMapperWebHook🪝CheckRun()->hydrateObject($className, $payload), @@ -1453,7 +1453,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SshSigningKey' => $this->getObjectMapperOperation🌀User🌀SshSigningKeys()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Users\\ListAttestations\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Users🌀Username🌀Attestations🌀SubjectDigest()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Hovercard' => $this->getObjectMapperOperation🌀Users🌀Username🌀Hovercard()->serializeObject($object), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionConfigurationDisabled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\EnterpriseWebhooks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleInstallation', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\OrganizationSimpleWebhooks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\TemplateRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\TemplateRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\TemplateRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleUserWebhooks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionConfigurationEnabled' => $this->getObjectMapperWebHook🪝BranchProtectionConfiguration()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionConfigurationDisabled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\EnterpriseWebhooks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleInstallation', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\OrganizationSimpleWebhooks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\TemplateRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\TemplateRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryWebhooks\\TemplateRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionConfigurationEnabled' => $this->getObjectMapperWebHook🪝BranchProtectionConfiguration()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksRule', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AdminEnforced', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedActorNames', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedActorsOnly', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\AuthorizedDismissalActorsOnly', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LinearHistoryRequirementEnforcementLevel', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LockBranchEnforcementLevel', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\LockAllowsForkSync', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\PullRequestReviewsEnforcementLevel', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequireLastPushApproval', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequiredStatusChecks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookBranchProtectionRuleEdited\\Changes\\RequiredStatusChecksEnforcementLevel' => $this->getObjectMapperWebHook🪝BranchProtectionRule()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookExemptionRequestCancelled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ExemptionRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookExemptionRequestCompleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookExemptionRequestCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookExemptionRequestResponseDismissed', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ExemptionResponse', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookExemptionRequestResponseSubmitted' => $this->getObjectMapperWebHook🪝ExemptionRequestPushRuleset()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunCompleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckRunWithSimpleCheckSuite', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SimpleCheckSuite', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckRunWithSimpleCheckSuite\\Output', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunCompletedFormEncoded', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunCreatedFormEncoded', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunRequestedAction', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunRequestedAction\\RequestedAction', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunRequestedActionFormEncoded', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunRerequested', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookCheckRunRerequestedFormEncoded' => $this->getObjectMapperWebHook🪝CheckRun()->serializeObject($object), diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertInstances.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertInstances.php index c3e58b34259..b7330d24fed 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertInstances.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertInstances.php @@ -33,24 +33,27 @@ final class ListAlertInstances private int $alertNumber; /**The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. **/ private string $ref; + /**The number of the pull request for the results you want to list. **/ + private int $pr; /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; /**The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $perPage; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts\AlertNumber\Instances $hydrator, string $owner, string $repo, int $alertNumber, string $ref, int $page = 1, int $perPage = 30) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts\AlertNumber\Instances $hydrator, string $owner, string $repo, int $alertNumber, string $ref, int $pr, int $page = 1, int $perPage = 30) { $this->owner = $owner; $this->repo = $repo; $this->alertNumber = $alertNumber; $this->ref = $ref; + $this->pr = $pr; $this->page = $page; $this->perPage = $perPage; } public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{alert_number}', '{ref}', '{page}', '{per_page}'], [$this->owner, $this->repo, $this->alertNumber, $this->ref, $this->page, $this->perPage], '/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances' . '?ref={ref}&page={page}&per_page={per_page}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{alert_number}', '{ref}', '{pr}', '{page}', '{per_page}'], [$this->owner, $this->repo, $this->alertNumber, $this->ref, $this->pr, $this->page, $this->perPage], '/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances' . '?ref={ref}&pr={pr}&page={page}&per_page={per_page}')); } /** @return Observable */ diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertInstancesListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertInstancesListing.php index 89e267d877a..49d5588e476 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertInstancesListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertInstancesListing.php @@ -33,24 +33,27 @@ final class ListAlertInstancesListing private int $alertNumber; /**The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. **/ private string $ref; + /**The number of the pull request for the results you want to list. **/ + private int $pr; /**The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $page; /**The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ private int $perPage; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts\AlertNumber\Instances $hydrator, string $owner, string $repo, int $alertNumber, string $ref, int $page = 1, int $perPage = 30) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts\AlertNumber\Instances $hydrator, string $owner, string $repo, int $alertNumber, string $ref, int $pr, int $page = 1, int $perPage = 30) { $this->owner = $owner; $this->repo = $repo; $this->alertNumber = $alertNumber; $this->ref = $ref; + $this->pr = $pr; $this->page = $page; $this->perPage = $perPage; } public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{alert_number}', '{ref}', '{page}', '{per_page}'], [$this->owner, $this->repo, $this->alertNumber, $this->ref, $this->page, $this->perPage], '/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances' . '?ref={ref}&page={page}&per_page={per_page}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{alert_number}', '{ref}', '{pr}', '{page}', '{per_page}'], [$this->owner, $this->repo, $this->alertNumber, $this->ref, $this->pr, $this->page, $this->perPage], '/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances' . '?ref={ref}&pr={pr}&page={page}&per_page={per_page}')); } /** @return Observable */ diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertsForRepo.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertsForRepo.php index 2bb5a619845..27fb762a3fd 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertsForRepo.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertsForRepo.php @@ -36,6 +36,8 @@ final class ListAlertsForRepo private string|null $toolGuid; /**The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. **/ private string $ref; + /**The number of the pull request for the results you want to list. **/ + private int $pr; /**If specified, only code scanning alerts with this state will be returned. **/ private string $state; /**If specified, only code scanning alerts with this severity will be returned. **/ @@ -49,13 +51,14 @@ final class ListAlertsForRepo /**The property by which to sort the results. **/ private string $sort; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') { $this->owner = $owner; $this->repo = $repo; $this->toolName = $toolName; $this->toolGuid = $toolGuid; $this->ref = $ref; + $this->pr = $pr; $this->state = $state; $this->severity = $severity; $this->page = $page; @@ -66,7 +69,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{state}', '{severity}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->state, $this->severity, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/alerts' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&state={state}&severity={severity}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{pr}', '{state}', '{severity}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->pr, $this->state, $this->severity, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/alerts' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&pr={pr}&state={state}&severity={severity}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); } /** @return Observable|WithoutBody */ diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertsForRepoListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertsForRepoListing.php index 9138d46b2f6..89f9cb26f57 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertsForRepoListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListAlertsForRepoListing.php @@ -36,6 +36,8 @@ final class ListAlertsForRepoListing private string|null $toolGuid; /**The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. **/ private string $ref; + /**The number of the pull request for the results you want to list. **/ + private int $pr; /**If specified, only code scanning alerts with this state will be returned. **/ private string $state; /**If specified, only code scanning alerts with this severity will be returned. **/ @@ -49,13 +51,14 @@ final class ListAlertsForRepoListing /**The property by which to sort the results. **/ private string $sort; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') { $this->owner = $owner; $this->repo = $repo; $this->toolName = $toolName; $this->toolGuid = $toolGuid; $this->ref = $ref; + $this->pr = $pr; $this->state = $state; $this->severity = $severity; $this->page = $page; @@ -66,7 +69,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{state}', '{severity}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->state, $this->severity, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/alerts' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&state={state}&severity={severity}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{pr}', '{state}', '{severity}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->pr, $this->state, $this->severity, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/alerts' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&pr={pr}&state={state}&severity={severity}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); } /** @return Observable|WithoutBody */ diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListRecentAnalyses.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListRecentAnalyses.php index c04c6f79f65..e370c98fceb 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListRecentAnalyses.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListRecentAnalyses.php @@ -33,6 +33,8 @@ final class ListRecentAnalyses private string $toolName; /**The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. **/ private string|null $toolGuid; + /**The number of the pull request for the results you want to list. **/ + private int $pr; /**The Git reference for the analyses you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. **/ private string $ref; /**Filter analyses belonging to the same SARIF upload. **/ @@ -46,12 +48,13 @@ final class ListRecentAnalyses /**The property by which to sort the results. **/ private string $sort; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Analyses $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Analyses $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, int $pr, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') { $this->owner = $owner; $this->repo = $repo; $this->toolName = $toolName; $this->toolGuid = $toolGuid; + $this->pr = $pr; $this->ref = $ref; $this->sarifId = $sarifId; $this->page = $page; @@ -62,7 +65,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{sarif_id}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->sarifId, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/analyses' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&sarif_id={sarif_id}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{pr}', '{ref}', '{sarif_id}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->pr, $this->ref, $this->sarifId, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/analyses' . '?tool_name={tool_name}&tool_guid={tool_guid}&pr={pr}&ref={ref}&sarif_id={sarif_id}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); } /** @return Observable */ diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListRecentAnalysesListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListRecentAnalysesListing.php index 103fb5a656a..63f41a8df0c 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListRecentAnalysesListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/CodeScanning/ListRecentAnalysesListing.php @@ -33,6 +33,8 @@ final class ListRecentAnalysesListing private string $toolName; /**The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in their analysis data. You can specify the tool by using either `tool_guid` or `tool_name`, but not both. **/ private string|null $toolGuid; + /**The number of the pull request for the results you want to list. **/ + private int $pr; /**The Git reference for the analyses you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. **/ private string $ref; /**Filter analyses belonging to the same SARIF upload. **/ @@ -46,12 +48,13 @@ final class ListRecentAnalysesListing /**The property by which to sort the results. **/ private string $sort; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Analyses $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Analyses $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, int $pr, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') { $this->owner = $owner; $this->repo = $repo; $this->toolName = $toolName; $this->toolGuid = $toolGuid; + $this->pr = $pr; $this->ref = $ref; $this->sarifId = $sarifId; $this->page = $page; @@ -62,7 +65,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{sarif_id}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->sarifId, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/analyses' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&sarif_id={sarif_id}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{pr}', '{ref}', '{sarif_id}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->pr, $this->ref, $this->sarifId, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/analyses' . '?tool_name={tool_name}&tool_guid={tool_guid}&pr={pr}&ref={ref}&sarif_id={sarif_id}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); } /** @return Observable */ diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignment.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignment.php index 7157809b354..d5b5547d525 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignment.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignment.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $assignmentId, int $page = 1, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Classroom\ListAcceptedAssignmentsForAnAssignment($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php index 0d02ba35bad..a64754530e3 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Classroom/ListAcceptedAssignmentsForAnAssignmentListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $assignmentId, int $page = 1, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Classroom\ListAcceptedAssignmentsForAnAssignmentListing($this->responseSchemaValidator, $this->hydrator, $assignmentId, $page, $perPage); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertInstances.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertInstances.php index a4fda93e8a5..9f133d55fb4 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertInstances.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertInstances.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(string $owner, string $repo, int $alertNumber, string $ref, int $page = 1, int $perPage = 30): iterable + /** @return iterable */ + public function call(string $owner, string $repo, int $alertNumber, string $ref, int $pr, int $page = 1, int $perPage = 30): iterable { - $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeScanning\ListAlertInstances($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $alertNumber, $ref, $page, $perPage); + $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeScanning\ListAlertInstances($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $alertNumber, $ref, $pr, $page, $perPage); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertInstancesListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertInstancesListing.php index 34f4f314c66..2ca314b37be 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertInstancesListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertInstancesListing.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(string $owner, string $repo, int $alertNumber, string $ref, int $page = 1, int $perPage = 30): iterable + /** @return iterable */ + public function call(string $owner, string $repo, int $alertNumber, string $ref, int $pr, int $page = 1, int $perPage = 30): iterable { - $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeScanning\ListAlertInstancesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $alertNumber, $ref, $page, $perPage); + $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeScanning\ListAlertInstancesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $alertNumber, $ref, $pr, $page, $perPage); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php index 2358431c43c..9fd40d3599a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php @@ -25,10 +25,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|WithoutBody */ - public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable|WithoutBody + /** @return iterable|WithoutBody */ + public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable|WithoutBody { - $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeScanning\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $state, $severity, $page, $perPage, $direction, $sort); + $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeScanning\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $pr, $state, $severity, $page, $perPage, $direction, $sort); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|WithoutBody { return $operation->createResponse($response); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php index d8a6a2c9798..6b40125baee 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php @@ -25,10 +25,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|WithoutBody */ - public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable|WithoutBody + /** @return iterable|WithoutBody */ + public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable|WithoutBody { - $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeScanning\ListAlertsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $state, $severity, $page, $perPage, $direction, $sort); + $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeScanning\ListAlertsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $pr, $state, $severity, $page, $perPage, $direction, $sort); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|WithoutBody { return $operation->createResponse($response); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListRecentAnalyses.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListRecentAnalyses.php index f1fa9a1d1f4..3d07c8afe82 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListRecentAnalyses.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListRecentAnalyses.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable + /** @return iterable */ + public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, int $pr, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable { - $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeScanning\ListRecentAnalyses($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $sarifId, $page, $perPage, $direction, $sort); + $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeScanning\ListRecentAnalyses($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $pr, $ref, $sarifId, $page, $perPage, $direction, $sort); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListRecentAnalysesListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListRecentAnalysesListing.php index 2f6d0c3298e..aca17314b26 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListRecentAnalysesListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListRecentAnalysesListing.php @@ -24,10 +24,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ - public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable + /** @return iterable */ + public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, int $pr, string $ref, string $sarifId, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable { - $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeScanning\ListRecentAnalysesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $sarifId, $page, $perPage, $direction, $sort); + $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeScanning\ListRecentAnalysesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $pr, $ref, $sarifId, $page, $perPage, $direction, $sort); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { return $operation->createResponse($response); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Classroom.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Classroom.php index eed4f0ee4fa..43606c73595 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Classroom.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Classroom.php @@ -71,7 +71,7 @@ public function getAClassroom(array $params): \ApiClients\Client\GitHubEnterpris return $operator->call($arguments['classroom_id']); } - /** @return iterable */ + /** @return Observable */ public function listAcceptedAssignmentsForAnAssignment(array $params): iterable { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeScanning.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeScanning.php index 71a6677a931..8bfeffce83e 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeScanning.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeScanning.php @@ -171,7 +171,7 @@ public function listAlertsForOrg(array $params): iterable return $operator->call($arguments['org'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['before'], $arguments['after'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function listAlertsForRepo(array $params): iterable|WithoutBody { $arguments = []; @@ -205,6 +205,12 @@ public function listAlertsForRepo(array $params): iterable|WithoutBody $arguments['ref'] = $params['ref']; unset($params['ref']); + if (array_key_exists('pr', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pr'); + } + + $arguments['pr'] = $params['pr']; + unset($params['pr']); if (array_key_exists('state', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: state'); } @@ -243,10 +249,10 @@ public function listAlertsForRepo(array $params): iterable|WithoutBody unset($params['sort']); $operator = new Internal\Operator\CodeScanning\ListAlertsForRepo($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Alerts()); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['pr'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); } - /** @return Observable */ + /** @return iterable */ public function listRecentAnalyses(array $params): iterable { $arguments = []; @@ -274,6 +280,12 @@ public function listRecentAnalyses(array $params): iterable $arguments['tool_guid'] = $params['tool_guid']; unset($params['tool_guid']); + if (array_key_exists('pr', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pr'); + } + + $arguments['pr'] = $params['pr']; + unset($params['pr']); if (array_key_exists('ref', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: ref'); } @@ -312,7 +324,7 @@ public function listRecentAnalyses(array $params): iterable unset($params['sort']); $operator = new Internal\Operator\CodeScanning\ListRecentAnalyses($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Analyses()); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['sarif_id'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['pr'], $arguments['ref'], $arguments['sarif_id'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); } /** @return */ @@ -438,7 +450,7 @@ public function getSarif(array $params): CodeScanningSarifsStatus|WithoutBody return $operator->call($arguments['owner'], $arguments['repo'], $arguments['sarif_id']); } - /** @return Observable */ + /** @return iterable */ public function listAlertInstances(array $params): iterable { $arguments = []; @@ -466,6 +478,12 @@ public function listAlertInstances(array $params): iterable $arguments['ref'] = $params['ref']; unset($params['ref']); + if (array_key_exists('pr', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pr'); + } + + $arguments['pr'] = $params['pr']; + unset($params['pr']); if (array_key_exists('page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: page'); } @@ -480,7 +498,7 @@ public function listAlertInstances(array $params): iterable unset($params['per_page']); $operator = new Internal\Operator\CodeScanning\ListAlertInstances($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Alerts🌀AlertNumber🌀Instances()); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['alert_number'], $arguments['ref'], $arguments['page'], $arguments['per_page']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['alert_number'], $arguments['ref'], $arguments['pr'], $arguments['page'], $arguments['per_page']); } /** @return */ diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Eight.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Eight.php index 16be45e96b6..be2a0d6c285 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Eight.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Eight.php @@ -35,7 +35,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody */ + /** @return |Observable|Observable|Observable|Observable|iterable|Observable|WithoutBody */ public function call(string $call, array $params, array $pathChunks): PackageVersion|iterable|TeamRepository|WithoutBody|OidcCustomSubRepo|Ok|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|WorkflowRunUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|WorkflowUsage|ProtectedBranchAdminEnforced|ProtectedBranchPullRequestReview|StatusCheckPolicy|BranchRestrictionPolicy|CodeScanningCodeqlDatabase|CodeScanningVariantAnalysis|DeploymentStatus|DeploymentBranchPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\Response\ApplicationJson\Ok|DeploymentProtectionRule|ActionsPublicKey|ActionsSecret|ActionsVariable|HookDelivery|PullRequestReview { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Four.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Four.php index dc628f88eeb..6af99b588d0 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Four.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Four.php @@ -38,7 +38,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|iterable|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|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|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|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): WebhookConfig|iterable|Installation|AnnouncementBanner|EnterpriseSecurityAnalysisSettings|string|WithoutBody|GistSimple|GitignoreTemplate|MarketplacePurchase|Thread|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|Json|ExternalGroups|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|InteractionLimitResponse|One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|ProjectColumn|FullRepository|BasicError|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|Codespace|GpgKey|Key|Migration|SshSigningKey|Hovercard|StarredRepository|Repository { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php index cdf09c07168..8d7b1f3b097 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php @@ -83,7 +83,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): ActionsCacheUsageOrgEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|ActionsBillingUsage|AdvancedSecurityActiveCommitters|GetAllCostCenters|PackagesBillingUsage|CombinedBillingUsage|BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|WithoutBody|CodeSecurityConfiguration|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|ScimEnterpriseGroupList|ScimEnterpriseUserList|ScimUserList|TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Classroom.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Classroom.php index f8be0062f93..aa8782b46e5 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Classroom.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Classroom.php @@ -20,7 +20,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable */ + /** @return Observable */ public function listAcceptedAssignmentsForAnAssignmentListing(array $params): iterable { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/CodeScanning.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/CodeScanning.php index c2ed6024869..bf192c7f115 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/CodeScanning.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/CodeScanning.php @@ -177,7 +177,7 @@ public function listAlertsForOrgListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function listAlertsForRepoListing(array $params): iterable|WithoutBody { $arguments = []; @@ -211,6 +211,12 @@ public function listAlertsForRepoListing(array $params): iterable|WithoutBody $arguments['ref'] = $params['ref']; unset($params['ref']); + if (array_key_exists('pr', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pr'); + } + + $arguments['pr'] = $params['pr']; + unset($params['pr']); if (array_key_exists('state', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: state'); } @@ -250,7 +256,7 @@ public function listAlertsForRepoListing(array $params): iterable|WithoutBody $arguments['page'] = 1; do { $operator = new Internal\Operator\CodeScanning\ListAlertsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Alerts()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort'])]; + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['pr'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort'])]; yield from $items; @@ -258,7 +264,7 @@ public function listAlertsForRepoListing(array $params): iterable|WithoutBody } while (count($items) > 0); } - /** @return Observable */ + /** @return iterable */ public function listRecentAnalysesListing(array $params): iterable { $arguments = []; @@ -286,6 +292,12 @@ public function listRecentAnalysesListing(array $params): iterable $arguments['tool_guid'] = $params['tool_guid']; unset($params['tool_guid']); + if (array_key_exists('pr', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pr'); + } + + $arguments['pr'] = $params['pr']; + unset($params['pr']); if (array_key_exists('ref', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: ref'); } @@ -325,7 +337,7 @@ public function listRecentAnalysesListing(array $params): iterable $arguments['page'] = 1; do { $operator = new Internal\Operator\CodeScanning\ListRecentAnalysesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Analyses()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['sarif_id'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort'])]; + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['pr'], $arguments['ref'], $arguments['sarif_id'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort'])]; yield from $items; @@ -333,7 +345,7 @@ public function listRecentAnalysesListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ + /** @return iterable */ public function listAlertInstancesListing(array $params): iterable { $arguments = []; @@ -361,6 +373,12 @@ public function listAlertInstancesListing(array $params): iterable $arguments['ref'] = $params['ref']; unset($params['ref']); + if (array_key_exists('pr', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pr'); + } + + $arguments['pr'] = $params['pr']; + unset($params['pr']); if (array_key_exists('page', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: page'); } @@ -376,7 +394,7 @@ public function listAlertInstancesListing(array $params): iterable $arguments['page'] = 1; do { $operator = new Internal\Operator\CodeScanning\ListAlertInstancesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Alerts🌀AlertNumber🌀Instances()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['alert_number'], $arguments['ref'], $arguments['page'], $arguments['per_page'])]; + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['alert_number'], $arguments['ref'], $arguments['pr'], $arguments['page'], $arguments['per_page'])]; yield from $items; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Eight.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Eight.php index b0ce1c8dde3..6666b571119 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Eight.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Eight.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|WithoutBody */ + /** @return Observable|Observable|iterable|Observable|WithoutBody */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Four.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Four.php index 8fa2ff8bee2..a3a50dea675 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Four.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Four.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return iterable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|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/List/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php index c6e21800e2d..75eddebaa3d 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|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|iterable|WithoutBody|iterable|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/Operation/Classroom.php b/clients/GitHubEnterpriseCloud/src/Operation/Classroom.php index e81e9f433d8..53602213139 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Classroom.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Classroom.php @@ -20,13 +20,13 @@ public function getAnAssignment(int $assignmentId): ClassroomAssignment return $this->operators->classroom👷GetAnAssignment()->call($assignmentId); } - /** @return iterable */ + /** @return Observable */ public function listAcceptedAssignmentsForAnAssignment(int $assignmentId, int $page, int $perPage): iterable { return $this->operators->classroom👷ListAcceptedAssignmentsForAnAssignment()->call($assignmentId, $page, $perPage); } - /** @return iterable */ + /** @return Observable */ public function listAcceptedAssignmentsForAnAssignmentListing(int $assignmentId, int $page, int $perPage): iterable { return $this->operators->classroom👷ListAcceptedAssignmentsForAnAssignmentListing()->call($assignmentId, $page, $perPage); diff --git a/clients/GitHubEnterpriseCloud/src/Operation/CodeScanning.php b/clients/GitHubEnterpriseCloud/src/Operation/CodeScanning.php index 1cc519d88c8..6d529a60065 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/CodeScanning.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/CodeScanning.php @@ -49,16 +49,16 @@ public function listAlertsForOrgListing(string $org, string $toolName, string|nu return $this->operators->codeScanning👷ListAlertsForOrgListing()->call($org, $toolName, $toolGuid, $before, $after, $state, $severity, $page, $perPage, $direction, $sort); } - /** @return Observable|WithoutBody */ - public function listAlertsForRepo(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, string $severity, int $page, int $perPage, string $direction, string $sort): iterable|WithoutBody + /** @return iterable|WithoutBody */ + public function listAlertsForRepo(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page, int $perPage, string $direction, string $sort): iterable|WithoutBody { - return $this->operators->codeScanning👷ListAlertsForRepo()->call($owner, $repo, $toolName, $toolGuid, $ref, $state, $severity, $page, $perPage, $direction, $sort); + return $this->operators->codeScanning👷ListAlertsForRepo()->call($owner, $repo, $toolName, $toolGuid, $ref, $pr, $state, $severity, $page, $perPage, $direction, $sort); } - /** @return Observable|WithoutBody */ - public function listAlertsForRepoListing(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, string $severity, int $page, int $perPage, string $direction, string $sort): iterable|WithoutBody + /** @return iterable|WithoutBody */ + public function listAlertsForRepoListing(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page, int $perPage, string $direction, string $sort): iterable|WithoutBody { - return $this->operators->codeScanning👷ListAlertsForRepoListing()->call($owner, $repo, $toolName, $toolGuid, $ref, $state, $severity, $page, $perPage, $direction, $sort); + return $this->operators->codeScanning👷ListAlertsForRepoListing()->call($owner, $repo, $toolName, $toolGuid, $ref, $pr, $state, $severity, $page, $perPage, $direction, $sort); } /** @return */ @@ -73,28 +73,28 @@ public function updateAlert(string $owner, string $repo, int $alertNumber, array return $this->operators->codeScanning👷UpdateAlert()->call($owner, $repo, $alertNumber, $params); } - /** @return Observable */ - public function listAlertInstances(string $owner, string $repo, int $alertNumber, string $ref, int $page, int $perPage): iterable + /** @return iterable */ + public function listAlertInstances(string $owner, string $repo, int $alertNumber, string $ref, int $pr, int $page, int $perPage): iterable { - return $this->operators->codeScanning👷ListAlertInstances()->call($owner, $repo, $alertNumber, $ref, $page, $perPage); + return $this->operators->codeScanning👷ListAlertInstances()->call($owner, $repo, $alertNumber, $ref, $pr, $page, $perPage); } - /** @return Observable */ - public function listAlertInstancesListing(string $owner, string $repo, int $alertNumber, string $ref, int $page, int $perPage): iterable + /** @return iterable */ + public function listAlertInstancesListing(string $owner, string $repo, int $alertNumber, string $ref, int $pr, int $page, int $perPage): iterable { - return $this->operators->codeScanning👷ListAlertInstancesListing()->call($owner, $repo, $alertNumber, $ref, $page, $perPage); + return $this->operators->codeScanning👷ListAlertInstancesListing()->call($owner, $repo, $alertNumber, $ref, $pr, $page, $perPage); } - /** @return Observable */ - public function listRecentAnalyses(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page, int $perPage, string $direction, string $sort): iterable + /** @return iterable */ + public function listRecentAnalyses(string $owner, string $repo, string $toolName, string|null $toolGuid, int $pr, string $ref, string $sarifId, int $page, int $perPage, string $direction, string $sort): iterable { - return $this->operators->codeScanning👷ListRecentAnalyses()->call($owner, $repo, $toolName, $toolGuid, $ref, $sarifId, $page, $perPage, $direction, $sort); + return $this->operators->codeScanning👷ListRecentAnalyses()->call($owner, $repo, $toolName, $toolGuid, $pr, $ref, $sarifId, $page, $perPage, $direction, $sort); } - /** @return Observable */ - public function listRecentAnalysesListing(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page, int $perPage, string $direction, string $sort): iterable + /** @return iterable */ + public function listRecentAnalysesListing(string $owner, string $repo, string $toolName, string|null $toolGuid, int $pr, string $ref, string $sarifId, int $page, int $perPage, string $direction, string $sort): iterable { - return $this->operators->codeScanning👷ListRecentAnalysesListing()->call($owner, $repo, $toolName, $toolGuid, $ref, $sarifId, $page, $perPage, $direction, $sort); + return $this->operators->codeScanning👷ListRecentAnalysesListing()->call($owner, $repo, $toolName, $toolGuid, $pr, $ref, $sarifId, $page, $perPage, $direction, $sort); } /** @return */ diff --git a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index f4b2951fe58..84f0bdfd07e 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -148,11 +148,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /assignments/{assignment_id}/accepted_assignments') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /assignments/{assignment_id}/accepted_assignments') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'GET /assignments/{assignment_id}/grades') { @@ -2616,11 +2616,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/alerts') { - return $this->typeResolver->resolve('Observable|WithoutBody'); + return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); } if ($call === 'LIST /repos/{owner}/{repo}/code-scanning/alerts') { - return $this->typeResolver->resolve('Observable|WithoutBody'); + return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}') { @@ -2632,19 +2632,19 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'LIST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/analyses') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'LIST /repos/{owner}/{repo}/code-scanning/analyses') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}') { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/OrgRulesetConditions.php b/clients/GitHubEnterpriseCloud/src/Schema/OrgRulesetConditions.php index 2ac2d735b9b..e1fcf7cc739 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/OrgRulesetConditions.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/OrgRulesetConditions.php @@ -248,10 +248,12 @@ "description": "Conditions to target repositories by property and refs by name" } ], - "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties." + "description": "Conditions for an organization ruleset.\\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\\nThe push rulesets conditions object does not require the `ref_name` property." }'; public const SCHEMA_TITLE = 'Organization ruleset conditions'; - public const SCHEMA_DESCRIPTION = 'Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.'; + public const SCHEMA_DESCRIPTION = 'Conditions for an organization ruleset. +The branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties. +The push rulesets conditions object does not require the `ref_name` property.'; public const SCHEMA_EXAMPLE_DATA = '[]'; public function __construct() diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php index 67651dba4a6..e4d537b4a84 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php @@ -45,8 +45,7 @@ "items": { "title": "Repository Ruleset Bypass Actor", "required": [ - "actor_type", - "bypass_mode" + "actor_type" ], "type": "object", "properties": { @@ -74,7 +73,8 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + "default": "always" } }, "description": "An actor that can bypass rules in a ruleset" @@ -323,7 +323,7 @@ "description": "Conditions to target repositories by property and refs by name" } ], - "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties." + "description": "Conditions for an organization ruleset.\\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\\nThe push rulesets conditions object does not require the `ref_name` property." }, "rules": { "type": "array", @@ -1170,7 +1170,9 @@ * target: The target of the ruleset * enforcement: The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. * bypassActors: The actors that can bypass the rules in this ruleset - * conditions: Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties. + * conditions: Conditions for an organization ruleset. + The branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties. + The push rulesets conditions object does not require the `ref_name` property. * rules: An array of rules within the ruleset. */ public function __construct(public string $name, public string|null $target, public string $enforcement, #[MapFrom('bypass_actors')] diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php index 9be907ff2d1..2d66fca51f7 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php @@ -44,8 +44,7 @@ "items": { "title": "Repository Ruleset Bypass Actor", "required": [ - "actor_type", - "bypass_mode" + "actor_type" ], "type": "object", "properties": { @@ -73,7 +72,8 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + "default": "always" } }, "description": "An actor that can bypass rules in a ruleset" diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php index 37e206a04e8..26ab485ab0f 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php @@ -40,8 +40,7 @@ "items": { "title": "Repository Ruleset Bypass Actor", "required": [ - "actor_type", - "bypass_mode" + "actor_type" ], "type": "object", "properties": { @@ -69,7 +68,8 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + "default": "always" } }, "description": "An actor that can bypass rules in a ruleset" @@ -318,7 +318,7 @@ "description": "Conditions to target repositories by property and refs by name" } ], - "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties." + "description": "Conditions for an organization ruleset.\\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\\nThe push rulesets conditions object does not require the `ref_name` property." }, "rules": { "type": "array", @@ -1165,7 +1165,9 @@ * target: The target of the ruleset * enforcement: The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. * bypassActors: The actors that can bypass the rules in this ruleset - * conditions: Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties. + * conditions: Conditions for an organization ruleset. + The branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties. + The push rulesets conditions object does not require the `ref_name` property. * rules: An array of rules within the ruleset. */ public function __construct(public string|null $name, public string|null $target, public string|null $enforcement, #[MapFrom('bypass_actors')] diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php index 3e28ffddf10..3661a5e3fd3 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php @@ -39,8 +39,7 @@ "items": { "title": "Repository Ruleset Bypass Actor", "required": [ - "actor_type", - "bypass_mode" + "actor_type" ], "type": "object", "properties": { @@ -68,7 +67,8 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + "default": "always" } }, "description": "An actor that can bypass rules in a ruleset" diff --git a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php index 535d2d1ed17..54024daa4fc 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php @@ -63,8 +63,7 @@ "items": { "title": "Repository Ruleset Bypass Actor", "required": [ - "actor_type", - "bypass_mode" + "actor_type" ], "type": "object", "properties": { @@ -92,7 +91,8 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + "default": "always" } }, "description": "An actor that can bypass rules in a ruleset" @@ -408,7 +408,7 @@ "description": "Conditions to target repositories by property and refs by name" } ], - "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties." + "description": "Conditions for an organization ruleset.\\nThe branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties.\\nThe push rulesets conditions object does not require the `ref_name` property." } ] }, diff --git a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulesetBypassActor.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulesetBypassActor.php index b70708b761f..9505e711a5b 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulesetBypassActor.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulesetBypassActor.php @@ -11,8 +11,7 @@ public const SCHEMA_JSON = '{ "title": "Repository Ruleset Bypass Actor", "required": [ - "actor_type", - "bypass_mode" + "actor_type" ], "type": "object", "properties": { @@ -40,7 +39,8 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets.", + "default": "always" } }, "description": "An actor that can bypass rules in a ruleset" @@ -56,12 +56,12 @@ /** * actorId: The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories. * actorType: The type of actor that can bypass a ruleset. - * bypassMode: When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. + * bypassMode: When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. */ public function __construct(#[MapFrom('actor_id')] public int|null $actorId, #[MapFrom('actor_type')] public string $actorType, #[MapFrom('bypass_mode')] - public string $bypassMode,) + public string|null $bypassMode,) { } } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/SimpleUserWebhooks.php b/clients/GitHubEnterpriseCloud/src/Schema/SimpleUserWebhooks.php deleted file mode 100644 index eaa9d78b665..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Schema/SimpleUserWebhooks.php +++ /dev/null @@ -1,216 +0,0 @@ -prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertInstancesListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['page'] = 1; $data['per_page'] = 8; @@ -57,9 +58,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertInstancesListing('generated', 'generated', 12, 'generated', 1, 8); + $result = $client->operations()->codeScanning()->listAlertInstancesListing('generated', 'generated', 12, 'generated', 2, 1, 8); foreach ($result as $item) { } } @@ -74,13 +75,14 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertInstancesListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['page'] = 1; $data['per_page'] = 8; @@ -100,9 +102,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertInstancesListing('generated', 'generated', 12, 'generated', 1, 8); + $result = $client->operations()->codeScanning()->listAlertInstancesListing('generated', 'generated', 12, 'generated', 2, 1, 8); foreach ($result as $item) { } } @@ -117,13 +119,14 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertInstancesListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['page'] = 1; $data['per_page'] = 8; @@ -143,9 +146,9 @@ public function operations_httpCode_503_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertInstancesListing('generated', 'generated', 12, 'generated', 1, 8); + $result = $client->operations()->codeScanning()->listAlertInstancesListing('generated', 'generated', 12, 'generated', 2, 1, 8); foreach ($result as $item) { } } diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListAlertInstancesTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListAlertInstancesTest.php index ee3185de820..5a07dcc8aad 100644 --- a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListAlertInstancesTest.php +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListAlertInstancesTest.php @@ -31,13 +31,14 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertInstances::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['page'] = 1; $data['per_page'] = 8; @@ -55,9 +56,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertInstances('generated', 'generated', 12, 'generated', 1, 8); + $result = $client->operations()->codeScanning()->listAlertInstances('generated', 'generated', 12, 'generated', 2, 1, 8); } /** @test */ @@ -70,13 +71,14 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertInstances::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['page'] = 1; $data['per_page'] = 8; @@ -94,9 +96,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertInstances('generated', 'generated', 12, 'generated', 1, 8); + $result = $client->operations()->codeScanning()->listAlertInstances('generated', 'generated', 12, 'generated', 2, 1, 8); } /** @test */ @@ -109,13 +111,14 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertInstances::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['page'] = 1; $data['per_page'] = 8; @@ -133,8 +136,8 @@ public function operations_httpCode_503_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&pr=2&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertInstances('generated', 'generated', 12, 'generated', 1, 8); + $result = $client->operations()->codeScanning()->listAlertInstances('generated', 'generated', 12, 'generated', 2, 1, 8); } } diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListAlertsForRepoListingTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListAlertsForRepoListingTest.php index 338e1926795..c2558b82cc7 100644 --- a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListAlertsForRepoListingTest.php +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListAlertsForRepoListingTest.php @@ -31,7 +31,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -39,6 +39,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -62,9 +63,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); foreach ($result as $item) { } } @@ -79,7 +80,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -87,6 +88,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -110,9 +112,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); foreach ($result as $item) { } } @@ -127,7 +129,7 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -135,6 +137,7 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -158,9 +161,9 @@ public function operations_httpCode_503_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); foreach ($result as $item) { } } @@ -174,7 +177,7 @@ public function call_httpCode_304_empty(): void $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -182,6 +185,7 @@ public function call_httpCode_304_empty(): void $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -204,9 +208,9 @@ public function operations_httpCode_304_empty(): void $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); foreach ($result as $item) { diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListAlertsForRepoTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListAlertsForRepoTest.php index 7e446745b5e..db728e48ce2 100644 --- a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListAlertsForRepoTest.php +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListAlertsForRepoTest.php @@ -31,7 +31,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -39,6 +39,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -60,9 +61,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -75,7 +76,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -83,6 +84,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -104,9 +106,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -119,7 +121,7 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -127,6 +129,7 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -148,9 +151,9 @@ public function operations_httpCode_503_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -162,7 +165,7 @@ public function call_httpCode_304_empty(): void $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -170,6 +173,7 @@ public function call_httpCode_304_empty(): void $data['tool_name'] = 'generated'; $data['tool_guid'] = null; $data['ref'] = 'generated'; + $data['pr'] = 2; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -190,9 +194,9 @@ public function operations_httpCode_304_empty(): void $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListRecentAnalysesListingTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListRecentAnalysesListingTest.php index 068a473fffc..6ca4f3a1e3e 100644 --- a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListRecentAnalysesListingTest.php +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListRecentAnalysesListingTest.php @@ -31,13 +31,14 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListRecentAnalysesListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['tool_name'] = 'generated'; $data['tool_guid'] = null; + $data['pr'] = 2; $data['ref'] = 'generated'; $data['sarif_id'] = 'generated'; $data['page'] = 1; @@ -61,9 +62,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listRecentAnalysesListing('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listRecentAnalysesListing('generated', 'generated', 'generated', null, 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); foreach ($result as $item) { } } @@ -78,13 +79,14 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListRecentAnalysesListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['tool_name'] = 'generated'; $data['tool_guid'] = null; + $data['pr'] = 2; $data['ref'] = 'generated'; $data['sarif_id'] = 'generated'; $data['page'] = 1; @@ -108,9 +110,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listRecentAnalysesListing('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listRecentAnalysesListing('generated', 'generated', 'generated', null, 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); foreach ($result as $item) { } } @@ -125,13 +127,14 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListRecentAnalysesListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['tool_name'] = 'generated'; $data['tool_guid'] = null; + $data['pr'] = 2; $data['ref'] = 'generated'; $data['sarif_id'] = 'generated'; $data['page'] = 1; @@ -155,9 +158,9 @@ public function operations_httpCode_503_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listRecentAnalysesListing('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listRecentAnalysesListing('generated', 'generated', 'generated', null, 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); foreach ($result as $item) { } } diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListRecentAnalysesTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListRecentAnalysesTest.php index cb971140f9a..9b663ffccf1 100644 --- a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListRecentAnalysesTest.php +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/CodeScanning/ListRecentAnalysesTest.php @@ -31,13 +31,14 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListRecentAnalyses::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['tool_name'] = 'generated'; $data['tool_guid'] = null; + $data['pr'] = 2; $data['ref'] = 'generated'; $data['sarif_id'] = 'generated'; $data['page'] = 1; @@ -59,9 +60,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listRecentAnalyses('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listRecentAnalyses('generated', 'generated', 'generated', null, 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -74,13 +75,14 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListRecentAnalyses::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['tool_name'] = 'generated'; $data['tool_guid'] = null; + $data['pr'] = 2; $data['ref'] = 'generated'; $data['sarif_id'] = 'generated'; $data['page'] = 1; @@ -102,9 +104,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listRecentAnalyses('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listRecentAnalyses('generated', 'generated', 'generated', null, 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -117,13 +119,14 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListRecentAnalyses::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['tool_name'] = 'generated'; $data['tool_guid'] = null; + $data['pr'] = 2; $data['ref'] = 'generated'; $data['sarif_id'] = 'generated'; $data['page'] = 1; @@ -145,8 +148,8 @@ public function operations_httpCode_503_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&pr=2&ref=generated&sarif_id=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listRecentAnalyses('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listRecentAnalyses('generated', 'generated', 'generated', null, 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); } } diff --git a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php index e16f8150284..2f545eb440b 100644 --- a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php @@ -43,8 +43,8 @@ function authHeader(): string assertType('', $client->call('POST /applications/{client_id}/token/scoped')); assertType('', $client->call('GET /apps/{app_slug}')); assertType('', $client->call('GET /assignments/{assignment_id}')); -assertType('iterable', $client->call('GET /assignments/{assignment_id}/accepted_assignments')); -assertType('iterable', $client->call('LIST /assignments/{assignment_id}/accepted_assignments')); +assertType('Observable', $client->call('GET /assignments/{assignment_id}/accepted_assignments')); +assertType('Observable', $client->call('LIST /assignments/{assignment_id}/accepted_assignments')); assertType('Observable', $client->call('GET /assignments/{assignment_id}/grades')); assertType('Observable', $client->call('GET /classrooms')); assertType('Observable', $client->call('LIST /classrooms')); @@ -660,14 +660,14 @@ function authHeader(): string assertType('', $client->call('GET /repos/{owner}/{repo}/check-suites/{check_suite_id}')); assertType('', $client->call('GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs')); assertType('', $client->call('POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest')); -assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts')); -assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts')); +assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts')); +assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts')); assertType('', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}')); -assertType('Observable', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances')); -assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances')); -assertType('Observable', $client->call('GET /repos/{owner}/{repo}/code-scanning/analyses')); -assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/code-scanning/analyses')); +assertType('iterable', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances')); +assertType('iterable', $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances')); +assertType('iterable', $client->call('GET /repos/{owner}/{repo}/code-scanning/analyses')); +assertType('iterable', $client->call('LIST /repos/{owner}/{repo}/code-scanning/analyses')); assertType('', $client->call('GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}')); assertType('', $client->call('DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/code-scanning/codeql/databases')); diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index 5a578be4a61..df5a803470f 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -26902,6 +26902,7 @@ paths: - "$ref": "#/components/parameters/page" - "$ref": "#/components/parameters/per-page" - "$ref": "#/components/parameters/git-ref" + - "$ref": "#/components/parameters/pr-alias" - "$ref": "#/components/parameters/direction" - name: sort description: The property by which to sort the results. @@ -27070,6 +27071,7 @@ paths: - "$ref": "#/components/parameters/page" - "$ref": "#/components/parameters/per-page" - "$ref": "#/components/parameters/git-ref" + - "$ref": "#/components/parameters/pr-alias" responses: '200': description: Response @@ -27125,6 +27127,7 @@ paths: - "$ref": "#/components/parameters/tool-guid" - "$ref": "#/components/parameters/page" - "$ref": "#/components/parameters/per-page" + - "$ref": "#/components/parameters/pr-alias" - name: ref in: query description: The Git reference for the analyses you want to list. The `ref` @@ -81484,7 +81487,6 @@ components: description: An actor that can bypass rules in a ruleset required: - actor_type - - bypass_mode properties: actor_id: type: @@ -81507,10 +81509,12 @@ components: type: string description: When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` - is not applicable for the `DeployKey` actor type. + is not applicable for the `DeployKey` actor type. Also, `pull_request` + is only applicable to branch rulesets. enum: - always - pull_request + default: always repository-ruleset-conditions: title: Repository ruleset conditions for ref names type: object @@ -81622,9 +81626,10 @@ components: org-ruleset-conditions: title: Organization ruleset conditions type: object - description: Conditions for an organization ruleset. The conditions object should - contain both `repository_name` and `ref_name` properties or both `repository_id` - and `ref_name` properties. + description: |- + Conditions for an organization ruleset. + The branch and tag rulesets conditions object should contain both `repository_name` and `ref_name` properties, or both `repository_id` and `ref_name` properties, or both `repository_property` and `ref_name` properties. + The push rulesets conditions object does not require the `ref_name` property. oneOf: - type: object title: repository_name_and_ref_name @@ -99823,123 +99828,6 @@ components: - watchers_count - created_at - updated_at - simple-user-webhooks: - title: Simple User - description: The GitHub user that triggered the event. This property is included - in every webhook payload. - type: object - properties: - name: - type: - - string - - 'null' - email: - type: - - string - - 'null' - login: - type: string - examples: - - octocat - id: - type: integer - examples: - - 1 - node_id: - type: string - examples: - - MDQ6VXNlcjE= - avatar_url: - type: string - format: uri - examples: - - https://github.com/images/error/octocat_happy.gif - gravatar_id: - type: - - string - - 'null' - examples: - - 41d064eb2195891e12d0413f63227ea7 - url: - type: string - format: uri - examples: - - https://api.github.com/users/octocat - html_url: - type: string - format: uri - examples: - - https://github.com/octocat - followers_url: - type: string - format: uri - examples: - - https://api.github.com/users/octocat/followers - following_url: - type: string - examples: - - https://api.github.com/users/octocat/following{/other_user} - gists_url: - type: string - examples: - - https://api.github.com/users/octocat/gists{/gist_id} - starred_url: - type: string - examples: - - https://api.github.com/users/octocat/starred{/owner}{/repo} - subscriptions_url: - type: string - format: uri - examples: - - https://api.github.com/users/octocat/subscriptions - organizations_url: - type: string - format: uri - examples: - - https://api.github.com/users/octocat/orgs - repos_url: - type: string - format: uri - examples: - - https://api.github.com/users/octocat/repos - events_url: - type: string - examples: - - https://api.github.com/users/octocat/events{/privacy} - received_events_url: - type: string - format: uri - examples: - - https://api.github.com/users/octocat/received_events - type: - type: string - examples: - - User - site_admin: - type: boolean - starred_at: - type: string - examples: - - '"2020-07-09T00:17:55Z"' - required: - - avatar_url - - events_url - - followers_url - - following_url - - gists_url - - gravatar_id - - html_url - - id - - node_id - - login - - organizations_url - - received_events_url - - repos_url - - site_admin - - starred_url - - subscriptions_url - - type - - url webhooks_rule: title: branch protection rule description: The branch protection rule. Includes a `name` and all the [branch @@ -109078,7 +108966,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -109100,7 +108988,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -109124,7 +109012,7 @@ components: rule: "$ref": "#/components/schemas/webhooks_rule" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - rule @@ -109149,7 +109037,7 @@ components: rule: "$ref": "#/components/schemas/webhooks_rule" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - rule @@ -109285,7 +109173,7 @@ components: rule: "$ref": "#/components/schemas/webhooks_rule" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - rule @@ -109310,7 +109198,7 @@ components: exemption_request: "$ref": "#/components/schemas/exemption-request" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - exemption_request @@ -109334,7 +109222,7 @@ components: exemption_request: "$ref": "#/components/schemas/exemption-request" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - exemption_request @@ -109358,7 +109246,7 @@ components: exemption_request: "$ref": "#/components/schemas/exemption-request" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - exemption_request @@ -109384,7 +109272,7 @@ components: exemption_response: "$ref": "#/components/schemas/exemption-response" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - exemption_request @@ -109411,7 +109299,7 @@ components: exemption_response: "$ref": "#/components/schemas/exemption-response" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - exemption_request @@ -109434,7 +109322,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - check_run - repository @@ -109467,7 +109355,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - check_run - repository @@ -109508,7 +109396,7 @@ components: user. type: string sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - check_run @@ -109542,7 +109430,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - check_run - repository @@ -110169,7 +110057,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - check_suite @@ -110785,7 +110673,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - check_suite @@ -111395,7 +111283,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - check_suite @@ -111646,7 +111534,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -111920,7 +111808,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -112138,7 +112026,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -112416,7 +112304,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -112635,7 +112523,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -112814,7 +112702,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -112832,7 +112720,7 @@ components: enum: - created comment: - description: The [commit comment](https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#get-a-commit-comment) + description: The [commit comment](${externalDocsUpapp/api/description/components/schemas/webhooks/issue-comment-created.yamlrl}/rest/commits/comments#get-a-commit-comment) resource. type: object properties: @@ -113016,7 +112904,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - comment @@ -113053,7 +112941,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - ref - ref_type @@ -113079,7 +112967,7 @@ components: organization: "$ref": "#/components/schemas/organization-simple-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - definition @@ -113106,7 +112994,7 @@ components: organization: "$ref": "#/components/schemas/organization-simple-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - definition @@ -113127,7 +113015,7 @@ components: organization: "$ref": "#/components/schemas/organization-simple-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - definition @@ -113148,7 +113036,7 @@ components: organization: "$ref": "#/components/schemas/organization-simple-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" new_property_values: type: array description: The new custom property values for the repository. @@ -113188,7 +113076,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - ref - ref_type @@ -113214,7 +113102,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -113239,7 +113127,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -113264,7 +113152,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -113289,7 +113177,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -113314,7 +113202,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -113339,7 +113227,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -113364,7 +113252,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -113389,7 +113277,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - key @@ -113414,7 +113302,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - key @@ -113925,7 +113813,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow: "$ref": "#/components/schemas/webhooks_workflow" workflow_run: @@ -114570,7 +114458,7 @@ components: installation: "$ref": "#/components/schemas/simple-installation" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" webhook-deployment-review-approved: type: object properties: @@ -114593,7 +114481,7 @@ components: reviewers: "$ref": "#/components/schemas/webhooks_reviewers" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" since: type: string workflow_job_run: @@ -115259,7 +115147,7 @@ components: reviewers: "$ref": "#/components/schemas/webhooks_reviewers" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" since: type: string workflow_job_run: @@ -116001,7 +115889,7 @@ components: - User - Team sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" since: type: string workflow_job_run: @@ -117717,7 +117605,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow: "$ref": "#/components/schemas/webhooks_workflow" workflow_run: @@ -118352,7 +118240,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -118422,7 +118310,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -118448,7 +118336,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -118475,7 +118363,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - comment @@ -118503,7 +118391,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - comment @@ -118543,7 +118431,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -118570,7 +118458,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -118595,7 +118483,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -118637,7 +118525,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -118664,7 +118552,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -118690,7 +118578,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -118715,7 +118603,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -118740,7 +118628,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -118775,7 +118663,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -118799,7 +118687,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -118826,7 +118714,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -118852,7 +118740,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -118877,7 +118765,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - discussion @@ -119572,7 +119460,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - forkee - repository @@ -119586,7 +119474,7 @@ components: enum: - revoked sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - sender @@ -119640,7 +119528,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - pages - repository @@ -119666,7 +119554,7 @@ components: requester: "$ref": "#/components/schemas/webhooks_user" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - installation @@ -119693,7 +119581,7 @@ components: type: - 'null' sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - installation @@ -119720,7 +119608,7 @@ components: type: - 'null' sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - installation @@ -119768,7 +119656,7 @@ components: requester: "$ref": "#/components/schemas/webhooks_user" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - installation @@ -119826,7 +119714,7 @@ components: requester: "$ref": "#/components/schemas/webhooks_user" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - installation @@ -119857,7 +119745,7 @@ components: type: - 'null' sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - installation @@ -119979,7 +119867,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" target_type: type: string required: @@ -120010,7 +119898,7 @@ components: type: - 'null' sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - installation @@ -121362,7 +121250,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -122547,7 +122435,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -123737,7 +123625,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -123767,7 +123655,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -124856,7 +124744,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -125792,7 +125680,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -126736,7 +126624,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -127701,7 +127589,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -128646,7 +128534,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -129588,7 +129476,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -130530,7 +130418,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -132864,7 +132752,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -132889,7 +132777,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -133834,7 +133722,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -135253,7 +135141,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -135282,7 +135170,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -135309,7 +135197,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -136249,7 +136137,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -136274,7 +136162,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - issue @@ -136299,7 +136187,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - label @@ -136323,7 +136211,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - label @@ -136379,7 +136267,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - label @@ -136408,7 +136296,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - effective_date @@ -136522,7 +136410,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - effective_date @@ -136634,7 +136522,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - effective_date @@ -136746,7 +136634,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - effective_date @@ -136775,7 +136663,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - effective_date @@ -136827,7 +136715,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - member @@ -136876,7 +136764,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -136902,7 +136790,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - member @@ -137127,7 +137015,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - merge_group @@ -137156,7 +137044,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - merge_group @@ -137286,7 +137174,7 @@ components: - type: 'null' - "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - hook_id @@ -137310,7 +137198,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - milestone @@ -137335,7 +137223,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - milestone @@ -137360,7 +137248,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - milestone @@ -137416,7 +137304,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -137442,7 +137330,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - milestone @@ -137467,7 +137355,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - blocked_user @@ -137492,7 +137380,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - blocked_user @@ -137517,7 +137405,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - organization @@ -137541,7 +137429,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - membership @@ -137682,7 +137570,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" user: "$ref": "#/components/schemas/webhooks_user" required: @@ -137709,7 +137597,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - membership @@ -137742,7 +137630,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - organization @@ -138379,7 +138267,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - package @@ -138828,7 +138716,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - package @@ -138956,7 +138844,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - id - build @@ -138977,7 +138865,7 @@ components: organization: "$ref": "#/components/schemas/organization-simple-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" installation: "$ref": "#/components/schemas/simple-installation" required: @@ -139001,7 +138889,7 @@ components: organization: "$ref": "#/components/schemas/organization-simple-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" installation: "$ref": "#/components/schemas/simple-installation" required: @@ -139025,7 +138913,7 @@ components: organization: "$ref": "#/components/schemas/organization-simple-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" installation: "$ref": "#/components/schemas/simple-installation" required: @@ -139048,7 +138936,7 @@ components: enterprise: "$ref": "#/components/schemas/enterprise-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" installation: "$ref": "#/components/schemas/simple-installation" required: @@ -139139,7 +139027,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" zen: description: Random string of GitHub zen. type: string @@ -139184,7 +139072,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -139209,7 +139097,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project_card @@ -139357,7 +139245,7 @@ components: - type: 'null' - "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project_card @@ -139395,7 +139283,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -139624,7 +139512,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project_card @@ -139648,7 +139536,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project @@ -139672,7 +139560,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project_column @@ -139697,7 +139585,7 @@ components: - type: 'null' - "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project_column @@ -139730,7 +139618,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -139754,7 +139642,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project_column @@ -139778,7 +139666,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project @@ -139804,7 +139692,7 @@ components: - type: 'null' - "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project @@ -139848,7 +139736,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project @@ -139871,7 +139759,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - project @@ -139891,7 +139779,7 @@ components: projects_v2: "$ref": "#/components/schemas/projects-v2" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2 @@ -139912,7 +139800,7 @@ components: projects_v2: "$ref": "#/components/schemas/projects-v2" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2 @@ -139933,7 +139821,7 @@ components: projects_v2: "$ref": "#/components/schemas/projects-v2" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2 @@ -139993,7 +139881,7 @@ components: projects_v2: "$ref": "#/components/schemas/projects-v2" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2 @@ -140017,7 +139905,7 @@ components: projects_v2_item: "$ref": "#/components/schemas/projects-v2-item" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_item @@ -140051,7 +139939,7 @@ components: projects_v2_item: "$ref": "#/components/schemas/projects-v2-item" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_item @@ -140073,7 +139961,7 @@ components: projects_v2_item: "$ref": "#/components/schemas/projects-v2-item" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_item @@ -140094,7 +139982,7 @@ components: projects_v2_item: "$ref": "#/components/schemas/projects-v2-item" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_item @@ -140172,7 +140060,7 @@ components: projects_v2_item: "$ref": "#/components/schemas/projects-v2-item" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_item @@ -140207,7 +140095,7 @@ components: projects_v2_item: "$ref": "#/components/schemas/projects-v2-item" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_item @@ -140231,7 +140119,7 @@ components: projects_v2_item: "$ref": "#/components/schemas/projects-v2-item" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_item @@ -140253,7 +140141,7 @@ components: projects_v2: "$ref": "#/components/schemas/projects-v2" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2 @@ -140274,7 +140162,7 @@ components: projects_v2_status_update: "$ref": "#/components/schemas/projects-v2-status-update" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_status_update @@ -140295,7 +140183,7 @@ components: projects_v2_status_update: "$ref": "#/components/schemas/projects-v2-status-update" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_status_update @@ -140381,7 +140269,7 @@ components: projects_v2_status_update: "$ref": "#/components/schemas/projects-v2-status-update" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - projects_v2_status_update @@ -140400,7 +140288,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - repository - sender @@ -142736,7 +142624,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -145069,7 +144957,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -147402,7 +147290,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -147430,7 +147318,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -147458,7 +147346,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -147486,7 +147374,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -149821,7 +149709,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -149892,7 +149780,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -152213,7 +152101,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -154553,7 +154441,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -156889,7 +156777,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -156917,7 +156805,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -156944,7 +156832,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -156972,7 +156860,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -157000,7 +156888,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -159512,7 +159400,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - comment @@ -161724,7 +161612,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - comment @@ -163939,7 +163827,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -166317,7 +166205,7 @@ components: - author_association - _links sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - review @@ -168439,7 +168327,7 @@ components: review: "$ref": "#/components/schemas/webhooks_review" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -170840,7 +170728,7 @@ components: - login - id sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - requested_reviewer - action @@ -173289,7 +173177,7 @@ components: - repositories_url - permission sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - requested_team - action @@ -175695,7 +175583,7 @@ components: - login - id sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - requested_reviewer - action @@ -178121,7 +178009,7 @@ components: - name - id sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - requested_team - action @@ -180352,7 +180240,7 @@ components: review: "$ref": "#/components/schemas/webhooks_review" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - review @@ -182477,7 +182365,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" thread: type: object properties: @@ -184887,7 +184775,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" thread: type: object properties: @@ -187514,7 +187402,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -189858,7 +189746,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -192187,7 +192075,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -194506,7 +194394,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - number @@ -195237,7 +195125,7 @@ components: - topics - visibility sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - ref - before @@ -195794,7 +195682,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - registry_package @@ -196171,7 +196059,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - registry_package @@ -196195,7 +196083,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - release @@ -196220,7 +196108,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - release @@ -196275,7 +196163,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -196616,7 +196504,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - release @@ -196640,7 +196528,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - release @@ -196664,7 +196552,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - release @@ -196688,7 +196576,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - release @@ -196712,7 +196600,7 @@ components: repository_advisory: "$ref": "#/components/schemas/repository-advisory" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -196736,7 +196624,7 @@ components: repository_advisory: "$ref": "#/components/schemas/repository-advisory" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -196758,7 +196646,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -196780,7 +196668,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -196802,7 +196690,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -196833,7 +196721,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - branch @@ -196895,7 +196783,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -196914,7 +196802,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" status: type: string enum: @@ -196942,7 +196830,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -196964,7 +196852,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -197003,7 +196891,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -197028,7 +196916,7 @@ components: repository_ruleset: "$ref": "#/components/schemas/repository-ruleset" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository_ruleset @@ -197052,7 +196940,7 @@ components: repository_ruleset: "$ref": "#/components/schemas/repository-ruleset" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository_ruleset @@ -197170,7 +197058,7 @@ components: from: type: string sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository_ruleset @@ -197329,7 +197217,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - changes @@ -197352,7 +197240,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -197376,7 +197264,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -197530,7 +197418,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -197555,7 +197443,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -197703,7 +197591,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -197728,7 +197616,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -197752,7 +197640,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - location - alert @@ -197787,7 +197675,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -197811,7 +197699,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -197835,7 +197723,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - alert @@ -197859,7 +197747,7 @@ components: security_advisory: "$ref": "#/components/schemas/webhooks_security_advisory" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - security_advisory @@ -197882,7 +197770,7 @@ components: security_advisory: "$ref": "#/components/schemas/webhooks_security_advisory" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - security_advisory @@ -198016,7 +197904,7 @@ components: - withdrawn_at - vulnerabilities sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - security_advisory @@ -198041,7 +197929,7 @@ components: repository: "$ref": "#/components/schemas/full-repository" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - changes - repository @@ -198062,7 +197950,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" sponsorship: "$ref": "#/components/schemas/webhooks_sponsorship" required: @@ -198086,7 +197974,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" sponsorship: "$ref": "#/components/schemas/webhooks_sponsorship" required: @@ -198122,7 +198010,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" sponsorship: "$ref": "#/components/schemas/webhooks_sponsorship" required: @@ -198149,7 +198037,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" sponsorship: "$ref": "#/components/schemas/webhooks_sponsorship" required: @@ -198177,7 +198065,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" sponsorship: "$ref": "#/components/schemas/webhooks_sponsorship" required: @@ -198204,7 +198092,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" sponsorship: "$ref": "#/components/schemas/webhooks_sponsorship" required: @@ -198229,7 +198117,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" starred_at: description: 'The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` @@ -198259,7 +198147,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" starred_at: description: 'The time the star was created. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. Will be `null` for the `deleted` @@ -198638,7 +198526,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" sha: description: The Commit SHA. type: string @@ -198698,7 +198586,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - parent_issue_id @@ -198733,7 +198621,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - parent_issue_id @@ -198768,7 +198656,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - sub_issue_id @@ -198803,7 +198691,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - sub_issue_id @@ -198824,7 +198712,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" team: "$ref": "#/components/schemas/webhooks_team_1" required: @@ -199312,7 +199200,7 @@ components: - topics - visibility sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" team: "$ref": "#/components/schemas/webhooks_team_1" required: @@ -199800,7 +199688,7 @@ components: - topics - visibility sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" team: "$ref": "#/components/schemas/webhooks_team_1" required: @@ -200289,7 +200177,7 @@ components: - topics - visibility sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" team: "$ref": "#/components/schemas/webhooks_team_1" required: @@ -200842,7 +200730,7 @@ components: - topics - visibility sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" team: "$ref": "#/components/schemas/webhooks_team_1" required: @@ -201332,7 +201220,7 @@ components: - topics - visibility sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" team: "$ref": "#/components/schemas/webhooks_team_1" required: @@ -201357,7 +201245,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" required: - action - repository @@ -201382,7 +201270,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow: type: string required: @@ -201408,7 +201296,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow_job: allOf: - title: Workflow Job @@ -201683,7 +201571,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow_job: allOf: - title: Workflow Job @@ -201984,7 +201872,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow_job: type: object properties: @@ -202153,7 +202041,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow_job: type: object properties: @@ -202323,7 +202211,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow: "$ref": "#/components/schemas/webhooks_workflow" workflow_run: @@ -203279,7 +203167,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow: "$ref": "#/components/schemas/webhooks_workflow" workflow_run: @@ -204229,7 +204117,7 @@ components: repository: "$ref": "#/components/schemas/repository-webhooks" sender: - "$ref": "#/components/schemas/simple-user-webhooks" + "$ref": "#/components/schemas/simple-user" workflow: "$ref": "#/components/schemas/webhooks_workflow" workflow_run: @@ -219257,7 +219145,7 @@ components: analyses_url: https://api.github.com/repos/octocat/hello-world/code-scanning/analyses?sarif_id=47177e22-5596-11eb-80a1-c1e54ef945c6 code-security-configuration-for-repository: value: - state: attached + status: attached configuration: id: 1325 target_type: organization @@ -233745,6 +233633,13 @@ components: required: false schema: "$ref": "#/components/schemas/code-scanning-ref" + pr-alias: + name: pr + description: The number of the pull request for the results you want to list. + in: query + required: false + schema: + type: integer alert-number: name: alert_number in: path