From 1c90990f73319b793ccfc173e3785c582ebfe2bb Mon Sep 17 00:00:00 2001 From: WyriHaximus Date: Tue, 22 Aug 2023 08:43:11 +0000 Subject: [PATCH] [GitHubEnterprise-3.4] Update to 1.1.4-8491d07e4903341efa2424ac8af7c5ec from 1.1.4-8491d07e4903341efa2424ac8af7c5ec Detected Schema changes: --- clients/GitHubEnterprise-3.4/README.md | 4664 +++++++++++++++-- .../etc/openapi-client-generator.state | 2608 +++++++-- clients/GitHubEnterprise-3.4/src/Client.php | 67 +- .../src/ClientInterface.php | 2 +- .../src/Operation/Activity.php | 135 + .../ListEventsForAuthenticatedUserListing.php | 81 + ...tificationsForAuthenticatedUserListing.php | 123 + ...stOrgEventsForAuthenticatedUserListing.php | 84 + .../ListPublicEventsForRepoNetworkListing.php | 117 + .../ListPublicEventsForUserListing.php | 81 + .../Activity/ListPublicEventsListing.php | 103 + .../Activity/ListPublicOrgEventsListing.php | 81 + .../ListReceivedEventsForUserListing.php | 81 + ...ListReceivedPublicEventsForUserListing.php | 81 + .../Activity/ListRepoEventsListing.php | 84 + ...tificationsForAuthenticatedUserListing.php | 96 + ...ReposStarredByAuthenticatedUserListing.php | 109 + .../ListReposWatchedByUserListing.php | 81 + ...atchedReposForAuthenticatedUserListing.php | 103 + .../Activity/ListWatchersForRepoListing.php | 84 + .../src/Operation/Apps.php | 18 + ...tionRequestsForAuthenticatedAppListing.php | 95 + .../Apps/ListInstallationsListing.php | 81 + .../src/Operation/Checks.php | 9 + .../Checks/ListAnnotationsListing.php | 87 + .../src/Operation/CodeScanning.php | 27 + .../ListAlertInstancesListing.php | 115 + .../CodeScanning/ListAlertsForRepoListing.php | 135 + .../ListRecentAnalysesListing.php | 121 + .../src/Operation/EnterpriseAdmin.php | 72 + .../EnterpriseAdmin/GetAuditLogListing.php | 104 + .../ListGlobalWebhooksListing.php | 78 + .../ListPersonalAccessTokensListing.php | 78 + .../ListPreReceiveEnvironmentsListing.php | 81 + .../ListPreReceiveHooksForOrgListing.php | 87 + .../ListPreReceiveHooksForRepoListing.php | 87 + .../ListPreReceiveHooksListing.php | 84 + .../EnterpriseAdmin/ListPublicKeysListing.php | 84 + .../src/Operation/Gists.php | 63 + .../Operation/Gists/ListCommentsListing.php | 106 + .../Operation/Gists/ListCommitsListing.php | 106 + .../Operation/Gists/ListForUserListing.php | 93 + .../src/Operation/Gists/ListForksListing.php | 106 + .../src/Operation/Gists/ListListing.php | 98 + .../src/Operation/Gists/ListPublicListing.php | 106 + .../Operation/Gists/ListStarredListing.php | 106 + .../src/Operation/Issues.php | 126 + .../Operation/Issues/ListAssigneesListing.php | 93 + .../Issues/ListCommentsForRepoListing.php | 110 + .../Operation/Issues/ListCommentsListing.php | 107 + .../Issues/ListEventsForRepoListing.php | 93 + .../Issues/ListEventsForTimelineListing.php | 293 ++ .../Operation/Issues/ListEventsListing.php | 222 + .../ListForAuthenticatedUserListing.php | 113 + .../Operation/Issues/ListForOrgListing.php | 108 + .../Operation/Issues/ListForRepoListing.php | 136 + .../Issues/ListLabelsForMilestoneListing.php | 87 + .../Issues/ListLabelsForRepoListing.php | 93 + .../Issues/ListLabelsOnIssueListing.php | 112 + .../src/Operation/Issues/ListListing.php | 121 + .../Issues/ListMilestonesListing.php | 102 + .../src/Operation/Licenses.php | 9 + .../Licenses/GetAllCommonlyUsedListing.php | 86 + .../src/Operation/Migrations.php | 36 + .../ListForAuthenticatedUserListing.php | 103 + .../Migrations/ListForOrgListing.php | 84 + .../ListReposForAuthenticatedUserListing.php | 90 + .../Migrations/ListReposForOrgListing.php | 93 + .../src/Operation/OauthAuthorizations.php | 18 + .../ListAuthorizationsListing.php | 114 + .../OauthAuthorizations/ListGrantsListing.php | 114 + .../src/Operation/Orgs.php | 72 + .../src/Operation/Orgs/GetAuditLogListing.php | 104 + .../Orgs/ListForAuthenticatedUserListing.php | 103 + .../src/Operation/Orgs/ListForUserListing.php | 81 + .../src/Operation/Orgs/ListMembersListing.php | 96 + ...MembershipsForAuthenticatedUserListing.php | 114 + .../Orgs/ListOutsideCollaboratorsListing.php | 84 + .../Orgs/ListPublicMembersListing.php | 81 + .../Operation/Orgs/ListWebhooksListing.php | 90 + .../src/Operation/Projects.php | 54 + .../Operation/Projects/ListCardsListing.php | 109 + .../Projects/ListCollaboratorsListing.php | 125 + .../Operation/Projects/ListColumnsListing.php | 106 + .../Operation/Projects/ListForOrgListing.php | 93 + .../Operation/Projects/ListForRepoListing.php | 128 + .../Operation/Projects/ListForUserListing.php | 93 + .../src/Operation/Pulls.php | 63 + .../Pulls/ListCommentsForReviewListing.php | 99 + .../Operation/Pulls/ListCommitsListing.php | 87 + .../src/Operation/Pulls/ListFilesListing.php | 112 + .../src/Operation/Pulls/ListListing.php | 116 + .../ListReviewCommentsForRepoListing.php | 90 + .../Pulls/ListReviewCommentsListing.php | 96 + .../Operation/Pulls/ListReviewsListing.php | 87 + .../src/Operation/Reactions.php | 81 + .../Reactions/ListForCommitCommentListing.php | 99 + .../Reactions/ListForIssueCommentListing.php | 99 + .../Reactions/ListForIssueListing.php | 107 + ...ListForPullRequestReviewCommentListing.php | 99 + .../Reactions/ListForReleaseListing.php | 99 + ...stForTeamDiscussionCommentInOrgListing.php | 93 + ...tForTeamDiscussionCommentLegacyListing.php | 90 + .../ListForTeamDiscussionInOrgListing.php | 90 + .../ListForTeamDiscussionLegacyListing.php | 87 + .../src/Operation/Repos.php | 216 + .../Operation/Repos/ListBranchesListing.php | 96 + .../Operation/Repos/ListCacheInfoListing.php | 101 + .../Repos/ListCollaboratorsListing.php | 96 + .../Repos/ListCommentsForCommitListing.php | 87 + .../ListCommitCommentsForRepoListing.php | 84 + .../Repos/ListCommitStatusesForRefListing.php | 95 + .../Operation/Repos/ListCommitsListing.php | 148 + .../Repos/ListContributorsListing.php | 112 + .../Operation/Repos/ListDeployKeysListing.php | 84 + .../Repos/ListDeploymentStatusesListing.php | 96 + .../Repos/ListDeploymentsListing.php | 96 + .../Repos/ListForAuthenticatedUserListing.php | 135 + .../src/Operation/Repos/ListForOrgListing.php | 90 + .../Operation/Repos/ListForUserListing.php | 90 + .../src/Operation/Repos/ListForksListing.php | 109 + ...InvitationsForAuthenticatedUserListing.php | 111 + .../Repos/ListInvitationsListing.php | 84 + .../Repos/ListPagesBuildsListing.php | 84 + ...ullRequestsAssociatedWithCommitListing.php | 87 + .../Repos/ListReleaseAssetsListing.php | 87 + .../Operation/Repos/ListReleasesListing.php | 93 + .../src/Operation/Repos/ListTagsListing.php | 84 + .../src/Operation/Repos/ListTeamsListing.php | 93 + .../Operation/Repos/ListWebhooksListing.php | 93 + .../src/Operation/SecretScanning.php | 27 + .../ListAlertsForOrgListing.php | 109 + .../ListAlertsForRepoListing.php | 112 + .../ListLocationsForAlertListing.php | 104 + .../src/Operation/Teams.php | 126 + .../Operation/Teams/ListChildInOrgListing.php | 84 + .../Teams/ListChildLegacyListing.php | 106 + .../ListDiscussionCommentsInOrgListing.php | 90 + .../ListDiscussionCommentsLegacyListing.php | 87 + .../Teams/ListDiscussionsInOrgListing.php | 90 + .../Teams/ListDiscussionsLegacyListing.php | 84 + .../Teams/ListForAuthenticatedUserListing.php | 103 + .../src/Operation/Teams/ListListing.php | 90 + .../Teams/ListMembersInOrgListing.php | 87 + .../Teams/ListMembersLegacyListing.php | 93 + .../Teams/ListProjectsInOrgListing.php | 84 + .../Teams/ListProjectsLegacyListing.php | 90 + .../Operation/Teams/ListReposInOrgListing.php | 84 + .../Teams/ListReposLegacyListing.php | 90 + .../src/Operation/Users.php | 90 + .../ListEmailsForAuthenticatedUserListing.php | 111 + ...ListFollowedByAuthenticatedUserListing.php | 103 + ...stFollowersForAuthenticatedUserListing.php | 103 + .../Users/ListFollowersForUserListing.php | 81 + .../Users/ListFollowingForUserListing.php | 81 + ...ListGpgKeysForAuthenticatedUserListing.php | 111 + .../Users/ListGpgKeysForUserListing.php | 81 + ...ublicEmailsForAuthenticatedUserListing.php | 111 + .../Users/ListPublicKeysForUserListing.php | 81 + ...blicSshKeysForAuthenticatedUserListing.php | 111 + .../Actions/GetPendingDeploymentsForRun.php | 2 +- .../src/Operator/Actions/GetReviewsForRun.php | 2 +- .../Actions/ListRunnerApplicationsForOrg.php | 2 +- .../Actions/ListRunnerApplicationsForRepo.php | 2 +- .../ReviewPendingDeploymentsForRun.php | 2 +- .../ListEventsForAuthenticatedUser.php | 2 +- .../ListEventsForAuthenticatedUserListing.php | 43 + .../ListNotificationsForAuthenticatedUser.php | 2 +- ...tificationsForAuthenticatedUserListing.php | 43 + .../ListOrgEventsForAuthenticatedUser.php | 2 +- ...stOrgEventsForAuthenticatedUserListing.php | 43 + .../Operator/Activity/ListPublicEvents.php | 2 +- .../ListPublicEventsForRepoNetwork.php | 2 +- .../ListPublicEventsForRepoNetworkListing.php | 44 + .../Activity/ListPublicEventsForUser.php | 2 +- .../ListPublicEventsForUserListing.php | 43 + .../Activity/ListPublicEventsListing.php | 43 + .../Operator/Activity/ListPublicOrgEvents.php | 2 +- .../Activity/ListPublicOrgEventsListing.php | 43 + .../Activity/ListReceivedEventsForUser.php | 2 +- .../ListReceivedEventsForUserListing.php | 43 + .../ListReceivedPublicEventsForUser.php | 2 +- ...ListReceivedPublicEventsForUserListing.php | 43 + .../src/Operator/Activity/ListRepoEvents.php | 2 +- .../Activity/ListRepoEventsListing.php | 43 + ...tRepoNotificationsForAuthenticatedUser.php | 2 +- ...tificationsForAuthenticatedUserListing.php | 43 + .../ListReposStarredByAuthenticatedUser.php | 2 +- ...ReposStarredByAuthenticatedUserListing.php | 43 + .../Activity/ListReposStarredByUser.php | 3 +- .../Activity/ListReposWatchedByUser.php | 2 +- .../ListReposWatchedByUserListing.php | 43 + .../Activity/ListStargazersForRepo.php | 3 +- .../ListWatchedReposForAuthenticatedUser.php | 2 +- ...atchedReposForAuthenticatedUserListing.php | 43 + .../Operator/Activity/ListWatchersForRepo.php | 2 +- .../Activity/ListWatchersForRepoListing.php | 43 + ...nstallationRequestsForAuthenticatedApp.php | 2 +- ...tionRequestsForAuthenticatedAppListing.php | 43 + .../src/Operator/Apps/ListInstallations.php | 2 +- .../Apps/ListInstallationsListing.php | 43 + .../Operator/Apps/ListWebhookDeliveries.php | 2 +- .../src/Operator/Checks/ListAnnotations.php | 2 +- .../Checks/ListAnnotationsListing.php | 43 + .../CodeScanning/ListAlertInstances.php | 2 +- .../ListAlertInstancesListing.php | 43 + .../CodeScanning/ListAlertsForRepo.php | 2 +- .../CodeScanning/ListAlertsForRepoListing.php | 43 + .../CodeScanning/ListRecentAnalyses.php | 2 +- .../ListRecentAnalysesListing.php | 43 + .../CodesOfConduct/GetAllCodesOfConduct.php | 2 +- .../EnterpriseAdmin/AddAuthorizedSshKey.php | 2 +- .../GetAllAuthorizedSshKeys.php | 2 +- .../Operator/EnterpriseAdmin/GetAuditLog.php | 2 +- .../EnterpriseAdmin/GetAuditLogListing.php | 43 + .../EnterpriseAdmin/ListGlobalWebhooks.php | 2 +- .../ListGlobalWebhooksListing.php | 43 + .../ListPersonalAccessTokens.php | 2 +- .../ListPersonalAccessTokensListing.php | 43 + .../ListPreReceiveEnvironments.php | 2 +- .../ListPreReceiveEnvironmentsListing.php | 43 + .../EnterpriseAdmin/ListPreReceiveHooks.php | 2 +- .../ListPreReceiveHooksForOrg.php | 2 +- .../ListPreReceiveHooksForOrgListing.php | 43 + .../ListPreReceiveHooksForRepo.php | 2 +- .../ListPreReceiveHooksForRepoListing.php | 43 + .../ListPreReceiveHooksListing.php | 43 + .../EnterpriseAdmin/ListPublicKeys.php | 2 +- .../EnterpriseAdmin/ListPublicKeysListing.php | 43 + .../ListRunnerApplicationsForEnterprise.php | 2 +- .../RemoveAuthorizedSshKey.php | 2 +- .../src/Operator/Gists/ListComments.php | 2 +- .../Operator/Gists/ListCommentsListing.php | 43 + .../src/Operator/Gists/ListCommits.php | 2 +- .../src/Operator/Gists/ListCommitsListing.php | 43 + .../src/Operator/Gists/ListForUser.php | 2 +- .../src/Operator/Gists/ListForUserListing.php | 43 + .../src/Operator/Gists/ListForks.php | 2 +- .../src/Operator/Gists/ListForksListing.php | 43 + .../src/Operator/Gists/ListListing.php | 43 + .../src/Operator/Gists/ListPublic.php | 2 +- .../src/Operator/Gists/ListPublicListing.php | 43 + .../src/Operator/Gists/ListStarred.php | 2 +- .../src/Operator/Gists/ListStarredListing.php | 43 + .../src/Operator/Gists/List_.php | 2 +- .../src/Operator/Git/ListMatchingRefs.php | 2 +- .../Operator/Gitignore/GetAllTemplates.php | 2 +- .../src/Operator/Issues/AddLabels.php | 2 +- .../src/Operator/Issues/ListAssignees.php | 2 +- .../Operator/Issues/ListAssigneesListing.php | 43 + .../src/Operator/Issues/ListComments.php | 2 +- .../Operator/Issues/ListCommentsForRepo.php | 2 +- .../Issues/ListCommentsForRepoListing.php | 43 + .../Operator/Issues/ListCommentsListing.php | 43 + .../src/Operator/Issues/ListEvents.php | 2 +- .../src/Operator/Issues/ListEventsForRepo.php | 2 +- .../Issues/ListEventsForRepoListing.php | 43 + .../Operator/Issues/ListEventsForTimeline.php | 2 +- .../Issues/ListEventsForTimelineListing.php | 43 + .../src/Operator/Issues/ListEventsListing.php | 43 + .../Issues/ListForAuthenticatedUser.php | 2 +- .../ListForAuthenticatedUserListing.php | 43 + .../src/Operator/Issues/ListForOrg.php | 2 +- .../src/Operator/Issues/ListForOrgListing.php | 43 + .../src/Operator/Issues/ListForRepo.php | 2 +- .../Operator/Issues/ListForRepoListing.php | 44 + .../Issues/ListLabelsForMilestone.php | 2 +- .../Issues/ListLabelsForMilestoneListing.php | 43 + .../src/Operator/Issues/ListLabelsForRepo.php | 2 +- .../Issues/ListLabelsForRepoListing.php | 43 + .../src/Operator/Issues/ListLabelsOnIssue.php | 2 +- .../Issues/ListLabelsOnIssueListing.php | 44 + .../src/Operator/Issues/ListListing.php | 43 + .../src/Operator/Issues/ListMilestones.php | 2 +- .../Operator/Issues/ListMilestonesListing.php | 43 + .../src/Operator/Issues/List_.php | 2 +- .../src/Operator/Issues/RemoveLabel.php | 2 +- .../src/Operator/Issues/SetLabels.php | 2 +- .../Operator/Licenses/GetAllCommonlyUsed.php | 2 +- .../Licenses/GetAllCommonlyUsedListing.php | 43 + .../Migrations/ListForAuthenticatedUser.php | 2 +- .../ListForAuthenticatedUserListing.php | 43 + .../src/Operator/Migrations/ListForOrg.php | 2 +- .../Operator/Migrations/ListForOrgListing.php | 43 + .../ListReposForAuthenticatedUser.php | 2 +- .../ListReposForAuthenticatedUserListing.php | 43 + .../Operator/Migrations/ListReposForOrg.php | 2 +- .../Migrations/ListReposForOrgListing.php | 43 + .../ListAuthorizations.php | 2 +- .../ListAuthorizationsListing.php | 43 + .../OauthAuthorizations/ListGrants.php | 2 +- .../OauthAuthorizations/ListGrantsListing.php | 43 + .../src/Operator/Orgs/GetAuditLog.php | 2 +- .../src/Operator/Orgs/GetAuditLogListing.php | 43 + .../Orgs/ListForAuthenticatedUser.php | 2 +- .../Orgs/ListForAuthenticatedUserListing.php | 43 + .../src/Operator/Orgs/ListForUser.php | 2 +- .../src/Operator/Orgs/ListForUserListing.php | 43 + .../src/Operator/Orgs/ListMembers.php | 2 +- .../src/Operator/Orgs/ListMembersListing.php | 43 + .../ListMembershipsForAuthenticatedUser.php | 2 +- ...MembershipsForAuthenticatedUserListing.php | 43 + .../Orgs/ListOutsideCollaborators.php | 2 +- .../Orgs/ListOutsideCollaboratorsListing.php | 43 + .../src/Operator/Orgs/ListPublicMembers.php | 2 +- .../Orgs/ListPublicMembersListing.php | 43 + .../Operator/Orgs/ListWebhookDeliveries.php | 2 +- .../src/Operator/Orgs/ListWebhooks.php | 2 +- .../src/Operator/Orgs/ListWebhooksListing.php | 43 + .../src/Operator/Orgs/List_.php | 2 +- .../src/Operator/Orgs/Update.php | 3 +- .../src/Operator/Projects/ListCards.php | 2 +- .../Operator/Projects/ListCardsListing.php | 43 + .../Operator/Projects/ListCollaborators.php | 2 +- .../Projects/ListCollaboratorsListing.php | 43 + .../src/Operator/Projects/ListColumns.php | 2 +- .../Operator/Projects/ListColumnsListing.php | 43 + .../src/Operator/Projects/ListForOrg.php | 2 +- .../Operator/Projects/ListForOrgListing.php | 43 + .../src/Operator/Projects/ListForRepo.php | 2 +- .../Operator/Projects/ListForRepoListing.php | 43 + .../src/Operator/Projects/ListForUser.php | 2 +- .../Operator/Projects/ListForUserListing.php | 43 + .../Operator/Pulls/ListCommentsForReview.php | 2 +- .../Pulls/ListCommentsForReviewListing.php | 43 + .../src/Operator/Pulls/ListCommits.php | 2 +- .../src/Operator/Pulls/ListCommitsListing.php | 43 + .../src/Operator/Pulls/ListFiles.php | 2 +- .../src/Operator/Pulls/ListFilesListing.php | 43 + .../src/Operator/Pulls/ListListing.php | 43 + .../src/Operator/Pulls/ListReviewComments.php | 2 +- .../Pulls/ListReviewCommentsForRepo.php | 2 +- .../ListReviewCommentsForRepoListing.php | 43 + .../Pulls/ListReviewCommentsListing.php | 43 + .../src/Operator/Pulls/ListReviews.php | 2 +- .../src/Operator/Pulls/ListReviewsListing.php | 43 + .../src/Operator/Pulls/List_.php | 2 +- .../Reactions/ListForCommitComment.php | 2 +- .../Reactions/ListForCommitCommentListing.php | 43 + .../src/Operator/Reactions/ListForIssue.php | 2 +- .../Reactions/ListForIssueComment.php | 2 +- .../Reactions/ListForIssueCommentListing.php | 43 + .../Reactions/ListForIssueListing.php | 43 + .../ListForPullRequestReviewComment.php | 2 +- ...ListForPullRequestReviewCommentListing.php | 43 + .../src/Operator/Reactions/ListForRelease.php | 2 +- .../Reactions/ListForReleaseListing.php | 43 + .../ListForTeamDiscussionCommentInOrg.php | 2 +- ...stForTeamDiscussionCommentInOrgListing.php | 43 + .../ListForTeamDiscussionCommentLegacy.php | 2 +- ...tForTeamDiscussionCommentLegacyListing.php | 43 + .../Reactions/ListForTeamDiscussionInOrg.php | 2 +- .../ListForTeamDiscussionInOrgListing.php | 43 + .../Reactions/ListForTeamDiscussionLegacy.php | 2 +- .../ListForTeamDiscussionLegacyListing.php | 43 + .../Repos/AddAppAccessRestrictions.php | 2 +- .../Operator/Repos/AddStatusCheckContexts.php | 2 +- .../Repos/AddTeamAccessRestrictions.php | 2 +- .../Repos/AddUserAccessRestrictions.php | 2 +- .../Repos/GetAllStatusCheckContexts.php | 2 +- .../GetAppsWithAccessToProtectedBranch.php | 2 +- .../Operator/Repos/GetCodeFrequencyStats.php | 2 +- .../Operator/Repos/GetCommitActivityStats.php | 2 +- .../Operator/Repos/GetContributorsStats.php | 2 +- .../src/Operator/Repos/GetPunchCardStats.php | 2 +- .../GetTeamsWithAccessToProtectedBranch.php | 2 +- .../GetUsersWithAccessToProtectedBranch.php | 2 +- .../src/Operator/Repos/ListAutolinks.php | 2 +- .../src/Operator/Repos/ListBranches.php | 2 +- .../Repos/ListBranchesForHeadCommit.php | 2 +- .../Operator/Repos/ListBranchesListing.php | 43 + .../src/Operator/Repos/ListCacheInfo.php | 2 +- .../Operator/Repos/ListCacheInfoListing.php | 43 + .../src/Operator/Repos/ListCollaborators.php | 2 +- .../Repos/ListCollaboratorsListing.php | 43 + .../Operator/Repos/ListCommentsForCommit.php | 2 +- .../Repos/ListCommentsForCommitListing.php | 43 + .../Repos/ListCommitCommentsForRepo.php | 2 +- .../ListCommitCommentsForRepoListing.php | 43 + .../Repos/ListCommitStatusesForRef.php | 2 +- .../Repos/ListCommitStatusesForRefListing.php | 44 + .../src/Operator/Repos/ListCommits.php | 2 +- .../src/Operator/Repos/ListCommitsListing.php | 43 + .../src/Operator/Repos/ListContributors.php | 2 +- .../Repos/ListContributorsListing.php | 43 + .../src/Operator/Repos/ListDeployKeys.php | 2 +- .../Operator/Repos/ListDeployKeysListing.php | 43 + .../Operator/Repos/ListDeploymentStatuses.php | 2 +- .../Repos/ListDeploymentStatusesListing.php | 43 + .../src/Operator/Repos/ListDeployments.php | 2 +- .../Operator/Repos/ListDeploymentsListing.php | 43 + .../Repos/ListForAuthenticatedUser.php | 2 +- .../Repos/ListForAuthenticatedUserListing.php | 43 + .../src/Operator/Repos/ListForOrg.php | 2 +- .../src/Operator/Repos/ListForOrgListing.php | 43 + .../src/Operator/Repos/ListForUser.php | 2 +- .../src/Operator/Repos/ListForUserListing.php | 43 + .../src/Operator/Repos/ListForks.php | 2 +- .../src/Operator/Repos/ListForksListing.php | 43 + .../src/Operator/Repos/ListInvitations.php | 2 +- .../ListInvitationsForAuthenticatedUser.php | 2 +- ...InvitationsForAuthenticatedUserListing.php | 43 + .../Operator/Repos/ListInvitationsListing.php | 43 + .../src/Operator/Repos/ListPagesBuilds.php | 2 +- .../Operator/Repos/ListPagesBuildsListing.php | 43 + .../src/Operator/Repos/ListPublic.php | 2 +- .../ListPullRequestsAssociatedWithCommit.php | 2 +- ...ullRequestsAssociatedWithCommitListing.php | 43 + .../src/Operator/Repos/ListReleaseAssets.php | 2 +- .../Repos/ListReleaseAssetsListing.php | 43 + .../src/Operator/Repos/ListReleases.php | 2 +- .../Operator/Repos/ListReleasesListing.php | 43 + .../src/Operator/Repos/ListTags.php | 2 +- .../src/Operator/Repos/ListTagsListing.php | 43 + .../src/Operator/Repos/ListTeams.php | 2 +- .../src/Operator/Repos/ListTeamsListing.php | 43 + .../Operator/Repos/ListWebhookDeliveries.php | 2 +- .../src/Operator/Repos/ListWebhooks.php | 2 +- .../Operator/Repos/ListWebhooksListing.php | 43 + .../Repos/RemoveAppAccessRestrictions.php | 2 +- .../Repos/RemoveStatusCheckContexts.php | 2 +- .../Repos/RemoveTeamAccessRestrictions.php | 2 +- .../Repos/RemoveUserAccessRestrictions.php | 2 +- .../Repos/SetAppAccessRestrictions.php | 2 +- .../Operator/Repos/SetStatusCheckContexts.php | 2 +- .../Repos/SetTeamAccessRestrictions.php | 2 +- .../Repos/SetUserAccessRestrictions.php | 2 +- .../ListAlertsForEnterprise.php | 2 +- .../SecretScanning/ListAlertsForOrg.php | 2 +- .../ListAlertsForOrgListing.php | 43 + .../SecretScanning/ListAlertsForRepo.php | 2 +- .../ListAlertsForRepoListing.php | 43 + .../SecretScanning/ListLocationsForAlert.php | 2 +- .../ListLocationsForAlertListing.php | 43 + .../src/Operator/Teams/ListChildInOrg.php | 2 +- .../Operator/Teams/ListChildInOrgListing.php | 43 + .../src/Operator/Teams/ListChildLegacy.php | 2 +- .../Operator/Teams/ListChildLegacyListing.php | 43 + .../Teams/ListDiscussionCommentsInOrg.php | 2 +- .../ListDiscussionCommentsInOrgListing.php | 43 + .../Teams/ListDiscussionCommentsLegacy.php | 2 +- .../ListDiscussionCommentsLegacyListing.php | 43 + .../Operator/Teams/ListDiscussionsInOrg.php | 2 +- .../Teams/ListDiscussionsInOrgListing.php | 43 + .../Operator/Teams/ListDiscussionsLegacy.php | 2 +- .../Teams/ListDiscussionsLegacyListing.php | 43 + .../Teams/ListForAuthenticatedUser.php | 2 +- .../Teams/ListForAuthenticatedUserListing.php | 43 + .../src/Operator/Teams/ListListing.php | 43 + .../src/Operator/Teams/ListMembersInOrg.php | 2 +- .../Teams/ListMembersInOrgListing.php | 43 + .../src/Operator/Teams/ListMembersLegacy.php | 2 +- .../Teams/ListMembersLegacyListing.php | 43 + .../src/Operator/Teams/ListProjectsInOrg.php | 2 +- .../Teams/ListProjectsInOrgListing.php | 43 + .../src/Operator/Teams/ListProjectsLegacy.php | 2 +- .../Teams/ListProjectsLegacyListing.php | 43 + .../src/Operator/Teams/ListReposInOrg.php | 2 +- .../Operator/Teams/ListReposInOrgListing.php | 43 + .../src/Operator/Teams/ListReposLegacy.php | 2 +- .../Operator/Teams/ListReposLegacyListing.php | 43 + .../src/Operator/Teams/List_.php | 2 +- .../Users/AddEmailForAuthenticatedUser.php | 2 +- .../src/Operator/Users/GetByUsername.php | 3 +- .../Users/ListEmailsForAuthenticatedUser.php | 2 +- .../ListEmailsForAuthenticatedUserListing.php | 43 + .../Users/ListFollowedByAuthenticatedUser.php | 2 +- ...ListFollowedByAuthenticatedUserListing.php | 43 + .../ListFollowersForAuthenticatedUser.php | 2 +- ...stFollowersForAuthenticatedUserListing.php | 43 + .../Operator/Users/ListFollowersForUser.php | 2 +- .../Users/ListFollowersForUserListing.php | 43 + .../Operator/Users/ListFollowingForUser.php | 2 +- .../Users/ListFollowingForUserListing.php | 43 + .../Users/ListGpgKeysForAuthenticatedUser.php | 2 +- ...ListGpgKeysForAuthenticatedUserListing.php | 43 + .../src/Operator/Users/ListGpgKeysForUser.php | 2 +- .../Users/ListGpgKeysForUserListing.php | 43 + .../ListPublicEmailsForAuthenticatedUser.php | 2 +- ...ublicEmailsForAuthenticatedUserListing.php | 43 + .../Operator/Users/ListPublicKeysForUser.php | 2 +- .../Users/ListPublicKeysForUserListing.php | 43 + .../ListPublicSshKeysForAuthenticatedUser.php | 2 +- ...blicSshKeysForAuthenticatedUserListing.php | 43 + .../src/Operator/Users/List_.php | 2 +- .../src/Router/Delete/Eight.php | 48 +- .../src/Router/Delete/Eleven.php | 2 +- .../src/Router/Delete/EnterpriseAdmin.php | 2 +- .../src/Router/Delete/Five.php | 46 +- .../src/Router/Delete/Four.php | 38 +- .../src/Router/Delete/Issues.php | 2 +- .../src/Router/Delete/Nine.php | 20 +- .../src/Router/Delete/Repos.php | 8 +- .../src/Router/Delete/Seven.php | 48 +- .../src/Router/Delete/Six.php | 44 +- .../src/Router/Delete/Three.php | 16 +- .../src/Router/Get/Actions.php | 102 +- .../src/Router/Get/Activity.php | 34 +- .../src/Router/Get/Apps.php | 6 +- .../src/Router/Get/Checks.php | 2 +- .../src/Router/Get/CodeScanning.php | 6 +- .../src/Router/Get/CodesOfConduct.php | 2 +- .../src/Router/Get/Eight.php | 56 +- .../src/Router/Get/EnterpriseAdmin.php | 40 +- .../src/Router/Get/Five.php | 140 +- .../src/Router/Get/Four.php | 146 +- .../src/Router/Get/Gists.php | 16 +- .../src/Router/Get/Git.php | 2 +- .../src/Router/Get/Gitignore.php | 2 +- .../src/Router/Get/Issues.php | 30 +- .../src/Router/Get/Licenses.php | 2 +- .../src/Router/Get/Migrations.php | 34 +- .../src/Router/Get/Nine.php | 14 +- .../src/Router/Get/OauthAuthorizations.php | 4 +- .../src/Router/Get/One.php | 2 +- .../src/Router/Get/Orgs.php | 22 +- .../src/Router/Get/Projects.php | 12 +- .../src/Router/Get/Pulls.php | 16 +- .../src/Router/Get/Reactions.php | 18 +- .../src/Router/Get/Repos.php | 128 +- .../src/Router/Get/SecretScanning.php | 8 +- .../src/Router/Get/Seven.php | 148 +- .../src/Router/Get/Six.php | 154 +- .../src/Router/Get/Teams.php | 30 +- .../src/Router/Get/Ten.php | 4 +- .../src/Router/Get/Three.php | 90 +- .../src/Router/Get/Two.php | 38 +- .../src/Router/Get/Users.php | 26 +- .../src/Router/List/Activity.php | 665 +++ .../src/Router/List/Apps.php | 104 + .../src/Router/List/Checks.php | 78 + .../src/Router/List/CodeScanning.php | 232 + .../src/Router/List/Eight.php | 154 + .../src/Router/List/EnterpriseAdmin.php | 404 ++ .../src/Router/List/Five.php | 336 ++ .../src/Router/List/Four.php | 379 ++ .../src/Router/List/Gists.php | 300 ++ .../src/Router/List/Issues.php | 873 +++ .../src/Router/List/Licenses.php | 66 + .../src/Router/List/Migrations.php | 186 + .../src/Router/List/Nine.php | 60 + .../src/Router/List/OauthAuthorizations.php | 104 + .../src/Router/List/Orgs.php | 374 ++ .../src/Router/List/Projects.php | 292 ++ .../src/Router/List/Pulls.php | 438 ++ .../src/Router/List/Reactions.php | 532 ++ .../src/Router/List/Repos.php | 1241 +++++ .../src/Router/List/SecretScanning.php | 196 + .../src/Router/List/Seven.php | 239 + .../src/Router/List/Six.php | 235 + .../src/Router/List/Teams.php | 644 +++ .../src/Router/List/Ten.php | 62 + .../src/Router/List/Three.php | 262 + .../src/Router/List/Two.php | 90 + .../src/Router/List/Users.php | 372 ++ .../src/Router/Patch/Eight.php | 4 +- .../src/Router/Patch/Five.php | 14 +- .../src/Router/Patch/Four.php | 22 +- .../src/Router/Patch/Nine.php | 2 +- .../src/Router/Patch/Orgs.php | 3 +- .../src/Router/Patch/Seven.php | 18 +- .../src/Router/Patch/Six.php | 32 +- .../src/Router/Patch/Three.php | 14 +- .../src/Router/Patch/Two.php | 2 +- .../src/Router/Post/Actions.php | 2 +- .../src/Router/Post/Eight.php | 28 +- .../src/Router/Post/EnterpriseAdmin.php | 22 +- .../src/Router/Post/Five.php | 60 +- .../src/Router/Post/Four.php | 30 +- .../src/Router/Post/Issues.php | 2 +- .../src/Router/Post/Nine.php | 16 +- .../src/Router/Post/Repos.php | 8 +- .../src/Router/Post/Seven.php | 46 +- .../src/Router/Post/Six.php | 42 +- .../src/Router/Post/Ten.php | 2 +- .../src/Router/Post/Three.php | 26 +- .../src/Router/Post/Two.php | 6 +- .../src/Router/Post/Users.php | 2 +- .../src/Router/Put/Eight.php | 24 +- .../src/Router/Put/Five.php | 36 +- .../src/Router/Put/Four.php | 12 +- .../src/Router/Put/Issues.php | 2 +- .../src/Router/Put/Nine.php | 12 +- .../src/Router/Put/Repos.php | 8 +- .../src/Router/Put/Seven.php | 44 +- .../src/Router/Put/Six.php | 24 +- .../src/Router/Put/Two.php | 2 +- .../src/Router/Stream/Actions.php | 120 + .../src/Router/Stream/Eight.php | 18 +- .../src/Router/Stream/EnterpriseAdmin.php | 67 + .../src/Router/Stream/Five.php | 6 +- .../src/Router/Stream/Migrations.php | 52 + .../src/Router/Stream/Repos.php | 81 + .../src/Router/Stream/Six.php | 24 +- .../Actions/ListArtifactsForRepoTest.php | 8 +- .../Actions/ListEnvironmentSecretsTest.php | 8 +- .../Actions/ListJobsForWorkflowRunTest.php | 8 +- .../Operation/Actions/ListOrgSecretsTest.php | 8 +- ...AccessToSelfHostedRunnerGroupInOrgTest.php | 8 +- .../Operation/Actions/ListRepoSecretsTest.php | 8 +- .../Actions/ListRepoWorkflowsTest.php | 8 +- .../ListSelectedReposForOrgSecretTest.php | 8 +- ...esEnabledGithubActionsOrganizationTest.php | 8 +- .../ListSelfHostedRunnerGroupsForOrgTest.php | 8 +- .../ListSelfHostedRunnersForOrgTest.php | 8 +- .../ListSelfHostedRunnersForRepoTest.php | 8 +- ...ListSelfHostedRunnersInGroupForOrgTest.php | 8 +- .../Actions/ListWorkflowRunArtifactsTest.php | 8 +- .../Actions/ListWorkflowRunsForRepoTest.php | 8 +- .../Actions/ListWorkflowRunsTest.php | 8 +- ...tEventsForAuthenticatedUserListingTest.php | 12 + ...cationsForAuthenticatedUserListingTest.php | 195 + ...tNotificationsForAuthenticatedUserTest.php | 32 +- ...gEventsForAuthenticatedUserListingTest.php | 12 + ...tPublicEventsForRepoNetworkListingTest.php | 185 + .../ListPublicEventsForRepoNetworkTest.php | 32 +- .../ListPublicEventsForUserListingTest.php | 12 + .../Activity/ListPublicEventsListingTest.php | 140 + .../Activity/ListPublicEventsTest.php | 24 +- .../ListPublicOrgEventsListingTest.php | 12 + .../ListReceivedEventsForUserListingTest.php | 12 + ...ReceivedPublicEventsForUserListingTest.php | 12 + .../Activity/ListRepoEventsListingTest.php | 12 + ...cationsForAuthenticatedUserListingTest.php | 12 + ...sStarredByAuthenticatedUserListingTest.php | 146 + ...istReposStarredByAuthenticatedUserTest.php | 24 +- .../ListReposWatchedByUserListingTest.php | 12 + .../Activity/ListStargazersForRepoTest.php | 8 +- ...edReposForAuthenticatedUserListingTest.php | 140 + ...stWatchedReposForAuthenticatedUserTest.php | 24 +- .../ListWatchersForRepoListingTest.php | 12 + ...tallationReposForAuthenticatedUserTest.php | 32 +- ...RequestsForAuthenticatedAppListingTest.php | 101 + ...llationRequestsForAuthenticatedAppTest.php | 16 +- ...tInstallationsForAuthenticatedUserTest.php | 32 +- .../Apps/ListInstallationsListingTest.php | 12 + .../ListReposAccessibleToInstallationTest.php | 32 +- ...etGithubAdvancedSecurityBillingGheTest.php | 16 +- ...etGithubAdvancedSecurityBillingOrgTest.php | 16 +- .../Checks/ListAnnotationsListingTest.php | 12 + .../tests/Operation/Checks/ListForRefTest.php | 8 +- .../Operation/Checks/ListForSuiteTest.php | 8 +- .../Operation/Checks/ListSuitesForRefTest.php | 8 +- .../ListAlertInstancesListingTest.php | 152 + .../CodeScanning/ListAlertInstancesTest.php | 24 +- .../ListAlertsForRepoListingTest.php | 211 + .../CodeScanning/ListAlertsForRepoTest.php | 32 +- .../ListRecentAnalysesListingTest.php | 158 + .../CodeScanning/ListRecentAnalysesTest.php | 24 +- .../Dependabot/ListOrgSecretsTest.php | 8 +- .../Dependabot/ListRepoSecretsTest.php | 8 +- .../ListSelectedReposForOrgSecretTest.php | 8 +- .../GetAuditLogListingTest.php | 12 + .../ListGlobalWebhooksListingTest.php | 12 + ...oSelfHostedRunnerGroupInEnterpriseTest.php | 8 +- .../ListPersonalAccessTokensListingTest.php | 12 + .../ListPreReceiveEnvironmentsListingTest.php | 12 + .../ListPreReceiveHooksForOrgListingTest.php | 12 + .../ListPreReceiveHooksForRepoListingTest.php | 12 + .../ListPreReceiveHooksListingTest.php | 12 + .../ListPublicKeysListingTest.php | 12 + ...ionsEnabledGithubActionsEnterpriseTest.php | 8 +- ...elfHostedRunnerGroupsForEnterpriseTest.php | 8 +- ...ListSelfHostedRunnersForEnterpriseTest.php | 8 +- ...fHostedRunnersInGroupForEnterpriseTest.php | 8 +- .../Gists/ListCommentsListingTest.php | 143 + .../Operation/Gists/ListCommentsTest.php | 24 +- .../Gists/ListCommitsListingTest.php | 143 + .../tests/Operation/Gists/ListCommitsTest.php | 24 +- .../Gists/ListForUserListingTest.php | 64 + .../tests/Operation/Gists/ListForUserTest.php | 8 +- .../Operation/Gists/ListForksListingTest.php | 143 + .../tests/Operation/Gists/ListForksTest.php | 24 +- .../tests/Operation/Gists/ListListingTest.php | 103 + .../Operation/Gists/ListPublicListingTest.php | 143 + .../tests/Operation/Gists/ListPublicTest.php | 24 +- .../Gists/ListStarredListingTest.php | 143 + .../tests/Operation/Gists/ListStarredTest.php | 24 +- .../tests/Operation/Gists/List_Test.php | 16 +- .../Issues/ListAssigneesListingTest.php | 64 + .../Operation/Issues/ListAssigneesTest.php | 8 +- .../Issues/ListCommentsForRepoListingTest.php | 111 + .../Issues/ListCommentsForRepoTest.php | 16 +- .../Issues/ListCommentsListingTest.php | 109 + .../Operation/Issues/ListCommentsTest.php | 16 +- .../Issues/ListEventsForRepoListingTest.php | 64 + .../Issues/ListEventsForRepoTest.php | 8 +- .../ListEventsForTimelineListingTest.php | 107 + .../Issues/ListEventsForTimelineTest.php | 16 +- .../Issues/ListEventsListingTest.php | 65 + .../tests/Operation/Issues/ListEventsTest.php | 8 +- .../ListForAuthenticatedUserListingTest.php | 113 + .../Issues/ListForAuthenticatedUserTest.php | 16 +- .../Issues/ListForOrgListingTest.php | 69 + .../tests/Operation/Issues/ListForOrgTest.php | 8 +- .../Issues/ListForRepoListingTest.php | 171 + .../Operation/Issues/ListForRepoTest.php | 24 +- .../ListLabelsForMilestoneListingTest.php | 12 + .../Issues/ListLabelsForRepoListingTest.php | 64 + .../Issues/ListLabelsForRepoTest.php | 8 +- .../Issues/ListLabelsOnIssueListingTest.php | 147 + .../Issues/ListLabelsOnIssueTest.php | 24 +- .../Operation/Issues/ListListingTest.php | 170 + .../Issues/ListMilestonesListingTest.php | 67 + .../Operation/Issues/ListMilestonesTest.php | 8 +- .../tests/Operation/Issues/List_Test.php | 24 +- .../GetAllCommonlyUsedListingTest.php | 59 + .../Licenses/GetAllCommonlyUsedTest.php | 8 +- .../ListForAuthenticatedUserListingTest.php | 140 + .../ListForAuthenticatedUserTest.php | 24 +- .../Migrations/ListForOrgListingTest.php | 12 + ...stReposForAuthenticatedUserListingTest.php | 63 + .../ListReposForAuthenticatedUserTest.php | 8 +- .../Migrations/ListReposForOrgListingTest.php | 64 + .../Migrations/ListReposForOrgTest.php | 8 +- .../ListAuthorizationsListingTest.php | 183 + .../ListAuthorizationsTest.php | 32 +- .../ListGrantsListingTest.php | 183 + .../OauthAuthorizations/ListGrantsTest.php | 32 +- .../Operation/Orgs/GetAuditLogListingTest.php | 12 + .../Orgs/ListAppInstallationsTest.php | 8 +- .../ListForAuthenticatedUserListingTest.php | 140 + .../Orgs/ListForAuthenticatedUserTest.php | 24 +- .../Operation/Orgs/ListForUserListingTest.php | 12 + .../Operation/Orgs/ListMembersListingTest.php | 65 + .../tests/Operation/Orgs/ListMembersTest.php | 8 +- ...ershipsForAuthenticatedUserListingTest.php | 183 + ...istMembershipsForAuthenticatedUserTest.php | 32 +- .../ListOutsideCollaboratorsListingTest.php | 12 + .../Orgs/ListPublicMembersListingTest.php | 12 + .../Orgs/ListWebhooksListingTest.php | 63 + .../tests/Operation/Orgs/ListWebhooksTest.php | 8 +- .../Projects/ListCardsListingTest.php | 146 + .../Operation/Projects/ListCardsTest.php | 24 +- .../Projects/ListCollaboratorsListingTest.php | 228 + .../Projects/ListCollaboratorsTest.php | 40 +- .../Projects/ListColumnsListingTest.php | 143 + .../Operation/Projects/ListColumnsTest.php | 24 +- .../Projects/ListForOrgListingTest.php | 64 + .../Operation/Projects/ListForOrgTest.php | 8 +- .../Projects/ListForRepoListingTest.php | 233 + .../Operation/Projects/ListForRepoTest.php | 40 +- .../Projects/ListForUserListingTest.php | 64 + .../Operation/Projects/ListForUserTest.php | 8 +- .../ListCommentsForReviewListingTest.php | 66 + .../Pulls/ListCommentsForReviewTest.php | 8 +- .../Pulls/ListCommitsListingTest.php | 12 + .../Operation/Pulls/ListFilesListingTest.php | 149 + .../tests/Operation/Pulls/ListFilesTest.php | 24 +- .../tests/Operation/Pulls/ListListingTest.php | 115 + .../ListReviewCommentsForRepoListingTest.php | 12 + .../Pulls/ListReviewCommentsListingTest.php | 12 + .../Pulls/ListReviewsListingTest.php | 12 + .../tests/Operation/Pulls/List_Test.php | 16 +- .../ListForCommitCommentListingTest.php | 66 + .../Reactions/ListForCommitCommentTest.php | 8 +- .../ListForIssueCommentListingTest.php | 66 + .../Reactions/ListForIssueCommentTest.php | 8 +- .../Reactions/ListForIssueListingTest.php | 109 + .../Operation/Reactions/ListForIssueTest.php | 16 +- ...ForPullRequestReviewCommentListingTest.php | 66 + .../ListForPullRequestReviewCommentTest.php | 8 +- .../Reactions/ListForReleaseListingTest.php | 66 + .../Reactions/ListForReleaseTest.php | 8 +- ...rTeamDiscussionCommentInOrgListingTest.php | 12 + ...TeamDiscussionCommentLegacyListingTest.php | 12 + .../ListForTeamDiscussionInOrgListingTest.php | 12 + ...ListForTeamDiscussionLegacyListingTest.php | 12 + .../Operation/Repos/CompareCommitsTest.php | 32 +- .../Repos/GetAllEnvironmentsTest.php | 8 +- .../Operation/Repos/GetAllTopicsTest.php | 16 +- .../Repos/GetCombinedStatusForRefTest.php | 16 +- .../tests/Operation/Repos/GetCommitTest.php | 40 +- .../Repos/ListBranchesListingTest.php | 65 + .../Operation/Repos/ListBranchesTest.php | 8 +- .../Repos/ListCacheInfoListingTest.php | 105 + .../Operation/Repos/ListCacheInfoTest.php | 16 +- .../Repos/ListCollaboratorsListingTest.php | 65 + .../Operation/Repos/ListCollaboratorsTest.php | 8 +- .../ListCommentsForCommitListingTest.php | 12 + .../ListCommitCommentsForRepoListingTest.php | 12 + .../ListCommitStatusesForRefListingTest.php | 62 + .../Repos/ListCommitStatusesForRefTest.php | 8 +- .../Repos/ListCommitsListingTest.php | 258 + .../tests/Operation/Repos/ListCommitsTest.php | 40 +- .../Repos/ListContributorsListingTest.php | 149 + .../Operation/Repos/ListContributorsTest.php | 24 +- .../Repos/ListDeployKeysListingTest.php | 12 + .../ListDeploymentBranchPoliciesTest.php | 8 +- .../ListDeploymentStatusesListingTest.php | 65 + .../Repos/ListDeploymentStatusesTest.php | 8 +- .../Repos/ListDeploymentsListingTest.php | 12 + .../ListForAuthenticatedUserListingTest.php | 207 + .../Repos/ListForAuthenticatedUserTest.php | 32 +- .../Operation/Repos/ListForOrgListingTest.php | 12 + .../Repos/ListForUserListingTest.php | 12 + .../Operation/Repos/ListForksListingTest.php | 107 + .../tests/Operation/Repos/ListForksTest.php | 16 +- ...tationsForAuthenticatedUserListingTest.php | 179 + ...istInvitationsForAuthenticatedUserTest.php | 32 +- .../Repos/ListInvitationsListingTest.php | 12 + .../Repos/ListPagesBuildsListingTest.php | 12 + ...equestsAssociatedWithCommitListingTest.php | 12 + .../Repos/ListReleaseAssetsListingTest.php | 12 + .../Repos/ListReleasesListingTest.php | 64 + .../Operation/Repos/ListReleasesTest.php | 8 +- .../Operation/Repos/ListTagsListingTest.php | 12 + .../Operation/Repos/ListTeamsListingTest.php | 64 + .../tests/Operation/Repos/ListTeamsTest.php | 8 +- .../Repos/ListWebhooksListingTest.php | 64 + .../Operation/Repos/ListWebhooksTest.php | 8 +- .../tests/Operation/Search/CodeTest.php | 40 +- .../tests/Operation/Search/CommitsTest.php | 16 +- .../Search/IssuesAndPullRequestsTest.php | 40 +- .../tests/Operation/Search/LabelsTest.php | 40 +- .../tests/Operation/Search/ReposTest.php | 32 +- .../tests/Operation/Search/TopicsTest.php | 16 +- .../tests/Operation/Search/UsersTest.php | 32 +- .../ListAlertsForOrgListingTest.php | 109 + .../SecretScanning/ListAlertsForOrgTest.php | 16 +- .../ListAlertsForRepoListingTest.php | 111 + .../SecretScanning/ListAlertsForRepoTest.php | 16 +- .../ListLocationsForAlertListingTest.php | 107 + .../ListLocationsForAlertTest.php | 16 +- .../Teams/ListChildInOrgListingTest.php | 12 + .../Teams/ListChildLegacyListingTest.php | 143 + .../Operation/Teams/ListChildLegacyTest.php | 24 +- ...ListDiscussionCommentsInOrgListingTest.php | 12 + ...istDiscussionCommentsLegacyListingTest.php | 12 + .../Teams/ListDiscussionsInOrgListingTest.php | 12 + .../ListDiscussionsLegacyListingTest.php | 12 + .../ListForAuthenticatedUserListingTest.php | 140 + .../Teams/ListForAuthenticatedUserTest.php | 24 +- .../tests/Operation/Teams/ListListingTest.php | 63 + .../Teams/ListMembersInOrgListingTest.php | 12 + .../Teams/ListMembersLegacyListingTest.php | 64 + .../Operation/Teams/ListMembersLegacyTest.php | 8 +- .../Teams/ListProjectsInOrgListingTest.php | 12 + .../Teams/ListProjectsLegacyListingTest.php | 63 + .../Teams/ListProjectsLegacyTest.php | 8 +- .../Teams/ListReposInOrgListingTest.php | 12 + .../Teams/ListReposLegacyListingTest.php | 63 + .../Operation/Teams/ListReposLegacyTest.php | 8 +- .../tests/Operation/Teams/List_Test.php | 8 +- ...tEmailsForAuthenticatedUserListingTest.php | 179 + .../ListEmailsForAuthenticatedUserTest.php | 32 +- ...FollowedByAuthenticatedUserListingTest.php | 140 + .../ListFollowedByAuthenticatedUserTest.php | 24 +- ...llowersForAuthenticatedUserListingTest.php | 140 + .../ListFollowersForAuthenticatedUserTest.php | 24 +- .../Users/ListFollowersForUserListingTest.php | 12 + .../Users/ListFollowingForUserListingTest.php | 12 + ...GpgKeysForAuthenticatedUserListingTest.php | 179 + .../ListGpgKeysForAuthenticatedUserTest.php | 32 +- .../Users/ListGpgKeysForUserListingTest.php | 12 + ...cEmailsForAuthenticatedUserListingTest.php | 179 + ...stPublicEmailsForAuthenticatedUserTest.php | 32 +- .../ListPublicKeysForUserListingTest.php | 12 + ...SshKeysForAuthenticatedUserListingTest.php | 179 + ...tPublicSshKeysForAuthenticatedUserTest.php | 32 +- 860 files changed, 49288 insertions(+), 3378 deletions(-) create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Activity/ListEventsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Activity/ListNotificationsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Activity/ListOrgEventsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicEventsForRepoNetworkListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicEventsForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicEventsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicOrgEventsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReceivedEventsForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReceivedPublicEventsForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Activity/ListRepoEventsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Activity/ListRepoNotificationsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReposStarredByAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReposWatchedByUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Activity/ListWatchedReposForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Activity/ListWatchersForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Apps/ListInstallationRequestsForAuthenticatedAppListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Apps/ListInstallationsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Checks/ListAnnotationsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/CodeScanning/ListAlertInstancesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/CodeScanning/ListAlertsForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/CodeScanning/ListRecentAnalysesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/GetAuditLogListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListGlobalWebhooksListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPersonalAccessTokensListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveEnvironmentsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveHooksForOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveHooksForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveHooksListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPublicKeysListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Gists/ListCommentsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Gists/ListCommitsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Gists/ListForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Gists/ListForksListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Gists/ListListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Gists/ListPublicListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Gists/ListStarredListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Issues/ListAssigneesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Issues/ListCommentsForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Issues/ListCommentsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Issues/ListEventsForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Issues/ListEventsForTimelineListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Issues/ListEventsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Issues/ListForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Issues/ListForOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Issues/ListForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Issues/ListLabelsForMilestoneListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Issues/ListLabelsForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Issues/ListLabelsOnIssueListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Issues/ListListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Issues/ListMilestonesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Licenses/GetAllCommonlyUsedListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListForOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListReposForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListReposForOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/OauthAuthorizations/ListAuthorizationsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/OauthAuthorizations/ListGrantsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Orgs/GetAuditLogListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListMembersListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListMembershipsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListOutsideCollaboratorsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListPublicMembersListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListWebhooksListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Projects/ListCardsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Projects/ListCollaboratorsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Projects/ListColumnsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Projects/ListForOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Projects/ListForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Projects/ListForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListCommentsForReviewListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListCommitsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListFilesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListReviewCommentsForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListReviewCommentsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListReviewsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForCommitCommentListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForIssueCommentListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForIssueListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForPullRequestReviewCommentListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForReleaseListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionCommentInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionCommentLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListBranchesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCacheInfoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCollaboratorsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommentsForCommitListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommitCommentsForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommitStatusesForRefListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommitsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListContributorsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListDeployKeysListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListDeploymentStatusesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListDeploymentsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForksListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListInvitationsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListInvitationsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListPagesBuildsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListPullRequestsAssociatedWithCommitListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListReleaseAssetsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListReleasesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListTagsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListTeamsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Repos/ListWebhooksListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/SecretScanning/ListAlertsForOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/SecretScanning/ListAlertsForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/SecretScanning/ListLocationsForAlertListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Teams/ListChildInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Teams/ListChildLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionCommentsInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionCommentsLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionsInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionsLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Teams/ListForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Teams/ListListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Teams/ListMembersInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Teams/ListMembersLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Teams/ListProjectsInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Teams/ListProjectsLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Teams/ListReposInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Teams/ListReposLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Users/ListEmailsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowedByAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowersForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowersForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowingForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Users/ListGpgKeysForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Users/ListGpgKeysForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Users/ListPublicEmailsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Users/ListPublicKeysForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operation/Users/ListPublicSshKeysForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Activity/ListEventsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Activity/ListNotificationsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Activity/ListOrgEventsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForRepoNetworkListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicOrgEventsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedEventsForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedPublicEventsForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoEventsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoNotificationsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposStarredByAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposWatchedByUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchedReposForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchersForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallationRequestsForAuthenticatedAppListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallationsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Checks/ListAnnotationsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertInstancesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertsForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListRecentAnalysesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/GetAuditLogListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListGlobalWebhooksListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPersonalAccessTokensListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveEnvironmentsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPublicKeysListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Gists/ListCommentsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Gists/ListCommitsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForksListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Gists/ListListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Gists/ListPublicListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Gists/ListStarredListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Issues/ListAssigneesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Issues/ListCommentsForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Issues/ListCommentsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForTimelineListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForMilestoneListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsOnIssueListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Issues/ListListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Issues/ListMilestonesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Licenses/GetAllCommonlyUsedListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListAuthorizationsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListGrantsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Orgs/GetAuditLogListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembersListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembershipsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListOutsideCollaboratorsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListPublicMembersListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListWebhooksListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCardsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCollaboratorsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Projects/ListColumnsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommentsForReviewListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommitsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListFilesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewCommentsForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewCommentsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForCommitCommentListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssueCommentListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssueListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForPullRequestReviewCommentListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForReleaseListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListBranchesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCacheInfoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCollaboratorsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommentsForCommitListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitCommentsForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitStatusesForRefListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListContributorsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeployKeysListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeploymentStatusesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeploymentsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForksListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitationsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitationsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPagesBuildsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPullRequestsAssociatedWithCommitListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleaseAssetsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleasesListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTagsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTeamsListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Repos/ListWebhooksListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForRepoListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListLocationsForAlertListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Teams/ListForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Teams/ListListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposInOrgListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposLegacyListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Users/ListEmailsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowedByAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowingForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicEmailsForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicKeysForUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicSshKeysForAuthenticatedUserListing.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Activity.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Apps.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Checks.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/CodeScanning.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Eight.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/EnterpriseAdmin.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Five.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Four.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Gists.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Issues.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Licenses.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Migrations.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Nine.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/OauthAuthorizations.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Orgs.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Projects.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Pulls.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Reactions.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Repos.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/SecretScanning.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Seven.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Six.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Teams.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Ten.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Three.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Two.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/List/Users.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/Stream/Actions.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/Stream/EnterpriseAdmin.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/Stream/Migrations.php create mode 100644 clients/GitHubEnterprise-3.4/src/Router/Stream/Repos.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListEventsForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListNotificationsForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListOrgEventsForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicEventsForRepoNetworkListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicEventsForUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicEventsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicOrgEventsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListReceivedEventsForUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListReceivedPublicEventsForUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListRepoEventsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListRepoNotificationsForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListReposStarredByAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListReposWatchedByUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListWatchedReposForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListWatchersForRepoListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationRequestsForAuthenticatedAppListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Checks/ListAnnotationsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListAlertInstancesListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListAlertsForRepoListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListRecentAnalysesListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/GetAuditLogListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListGlobalWebhooksListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListPersonalAccessTokensListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListPreReceiveEnvironmentsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListPreReceiveHooksForOrgListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListPreReceiveHooksForRepoListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListPreReceiveHooksListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListPublicKeysListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommentsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommitsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForksListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListPublicListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListStarredListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListAssigneesListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsForRepoListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForRepoListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForTimelineListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForOrgListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForRepoListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsForMilestoneListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsForRepoListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsOnIssueListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListMilestonesListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Licenses/GetAllCommonlyUsedListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListForOrgListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListReposForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListReposForOrgListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListAuthorizationsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListGrantsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Orgs/GetAuditLogListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListForUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListMembersListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListMembershipsForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListOutsideCollaboratorsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListPublicMembersListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListWebhooksListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCardsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCollaboratorsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListColumnsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForOrgListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForRepoListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListCommentsForReviewListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListCommitsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListFilesListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListReviewCommentsForRepoListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListReviewCommentsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListReviewsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForCommitCommentListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueCommentListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForPullRequestReviewCommentListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForReleaseListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForTeamDiscussionCommentInOrgListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForTeamDiscussionCommentLegacyListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForTeamDiscussionInOrgListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForTeamDiscussionLegacyListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListBranchesListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCacheInfoListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCollaboratorsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommentsForCommitListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommitCommentsForRepoListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommitStatusesForRefListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommitsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListContributorsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeployKeysListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeploymentStatusesListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeploymentsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListForOrgListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListForUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListForksListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListInvitationsForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListInvitationsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListPagesBuildsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListPullRequestsAssociatedWithCommitListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListReleaseAssetsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListReleasesListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListTagsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListTeamsListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListWebhooksListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForOrgListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForRepoListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListLocationsForAlertListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListChildInOrgListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListChildLegacyListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListDiscussionCommentsInOrgListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListDiscussionCommentsLegacyListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListDiscussionsInOrgListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListDiscussionsLegacyListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListMembersInOrgListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListMembersLegacyListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListProjectsInOrgListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListProjectsLegacyListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListReposInOrgListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListReposLegacyListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Users/ListEmailsForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowedByAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowersForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowersForUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowingForUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Users/ListGpgKeysForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Users/ListGpgKeysForUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Users/ListPublicEmailsForAuthenticatedUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Users/ListPublicKeysForUserListingTest.php create mode 100644 clients/GitHubEnterprise-3.4/tests/Operation/Users/ListPublicSshKeysForAuthenticatedUserListingTest.php diff --git a/clients/GitHubEnterprise-3.4/README.md b/clients/GitHubEnterprise-3.4/README.md index 98fb87bb50b..51c8aaa0c4d 100644 --- a/clients/GitHubEnterprise-3.4/README.md +++ b/clients/GitHubEnterprise-3.4/README.md @@ -61,14 +61,36 @@ Using the `call` method: ```php $client->call('GET /admin/hooks', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->enterpriseAdmin()->listGlobalWebhooks( per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/enterprise-admin#list-global-webhooks). + + +### enterprise-admin/list-global-webhooks + +List global webhooks + +Using the `call` method: +```php +$client->call('LIST /admin/hooks', [ + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->enterpriseAdmin()->listGlobalWebhooksListing( per_page: 8, + page: 1, ); ``` @@ -181,7 +203,7 @@ Using the `call` method: $client->call('GET /admin/keys', [ 'since' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, 'direction' => 'generated', 'sort' => 'generated', ]); @@ -191,7 +213,35 @@ Operations method: ```php $client->operations()->enterpriseAdmin()->listPublicKeys( since: 'generated', per_page: 8, - page: 4, + page: 1, + direction: 'generated', + sort: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/enterprise-admin#list-public-keys). + + +### enterprise-admin/list-public-keys + +List public keys + +Using the `call` method: +```php +$client->call('LIST /admin/keys', [ + 'since' => 'generated', + 'per_page' => 8, + 'page' => 1, + 'direction' => 'generated', + 'sort' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->enterpriseAdmin()->listPublicKeysListing( since: 'generated', + per_page: 8, + page: 1, direction: 'generated', sort: 'generated', ); @@ -345,7 +395,7 @@ Using the `call` method: ```php $client->call('GET /admin/pre-receive-environments', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, 'direction' => 'generated', 'sort' => 'generated', ]); @@ -354,7 +404,33 @@ $client->call('GET /admin/pre-receive-environments', [ Operations method: ```php $client->operations()->enterpriseAdmin()->listPreReceiveEnvironments( per_page: 8, - page: 4, + page: 1, + direction: 'generated', + sort: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/enterprise-admin#list-pre-receive-environments). + + +### enterprise-admin/list-pre-receive-environments + +List pre-receive environments + +Using the `call` method: +```php +$client->call('LIST /admin/pre-receive-environments', [ + 'per_page' => 8, + 'page' => 1, + 'direction' => 'generated', + 'sort' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->enterpriseAdmin()->listPreReceiveEnvironmentsListing( per_page: 8, + page: 1, direction: 'generated', sort: 'generated', ); @@ -528,7 +604,7 @@ Using the `call` method: ```php $client->call('GET /admin/pre-receive-hooks', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, 'direction' => 'generated', 'sort' => 'generated', ]); @@ -537,7 +613,33 @@ $client->call('GET /admin/pre-receive-hooks', [ Operations method: ```php $client->operations()->enterpriseAdmin()->listPreReceiveHooks( per_page: 8, - page: 4, + page: 1, + direction: 'generated', + sort: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/enterprise-admin#list-pre-receive-hooks). + + +### enterprise-admin/list-pre-receive-hooks + +List pre-receive hooks + +Using the `call` method: +```php +$client->call('LIST /admin/pre-receive-hooks', [ + 'per_page' => 8, + 'page' => 1, + 'direction' => 'generated', + 'sort' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->enterpriseAdmin()->listPreReceiveHooksListing( per_page: 8, + page: 1, direction: 'generated', sort: 'generated', ); @@ -631,14 +733,36 @@ Using the `call` method: ```php $client->call('GET /admin/tokens', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->enterpriseAdmin()->listPersonalAccessTokens( per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/enterprise-admin#list-personal-access-tokens). + + +### enterprise-admin/list-personal-access-tokens + +List personal access tokens + +Using the `call` method: +```php +$client->call('LIST /admin/tokens', [ + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->enterpriseAdmin()->listPersonalAccessTokensListing( per_page: 8, + page: 1, ); ``` @@ -905,14 +1029,36 @@ Using the `call` method: ```php $client->call('GET /app/installation-requests', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->apps()->listInstallationRequestsForAuthenticatedApp( per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/apps#list-installation-requests-for-the-authenticated-app). + + +### apps/list-installation-requests-for-authenticated-app + +List installation requests for the authenticated app + +Using the `call` method: +```php +$client->call('LIST /app/installation-requests', [ + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->apps()->listInstallationRequestsForAuthenticatedAppListing( per_page: 8, + page: 1, ); ``` @@ -929,7 +1075,7 @@ $client->call('GET /app/installations', [ 'since' => '1970-01-01T00:00:00+00:00', 'outdated' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -938,7 +1084,33 @@ Operations method: $client->operations()->apps()->listInstallations( since: '1970-01-01T00:00:00+00:00', outdated: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/apps#list-installations-for-the-authenticated-app). + + +### apps/list-installations + +List installations for the authenticated app + +Using the `call` method: +```php +$client->call('LIST /app/installations', [ + 'since' => '1970-01-01T00:00:00+00:00', + 'outdated' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->apps()->listInstallationsListing( since: '1970-01-01T00:00:00+00:00', + outdated: 'generated', + per_page: 8, + page: 1, ); ``` @@ -1054,7 +1226,7 @@ Using the `call` method: $client->call('GET /applications/grants', [ 'client_id' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -1062,7 +1234,31 @@ Operations method: ```php $client->operations()->oauthAuthorizations()->listGrants( client_id: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/oauth-authorizations#list-your-grants). + + +### oauth-authorizations/list-grants + +List your grants + +Using the `call` method: +```php +$client->call('LIST /applications/grants', [ + 'client_id' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->oauthAuthorizations()->listGrantsListing( client_id: 'generated', + per_page: 8, + page: 1, ); ``` @@ -1238,7 +1434,7 @@ Using the `call` method: $client->call('GET /authorizations', [ 'client_id' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -1246,7 +1442,31 @@ Operations method: ```php $client->operations()->oauthAuthorizations()->listAuthorizations( client_id: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/oauth-authorizations#list-your-authorizations). + + +### oauth-authorizations/list-authorizations + +List your authorizations + +Using the `call` method: +```php +$client->call('LIST /authorizations', [ + 'client_id' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->oauthAuthorizations()->listAuthorizationsListing( client_id: 'generated', + per_page: 8, + page: 1, ); ``` @@ -1730,7 +1950,7 @@ Using the `call` method: $client->call('GET /enterprises/{enterprise}/actions/permissions/organizations', [ 'enterprise' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -1738,7 +1958,7 @@ Operations method: ```php $client->operations()->enterpriseAdmin()->listSelectedOrganizationsEnabledGithubActionsEnterprise( enterprise: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -1858,7 +2078,7 @@ Using the `call` method: $client->call('GET /enterprises/{enterprise}/actions/runner-groups', [ 'enterprise' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -1866,7 +2086,7 @@ Operations method: ```php $client->operations()->enterpriseAdmin()->listSelfHostedRunnerGroupsForEnterprise( enterprise: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -1969,7 +2189,7 @@ $client->call('GET /enterprises/{enterprise}/actions/runner-groups/{runner_group 'enterprise' => 'generated', 'runner_group_id' => 15, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -1978,7 +2198,7 @@ Operations method: $client->operations()->enterpriseAdmin()->listOrgAccessToSelfHostedRunnerGroupInEnterprise( enterprise: 'generated', runner_group_id: 15, per_page: 8, - page: 4, + page: 1, ); ``` @@ -2065,7 +2285,7 @@ $client->call('GET /enterprises/{enterprise}/actions/runner-groups/{runner_group 'enterprise' => 'generated', 'runner_group_id' => 15, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -2074,7 +2294,7 @@ Operations method: $client->operations()->enterpriseAdmin()->listSelfHostedRunnersInGroupForEnterprise( enterprise: 'generated', runner_group_id: 15, per_page: 8, - page: 4, + page: 1, ); ``` @@ -2160,7 +2380,7 @@ Using the `call` method: $client->call('GET /enterprises/{enterprise}/actions/runners', [ 'enterprise' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -2168,7 +2388,7 @@ Operations method: ```php $client->operations()->enterpriseAdmin()->listSelfHostedRunnersForEnterprise( enterprise: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -2404,7 +2624,7 @@ $client->call('GET /enterprises/{enterprise}/audit-log', [ 'after' => 'generated', 'before' => 'generated', 'order' => 'generated', - 'page' => 4, + 'page' => 1, 'per_page' => 8, ]); ``` @@ -2417,7 +2637,41 @@ $client->operations()->enterpriseAdmin()->getAuditLog( enterprise: 'gener after: 'generated', before: 'generated', order: 'generated', - page: 4, + page: 1, + per_page: 8, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/enterprise-admin#get-the-audit-log-for-an-enterprise). + + +### enterprise-admin/get-audit-log + +Get the audit log for an enterprise + +Using the `call` method: +```php +$client->call('LIST /enterprises/{enterprise}/audit-log', [ + 'enterprise' => 'generated', + 'phrase' => 'generated', + 'include' => 'generated', + 'after' => 'generated', + 'before' => 'generated', + 'order' => 'generated', + 'page' => 1, + 'per_page' => 8, +]); +``` + +Operations method: +```php +$client->operations()->enterpriseAdmin()->getAuditLogListing( enterprise: 'generated', + phrase: 'generated', + include: 'generated', + after: 'generated', + before: 'generated', + order: 'generated', + page: 1, per_page: 8, ); ``` @@ -2466,7 +2720,7 @@ Using the `call` method: $client->call('GET /enterprises/{enterprise}/settings/billing/advanced-security', [ 'enterprise' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -2474,7 +2728,7 @@ Operations method: ```php $client->operations()->billing()->getGithubAdvancedSecurityBillingGhe( enterprise: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -2489,14 +2743,36 @@ Using the `call` method: ```php $client->call('GET /events', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->activity()->listPublicEvents( per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-public-events). + + +### activity/list-public-events + +List public events + +Using the `call` method: +```php +$client->call('LIST /events', [ + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->activity()->listPublicEventsListing( per_page: 8, + page: 1, ); ``` @@ -2529,7 +2805,7 @@ Using the `call` method: $client->call('GET /gists', [ 'since' => '1970-01-01T00:00:00+00:00', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -2537,7 +2813,31 @@ Operations method: ```php $client->operations()->gists()->list( since: '1970-01-01T00:00:00+00:00', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/gists#list-gists-for-the-authenticated-user). + + +### gists/list + +List gists for the authenticated user + +Using the `call` method: +```php +$client->call('LIST /gists', [ + 'since' => '1970-01-01T00:00:00+00:00', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->gists()->listListing( since: '1970-01-01T00:00:00+00:00', + per_page: 8, + page: 1, ); ``` @@ -2570,7 +2870,7 @@ Using the `call` method: $client->call('GET /gists/public', [ 'since' => '1970-01-01T00:00:00+00:00', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -2578,23 +2878,47 @@ Operations method: ```php $client->operations()->gists()->listPublic( since: '1970-01-01T00:00:00+00:00', per_page: 8, - page: 4, + page: 1, ); ``` You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/gists#list-public-gists). -### gists/list-starred +### gists/list-public -List starred gists +List public gists + +Using the `call` method: +```php +$client->call('LIST /gists/public', [ + 'since' => '1970-01-01T00:00:00+00:00', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->gists()->listPublicListing( since: '1970-01-01T00:00:00+00:00', + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/gists#list-public-gists). + + +### gists/list-starred + +List starred gists Using the `call` method: ```php $client->call('GET /gists/starred', [ 'since' => '1970-01-01T00:00:00+00:00', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -2602,7 +2926,31 @@ Operations method: ```php $client->operations()->gists()->listStarred( since: '1970-01-01T00:00:00+00:00', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/gists#list-starred-gists). + + +### gists/list-starred + +List starred gists + +Using the `call` method: +```php +$client->call('LIST /gists/starred', [ + 'since' => '1970-01-01T00:00:00+00:00', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->gists()->listStarredListing( since: '1970-01-01T00:00:00+00:00', + per_page: 8, + page: 1, ); ``` @@ -2678,7 +3026,7 @@ Using the `call` method: $client->call('GET /gists/{gist_id}/comments', [ 'gist_id' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -2686,7 +3034,31 @@ Operations method: ```php $client->operations()->gists()->listComments( gist_id: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/gists#list-gist-comments). + + +### gists/list-comments + +List gist comments + +Using the `call` method: +```php +$client->call('LIST /gists/{gist_id}/comments', [ + 'gist_id' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->gists()->listCommentsListing( gist_id: 'generated', + per_page: 8, + page: 1, ); ``` @@ -2788,7 +3160,7 @@ Using the `call` method: $client->call('GET /gists/{gist_id}/commits', [ 'gist_id' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -2796,7 +3168,31 @@ Operations method: ```php $client->operations()->gists()->listCommits( gist_id: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/gists#list-gist-commits). + + +### gists/list-commits + +List gist commits + +Using the `call` method: +```php +$client->call('LIST /gists/{gist_id}/commits', [ + 'gist_id' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->gists()->listCommitsListing( gist_id: 'generated', + per_page: 8, + page: 1, ); ``` @@ -2812,7 +3208,7 @@ Using the `call` method: $client->call('GET /gists/{gist_id}/forks', [ 'gist_id' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -2820,7 +3216,31 @@ Operations method: ```php $client->operations()->gists()->listForks( gist_id: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/gists#list-gist-forks). + + +### gists/list-forks + +List gist forks + +Using the `call` method: +```php +$client->call('LIST /gists/{gist_id}/forks', [ + 'gist_id' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->gists()->listForksListing( gist_id: 'generated', + per_page: 8, + page: 1, ); ``` @@ -2974,14 +3394,14 @@ Using the `call` method: ```php $client->call('GET /installation/repositories', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->apps()->listReposAccessibleToInstallation( per_page: 8, - page: 4, + page: 1, ); ``` @@ -3023,7 +3443,7 @@ $client->call('GET /issues', [ 'sort' => 'generated', 'direction' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -3040,7 +3460,49 @@ $client->operations()->issues()->list( labels: 'generated', sort: 'generated', direction: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-issues-assigned-to-the-authenticated-user). + + +### issues/list + +List issues assigned to the authenticated user + +Using the `call` method: +```php +$client->call('LIST /issues', [ + 'labels' => 'generated', + 'since' => '1970-01-01T00:00:00+00:00', + 'collab' => , + 'orgs' => , + 'owned' => , + 'pulls' => , + 'filter' => 'generated', + 'state' => 'generated', + 'sort' => 'generated', + 'direction' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listListing( labels: 'generated', + since: '1970-01-01T00:00:00+00:00', + collab: , + orgs: , + owned: , + pulls: , + filter: 'generated', + state: 'generated', + sort: 'generated', + direction: 'generated', + per_page: 8, + page: 1, ); ``` @@ -3056,7 +3518,7 @@ Using the `call` method: $client->call('GET /licenses', [ 'featured' => , 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -3064,7 +3526,31 @@ Operations method: ```php $client->operations()->licenses()->getAllCommonlyUsed( featured: , per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/licenses#get-all-commonly-used-licenses). + + +### licenses/get-all-commonly-used + +Get all commonly used licenses + +Using the `call` method: +```php +$client->call('LIST /licenses', [ + 'featured' => , + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->licenses()->getAllCommonlyUsedListing( featured: , + per_page: 8, + page: 1, ); ``` @@ -3152,7 +3638,7 @@ $client->call('GET /networks/{owner}/{repo}/events', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -3161,7 +3647,33 @@ Operations method: $client->operations()->activity()->listPublicEventsForRepoNetwork( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-public-events-for-a-network-of-repositories). + + +### activity/list-public-events-for-repo-network + +List public events for a network of repositories + +Using the `call` method: +```php +$client->call('LIST /networks/{owner}/{repo}/events', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->activity()->listPublicEventsForRepoNetworkListing( owner: 'generated', + repo: 'generated', + per_page: 8, + page: 1, ); ``` @@ -3179,7 +3691,7 @@ $client->call('GET /notifications', [ 'before' => '1970-01-01T00:00:00+00:00', 'all' => , 'participating' => , - 'page' => 4, + 'page' => 1, 'per_page' => 8, ]); ``` @@ -3190,7 +3702,37 @@ $client->operations()->activity()->listNotificationsForAuthenticatedUser( before: '1970-01-01T00:00:00+00:00', all: , participating: , - page: 4, + page: 1, + per_page: 8, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-notifications-for-the-authenticated-user). + + +### activity/list-notifications-for-authenticated-user + +List notifications for the authenticated user + +Using the `call` method: +```php +$client->call('LIST /notifications', [ + 'since' => '1970-01-01T00:00:00+00:00', + 'before' => '1970-01-01T00:00:00+00:00', + 'all' => , + 'participating' => , + 'page' => 1, + 'per_page' => 8, +]); +``` + +Operations method: +```php +$client->operations()->activity()->listNotificationsForAuthenticatedUserListing( since: '1970-01-01T00:00:00+00:00', + before: '1970-01-01T00:00:00+00:00', + all: , + participating: , + page: 1, per_page: 8, ); ``` @@ -3466,7 +4008,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/actions/permissions/repositories', [ 'org' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -3474,7 +4016,7 @@ Operations method: ```php $client->operations()->actions()->listSelectedRepositoriesEnabledGithubActionsOrganization( org: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -3594,7 +4136,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/actions/runner-groups', [ 'org' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -3602,7 +4144,7 @@ Operations method: ```php $client->operations()->actions()->listSelfHostedRunnerGroupsForOrg( org: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -3704,7 +4246,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories', [ 'org' => 'generated', 'runner_group_id' => 15, - 'page' => 4, + 'page' => 1, 'per_page' => 8, ]); ``` @@ -3713,7 +4255,7 @@ Operations method: ```php $client->operations()->actions()->listRepoAccessToSelfHostedRunnerGroupInOrg( org: 'generated', runner_group_id: 15, - page: 4, + page: 1, per_page: 8, ); ``` @@ -3801,7 +4343,7 @@ $client->call('GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners', 'org' => 'generated', 'runner_group_id' => 15, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -3810,7 +4352,7 @@ Operations method: $client->operations()->actions()->listSelfHostedRunnersInGroupForOrg( org: 'generated', runner_group_id: 15, per_page: 8, - page: 4, + page: 1, ); ``` @@ -3896,7 +4438,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/actions/runners', [ 'org' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -3904,7 +4446,7 @@ Operations method: ```php $client->operations()->actions()->listSelfHostedRunnersForOrg( org: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -4136,7 +4678,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/actions/secrets', [ 'org' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -4144,7 +4686,7 @@ Operations method: ```php $client->operations()->actions()->listOrgSecrets( org: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -4246,7 +4788,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/actions/secrets/{secret_name}/repositories', [ 'org' => 'generated', 'secret_name' => 'generated', - 'page' => 4, + 'page' => 1, 'per_page' => 8, ]); ``` @@ -4255,7 +4797,7 @@ Operations method: ```php $client->operations()->actions()->listSelectedReposForOrgSecret( org: 'generated', secret_name: 'generated', - page: 4, + page: 1, per_page: 8, ); ``` @@ -4347,7 +4889,7 @@ $client->call('GET /orgs/{org}/audit-log', [ 'before' => 'generated', 'order' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -4360,7 +4902,41 @@ $client->operations()->orgs()->getAuditLog( org: 'generated', before: 'generated', order: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/orgs#get-audit-log). + + +### orgs/get-audit-log + +Get the audit log for an organization + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/audit-log', [ + 'org' => 'generated', + 'phrase' => 'generated', + 'include' => 'generated', + 'after' => 'generated', + 'before' => 'generated', + 'order' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->orgs()->getAuditLogListing( org: 'generated', + phrase: 'generated', + include: 'generated', + after: 'generated', + before: 'generated', + order: 'generated', + per_page: 8, + page: 1, ); ``` @@ -4376,7 +4952,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/dependabot/secrets', [ 'org' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -4384,7 +4960,7 @@ Operations method: ```php $client->operations()->dependabot()->listOrgSecrets( org: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -4486,7 +5062,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories', [ 'org' => 'generated', 'secret_name' => 'generated', - 'page' => 4, + 'page' => 1, 'per_page' => 8, ]); ``` @@ -4495,7 +5071,7 @@ Operations method: ```php $client->operations()->dependabot()->listSelectedReposForOrgSecret( org: 'generated', secret_name: 'generated', - page: 4, + page: 1, per_page: 8, ); ``` @@ -4582,7 +5158,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/events', [ 'org' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -4590,55 +5166,103 @@ Operations method: ```php $client->operations()->activity()->listPublicOrgEvents( org: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-public-organization-events). -### orgs/list-webhooks +### activity/list-public-org-events -List organization webhooks +List public organization events Using the `call` method: ```php -$client->call('GET /orgs/{org}/hooks', [ +$client->call('LIST /orgs/{org}/events', [ 'org' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php -$client->operations()->orgs()->listWebhooks( org: 'generated', +$client->operations()->activity()->listPublicOrgEventsListing( org: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/orgs#list-organization-webhooks). +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-public-organization-events). -### orgs/create-webhook +### orgs/list-webhooks -Create an organization webhook +List organization webhooks Using the `call` method: ```php -$client->call('POST /orgs/{org}/hooks', [ +$client->call('GET /orgs/{org}/hooks', [ 'org' => 'generated', + 'per_page' => 8, + 'page' => 1, ]); ``` Operations method: ```php -$client->operations()->orgs()->createWebhook( org: 'generated', +$client->operations()->orgs()->listWebhooks( org: 'generated', + per_page: 8, + page: 1, ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/orgs#create-an-organization-webhook). +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/orgs#list-organization-webhooks). + + +### orgs/list-webhooks + +List organization webhooks + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/hooks', [ + 'org' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->orgs()->listWebhooksListing( org: 'generated', + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/orgs#list-organization-webhooks). + + +### orgs/create-webhook + +Create an organization webhook + +Using the `call` method: +```php +$client->call('POST /orgs/{org}/hooks', [ + 'org' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->orgs()->createWebhook( org: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/orgs#create-an-organization-webhook). ### orgs/get-webhook @@ -4878,7 +5502,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/installations', [ 'org' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -4886,7 +5510,7 @@ Operations method: ```php $client->operations()->orgs()->listAppInstallations( org: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -4908,7 +5532,7 @@ $client->call('GET /orgs/{org}/issues', [ 'sort' => 'generated', 'direction' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -4922,7 +5546,43 @@ $client->operations()->issues()->listForOrg( org: 'generated', sort: 'generated', direction: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-organization-issues-assigned-to-the-authenticated-user). + + +### issues/list-for-org + +List organization issues assigned to the authenticated user + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/issues', [ + 'org' => 'generated', + 'labels' => 'generated', + 'since' => '1970-01-01T00:00:00+00:00', + 'filter' => 'generated', + 'state' => 'generated', + 'sort' => 'generated', + 'direction' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listForOrgListing( org: 'generated', + labels: 'generated', + since: '1970-01-01T00:00:00+00:00', + filter: 'generated', + state: 'generated', + sort: 'generated', + direction: 'generated', + per_page: 8, + page: 1, ); ``` @@ -4940,7 +5600,7 @@ $client->call('GET /orgs/{org}/members', [ 'filter' => 'generated', 'role' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -4950,7 +5610,35 @@ $client->operations()->orgs()->listMembers( org: 'generated', filter: 'generated', role: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/orgs#list-organization-members). + + +### orgs/list-members + +List organization members + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/members', [ + 'org' => 'generated', + 'filter' => 'generated', + 'role' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->orgs()->listMembersListing( org: 'generated', + filter: 'generated', + role: 'generated', + per_page: 8, + page: 1, ); ``` @@ -5077,7 +5765,7 @@ $client->call('GET /orgs/{org}/migrations', [ 'org' => 'generated', 'exclude' => , 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -5086,7 +5774,33 @@ Operations method: $client->operations()->migrations()->listForOrg( org: 'generated', exclude: , per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/migrations/orgs#list-organization-migrations). + + +### migrations/list-for-org + +List organization migrations + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/migrations', [ + 'org' => 'generated', + 'exclude' => , + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->migrations()->listForOrgListing( org: 'generated', + exclude: , + per_page: 8, + page: 1, ); ``` @@ -5237,7 +5951,7 @@ $client->call('GET /orgs/{org}/migrations/{migration_id}/repositories', [ 'org' => 'generated', 'migration_id' => 12, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -5246,7 +5960,33 @@ Operations method: $client->operations()->migrations()->listReposForOrg( org: 'generated', migration_id: 12, per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/migrations/orgs#list-repositories-in-an-organization-migration). + + +### migrations/list-repos-for-org + +List repositories in an organization migration + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/migrations/{migration_id}/repositories', [ + 'org' => 'generated', + 'migration_id' => 12, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->migrations()->listReposForOrgListing( org: 'generated', + migration_id: 12, + per_page: 8, + page: 1, ); ``` @@ -5263,7 +6003,7 @@ $client->call('GET /orgs/{org}/outside_collaborators', [ 'org' => 'generated', 'filter' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -5272,7 +6012,33 @@ Operations method: $client->operations()->orgs()->listOutsideCollaborators( org: 'generated', filter: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/orgs#list-outside-collaborators-for-an-organization). + + +### orgs/list-outside-collaborators + +List outside collaborators for an organization + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/outside_collaborators', [ + 'org' => 'generated', + 'filter' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->orgs()->listOutsideCollaboratorsListing( org: 'generated', + filter: 'generated', + per_page: 8, + page: 1, ); ``` @@ -5332,7 +6098,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/pre-receive-hooks', [ 'org' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, 'direction' => 'generated', 'sort' => 'generated', ]); @@ -5342,7 +6108,35 @@ Operations method: ```php $client->operations()->enterpriseAdmin()->listPreReceiveHooksForOrg( org: 'generated', per_page: 8, - page: 4, + page: 1, + direction: 'generated', + sort: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/enterprise-admin#list-pre-receive-hooks-for-an-organization). + + +### enterprise-admin/list-pre-receive-hooks-for-org + +List pre-receive hooks for an organization + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/pre-receive-hooks', [ + 'org' => 'generated', + 'per_page' => 8, + 'page' => 1, + 'direction' => 'generated', + 'sort' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->enterpriseAdmin()->listPreReceiveHooksForOrgListing( org: 'generated', + per_page: 8, + page: 1, direction: 'generated', sort: 'generated', ); @@ -5427,7 +6221,7 @@ $client->call('GET /orgs/{org}/projects', [ 'org' => 'generated', 'state' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -5436,7 +6230,33 @@ Operations method: $client->operations()->projects()->listForOrg( org: 'generated', state: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/projects#list-organization-projects). + + +### projects/list-for-org + +List organization projects + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/projects', [ + 'org' => 'generated', + 'state' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->projects()->listForOrgListing( org: 'generated', + state: 'generated', + per_page: 8, + page: 1, ); ``` @@ -5472,7 +6292,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/public_members', [ 'org' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -5480,7 +6300,31 @@ Operations method: ```php $client->operations()->orgs()->listPublicMembers( org: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/orgs#list-public-organization-members). + + +### orgs/list-public-members + +List public organization members + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/public_members', [ + 'org' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->orgs()->listPublicMembersListing( org: 'generated', + per_page: 8, + page: 1, ); ``` @@ -5565,7 +6409,7 @@ $client->call('GET /orgs/{org}/repos', [ 'direction' => 'generated', 'sort' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -5576,7 +6420,37 @@ $client->operations()->repos()->listForOrg( org: 'generated', direction: 'generated', sort: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#list-organization-repositories). + + +### repos/list-for-org + +List organization repositories + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/repos', [ + 'org' => 'generated', + 'type' => 'generated', + 'direction' => 'generated', + 'sort' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listForOrgListing( org: 'generated', + type: 'generated', + direction: 'generated', + sort: 'generated', + per_page: 8, + page: 1, ); ``` @@ -5614,7 +6488,7 @@ $client->call('GET /orgs/{org}/secret-scanning/alerts', [ 'state' => 'generated', 'secret_type' => 'generated', 'resolution' => 'generated', - 'page' => 4, + 'page' => 1, 'per_page' => 8, ]); ``` @@ -5625,7 +6499,7 @@ $client->operations()->secretScanning()->listAlertsForOrg( org: 'generate state: 'generated', secret_type: 'generated', resolution: 'generated', - page: 4, + page: 1, per_page: 8, ); ``` @@ -5633,7 +6507,37 @@ $client->operations()->secretScanning()->listAlertsForOrg( org: 'generate You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/secret-scanning#list-secret-scanning-alerts-for-an-organization). -### billing/get-github-advanced-security-billing-org +### secret-scanning/list-alerts-for-org + +List secret scanning alerts for an organization + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/secret-scanning/alerts', [ + 'org' => 'generated', + 'state' => 'generated', + 'secret_type' => 'generated', + 'resolution' => 'generated', + 'page' => 1, + 'per_page' => 8, +]); +``` + +Operations method: +```php +$client->operations()->secretScanning()->listAlertsForOrgListing( org: 'generated', + state: 'generated', + secret_type: 'generated', + resolution: 'generated', + page: 1, + per_page: 8, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/secret-scanning#list-secret-scanning-alerts-for-an-organization). + + +### billing/get-github-advanced-security-billing-org Get GitHub Advanced Security active committers for an organization @@ -5642,7 +6546,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/settings/billing/advanced-security', [ 'org' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -5650,7 +6554,7 @@ Operations method: ```php $client->operations()->billing()->getGithubAdvancedSecurityBillingOrg( org: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -5666,7 +6570,7 @@ Using the `call` method: $client->call('GET /orgs/{org}/teams', [ 'org' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -5674,7 +6578,31 @@ Operations method: ```php $client->operations()->teams()->list( org: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams#list-teams). + + +### teams/list + +List teams + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/teams', [ + 'org' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->teams()->listListing( org: 'generated', + per_page: 8, + page: 1, ); ``` @@ -5779,7 +6707,7 @@ $client->call('GET /orgs/{org}/teams/{team_slug}/discussions', [ 'pinned' => 'generated', 'direction' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -5790,7 +6718,37 @@ $client->operations()->teams()->listDiscussionsInOrg( org: 'generated', pinned: 'generated', direction: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams#list-discussions). + + +### teams/list-discussions-in-org + +List discussions + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/teams/{team_slug}/discussions', [ + 'org' => 'generated', + 'team_slug' => 'generated', + 'pinned' => 'generated', + 'direction' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->teams()->listDiscussionsInOrgListing( org: 'generated', + team_slug: 'generated', + pinned: 'generated', + direction: 'generated', + per_page: 8, + page: 1, ); ``` @@ -5903,7 +6861,7 @@ $client->call('GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number} 'discussion_number' => 17, 'direction' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -5914,7 +6872,37 @@ $client->operations()->teams()->listDiscussionCommentsInOrg( org: 'genera discussion_number: 17, direction: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams#list-discussion-comments). + + +### teams/list-discussion-comments-in-org + +List discussion comments + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments', [ + 'org' => 'generated', + 'team_slug' => 'generated', + 'discussion_number' => 17, + 'direction' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->teams()->listDiscussionCommentsInOrgListing( org: 'generated', + team_slug: 'generated', + discussion_number: 17, + direction: 'generated', + per_page: 8, + page: 1, ); ``` @@ -6036,7 +7024,7 @@ $client->call('GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number} 'comment_number' => 14, 'content' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -6048,7 +7036,39 @@ $client->operations()->reactions()->listForTeamDiscussionCommentInOrg( or comment_number: 14, content: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions#list-reactions-for-a-team-discussion-comment). + + +### reactions/list-for-team-discussion-comment-in-org + +List reactions for a team discussion comment + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions', [ + 'org' => 'generated', + 'team_slug' => 'generated', + 'discussion_number' => 17, + 'comment_number' => 14, + 'content' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->reactions()->listForTeamDiscussionCommentInOrgListing( org: 'generated', + team_slug: 'generated', + discussion_number: 17, + comment_number: 14, + content: 'generated', + per_page: 8, + page: 1, ); ``` @@ -6121,7 +7141,7 @@ $client->call('GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number} 'discussion_number' => 17, 'content' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -6132,7 +7152,37 @@ $client->operations()->reactions()->listForTeamDiscussionInOrg( org: 'gen discussion_number: 17, content: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions#list-reactions-for-a-team-discussion). + + +### reactions/list-for-team-discussion-in-org + +List reactions for a team discussion + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions', [ + 'org' => 'generated', + 'team_slug' => 'generated', + 'discussion_number' => 17, + 'content' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->reactions()->listForTeamDiscussionInOrgListing( org: 'generated', + team_slug: 'generated', + discussion_number: 17, + content: 'generated', + per_page: 8, + page: 1, ); ``` @@ -6200,7 +7250,7 @@ $client->call('GET /orgs/{org}/teams/{team_slug}/members', [ 'team_slug' => 'generated', 'role' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -6210,7 +7260,35 @@ $client->operations()->teams()->listMembersInOrg( org: 'generated', team_slug: 'generated', role: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams#list-team-members). + + +### teams/list-members-in-org + +List team members + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/teams/{team_slug}/members', [ + 'org' => 'generated', + 'team_slug' => 'generated', + 'role' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->teams()->listMembersInOrgListing( org: 'generated', + team_slug: 'generated', + role: 'generated', + per_page: 8, + page: 1, ); ``` @@ -6299,7 +7377,7 @@ $client->call('GET /orgs/{org}/teams/{team_slug}/projects', [ 'org' => 'generated', 'team_slug' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -6308,7 +7386,33 @@ Operations method: $client->operations()->teams()->listProjectsInOrg( org: 'generated', team_slug: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams#list-team-projects). + + +### teams/list-projects-in-org + +List team projects + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/teams/{team_slug}/projects', [ + 'org' => 'generated', + 'team_slug' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->teams()->listProjectsInOrgListing( org: 'generated', + team_slug: 'generated', + per_page: 8, + page: 1, ); ``` @@ -6397,7 +7501,7 @@ $client->call('GET /orgs/{org}/teams/{team_slug}/repos', [ 'org' => 'generated', 'team_slug' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -6406,7 +7510,33 @@ Operations method: $client->operations()->teams()->listReposInOrg( org: 'generated', team_slug: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams#list-team-repositories). + + +### teams/list-repos-in-org + +List team repositories + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/teams/{team_slug}/repos', [ + 'org' => 'generated', + 'team_slug' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->teams()->listReposInOrgListing( org: 'generated', + team_slug: 'generated', + per_page: 8, + page: 1, ); ``` @@ -6501,7 +7631,7 @@ $client->call('GET /orgs/{org}/teams/{team_slug}/teams', [ 'org' => 'generated', 'team_slug' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -6510,7 +7640,33 @@ Operations method: $client->operations()->teams()->listChildInOrg( org: 'generated', team_slug: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams#list-child-teams). + + +### teams/list-child-in-org + +List child teams + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/teams/{team_slug}/teams', [ + 'org' => 'generated', + 'team_slug' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->teams()->listChildInOrgListing( org: 'generated', + team_slug: 'generated', + per_page: 8, + page: 1, ); ``` @@ -6667,7 +7823,7 @@ $client->call('GET /projects/columns/{column_id}/cards', [ 'column_id' => 9, 'archived_state' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -6676,34 +7832,60 @@ Operations method: $client->operations()->projects()->listCards( column_id: 9, archived_state: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/projects#list-project-cards). -### projects/create-card +### projects/list-cards -Create a project card +List project cards Using the `call` method: ```php -$client->call('POST /projects/columns/{column_id}/cards', [ +$client->call('LIST /projects/columns/{column_id}/cards', [ 'column_id' => 9, + 'archived_state' => 'generated', + 'per_page' => 8, + 'page' => 1, ]); ``` Operations method: ```php -$client->operations()->projects()->createCard( column_id: 9, +$client->operations()->projects()->listCardsListing( column_id: 9, + archived_state: 'generated', + per_page: 8, + page: 1, ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/projects#create-a-project-card). +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/projects#list-project-cards). -### projects/move-column +### projects/create-card + +Create a project card + +Using the `call` method: +```php +$client->call('POST /projects/columns/{column_id}/cards', [ + 'column_id' => 9, +]); +``` + +Operations method: +```php +$client->operations()->projects()->createCard( column_id: 9, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/projects#create-a-project-card). + + +### projects/move-column Move a project column @@ -6793,7 +7975,7 @@ $client->call('GET /projects/{project_id}/collaborators', [ 'project_id' => 10, 'affiliation' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -6802,7 +7984,33 @@ Operations method: $client->operations()->projects()->listCollaborators( project_id: 10, affiliation: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/projects#list-project-collaborators). + + +### projects/list-collaborators + +List project collaborators + +Using the `call` method: +```php +$client->call('LIST /projects/{project_id}/collaborators', [ + 'project_id' => 10, + 'affiliation' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->projects()->listCollaboratorsListing( project_id: 10, + affiliation: 'generated', + per_page: 8, + page: 1, ); ``` @@ -6884,7 +8092,7 @@ Using the `call` method: $client->call('GET /projects/{project_id}/columns', [ 'project_id' => 10, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -6892,7 +8100,31 @@ Operations method: ```php $client->operations()->projects()->listColumns( project_id: 10, per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/projects#list-project-columns). + + +### projects/list-columns + +List project columns + +Using the `call` method: +```php +$client->call('LIST /projects/{project_id}/columns', [ + 'project_id' => 10, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->projects()->listColumnsListing( project_id: 10, + per_page: 8, + page: 1, ); ``` @@ -7032,7 +8264,7 @@ $client->call('GET /repos/{owner}/{repo}/actions/artifacts', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -7041,7 +8273,7 @@ Operations method: $client->operations()->actions()->listArtifactsForRepo( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -7318,7 +8550,7 @@ $client->call('GET /repos/{owner}/{repo}/actions/runners', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -7327,7 +8559,7 @@ Operations method: $client->operations()->actions()->listSelfHostedRunnersForRepo( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -7585,7 +8817,7 @@ $client->call('GET /repos/{owner}/{repo}/actions/runs', [ 'status' => 'generated', 'created' => '1970-01-01T00:00:00+00:00', 'per_page' => 8, - 'page' => 4, + 'page' => 1, 'exclude_pull_requests' => , ]); ``` @@ -7600,7 +8832,7 @@ $client->operations()->actions()->listWorkflowRunsForRepo( owner: 'genera status: 'generated', created: '1970-01-01T00:00:00+00:00', per_page: 8, - page: 4, + page: 1, exclude_pull_requests: , ); ``` @@ -7693,7 +8925,7 @@ $client->call('GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts', [ 'repo' => 'generated', 'run_id' => 6, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -7703,7 +8935,7 @@ $client->operations()->actions()->listWorkflowRunArtifacts( owner: 'gener repo: 'generated', run_id: 6, per_page: 8, - page: 4, + page: 1, ); ``` @@ -7746,7 +8978,7 @@ $client->call('GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs', [ 'run_id' => 6, 'filter' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -7757,7 +8989,7 @@ $client->operations()->actions()->listJobsForWorkflowRun( owner: 'generat run_id: 6, filter: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -7918,7 +9150,7 @@ $client->call('GET /repos/{owner}/{repo}/actions/secrets', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -7927,7 +9159,7 @@ Operations method: $client->operations()->actions()->listRepoSecrets( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -8038,7 +9270,7 @@ $client->call('GET /repos/{owner}/{repo}/actions/workflows', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -8047,7 +9279,7 @@ Operations method: $client->operations()->actions()->listRepoWorkflows( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -8166,7 +9398,7 @@ $client->call('GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs', 'status' => 'generated', 'created' => '1970-01-01T00:00:00+00:00', 'per_page' => 8, - 'page' => 4, + 'page' => 1, 'exclude_pull_requests' => , ]); ``` @@ -8182,7 +9414,7 @@ $client->operations()->actions()->listWorkflowRuns( owner: 'generated', status: 'generated', created: '1970-01-01T00:00:00+00:00', per_page: 8, - page: 4, + page: 1, exclude_pull_requests: , ); ``` @@ -8200,7 +9432,7 @@ $client->call('GET /repos/{owner}/{repo}/assignees', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -8209,7 +9441,33 @@ Operations method: $client->operations()->issues()->listAssignees( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-assignees). + + +### issues/list-assignees + +List assignees + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/assignees', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listAssigneesListing( owner: 'generated', + repo: 'generated', + per_page: 8, + page: 1, ); ``` @@ -8249,7 +9507,7 @@ Using the `call` method: $client->call('GET /repos/{owner}/{repo}/autolinks', [ 'owner' => 'generated', 'repo' => 'generated', - 'page' => 4, + 'page' => 1, ]); ``` @@ -8257,7 +9515,7 @@ Operations method: ```php $client->operations()->repos()->listAutolinks( owner: 'generated', repo: 'generated', - page: 4, + page: 1, ); ``` @@ -8345,7 +9603,7 @@ $client->call('GET /repos/{owner}/{repo}/branches', [ 'repo' => 'generated', 'protected' => , 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -8355,7 +9613,35 @@ $client->operations()->repos()->listBranches( owner: 'generated', repo: 'generated', protected: , per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/branches/branches#list-branches). + + +### repos/list-branches + +List branches + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/branches', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'protected' => , + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listBranchesListing( owner: 'generated', + repo: 'generated', + protected: , + per_page: 8, + page: 1, ); ``` @@ -9283,7 +10569,7 @@ $client->call('GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations', 'repo' => 'generated', 'check_run_id' => 12, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -9293,7 +10579,35 @@ $client->operations()->checks()->listAnnotations( owner: 'generated', repo: 'generated', check_run_id: 12, per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/checks#list-check-run-annotations). + + +### checks/list-annotations + +List check run annotations + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'check_run_id' => 12, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->checks()->listAnnotationsListing( owner: 'generated', + repo: 'generated', + check_run_id: 12, + per_page: 8, + page: 1, ); ``` @@ -9406,7 +10720,7 @@ $client->call('GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-run 'status' => 'generated', 'filter' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -9419,7 +10733,7 @@ $client->operations()->checks()->listForSuite( owner: 'generated', status: 'generated', filter: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -9463,7 +10777,7 @@ $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts', [ 'tool_guid' => , 'ref' => 'generated', 'state' => 'generated', - 'page' => 4, + 'page' => 1, 'per_page' => 8, 'direction' => 'generated', 'sort' => 'generated', @@ -9478,7 +10792,45 @@ $client->operations()->codeScanning()->listAlertsForRepo( owner: 'generat tool_guid: , ref: 'generated', state: 'generated', - page: 4, + page: 1, + per_page: 8, + direction: 'generated', + sort: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/code-scanning#list-code-scanning-alerts-for-a-repository). + + +### code-scanning/list-alerts-for-repo + +List code scanning alerts for a repository + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'tool_name' => 'generated', + 'tool_guid' => , + 'ref' => 'generated', + 'state' => 'generated', + 'page' => 1, + 'per_page' => 8, + 'direction' => 'generated', + 'sort' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->codeScanning()->listAlertsForRepoListing( owner: 'generated', + repo: 'generated', + tool_name: 'generated', + tool_guid: , + ref: 'generated', + state: 'generated', + page: 1, per_page: 8, direction: 'generated', sort: 'generated', @@ -9547,7 +10899,7 @@ $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/ins 'repo' => 'generated', 'alert_number' => 12, 'ref' => 'generated', - 'page' => 4, + 'page' => 1, 'per_page' => 8, ]); ``` @@ -9558,7 +10910,37 @@ $client->operations()->codeScanning()->listAlertInstances( owner: 'genera repo: 'generated', alert_number: 12, ref: 'generated', - page: 4, + page: 1, + per_page: 8, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/code-scanning#list-instances-of-a-code-scanning-alert). + + +### code-scanning/list-alert-instances + +List instances of a code scanning alert + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'alert_number' => 12, + 'ref' => 'generated', + 'page' => 1, + 'per_page' => 8, +]); +``` + +Operations method: +```php +$client->operations()->codeScanning()->listAlertInstancesListing( owner: 'generated', + repo: 'generated', + alert_number: 12, + ref: 'generated', + page: 1, per_page: 8, ); ``` @@ -9579,7 +10961,7 @@ $client->call('GET /repos/{owner}/{repo}/code-scanning/analyses', [ 'tool_guid' => , 'ref' => 'generated', 'sarif_id' => 'generated', - 'page' => 4, + 'page' => 1, 'per_page' => 8, ]); ``` @@ -9592,7 +10974,41 @@ $client->operations()->codeScanning()->listRecentAnalyses( owner: 'genera tool_guid: , ref: 'generated', sarif_id: 'generated', - page: 4, + page: 1, + per_page: 8, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/code-scanning#list-code-scanning-analyses-for-a-repository). + + +### code-scanning/list-recent-analyses + +List code scanning analyses for a repository + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/code-scanning/analyses', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'tool_name' => 'generated', + 'tool_guid' => , + 'ref' => 'generated', + 'sarif_id' => 'generated', + 'page' => 1, + 'per_page' => 8, +]); +``` + +Operations method: +```php +$client->operations()->codeScanning()->listRecentAnalysesListing( owner: 'generated', + repo: 'generated', + tool_name: 'generated', + tool_guid: , + ref: 'generated', + sarif_id: 'generated', + page: 1, per_page: 8, ); ``` @@ -9707,7 +11123,7 @@ $client->call('GET /repos/{owner}/{repo}/collaborators', [ 'repo' => 'generated', 'affiliation' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -9717,7 +11133,35 @@ $client->operations()->repos()->listCollaborators( owner: 'generated', repo: 'generated', affiliation: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/collaborators/collaborators#list-repository-collaborators). + + +### repos/list-collaborators + +List repository collaborators + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/collaborators', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'affiliation' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listCollaboratorsListing( owner: 'generated', + repo: 'generated', + affiliation: 'generated', + per_page: 8, + page: 1, ); ``` @@ -9830,7 +11274,7 @@ $client->call('GET /repos/{owner}/{repo}/comments', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -9839,31 +11283,57 @@ Operations method: $client->operations()->repos()->listCommitCommentsForRepo( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/commits/comments#list-commit-comments-for-a-repository). -### repos/get-commit-comment +### repos/list-commit-comments-for-repo -Get a commit comment +List commit comments for a repository Using the `call` method: ```php -$client->call('GET /repos/{owner}/{repo}/comments/{comment_id}', [ +$client->call('LIST /repos/{owner}/{repo}/comments', [ 'owner' => 'generated', 'repo' => 'generated', - 'comment_id' => 10, + 'per_page' => 8, + 'page' => 1, ]); ``` Operations method: ```php -$client->operations()->repos()->getCommitComment( owner: 'generated', +$client->operations()->repos()->listCommitCommentsForRepoListing( owner: 'generated', repo: 'generated', - comment_id: 10, + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/commits/comments#list-commit-comments-for-a-repository). + + +### repos/get-commit-comment + +Get a commit comment + +Using the `call` method: +```php +$client->call('GET /repos/{owner}/{repo}/comments/{comment_id}', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'comment_id' => 10, +]); +``` + +Operations method: +```php +$client->operations()->repos()->getCommitComment( owner: 'generated', + repo: 'generated', + comment_id: 10, ); ``` @@ -9930,7 +11400,7 @@ $client->call('GET /repos/{owner}/{repo}/comments/{comment_id}/reactions', [ 'comment_id' => 10, 'content' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -9941,7 +11411,37 @@ $client->operations()->reactions()->listForCommitComment( owner: 'generat comment_id: 10, content: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions#list-reactions-for-a-commit-comment). + + +### reactions/list-for-commit-comment + +List reactions for a commit comment + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/comments/{comment_id}/reactions', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'comment_id' => 10, + 'content' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->reactions()->listForCommitCommentListing( owner: 'generated', + repo: 'generated', + comment_id: 10, + content: 'generated', + per_page: 8, + page: 1, ); ``` @@ -10014,7 +11514,7 @@ $client->call('GET /repos/{owner}/{repo}/commits', [ 'since' => '1970-01-01T00:00:00+00:00', 'until' => '1970-01-01T00:00:00+00:00', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -10029,7 +11529,45 @@ $client->operations()->repos()->listCommits( owner: 'generated', since: '1970-01-01T00:00:00+00:00', until: '1970-01-01T00:00:00+00:00', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/commits/commits#list-commits). + + +### repos/list-commits + +List commits + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/commits', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'sha' => 'generated', + 'path' => 'generated', + 'author' => 'generated', + 'committer' => 'generated', + 'since' => '1970-01-01T00:00:00+00:00', + 'until' => '1970-01-01T00:00:00+00:00', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listCommitsListing( owner: 'generated', + repo: 'generated', + sha: 'generated', + path: 'generated', + author: 'generated', + committer: 'generated', + since: '1970-01-01T00:00:00+00:00', + until: '1970-01-01T00:00:00+00:00', + per_page: 8, + page: 1, ); ``` @@ -10071,7 +11609,7 @@ $client->call('GET /repos/{owner}/{repo}/commits/{commit_sha}/comments', [ 'repo' => 'generated', 'commit_sha' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -10081,7 +11619,35 @@ $client->operations()->repos()->listCommentsForCommit( owner: 'generated' repo: 'generated', commit_sha: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/commits/comments#list-commit-comments). + + +### repos/list-comments-for-commit + +List commit comments + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/commits/{commit_sha}/comments', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'commit_sha' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listCommentsForCommitListing( owner: 'generated', + repo: 'generated', + commit_sha: 'generated', + per_page: 8, + page: 1, ); ``` @@ -10123,7 +11689,7 @@ $client->call('GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls', [ 'repo' => 'generated', 'commit_sha' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -10133,7 +11699,35 @@ $client->operations()->repos()->listPullRequestsAssociatedWithCommit( own repo: 'generated', commit_sha: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/commits/commits#list-pull-requests-associated-with-a-commit). + + +### repos/list-pull-requests-associated-with-commit + +List pull requests associated with a commit + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/commits/{commit_sha}/pulls', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'commit_sha' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listPullRequestsAssociatedWithCommitListing( owner: 'generated', + repo: 'generated', + commit_sha: 'generated', + per_page: 8, + page: 1, ); ``` @@ -10150,7 +11744,7 @@ $client->call('GET /repos/{owner}/{repo}/commits/{ref}', [ 'owner' => 'generated', 'repo' => 'generated', 'ref' => 'generated', - 'page' => 4, + 'page' => 1, 'per_page' => 8, ]); ``` @@ -10160,7 +11754,7 @@ Operations method: $client->operations()->repos()->getCommit( owner: 'generated', repo: 'generated', ref: 'generated', - page: 4, + page: 1, per_page: 8, ); ``` @@ -10183,7 +11777,7 @@ $client->call('GET /repos/{owner}/{repo}/commits/{ref}/check-runs', [ 'app_id' => 6, 'filter' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -10197,7 +11791,7 @@ $client->operations()->checks()->listForRef( owner: 'generated', app_id: 6, filter: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -10217,7 +11811,7 @@ $client->call('GET /repos/{owner}/{repo}/commits/{ref}/check-suites', [ 'app_id' => 6, 'check_name' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -10229,7 +11823,7 @@ $client->operations()->checks()->listSuitesForRef( owner: 'generated', app_id: 6, check_name: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -10247,7 +11841,7 @@ $client->call('GET /repos/{owner}/{repo}/commits/{ref}/status', [ 'repo' => 'generated', 'ref' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -10257,7 +11851,7 @@ $client->operations()->repos()->getCombinedStatusForRef( owner: 'generate repo: 'generated', ref: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -10275,7 +11869,7 @@ $client->call('GET /repos/{owner}/{repo}/commits/{ref}/statuses', [ 'repo' => 'generated', 'ref' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -10285,7 +11879,35 @@ $client->operations()->repos()->listCommitStatusesForRef( owner: 'generat repo: 'generated', ref: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/commits/statuses#list-commit-statuses-for-a-reference). + + +### repos/list-commit-statuses-for-ref + +List commit statuses for a reference + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/commits/{ref}/statuses', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'ref' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listCommitStatusesForRefListing( owner: 'generated', + repo: 'generated', + ref: 'generated', + per_page: 8, + page: 1, ); ``` @@ -10302,7 +11924,7 @@ $client->call('GET /repos/{owner}/{repo}/compare/{basehead}', [ 'owner' => 'generated', 'repo' => 'generated', 'basehead' => 'generated', - 'page' => 4, + 'page' => 1, 'per_page' => 8, ]); ``` @@ -10312,7 +11934,7 @@ Operations method: $client->operations()->repos()->compareCommits( owner: 'generated', repo: 'generated', basehead: 'generated', - page: 4, + page: 1, per_page: 8, ); ``` @@ -10405,7 +12027,7 @@ $client->call('GET /repos/{owner}/{repo}/contributors', [ 'repo' => 'generated', 'anon' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -10415,7 +12037,35 @@ $client->operations()->repos()->listContributors( owner: 'generated', repo: 'generated', anon: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#list-repository-contributors). + + +### repos/list-contributors + +List repository contributors + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/contributors', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'anon' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listContributorsListing( owner: 'generated', + repo: 'generated', + anon: 'generated', + per_page: 8, + page: 1, ); ``` @@ -10432,7 +12082,7 @@ $client->call('GET /repos/{owner}/{repo}/dependabot/secrets', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -10441,7 +12091,7 @@ Operations method: $client->operations()->dependabot()->listRepoSecrets( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -10556,7 +12206,7 @@ $client->call('GET /repos/{owner}/{repo}/deployments', [ 'task' => 'generated', 'environment' => , 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -10569,7 +12219,41 @@ $client->operations()->repos()->listDeployments( owner: 'generated', task: 'generated', environment: , per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/deployments/deployments#list-deployments). + + +### repos/list-deployments + +List deployments + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/deployments', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'sha' => 'generated', + 'ref' => 'generated', + 'task' => 'generated', + 'environment' => , + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listDeploymentsListing( owner: 'generated', + repo: 'generated', + sha: 'generated', + ref: 'generated', + task: 'generated', + environment: , + per_page: 8, + page: 1, ); ``` @@ -10657,7 +12341,7 @@ $client->call('GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses', 'repo' => 'generated', 'deployment_id' => 13, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -10667,7 +12351,35 @@ $client->operations()->repos()->listDeploymentStatuses( owner: 'generated repo: 'generated', deployment_id: 13, per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/deployments/statuses#list-deployment-statuses). + + +### repos/list-deployment-statuses + +List deployment statuses + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'deployment_id' => 13, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listDeploymentStatusesListing( owner: 'generated', + repo: 'generated', + deployment_id: 13, + per_page: 8, + page: 1, ); ``` @@ -10756,7 +12468,7 @@ $client->call('GET /repos/{owner}/{repo}/environments', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -10765,7 +12477,7 @@ Operations method: $client->operations()->repos()->getAllEnvironments( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -10855,7 +12567,7 @@ $client->call('GET /repos/{owner}/{repo}/environments/{environment_name}/deploym 'repo' => 'generated', 'environment_name' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -10865,7 +12577,7 @@ $client->operations()->repos()->listDeploymentBranchPolicies( owner: 'gen repo: 'generated', environment_name: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -10984,7 +12696,7 @@ $client->call('GET /repos/{owner}/{repo}/events', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -10993,56 +12705,110 @@ Operations method: $client->operations()->activity()->listRepoEvents( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-repository-events). -### repos/list-forks +### activity/list-repo-events -List forks +List repository events Using the `call` method: ```php -$client->call('GET /repos/{owner}/{repo}/forks', [ +$client->call('LIST /repos/{owner}/{repo}/events', [ 'owner' => 'generated', 'repo' => 'generated', - 'sort' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php -$client->operations()->repos()->listForks( owner: 'generated', +$client->operations()->activity()->listRepoEventsListing( owner: 'generated', repo: 'generated', - sort: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#list-forks). +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-repository-events). -### repos/create-fork +### repos/list-forks -Create a fork +List forks Using the `call` method: ```php -$client->call('POST /repos/{owner}/{repo}/forks', [ +$client->call('GET /repos/{owner}/{repo}/forks', [ 'owner' => 'generated', 'repo' => 'generated', + 'sort' => 'generated', + 'per_page' => 8, + 'page' => 1, ]); ``` Operations method: ```php -$client->operations()->repos()->createFork( owner: 'generated', +$client->operations()->repos()->listForks( owner: 'generated', + repo: 'generated', + sort: 'generated', + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#list-forks). + + +### repos/list-forks + +List forks + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/forks', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'sort' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listForksListing( owner: 'generated', + repo: 'generated', + sort: 'generated', + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#list-forks). + + +### repos/create-fork + +Create a fork + +Using the `call` method: +```php +$client->call('POST /repos/{owner}/{repo}/forks', [ + 'owner' => 'generated', + 'repo' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->repos()->createFork( owner: 'generated', repo: 'generated', ); ``` @@ -11364,7 +13130,7 @@ $client->call('GET /repos/{owner}/{repo}/hooks', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -11373,7 +13139,33 @@ Operations method: $client->operations()->repos()->listWebhooks( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/webhooks/repos#list-repository-webhooks). + + +### repos/list-webhooks + +List repository webhooks + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/hooks', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listWebhooksListing( owner: 'generated', + repo: 'generated', + per_page: 8, + page: 1, ); ``` @@ -11684,7 +13476,7 @@ $client->call('GET /repos/{owner}/{repo}/invitations', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -11693,7 +13485,33 @@ Operations method: $client->operations()->repos()->listInvitations( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/collaborators/invitations#list-repository-invitations). + + +### repos/list-invitations + +List repository invitations + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/invitations', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listInvitationsListing( owner: 'generated', + repo: 'generated', + per_page: 8, + page: 1, ); ``` @@ -11767,7 +13585,7 @@ $client->call('GET /repos/{owner}/{repo}/issues', [ 'sort' => 'generated', 'direction' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -11785,7 +13603,51 @@ $client->operations()->issues()->listForRepo( owner: 'generated', sort: 'generated', direction: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-repository-issues). + + +### issues/list-for-repo + +List repository issues + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/issues', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'milestone' => 'generated', + 'assignee' => 'generated', + 'creator' => 'generated', + 'mentioned' => 'generated', + 'labels' => 'generated', + 'since' => '1970-01-01T00:00:00+00:00', + 'state' => 'generated', + 'sort' => 'generated', + 'direction' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listForRepoListing( owner: 'generated', + repo: 'generated', + milestone: 'generated', + assignee: 'generated', + creator: 'generated', + mentioned: 'generated', + labels: 'generated', + since: '1970-01-01T00:00:00+00:00', + state: 'generated', + sort: 'generated', + direction: 'generated', + per_page: 8, + page: 1, ); ``` @@ -11827,7 +13689,7 @@ $client->call('GET /repos/{owner}/{repo}/issues/comments', [ 'since' => '1970-01-01T00:00:00+00:00', 'sort' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -11839,7 +13701,39 @@ $client->operations()->issues()->listCommentsForRepo( owner: 'generated', since: '1970-01-01T00:00:00+00:00', sort: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-issue-comments-for-a-repository). + + +### issues/list-comments-for-repo + +List issue comments for a repository + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/issues/comments', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'direction' => 'generated', + 'since' => '1970-01-01T00:00:00+00:00', + 'sort' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listCommentsForRepoListing( owner: 'generated', + repo: 'generated', + direction: 'generated', + since: '1970-01-01T00:00:00+00:00', + sort: 'generated', + per_page: 8, + page: 1, ); ``` @@ -11930,7 +13824,7 @@ $client->call('GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions' 'comment_id' => 10, 'content' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -11941,7 +13835,37 @@ $client->operations()->reactions()->listForIssueComment( owner: 'generate comment_id: 10, content: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions#list-reactions-for-an-issue-comment). + + +### reactions/list-for-issue-comment + +List reactions for an issue comment + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'comment_id' => 10, + 'content' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->reactions()->listForIssueCommentListing( owner: 'generated', + repo: 'generated', + comment_id: 10, + content: 'generated', + per_page: 8, + page: 1, ); ``` @@ -12008,7 +13932,7 @@ $client->call('GET /repos/{owner}/{repo}/issues/events', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -12017,7 +13941,33 @@ Operations method: $client->operations()->issues()->listEventsForRepo( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-issue-events-for-a-repository). + + +### issues/list-events-for-repo + +List issue events for a repository + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/issues/events', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listEventsForRepoListing( owner: 'generated', + repo: 'generated', + per_page: 8, + page: 1, ); ``` @@ -12182,7 +14132,7 @@ $client->call('GET /repos/{owner}/{repo}/issues/{issue_number}/comments', [ 'issue_number' => 12, 'since' => '1970-01-01T00:00:00+00:00', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -12193,7 +14143,37 @@ $client->operations()->issues()->listComments( owner: 'generated', issue_number: 12, since: '1970-01-01T00:00:00+00:00', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-issue-comments). + + +### issues/list-comments + +List issue comments + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/comments', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'issue_number' => 12, + 'since' => '1970-01-01T00:00:00+00:00', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listCommentsListing( owner: 'generated', + repo: 'generated', + issue_number: 12, + since: '1970-01-01T00:00:00+00:00', + per_page: 8, + page: 1, ); ``` @@ -12235,7 +14215,7 @@ $client->call('GET /repos/{owner}/{repo}/issues/{issue_number}/events', [ 'repo' => 'generated', 'issue_number' => 12, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -12245,68 +14225,124 @@ $client->operations()->issues()->listEvents( owner: 'generated', repo: 'generated', issue_number: 12, per_page: 8, - page: 4, + page: 1, ); ``` You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-issue-events). -### issues/list-labels-on-issue +### issues/list-events -List labels for an issue +List issue events Using the `call` method: ```php -$client->call('GET /repos/{owner}/{repo}/issues/{issue_number}/labels', [ +$client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/events', [ 'owner' => 'generated', 'repo' => 'generated', 'issue_number' => 12, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php -$client->operations()->issues()->listLabelsOnIssue( owner: 'generated', +$client->operations()->issues()->listEventsListing( owner: 'generated', repo: 'generated', issue_number: 12, per_page: 8, - page: 4, + page: 1, ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-labels-for-an-issue). +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-issue-events). -### issues/set-labels +### issues/list-labels-on-issue -Set labels for an issue +List labels for an issue Using the `call` method: ```php -$client->call('PUT /repos/{owner}/{repo}/issues/{issue_number}/labels', [ +$client->call('GET /repos/{owner}/{repo}/issues/{issue_number}/labels', [ 'owner' => 'generated', 'repo' => 'generated', 'issue_number' => 12, + 'per_page' => 8, + 'page' => 1, ]); ``` Operations method: ```php -$client->operations()->issues()->setLabels( owner: 'generated', +$client->operations()->issues()->listLabelsOnIssue( owner: 'generated', repo: 'generated', issue_number: 12, + per_page: 8, + page: 1, ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#set-labels-for-an-issue). +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-labels-for-an-issue). -### issues/add-labels +### issues/list-labels-on-issue -Add labels to an issue +List labels for an issue + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/labels', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'issue_number' => 12, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listLabelsOnIssueListing( owner: 'generated', + repo: 'generated', + issue_number: 12, + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-labels-for-an-issue). + + +### issues/set-labels + +Set labels for an issue + +Using the `call` method: +```php +$client->call('PUT /repos/{owner}/{repo}/issues/{issue_number}/labels', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'issue_number' => 12, +]); +``` + +Operations method: +```php +$client->operations()->issues()->setLabels( owner: 'generated', + repo: 'generated', + issue_number: 12, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#set-labels-for-an-issue). + + +### issues/add-labels + +Add labels to an issue Using the `call` method: ```php @@ -12438,7 +14474,7 @@ $client->call('GET /repos/{owner}/{repo}/issues/{issue_number}/reactions', [ 'issue_number' => 12, 'content' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -12449,7 +14485,37 @@ $client->operations()->reactions()->listForIssue( owner: 'generated', issue_number: 12, content: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions#list-reactions-for-an-issue). + + +### reactions/list-for-issue + +List reactions for an issue + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/reactions', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'issue_number' => 12, + 'content' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->reactions()->listForIssueListing( owner: 'generated', + repo: 'generated', + issue_number: 12, + content: 'generated', + per_page: 8, + page: 1, ); ``` @@ -12517,7 +14583,7 @@ $client->call('GET /repos/{owner}/{repo}/issues/{issue_number}/timeline', [ 'repo' => 'generated', 'issue_number' => 12, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -12527,7 +14593,35 @@ $client->operations()->issues()->listEventsForTimeline( owner: 'generated repo: 'generated', issue_number: 12, per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-timeline-events-for-an-issue). + + +### issues/list-events-for-timeline + +List timeline events for an issue + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/timeline', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'issue_number' => 12, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listEventsForTimelineListing( owner: 'generated', + repo: 'generated', + issue_number: 12, + per_page: 8, + page: 1, ); ``` @@ -12544,7 +14638,7 @@ $client->call('GET /repos/{owner}/{repo}/keys', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -12553,7 +14647,33 @@ Operations method: $client->operations()->repos()->listDeployKeys( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/deploy-keys#list-deploy-keys). + + +### repos/list-deploy-keys + +List deploy keys + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/keys', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listDeployKeysListing( owner: 'generated', + repo: 'generated', + per_page: 8, + page: 1, ); ``` @@ -12640,7 +14760,7 @@ $client->call('GET /repos/{owner}/{repo}/labels', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -12649,7 +14769,33 @@ Operations method: $client->operations()->issues()->listLabelsForRepo( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-labels-for-a-repository). + + +### issues/list-labels-for-repo + +List labels for a repository + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/labels', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listLabelsForRepoListing( owner: 'generated', + repo: 'generated', + per_page: 8, + page: 1, ); ``` @@ -12895,7 +15041,7 @@ $client->call('GET /repos/{owner}/{repo}/milestones', [ 'sort' => 'generated', 'direction' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -12907,7 +15053,39 @@ $client->operations()->issues()->listMilestones( owner: 'generated', sort: 'generated', direction: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-milestones). + + +### issues/list-milestones + +List milestones + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/milestones', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'state' => 'generated', + 'sort' => 'generated', + 'direction' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listMilestonesListing( owner: 'generated', + repo: 'generated', + state: 'generated', + sort: 'generated', + direction: 'generated', + per_page: 8, + page: 1, ); ``` @@ -13019,7 +15197,7 @@ $client->call('GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels', 'repo' => 'generated', 'milestone_number' => 16, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -13029,7 +15207,35 @@ $client->operations()->issues()->listLabelsForMilestone( owner: 'generate repo: 'generated', milestone_number: 16, per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-labels-for-issues-in-a-milestone). + + +### issues/list-labels-for-milestone + +List labels for issues in a milestone + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/milestones/{milestone_number}/labels', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'milestone_number' => 16, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listLabelsForMilestoneListing( owner: 'generated', + repo: 'generated', + milestone_number: 16, + per_page: 8, + page: 1, ); ``` @@ -13050,7 +15256,7 @@ $client->call('GET /repos/{owner}/{repo}/notifications', [ 'all' => , 'participating' => , 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -13063,7 +15269,41 @@ $client->operations()->activity()->listRepoNotificationsForAuthenticatedUser( all: , participating: , per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-repository-notifications-for-the-authenticated-user). + + +### activity/list-repo-notifications-for-authenticated-user + +List repository notifications for the authenticated user + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/notifications', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'since' => '1970-01-01T00:00:00+00:00', + 'before' => '1970-01-01T00:00:00+00:00', + 'all' => , + 'participating' => , + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->activity()->listRepoNotificationsForAuthenticatedUserListing( owner: 'generated', + repo: 'generated', + since: '1970-01-01T00:00:00+00:00', + before: '1970-01-01T00:00:00+00:00', + all: , + participating: , + per_page: 8, + page: 1, ); ``` @@ -13190,7 +15430,7 @@ $client->call('GET /repos/{owner}/{repo}/pages/builds', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -13199,7 +15439,33 @@ Operations method: $client->operations()->repos()->listPagesBuilds( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/pages#list-github-pages-builds). + + +### repos/list-pages-builds + +List GitHub Enterprise Server Pages builds + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/pages/builds', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listPagesBuildsListing( owner: 'generated', + repo: 'generated', + per_page: 8, + page: 1, ); ``` @@ -13284,7 +15550,7 @@ $client->call('GET /repos/{owner}/{repo}/pre-receive-hooks', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, 'direction' => 'generated', 'sort' => 'generated', ]); @@ -13295,7 +15561,7 @@ Operations method: $client->operations()->enterpriseAdmin()->listPreReceiveHooksForRepo( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, direction: 'generated', sort: 'generated', ); @@ -13304,22 +15570,52 @@ $client->operations()->enterpriseAdmin()->listPreReceiveHooksForRepo( own You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/enterprise-admin#list-pre-receive-hooks-for-a-repository). -### enterprise-admin/get-pre-receive-hook-for-repo +### enterprise-admin/list-pre-receive-hooks-for-repo -Get a pre-receive hook for a repository +List pre-receive hooks for a repository Using the `call` method: ```php -$client->call('GET /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}', [ +$client->call('LIST /repos/{owner}/{repo}/pre-receive-hooks', [ 'owner' => 'generated', 'repo' => 'generated', - 'pre_receive_hook_id' => 19, + 'per_page' => 8, + 'page' => 1, + 'direction' => 'generated', + 'sort' => 'generated', ]); ``` Operations method: ```php -$client->operations()->enterpriseAdmin()->getPreReceiveHookForRepo( owner: 'generated', +$client->operations()->enterpriseAdmin()->listPreReceiveHooksForRepoListing( owner: 'generated', + repo: 'generated', + per_page: 8, + page: 1, + direction: 'generated', + sort: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/enterprise-admin#list-pre-receive-hooks-for-a-repository). + + +### enterprise-admin/get-pre-receive-hook-for-repo + +Get a pre-receive hook for a repository + +Using the `call` method: +```php +$client->call('GET /repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'pre_receive_hook_id' => 19, +]); +``` + +Operations method: +```php +$client->operations()->enterpriseAdmin()->getPreReceiveHookForRepo( owner: 'generated', repo: 'generated', pre_receive_hook_id: 19, ); @@ -13387,7 +15683,7 @@ $client->call('GET /repos/{owner}/{repo}/projects', [ 'repo' => 'generated', 'state' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -13397,7 +15693,35 @@ $client->operations()->projects()->listForRepo( owner: 'generated', repo: 'generated', state: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/projects#list-repository-projects). + + +### projects/list-for-repo + +List repository projects + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/projects', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'state' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->projects()->listForRepoListing( owner: 'generated', + repo: 'generated', + state: 'generated', + per_page: 8, + page: 1, ); ``` @@ -13441,7 +15765,7 @@ $client->call('GET /repos/{owner}/{repo}/pulls', [ 'state' => 'generated', 'sort' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -13455,7 +15779,43 @@ $client->operations()->pulls()->list( owner: 'generated', state: 'generated', sort: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#list-pull-requests). + + +### pulls/list + +List pull requests + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/pulls', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'head' => 'generated', + 'base' => 'generated', + 'direction' => 'generated', + 'state' => 'generated', + 'sort' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->pulls()->listListing( owner: 'generated', + repo: 'generated', + head: 'generated', + base: 'generated', + direction: 'generated', + state: 'generated', + sort: 'generated', + per_page: 8, + page: 1, ); ``` @@ -13497,7 +15857,7 @@ $client->call('GET /repos/{owner}/{repo}/pulls/comments', [ 'direction' => 'generated', 'since' => '1970-01-01T00:00:00+00:00', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -13509,7 +15869,39 @@ $client->operations()->pulls()->listReviewCommentsForRepo( owner: 'genera direction: 'generated', since: '1970-01-01T00:00:00+00:00', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#list-review-comments-in-a-repository). + + +### pulls/list-review-comments-for-repo + +List review comments in a repository + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/pulls/comments', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'sort' => 'generated', + 'direction' => 'generated', + 'since' => '1970-01-01T00:00:00+00:00', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->pulls()->listReviewCommentsForRepoListing( owner: 'generated', + repo: 'generated', + sort: 'generated', + direction: 'generated', + since: '1970-01-01T00:00:00+00:00', + per_page: 8, + page: 1, ); ``` @@ -13600,7 +15992,7 @@ $client->call('GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions', 'comment_id' => 10, 'content' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -13611,7 +16003,37 @@ $client->operations()->reactions()->listForPullRequestReviewComment( owne comment_id: 10, content: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions#list-reactions-for-a-pull-request-review-comment). + + +### reactions/list-for-pull-request-review-comment + +List reactions for a pull request review comment + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'comment_id' => 10, + 'content' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->reactions()->listForPullRequestReviewCommentListing( owner: 'generated', + repo: 'generated', + comment_id: 10, + content: 'generated', + per_page: 8, + page: 1, ); ``` @@ -13730,7 +16152,7 @@ $client->call('GET /repos/{owner}/{repo}/pulls/{pull_number}/comments', [ 'since' => '1970-01-01T00:00:00+00:00', 'sort' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -13743,7 +16165,41 @@ $client->operations()->pulls()->listReviewComments( owner: 'generated', since: '1970-01-01T00:00:00+00:00', sort: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#list-review-comments-on-a-pull-request). + + +### pulls/list-review-comments + +List review comments on a pull request + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/pulls/{pull_number}/comments', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'pull_number' => 11, + 'direction' => 'generated', + 'since' => '1970-01-01T00:00:00+00:00', + 'sort' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->pulls()->listReviewCommentsListing( owner: 'generated', + repo: 'generated', + pull_number: 11, + direction: 'generated', + since: '1970-01-01T00:00:00+00:00', + sort: 'generated', + per_page: 8, + page: 1, ); ``` @@ -13811,7 +16267,7 @@ $client->call('GET /repos/{owner}/{repo}/pulls/{pull_number}/commits', [ 'repo' => 'generated', 'pull_number' => 11, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -13821,7 +16277,35 @@ $client->operations()->pulls()->listCommits( owner: 'generated', repo: 'generated', pull_number: 11, per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#list-commits-on-a-pull-request). + + +### pulls/list-commits + +List commits on a pull request + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/pulls/{pull_number}/commits', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'pull_number' => 11, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->pulls()->listCommitsListing( owner: 'generated', + repo: 'generated', + pull_number: 11, + per_page: 8, + page: 1, ); ``` @@ -13839,7 +16323,7 @@ $client->call('GET /repos/{owner}/{repo}/pulls/{pull_number}/files', [ 'repo' => 'generated', 'pull_number' => 11, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -13849,7 +16333,35 @@ $client->operations()->pulls()->listFiles( owner: 'generated', repo: 'generated', pull_number: 11, per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#list-pull-requests-files). + + +### pulls/list-files + +List pull requests files + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/pulls/{pull_number}/files', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'pull_number' => 11, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->pulls()->listFilesListing( owner: 'generated', + repo: 'generated', + pull_number: 11, + per_page: 8, + page: 1, ); ``` @@ -13987,7 +16499,7 @@ $client->call('GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews', [ 'repo' => 'generated', 'pull_number' => 11, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -13997,7 +16509,35 @@ $client->operations()->pulls()->listReviews( owner: 'generated', repo: 'generated', pull_number: 11, per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#list-reviews-for-a-pull-request). + + +### pulls/list-reviews + +List reviews for a pull request + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/pulls/{pull_number}/reviews', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'pull_number' => 11, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->pulls()->listReviewsListing( owner: 'generated', + repo: 'generated', + pull_number: 11, + per_page: 8, + page: 1, ); ``` @@ -14118,7 +16658,7 @@ $client->call('GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id} 'pull_number' => 11, 'review_id' => 9, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -14129,46 +16669,50 @@ $client->operations()->pulls()->listCommentsForReview( owner: 'generated' pull_number: 11, review_id: 9, per_page: 8, - page: 4, + page: 1, ); ``` You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#list-comments-for-a-pull-request-review). -### pulls/dismiss-review +### pulls/list-comments-for-review -Dismiss a review for a pull request +List comments for a pull request review Using the `call` method: ```php -$client->call('PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals', [ +$client->call('LIST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments', [ 'owner' => 'generated', 'repo' => 'generated', 'pull_number' => 11, 'review_id' => 9, + 'per_page' => 8, + 'page' => 1, ]); ``` Operations method: ```php -$client->operations()->pulls()->dismissReview( owner: 'generated', +$client->operations()->pulls()->listCommentsForReviewListing( owner: 'generated', repo: 'generated', pull_number: 11, review_id: 9, + per_page: 8, + page: 1, ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#dismiss-a-review-for-a-pull-request). +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#list-comments-for-a-pull-request-review). -### pulls/submit-review +### pulls/dismiss-review -Submit a review for a pull request +Dismiss a review for a pull request Using the `call` method: ```php -$client->call('POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events', [ +$client->call('PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals', [ 'owner' => 'generated', 'repo' => 'generated', 'pull_number' => 11, @@ -14178,7 +16722,33 @@ $client->call('POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id Operations method: ```php -$client->operations()->pulls()->submitReview( owner: 'generated', +$client->operations()->pulls()->dismissReview( owner: 'generated', + repo: 'generated', + pull_number: 11, + review_id: 9, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/pulls#dismiss-a-review-for-a-pull-request). + + +### pulls/submit-review + +Submit a review for a pull request + +Using the `call` method: +```php +$client->call('POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'pull_number' => 11, + 'review_id' => 9, +]); +``` + +Operations method: +```php +$client->operations()->pulls()->submitReview( owner: 'generated', repo: 'generated', pull_number: 11, review_id: 9, @@ -14272,7 +16842,7 @@ $client->call('GET /repos/{owner}/{repo}/releases', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -14281,7 +16851,33 @@ Operations method: $client->operations()->repos()->listReleases( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/releases/releases#list-releases). + + +### repos/list-releases + +List releases + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/releases', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listReleasesListing( owner: 'generated', + repo: 'generated', + per_page: 8, + page: 1, ); ``` @@ -14533,7 +17129,7 @@ $client->call('GET /repos/{owner}/{repo}/releases/{release_id}/assets', [ 'repo' => 'generated', 'release_id' => 10, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -14543,7 +17139,35 @@ $client->operations()->repos()->listReleaseAssets( owner: 'generated', repo: 'generated', release_id: 10, per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/releases/assets#list-release-assets). + + +### repos/list-release-assets + +List release assets + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/releases/{release_id}/assets', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'release_id' => 10, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listReleaseAssetsListing( owner: 'generated', + repo: 'generated', + release_id: 10, + per_page: 8, + page: 1, ); ``` @@ -14590,7 +17214,7 @@ $client->call('GET /repos/{owner}/{repo}/releases/{release_id}/reactions', [ 'release_id' => 10, 'content' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -14601,7 +17225,37 @@ $client->operations()->reactions()->listForRelease( owner: 'generated', release_id: 10, content: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions/#list-reactions-for-a-release). + + +### reactions/list-for-release + +List reactions for a release + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/releases/{release_id}/reactions', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'release_id' => 10, + 'content' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->reactions()->listForReleaseListing( owner: 'generated', + repo: 'generated', + release_id: 10, + content: 'generated', + per_page: 8, + page: 1, ); ``` @@ -14668,7 +17322,7 @@ $client->call('GET /repos/{owner}/{repo}/replicas/caches', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -14677,7 +17331,33 @@ Operations method: $client->operations()->repos()->listCacheInfo( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#list-repository-cache-replication-status). + + +### repos/list-cache-info + +List repository cache replication status + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/replicas/caches', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listCacheInfoListing( owner: 'generated', + repo: 'generated', + per_page: 8, + page: 1, ); ``` @@ -14696,7 +17376,7 @@ $client->call('GET /repos/{owner}/{repo}/secret-scanning/alerts', [ 'state' => 'generated', 'secret_type' => 'generated', 'resolution' => 'generated', - 'page' => 4, + 'page' => 1, 'per_page' => 8, ]); ``` @@ -14708,7 +17388,39 @@ $client->operations()->secretScanning()->listAlertsForRepo( owner: 'gener state: 'generated', secret_type: 'generated', resolution: 'generated', - page: 4, + page: 1, + per_page: 8, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/secret-scanning#list-secret-scanning-alerts-for-a-repository). + + +### secret-scanning/list-alerts-for-repo + +List secret scanning alerts for a repository + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/secret-scanning/alerts', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'state' => 'generated', + 'secret_type' => 'generated', + 'resolution' => 'generated', + 'page' => 1, + 'per_page' => 8, +]); +``` + +Operations method: +```php +$client->operations()->secretScanning()->listAlertsForRepoListing( owner: 'generated', + repo: 'generated', + state: 'generated', + secret_type: 'generated', + resolution: 'generated', + page: 1, per_page: 8, ); ``` @@ -14774,7 +17486,7 @@ $client->call('GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/l 'owner' => 'generated', 'repo' => 'generated', 'alert_number' => 12, - 'page' => 4, + 'page' => 1, 'per_page' => 8, ]); ``` @@ -14784,7 +17496,35 @@ Operations method: $client->operations()->secretScanning()->listLocationsForAlert( owner: 'generated', repo: 'generated', alert_number: 12, - page: 4, + page: 1, + per_page: 8, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/secret-scanning#list-locations-for-a-secret-scanning-alert). + + +### secret-scanning/list-locations-for-alert + +List locations for a secret scanning alert + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'alert_number' => 12, + 'page' => 1, + 'per_page' => 8, +]); +``` + +Operations method: +```php +$client->operations()->secretScanning()->listLocationsForAlertListing( owner: 'generated', + repo: 'generated', + alert_number: 12, + page: 1, per_page: 8, ); ``` @@ -14802,7 +17542,7 @@ $client->call('GET /repos/{owner}/{repo}/stargazers', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -14811,7 +17551,7 @@ Operations method: $client->operations()->activity()->listStargazersForRepo( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -14962,7 +17702,7 @@ $client->call('GET /repos/{owner}/{repo}/subscribers', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -14971,7 +17711,33 @@ Operations method: $client->operations()->activity()->listWatchersForRepo( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-watchers). + + +### activity/list-watchers-for-repo + +List watchers + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/subscribers', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->activity()->listWatchersForRepoListing( owner: 'generated', + repo: 'generated', + per_page: 8, + page: 1, ); ``` @@ -15054,7 +17820,7 @@ $client->call('GET /repos/{owner}/{repo}/tags', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -15063,7 +17829,33 @@ Operations method: $client->operations()->repos()->listTags( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#list-repository-tags). + + +### repos/list-tags + +List repository tags + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/tags', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listTagsListing( owner: 'generated', + repo: 'generated', + per_page: 8, + page: 1, ); ``` @@ -15128,7 +17920,7 @@ $client->call('GET /repos/{owner}/{repo}/teams', [ 'owner' => 'generated', 'repo' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -15137,7 +17929,33 @@ Operations method: $client->operations()->repos()->listTeams( owner: 'generated', repo: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#list-repository-teams). + + +### repos/list-teams + +List repository teams + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/teams', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listTeamsListing( owner: 'generated', + repo: 'generated', + per_page: 8, + page: 1, ); ``` @@ -15153,7 +17971,7 @@ Using the `call` method: $client->call('GET /repos/{owner}/{repo}/topics', [ 'owner' => 'generated', 'repo' => 'generated', - 'page' => 4, + 'page' => 1, 'per_page' => 8, ]); ``` @@ -15162,7 +17980,7 @@ Operations method: ```php $client->operations()->repos()->getAllTopics( owner: 'generated', repo: 'generated', - page: 4, + page: 1, per_page: 8, ); ``` @@ -15316,7 +18134,7 @@ $client->call('GET /repositories/{repository_id}/environments/{environment_name} 'repository_id' => 13, 'environment_name' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -15325,7 +18143,7 @@ Operations method: $client->operations()->actions()->listEnvironmentSecrets( repository_id: 13, environment_name: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -15437,7 +18255,7 @@ $client->call('GET /search/code', [ 'sort' => 'generated', 'order' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -15447,7 +18265,7 @@ $client->operations()->search()->code( q: 'generated', sort: 'generated', order: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -15465,7 +18283,7 @@ $client->call('GET /search/commits', [ 'sort' => 'generated', 'order' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -15475,7 +18293,7 @@ $client->operations()->search()->commits( q: 'generated', sort: 'generated', order: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -15493,7 +18311,7 @@ $client->call('GET /search/issues', [ 'sort' => 'generated', 'order' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -15503,7 +18321,7 @@ $client->operations()->search()->issuesAndPullRequests( q: 'generated', sort: 'generated', order: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -15522,7 +18340,7 @@ $client->call('GET /search/labels', [ 'sort' => 'generated', 'order' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -15533,7 +18351,7 @@ $client->operations()->search()->labels( repository_id: 13, sort: 'generated', order: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -15551,7 +18369,7 @@ $client->call('GET /search/repositories', [ 'sort' => 'generated', 'order' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -15561,7 +18379,7 @@ $client->operations()->search()->repos( q: 'generated', sort: 'generated', order: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -15577,7 +18395,7 @@ Using the `call` method: $client->call('GET /search/topics', [ 'q' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -15585,7 +18403,7 @@ Operations method: ```php $client->operations()->search()->topics( q: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -15603,7 +18421,7 @@ $client->call('GET /search/users', [ 'sort' => 'generated', 'order' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -15613,7 +18431,7 @@ $client->operations()->search()->users( q: 'generated', sort: 'generated', order: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -15877,7 +18695,7 @@ $client->call('GET /teams/{team_id}/discussions', [ 'team_id' => 7, 'direction' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -15886,40 +18704,66 @@ Operations method: $client->operations()->teams()->listDiscussionsLegacy( team_id: 7, direction: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams#list-discussions-legacy). -### teams/create-discussion-legacy +### teams/list-discussions-legacy -Create a discussion (Legacy) +List discussions (Legacy) Using the `call` method: ```php -$client->call('POST /teams/{team_id}/discussions', [ +$client->call('LIST /teams/{team_id}/discussions', [ 'team_id' => 7, + 'direction' => 'generated', + 'per_page' => 8, + 'page' => 1, ]); ``` Operations method: ```php -$client->operations()->teams()->createDiscussionLegacy( team_id: 7, +$client->operations()->teams()->listDiscussionsLegacyListing( team_id: 7, + direction: 'generated', + per_page: 8, + page: 1, ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams#create-a-discussion-legacy). +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams#list-discussions-legacy). -### teams/get-discussion-legacy +### teams/create-discussion-legacy -Get a discussion (Legacy) +Create a discussion (Legacy) Using the `call` method: ```php -$client->call('GET /teams/{team_id}/discussions/{discussion_number}', [ +$client->call('POST /teams/{team_id}/discussions', [ + 'team_id' => 7, +]); +``` + +Operations method: +```php +$client->operations()->teams()->createDiscussionLegacy( team_id: 7, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams#create-a-discussion-legacy). + + +### teams/get-discussion-legacy + +Get a discussion (Legacy) + +Using the `call` method: +```php +$client->call('GET /teams/{team_id}/discussions/{discussion_number}', [ 'team_id' => 7, 'discussion_number' => 17, ]); @@ -15990,7 +18834,7 @@ $client->call('GET /teams/{team_id}/discussions/{discussion_number}/comments', [ 'discussion_number' => 17, 'direction' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -16000,7 +18844,35 @@ $client->operations()->teams()->listDiscussionCommentsLegacy( team_id: 7, discussion_number: 17, direction: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams#list-discussion-comments-legacy). + + +### teams/list-discussion-comments-legacy + +List discussion comments (Legacy) + +Using the `call` method: +```php +$client->call('LIST /teams/{team_id}/discussions/{discussion_number}/comments', [ + 'team_id' => 7, + 'discussion_number' => 17, + 'direction' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->teams()->listDiscussionCommentsLegacyListing( team_id: 7, + discussion_number: 17, + direction: 'generated', + per_page: 8, + page: 1, ); ``` @@ -16113,7 +18985,7 @@ $client->call('GET /teams/{team_id}/discussions/{discussion_number}/comments/{co 'comment_number' => 14, 'content' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -16124,7 +18996,37 @@ $client->operations()->reactions()->listForTeamDiscussionCommentLegacy( t comment_number: 14, content: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions/#list-reactions-for-a-team-discussion-comment-legacy). + + +### reactions/list-for-team-discussion-comment-legacy + +List reactions for a team discussion comment (Legacy) + +Using the `call` method: +```php +$client->call('LIST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions', [ + 'team_id' => 7, + 'discussion_number' => 17, + 'comment_number' => 14, + 'content' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->reactions()->listForTeamDiscussionCommentLegacyListing( team_id: 7, + discussion_number: 17, + comment_number: 14, + content: 'generated', + per_page: 8, + page: 1, ); ``` @@ -16166,7 +19068,7 @@ $client->call('GET /teams/{team_id}/discussions/{discussion_number}/reactions', 'discussion_number' => 17, 'content' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -16176,7 +19078,35 @@ $client->operations()->reactions()->listForTeamDiscussionLegacy( team_id: discussion_number: 17, content: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/reactions/#list-reactions-for-a-team-discussion-legacy). + + +### reactions/list-for-team-discussion-legacy + +List reactions for a team discussion (Legacy) + +Using the `call` method: +```php +$client->call('LIST /teams/{team_id}/discussions/{discussion_number}/reactions', [ + 'team_id' => 7, + 'discussion_number' => 17, + 'content' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->reactions()->listForTeamDiscussionLegacyListing( team_id: 7, + discussion_number: 17, + content: 'generated', + per_page: 8, + page: 1, ); ``` @@ -16215,7 +19145,7 @@ $client->call('GET /teams/{team_id}/members', [ 'team_id' => 7, 'role' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -16224,7 +19154,33 @@ Operations method: $client->operations()->teams()->listMembersLegacy( team_id: 7, role: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams#list-team-members-legacy). + + +### teams/list-members-legacy + +List team members (Legacy) + +Using the `call` method: +```php +$client->call('LIST /teams/{team_id}/members', [ + 'team_id' => 7, + 'role' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->teams()->listMembersLegacyListing( team_id: 7, + role: 'generated', + per_page: 8, + page: 1, ); ``` @@ -16372,7 +19328,7 @@ Using the `call` method: $client->call('GET /teams/{team_id}/projects', [ 'team_id' => 7, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -16380,7 +19336,31 @@ Operations method: ```php $client->operations()->teams()->listProjectsLegacy( team_id: 7, per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams/#list-team-projects-legacy). + + +### teams/list-projects-legacy + +List team projects (Legacy) + +Using the `call` method: +```php +$client->call('LIST /teams/{team_id}/projects', [ + 'team_id' => 7, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->teams()->listProjectsLegacyListing( team_id: 7, + per_page: 8, + page: 1, ); ``` @@ -16462,7 +19442,7 @@ Using the `call` method: $client->call('GET /teams/{team_id}/repos', [ 'team_id' => 7, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -16470,7 +19450,31 @@ Operations method: ```php $client->operations()->teams()->listReposLegacy( team_id: 7, per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams/#list-team-repositories-legacy). + + +### teams/list-repos-legacy + +List team repositories (Legacy) + +Using the `call` method: +```php +$client->call('LIST /teams/{team_id}/repos', [ + 'team_id' => 7, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->teams()->listReposLegacyListing( team_id: 7, + per_page: 8, + page: 1, ); ``` @@ -16558,7 +19562,7 @@ Using the `call` method: $client->call('GET /teams/{team_id}/teams', [ 'team_id' => 7, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -16566,7 +19570,31 @@ Operations method: ```php $client->operations()->teams()->listChildLegacy( team_id: 7, per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams/#list-child-teams-legacy). + + +### teams/list-child-legacy + +List child teams (Legacy) + +Using the `call` method: +```php +$client->call('LIST /teams/{team_id}/teams', [ + 'team_id' => 7, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->teams()->listChildLegacyListing( team_id: 7, + per_page: 8, + page: 1, ); ``` @@ -16615,14 +19643,36 @@ Using the `call` method: ```php $client->call('GET /user/emails', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->users()->listEmailsForAuthenticatedUser( per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/users#list-email-addresses-for-the-authenticated-user). + + +### users/list-emails-for-authenticated-user + +List email addresses for the authenticated user + +Using the `call` method: +```php +$client->call('LIST /user/emails', [ + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->users()->listEmailsForAuthenticatedUserListing( per_page: 8, + page: 1, ); ``` @@ -16671,14 +19721,36 @@ Using the `call` method: ```php $client->call('GET /user/followers', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->users()->listFollowersForAuthenticatedUser( per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/users#list-followers-of-the-authenticated-user). + + +### users/list-followers-for-authenticated-user + +List followers of the authenticated user + +Using the `call` method: +```php +$client->call('LIST /user/followers', [ + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->users()->listFollowersForAuthenticatedUserListing( per_page: 8, + page: 1, ); ``` @@ -16693,14 +19765,36 @@ Using the `call` method: ```php $client->call('GET /user/following', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->users()->listFollowedByAuthenticatedUser( per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/users#list-the-people-the-authenticated-user-follows). + + +### users/list-followed-by-authenticated-user + +List the people the authenticated user follows + +Using the `call` method: +```php +$client->call('LIST /user/following', [ + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->users()->listFollowedByAuthenticatedUserListing( per_page: 8, + page: 1, ); ``` @@ -16775,14 +19869,36 @@ Using the `call` method: ```php $client->call('GET /user/gpg_keys', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->users()->listGpgKeysForAuthenticatedUser( per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/users#list-gpg-keys-for-the-authenticated-user). + + +### users/list-gpg-keys-for-authenticated-user + +List GPG keys for the authenticated user + +Using the `call` method: +```php +$client->call('LIST /user/gpg_keys', [ + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->users()->listGpgKeysForAuthenticatedUserListing( per_page: 8, + page: 1, ); ``` @@ -16854,14 +19970,14 @@ Using the `call` method: ```php $client->call('GET /user/installations', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->apps()->listInstallationsForAuthenticatedUser( per_page: 8, - page: 4, + page: 1, ); ``` @@ -16877,7 +19993,7 @@ Using the `call` method: $client->call('GET /user/installations/{installation_id}/repositories', [ 'installation_id' => 15, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -16885,7 +20001,7 @@ Operations method: ```php $client->operations()->apps()->listInstallationReposForAuthenticatedUser( installation_id: 15, per_page: 8, - page: 4, + page: 1, ); ``` @@ -16950,7 +20066,7 @@ $client->call('GET /user/issues', [ 'sort' => 'generated', 'direction' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -16963,29 +20079,85 @@ $client->operations()->issues()->listForAuthenticatedUser( labels: 'gener sort: 'generated', direction: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-user-account-issues-assigned-to-the-authenticated-user). -### users/list-public-ssh-keys-for-authenticated-user +### issues/list-for-authenticated-user -List public SSH keys for the authenticated user +List user account issues assigned to the authenticated user Using the `call` method: ```php -$client->call('GET /user/keys', [ - 'per_page' => 8, - 'page' => 4, -]); -``` +$client->call('LIST /user/issues', [ + 'labels' => 'generated', + 'since' => '1970-01-01T00:00:00+00:00', + 'filter' => 'generated', + 'state' => 'generated', + 'sort' => 'generated', + 'direction' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listForAuthenticatedUserListing( labels: 'generated', + since: '1970-01-01T00:00:00+00:00', + filter: 'generated', + state: 'generated', + sort: 'generated', + direction: 'generated', + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/issues#list-user-account-issues-assigned-to-the-authenticated-user). + + +### users/list-public-ssh-keys-for-authenticated-user + +List public SSH keys for the authenticated user + +Using the `call` method: +```php +$client->call('GET /user/keys', [ + 'per_page' => 8, + 'page' => 1, +]); +``` Operations method: ```php $client->operations()->users()->listPublicSshKeysForAuthenticatedUser( per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user). + + +### users/list-public-ssh-keys-for-authenticated-user + +List public SSH keys for the authenticated user + +Using the `call` method: +```php +$client->call('LIST /user/keys', [ + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->users()->listPublicSshKeysForAuthenticatedUserListing( per_page: 8, + page: 1, ); ``` @@ -17058,7 +20230,7 @@ Using the `call` method: $client->call('GET /user/memberships/orgs', [ 'state' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17066,7 +20238,31 @@ Operations method: ```php $client->operations()->orgs()->listMembershipsForAuthenticatedUser( state: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/orgs#list-organization-memberships-for-the-authenticated-user). + + +### orgs/list-memberships-for-authenticated-user + +List organization memberships for the authenticated user + +Using the `call` method: +```php +$client->call('LIST /user/memberships/orgs', [ + 'state' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->orgs()->listMembershipsForAuthenticatedUserListing( state: 'generated', + per_page: 8, + page: 1, ); ``` @@ -17121,14 +20317,36 @@ Using the `call` method: ```php $client->call('GET /user/migrations', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->migrations()->listForAuthenticatedUser( per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/migrations/users#list-user-migrations). + + +### migrations/list-for-authenticated-user + +List user migrations + +Using the `call` method: +```php +$client->call('LIST /user/migrations', [ + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->migrations()->listForAuthenticatedUserListing( per_page: 8, + page: 1, ); ``` @@ -17181,7 +20399,7 @@ Using the `call` method: $client->call('GET /user/migrations/{migration_id}/repositories', [ 'migration_id' => 12, 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17189,7 +20407,31 @@ Operations method: ```php $client->operations()->migrations()->listReposForAuthenticatedUser( migration_id: 12, per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/migrations/users#list-repositories-for-a-user-migration). + + +### migrations/list-repos-for-authenticated-user + +List repositories for a user migration + +Using the `call` method: +```php +$client->call('LIST /user/migrations/{migration_id}/repositories', [ + 'migration_id' => 12, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->migrations()->listReposForAuthenticatedUserListing( migration_id: 12, + per_page: 8, + page: 1, ); ``` @@ -17204,14 +20446,36 @@ Using the `call` method: ```php $client->call('GET /user/orgs', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->orgs()->listForAuthenticatedUser( per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/orgs#list-organizations-for-the-authenticated-user). + + +### orgs/list-for-authenticated-user + +List organizations for the authenticated user + +Using the `call` method: +```php +$client->call('LIST /user/orgs', [ + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->orgs()->listForAuthenticatedUserListing( per_page: 8, + page: 1, ); ``` @@ -17243,14 +20507,36 @@ Using the `call` method: ```php $client->call('GET /user/public_emails', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->users()->listPublicEmailsForAuthenticatedUser( per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/users#list-public-email-addresses-for-the-authenticated-user). + + +### users/list-public-emails-for-authenticated-user + +List public email addresses for the authenticated user + +Using the `call` method: +```php +$client->call('LIST /user/public_emails', [ + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->users()->listPublicEmailsForAuthenticatedUserListing( per_page: 8, + page: 1, ); ``` @@ -17272,7 +20558,7 @@ $client->call('GET /user/repos', [ 'type' => 'generated', 'sort' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17286,7 +20572,43 @@ $client->operations()->repos()->listForAuthenticatedUser( direction: 'gen type: 'generated', sort: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#list-repositories-for-the-authenticated-user). + + +### repos/list-for-authenticated-user + +List repositories for the authenticated user + +Using the `call` method: +```php +$client->call('LIST /user/repos', [ + 'direction' => 'generated', + 'since' => '1970-01-01T00:00:00+00:00', + 'before' => '1970-01-01T00:00:00+00:00', + 'visibility' => 'generated', + 'affiliation' => 'generated', + 'type' => 'generated', + 'sort' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listForAuthenticatedUserListing( direction: 'generated', + since: '1970-01-01T00:00:00+00:00', + before: '1970-01-01T00:00:00+00:00', + visibility: 'generated', + affiliation: 'generated', + type: 'generated', + sort: 'generated', + per_page: 8, + page: 1, ); ``` @@ -17318,14 +20640,36 @@ Using the `call` method: ```php $client->call('GET /user/repository_invitations', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->repos()->listInvitationsForAuthenticatedUser( per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/collaborators/invitations#list-repository-invitations-for-the-authenticated-user). + + +### repos/list-invitations-for-authenticated-user + +List repository invitations for the authenticated user + +Using the `call` method: +```php +$client->call('LIST /user/repository_invitations', [ + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listInvitationsForAuthenticatedUserListing( per_page: 8, + page: 1, ); ``` @@ -17382,7 +20726,7 @@ $client->call('GET /user/starred', [ 'sort' => 'generated', 'direction' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17391,7 +20735,33 @@ Operations method: $client->operations()->activity()->listReposStarredByAuthenticatedUser( sort: 'generated', direction: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-repositories-starred-by-the-authenticated-user). + + +### activity/list-repos-starred-by-authenticated-user + +List repositories starred by the authenticated user + +Using the `call` method: +```php +$client->call('LIST /user/starred', [ + 'sort' => 'generated', + 'direction' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->activity()->listReposStarredByAuthenticatedUserListing( sort: 'generated', + direction: 'generated', + per_page: 8, + page: 1, ); ``` @@ -17472,14 +20842,36 @@ Using the `call` method: ```php $client->call('GET /user/subscriptions', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->activity()->listWatchedReposForAuthenticatedUser( per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-repositories-watched-by-the-authenticated-user). + + +### activity/list-watched-repos-for-authenticated-user + +List repositories watched by the authenticated user + +Using the `call` method: +```php +$client->call('LIST /user/subscriptions', [ + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->activity()->listWatchedReposForAuthenticatedUserListing( per_page: 8, + page: 1, ); ``` @@ -17494,14 +20886,36 @@ Using the `call` method: ```php $client->call('GET /user/teams', [ 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` Operations method: ```php $client->operations()->teams()->listForAuthenticatedUser( per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/teams#list-teams-for-the-authenticated-user). + + +### teams/list-for-authenticated-user + +List teams for the authenticated user + +Using the `call` method: +```php +$client->call('LIST /user/teams', [ + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->teams()->listForAuthenticatedUserListing( per_page: 8, + page: 1, ); ``` @@ -17559,7 +20973,7 @@ Using the `call` method: $client->call('GET /users/{username}/events', [ 'username' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17567,14 +20981,38 @@ Operations method: ```php $client->operations()->activity()->listEventsForAuthenticatedUser( username: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-events-for-the-authenticated-user). -### activity/list-org-events-for-authenticated-user +### activity/list-events-for-authenticated-user + +List events for the authenticated user + +Using the `call` method: +```php +$client->call('LIST /users/{username}/events', [ + 'username' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->activity()->listEventsForAuthenticatedUserListing( username: 'generated', + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-events-for-the-authenticated-user). + + +### activity/list-org-events-for-authenticated-user List organization events for the authenticated user @@ -17584,7 +21022,7 @@ $client->call('GET /users/{username}/events/orgs/{org}', [ 'username' => 'generated', 'org' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17593,7 +21031,33 @@ Operations method: $client->operations()->activity()->listOrgEventsForAuthenticatedUser( username: 'generated', org: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-organization-events-for-the-authenticated-user). + + +### activity/list-org-events-for-authenticated-user + +List organization events for the authenticated user + +Using the `call` method: +```php +$client->call('LIST /users/{username}/events/orgs/{org}', [ + 'username' => 'generated', + 'org' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->activity()->listOrgEventsForAuthenticatedUserListing( username: 'generated', + org: 'generated', + per_page: 8, + page: 1, ); ``` @@ -17609,7 +21073,7 @@ Using the `call` method: $client->call('GET /users/{username}/events/public', [ 'username' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17617,7 +21081,31 @@ Operations method: ```php $client->operations()->activity()->listPublicEventsForUser( username: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-public-events-for-a-user). + + +### activity/list-public-events-for-user + +List public events for a user + +Using the `call` method: +```php +$client->call('LIST /users/{username}/events/public', [ + 'username' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->activity()->listPublicEventsForUserListing( username: 'generated', + per_page: 8, + page: 1, ); ``` @@ -17633,7 +21121,7 @@ Using the `call` method: $client->call('GET /users/{username}/followers', [ 'username' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17641,7 +21129,31 @@ Operations method: ```php $client->operations()->users()->listFollowersForUser( username: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/users#list-followers-of-a-user). + + +### users/list-followers-for-user + +List followers of a user + +Using the `call` method: +```php +$client->call('LIST /users/{username}/followers', [ + 'username' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->users()->listFollowersForUserListing( username: 'generated', + per_page: 8, + page: 1, ); ``` @@ -17657,7 +21169,7 @@ Using the `call` method: $client->call('GET /users/{username}/following', [ 'username' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17665,7 +21177,31 @@ Operations method: ```php $client->operations()->users()->listFollowingForUser( username: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/users#list-the-people-a-user-follows). + + +### users/list-following-for-user + +List the people a user follows + +Using the `call` method: +```php +$client->call('LIST /users/{username}/following', [ + 'username' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->users()->listFollowingForUserListing( username: 'generated', + per_page: 8, + page: 1, ); ``` @@ -17704,7 +21240,7 @@ $client->call('GET /users/{username}/gists', [ 'username' => 'generated', 'since' => '1970-01-01T00:00:00+00:00', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17713,7 +21249,33 @@ Operations method: $client->operations()->gists()->listForUser( username: 'generated', since: '1970-01-01T00:00:00+00:00', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/gists#list-gists-for-a-user). + + +### gists/list-for-user + +List gists for a user + +Using the `call` method: +```php +$client->call('LIST /users/{username}/gists', [ + 'username' => 'generated', + 'since' => '1970-01-01T00:00:00+00:00', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->gists()->listForUserListing( username: 'generated', + since: '1970-01-01T00:00:00+00:00', + per_page: 8, + page: 1, ); ``` @@ -17729,7 +21291,7 @@ Using the `call` method: $client->call('GET /users/{username}/gpg_keys', [ 'username' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17737,7 +21299,31 @@ Operations method: ```php $client->operations()->users()->listGpgKeysForUser( username: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/users#list-gpg-keys-for-a-user). + + +### users/list-gpg-keys-for-user + +List GPG keys for a user + +Using the `call` method: +```php +$client->call('LIST /users/{username}/gpg_keys', [ + 'username' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->users()->listGpgKeysForUserListing( username: 'generated', + per_page: 8, + page: 1, ); ``` @@ -17797,7 +21383,7 @@ Using the `call` method: $client->call('GET /users/{username}/keys', [ 'username' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17805,7 +21391,31 @@ Operations method: ```php $client->operations()->users()->listPublicKeysForUser( username: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/users#list-public-keys-for-a-user). + + +### users/list-public-keys-for-user + +List public keys for a user + +Using the `call` method: +```php +$client->call('LIST /users/{username}/keys', [ + 'username' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->users()->listPublicKeysForUserListing( username: 'generated', + per_page: 8, + page: 1, ); ``` @@ -17821,7 +21431,7 @@ Using the `call` method: $client->call('GET /users/{username}/orgs', [ 'username' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17829,7 +21439,31 @@ Operations method: ```php $client->operations()->orgs()->listForUser( username: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/orgs#list-organizations-for-a-user). + + +### orgs/list-for-user + +List organizations for a user + +Using the `call` method: +```php +$client->call('LIST /users/{username}/orgs', [ + 'username' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->orgs()->listForUserListing( username: 'generated', + per_page: 8, + page: 1, ); ``` @@ -17846,7 +21480,7 @@ $client->call('GET /users/{username}/projects', [ 'username' => 'generated', 'state' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17855,7 +21489,33 @@ Operations method: $client->operations()->projects()->listForUser( username: 'generated', state: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/projects#list-user-projects). + + +### projects/list-for-user + +List user projects + +Using the `call` method: +```php +$client->call('LIST /users/{username}/projects', [ + 'username' => 'generated', + 'state' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->projects()->listForUserListing( username: 'generated', + state: 'generated', + per_page: 8, + page: 1, ); ``` @@ -17871,7 +21531,7 @@ Using the `call` method: $client->call('GET /users/{username}/received_events', [ 'username' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17879,7 +21539,31 @@ Operations method: ```php $client->operations()->activity()->listReceivedEventsForUser( username: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-events-received-by-the-authenticated-user). + + +### activity/list-received-events-for-user + +List events received by the authenticated user + +Using the `call` method: +```php +$client->call('LIST /users/{username}/received_events', [ + 'username' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->activity()->listReceivedEventsForUserListing( username: 'generated', + per_page: 8, + page: 1, ); ``` @@ -17895,7 +21579,7 @@ Using the `call` method: $client->call('GET /users/{username}/received_events/public', [ 'username' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17903,7 +21587,31 @@ Operations method: ```php $client->operations()->activity()->listReceivedPublicEventsForUser( username: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-public-events-received-by-a-user). + + +### activity/list-received-public-events-for-user + +List public events received by a user + +Using the `call` method: +```php +$client->call('LIST /users/{username}/received_events/public', [ + 'username' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->activity()->listReceivedPublicEventsForUserListing( username: 'generated', + per_page: 8, + page: 1, ); ``` @@ -17922,7 +21630,7 @@ $client->call('GET /users/{username}/repos', [ 'type' => 'generated', 'sort' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -17933,7 +21641,37 @@ $client->operations()->repos()->listForUser( username: 'generated', type: 'generated', sort: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/repos#list-repositories-for-a-user). + + +### repos/list-for-user + +List repositories for a user + +Using the `call` method: +```php +$client->call('LIST /users/{username}/repos', [ + 'username' => 'generated', + 'direction' => 'generated', + 'type' => 'generated', + 'sort' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->repos()->listForUserListing( username: 'generated', + direction: 'generated', + type: 'generated', + sort: 'generated', + per_page: 8, + page: 1, ); ``` @@ -17991,7 +21729,7 @@ $client->call('GET /users/{username}/starred', [ 'sort' => 'generated', 'direction' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -18001,7 +21739,7 @@ $client->operations()->activity()->listReposStarredByUser( username: 'gen sort: 'generated', direction: 'generated', per_page: 8, - page: 4, + page: 1, ); ``` @@ -18017,7 +21755,7 @@ Using the `call` method: $client->call('GET /users/{username}/subscriptions', [ 'username' => 'generated', 'per_page' => 8, - 'page' => 4, + 'page' => 1, ]); ``` @@ -18025,7 +21763,31 @@ Operations method: ```php $client->operations()->activity()->listReposWatchedByUser( username: 'generated', per_page: 8, - page: 4, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-server@3.4/rest/reference/activity#list-repositories-watched-by-a-user). + + +### activity/list-repos-watched-by-user + +List repositories watched by a user + +Using the `call` method: +```php +$client->call('LIST /users/{username}/subscriptions', [ + 'username' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->activity()->listReposWatchedByUserListing( username: 'generated', + per_page: 8, + page: 1, ); ``` diff --git a/clients/GitHubEnterprise-3.4/etc/openapi-client-generator.state b/clients/GitHubEnterprise-3.4/etc/openapi-client-generator.state index 192fe9deea2..9b9050d0199 100644 --- a/clients/GitHubEnterprise-3.4/etc/openapi-client-generator.state +++ b/clients/GitHubEnterprise-3.4/etc/openapi-client-generator.state @@ -20,7 +20,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/ListGlobalWebhooks.php", - "hash": "f6336f194ce9879caf2d4ad903624ab4" + "hash": "3ac9680517c4baa025a82ce1f961f6e9" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListGlobalWebhooksTest.php", @@ -84,7 +84,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/ListPublicKeys.php", - "hash": "905847799d855758c08215aa104247f3" + "hash": "49dbeea923ef1529b0eaec97d333331e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListPublicKeysTest.php", @@ -176,7 +176,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/ListPreReceiveEnvironments.php", - "hash": "06ac9908ab929b5e40b4c8f2e8aec038" + "hash": "2936d75ac1c91fec2a92bbd5e65ec7f4" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListPreReceiveEnvironmentsTest.php", @@ -284,7 +284,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/ListPreReceiveHooks.php", - "hash": "1e62ab04b4bb06222dcaa68ebce834f7" + "hash": "0b49de07d8e8600ee4d57fc641bb82f3" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListPreReceiveHooksTest.php", @@ -340,7 +340,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/ListPersonalAccessTokens.php", - "hash": "f4862cd18a65eed2d853d4b110de3e5d" + "hash": "cdb7dc83b02db4a0c1c94924a43380cd" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListPersonalAccessTokensTest.php", @@ -460,7 +460,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Apps\/ListWebhookDeliveries.php", - "hash": "47366ced71c99a836ec8b614dad32f2e" + "hash": "2242d71ec1d768cb37a7b3a0a1174ee2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Apps\/ListWebhookDeliveriesTest.php", @@ -496,11 +496,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Apps\/ListInstallationRequestsForAuthenticatedApp.php", - "hash": "99996ab1d62b21715bbfb324043c22fc" + "hash": "864f74b9bc182edadbd5ede65b248ed0" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Apps\/ListInstallationRequestsForAuthenticatedAppTest.php", - "hash": "650e698ef7c1f5167f8bc57aaa2a30c0" + "hash": "1dcf647237a7cacba444b7a912065658" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Apps\/ListInstallations.php", @@ -508,7 +508,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Apps\/ListInstallations.php", - "hash": "0b59467ba61b34d93461171d0e95d238" + "hash": "21f69796c923c2af51b971743a22e269" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Apps\/ListInstallationsTest.php", @@ -580,11 +580,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/OauthAuthorizations\/ListGrants.php", - "hash": "8b358162256c69aabce0ed51d20abc24" + "hash": "6de9f18624cf779c2d5f51d0079ad347" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/OauthAuthorizations\/ListGrantsTest.php", - "hash": "831af667c2fb18332b73b368315a6d3e" + "hash": "c3dd2d1b61339ec3a093465ef6583965" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/OauthAuthorizations\/GetGrant.php", @@ -688,11 +688,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/OauthAuthorizations\/ListAuthorizations.php", - "hash": "d46d418833e98038cdc70f42c7659f32" + "hash": "faa637480d0caf59daafff7a842f3080" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/OauthAuthorizations\/ListAuthorizationsTest.php", - "hash": "e54ebd8e6583516e00cd7acf9974db81" + "hash": "78186d077c9cd2329163a1c6e7e14c86" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/OauthAuthorizations\/CreateAuthorization.php", @@ -772,7 +772,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/CodesOfConduct\/GetAllCodesOfConduct.php", - "hash": "7d08f84ba47dd0f23b6e7efea6c55388" + "hash": "f706b14b72fdd126e6e3c2aaffd478f5" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/CodesOfConduct\/GetAllCodesOfConductTest.php", @@ -1008,7 +1008,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListSelectedOrganizationsEnabledGithubActionsEnterpriseTest.php", - "hash": "615fdedb8623c7af2f24602a2814bd56" + "hash": "a7cfc5be8b705219061ed896b68e19fd" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin\/SetSelectedOrganizationsEnabledGithubActionsEnterprise.php", @@ -1064,7 +1064,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListSelfHostedRunnerGroupsForEnterpriseTest.php", - "hash": "815643c9ce72e7e9670d7b6ad24a78b2" + "hash": "01b456d8936eb24bcb012127b5bc7f9d" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin\/CreateSelfHostedRunnerGroupForEnterprise.php", @@ -1120,7 +1120,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListOrgAccessToSelfHostedRunnerGroupInEnterpriseTest.php", - "hash": "6204bd9892a0b482406dac9525780363" + "hash": "11cfd81b465971769a603657bc1baf91" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin\/SetOrgAccessToSelfHostedRunnerGroupInEnterprise.php", @@ -1156,7 +1156,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListSelfHostedRunnersInGroupForEnterpriseTest.php", - "hash": "82624e9d85ab16dab38416bed42fec25" + "hash": "306a979225a7376adbe0b97b1e918a11" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin\/SetSelfHostedRunnersInGroupForEnterprise.php", @@ -1192,7 +1192,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListSelfHostedRunnersForEnterpriseTest.php", - "hash": "125c570b62a5a6a58d4ca585a6404fb1" + "hash": "deb919b3960fada4de0525744c169870" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin\/ListRunnerApplicationsForEnterprise.php", @@ -1200,7 +1200,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/ListRunnerApplicationsForEnterprise.php", - "hash": "4762da7a18f60cd4cd31911bbac2a737" + "hash": "1ef6f63cd0ba5e4c5e1c9dc1ebe7ed94" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListRunnerApplicationsForEnterpriseTest.php", @@ -1316,7 +1316,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/GetAuditLog.php", - "hash": "c79d50c29e6746fbaa003c7184680dc5" + "hash": "11ff98bb42f847da9ee1ee4fb2998098" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/GetAuditLogTest.php", @@ -1328,7 +1328,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/SecretScanning\/ListAlertsForEnterprise.php", - "hash": "8b07a91123bac620d79a885fb7bb4818" + "hash": "f95d1b37412a55e7cc4a28c83b6979da" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/SecretScanning\/ListAlertsForEnterpriseTest.php", @@ -1344,7 +1344,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Billing\/GetGithubAdvancedSecurityBillingGheTest.php", - "hash": "03ca1a39be2006c83f1e527f0eea92e1" + "hash": "db869401ffdfa3eec62546f74e2e6a60" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListPublicEvents.php", @@ -1352,11 +1352,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListPublicEvents.php", - "hash": "f54c0b775ee00d222de4b3f54ceb4c13" + "hash": "b0c4ee38265ad5e3280c9a5ae56fa610" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListPublicEventsTest.php", - "hash": "5b351ed97b854a1ffc2beae012c4b914" + "hash": "5a0ed37b12f5cda6629bd9afbf434760" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/GetFeeds.php", @@ -1376,11 +1376,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Gists\/List_.php", - "hash": "c3de8cd31a596eb417e5fb6f18a60f10" + "hash": "2e93386acf75d9a9781162b41202d156" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Gists\/List_Test.php", - "hash": "524f09473338e8b037927c54ab0967ed" + "hash": "e50d7aaa6b31d9aba657c92eabbfe880" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Gists\/Create.php", @@ -1400,11 +1400,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Gists\/ListPublic.php", - "hash": "3eb03415bb2772f819637724edaa550b" + "hash": "3a2006d5b65356d57967e3247fdab092" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Gists\/ListPublicTest.php", - "hash": "69829c39d078347787b1bec3f72716ab" + "hash": "77d4a9b54f3c1b222468eacd2f65d818" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Gists\/ListStarred.php", @@ -1412,11 +1412,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Gists\/ListStarred.php", - "hash": "0ec191e941e9d35c457c21bc65dd9748" + "hash": "df562eb9869ed9eede0d07a173cf0685" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Gists\/ListStarredTest.php", - "hash": "e5b263b5882a55c7da57aa89dae97308" + "hash": "b014a44ce4144bca312a3cb550220177" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Gists\/Get.php", @@ -1460,11 +1460,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Gists\/ListComments.php", - "hash": "1228c02268a98b64c7d489e69aa5ea93" + "hash": "1793f45a1eb0aee62328b8c81e5b61b2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Gists\/ListCommentsTest.php", - "hash": "ed7cd1c6c9e721fb8b463a004235ea4f" + "hash": "443041faac7064e155ce07107cd106e1" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Gists\/CreateComment.php", @@ -1520,11 +1520,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Gists\/ListCommits.php", - "hash": "4222ddf1455212eabe94009203344133" + "hash": "dc0b9c4d0e2607aefa33539334a9e1c5" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Gists\/ListCommitsTest.php", - "hash": "138bd5444be1d9d42c2c2d12bbd3bd35" + "hash": "1d055f837f6eb4492608bbb2cc0e23f8" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Gists\/ListForks.php", @@ -1532,11 +1532,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Gists\/ListForks.php", - "hash": "9d78d52adff6a41ddccc3025d22a7dc5" + "hash": "88ad821d354d8ac3b8d089a3fcff0aba" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Gists\/ListForksTest.php", - "hash": "ad3b1098ca9df8aec8ac36dd4bd7b1e7" + "hash": "e97bcd9df453a1611ac5f408c82fdbfe" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Gists\/Fork.php", @@ -1604,7 +1604,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Gitignore\/GetAllTemplates.php", - "hash": "c6ad897fdb2c2f9637ef1ce6e812df3e" + "hash": "a07915bd3f26a5fcf0002ccf6f406bdf" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Gitignore\/GetAllTemplatesTest.php", @@ -1632,7 +1632,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Apps\/ListReposAccessibleToInstallationTest.php", - "hash": "f0cc77f964f1d22ec97ee916c787436c" + "hash": "4a5697fc42c0ac046283eb677be841ff" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Apps\/RevokeInstallationAccessToken.php", @@ -1648,11 +1648,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/List_.php", - "hash": "6163fd6d15aa2088a079988ad518fe68" + "hash": "dabeb50c3e0722fcce6d53a4baca8afd" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/List_Test.php", - "hash": "b50cb7ae38f913414cd657907a243526" + "hash": "87fe7e3b94e7593396b18f07a7b91ea6" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Licenses\/GetAllCommonlyUsed.php", @@ -1660,11 +1660,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Licenses\/GetAllCommonlyUsed.php", - "hash": "260a36b724bcfd283b2b8a44c7259a52" + "hash": "245e35460a6d37f443720484c7040f78" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Licenses\/GetAllCommonlyUsedTest.php", - "hash": "0cc9dbffdc6a2153c72721cefe7e28ca" + "hash": "201b17172a49addd434740b953722746" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Licenses\/Get.php", @@ -1720,11 +1720,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListPublicEventsForRepoNetwork.php", - "hash": "492408b7bfb17211303252a2e9db92de" + "hash": "f03147586149b7dc4ef1c9fbe03d9b89" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListPublicEventsForRepoNetworkTest.php", - "hash": "beadf384c7dbdb74a93b65d50b9fef98" + "hash": "1da0546f837479d5b8f62a3154720a8f" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListNotificationsForAuthenticatedUser.php", @@ -1732,11 +1732,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListNotificationsForAuthenticatedUser.php", - "hash": "9a3a098b203736bd7bef17631ff88f58" + "hash": "5e866000abc7221b72e6b197adce1608" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListNotificationsForAuthenticatedUserTest.php", - "hash": "628b0ad05af41b6bdf98fe9ed9c7cbf1" + "hash": "32a13e1c6c03a097c15a3b1ffc78e6c8" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/MarkNotificationsAsRead.php", @@ -1828,7 +1828,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/List_.php", - "hash": "1a3852b48dc96fa6f92a1ecc55934083" + "hash": "cdc6f0bb8e3b50e466a1ea11961e4159" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/List_Test.php", @@ -1864,7 +1864,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/Update.php", - "hash": "3ce7399c6a97953fbbab94d3b8959fc4" + "hash": "92a98b8f58dd1c030fd4ff214396ec2c" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/UpdateTest.php", @@ -1900,7 +1900,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListSelectedRepositoriesEnabledGithubActionsOrganizationTest.php", - "hash": "bec689629dcca1818f9c4625d83c5961" + "hash": "a079ed72b24562613fc786ae3063c93c" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions\/SetSelectedRepositoriesEnabledGithubActionsOrganization.php", @@ -1956,7 +1956,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListSelfHostedRunnerGroupsForOrgTest.php", - "hash": "fc7f20270d90674600f819540a418ef3" + "hash": "1ebd741599109fa52eb1dc45be6dbfd7" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions\/CreateSelfHostedRunnerGroupForOrg.php", @@ -2012,7 +2012,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListRepoAccessToSelfHostedRunnerGroupInOrgTest.php", - "hash": "c5a32d2a6aac8e7dbc3d218b238005de" + "hash": "34f947d61f75cb0e9c97ea864775021c" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions\/SetRepoAccessToSelfHostedRunnerGroupInOrg.php", @@ -2048,7 +2048,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListSelfHostedRunnersInGroupForOrgTest.php", - "hash": "9a843efab0d5584a7321a6ee11dc77e1" + "hash": "8a060b79b9ff81d3cf607573b4b8c9cb" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions\/SetSelfHostedRunnersInGroupForOrg.php", @@ -2084,7 +2084,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListSelfHostedRunnersForOrgTest.php", - "hash": "dc94d5dbbb6dca4e7526a0c8eeeb4fba" + "hash": "3233df6d5f4593e71ebbe1bf83e877c2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions\/ListRunnerApplicationsForOrg.php", @@ -2092,7 +2092,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Actions\/ListRunnerApplicationsForOrg.php", - "hash": "cf37ba2076fdf778ece161990dbea059" + "hash": "3f864ac7e65aeccb2c5f6963aeab95e9" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListRunnerApplicationsForOrgTest.php", @@ -2212,7 +2212,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListOrgSecretsTest.php", - "hash": "895504c1a325cc9a2532337d22de1513" + "hash": "417c675184ca57d613bf0d6376adfe2e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions\/GetOrgPublicKey.php", @@ -2268,7 +2268,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListSelectedReposForOrgSecretTest.php", - "hash": "51e4a86484d3893880f1c52f2daa7700" + "hash": "4e5603b6cdbe721a9731ff37ed48fb7e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions\/SetSelectedReposForOrgSecret.php", @@ -2300,7 +2300,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/GetAuditLog.php", - "hash": "93f8060b90b1ca7c81b03cdbbd8f8fbe" + "hash": "5a3e883a3a75813bf0330c41b7c645f8" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/GetAuditLogTest.php", @@ -2316,7 +2316,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Dependabot\/ListOrgSecretsTest.php", - "hash": "abda0742a3a46477414260c7e48f1d62" + "hash": "934d482e17bc14c4bc22bde4399e2a0b" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Dependabot\/GetOrgPublicKey.php", @@ -2372,7 +2372,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Dependabot\/ListSelectedReposForOrgSecretTest.php", - "hash": "41caf9cacb9286d01629d644ac8ed24a" + "hash": "5c42b0adda385c04f2850d7b86b22de4" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Dependabot\/SetSelectedReposForOrgSecret.php", @@ -2404,7 +2404,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListPublicOrgEvents.php", - "hash": "b71fb1246768e52026a2a28663b41637" + "hash": "a6bdae5121725b1037fd9dab914e2c2e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListPublicOrgEventsTest.php", @@ -2416,11 +2416,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/ListWebhooks.php", - "hash": "9033eb2f1cdd8b2d9046cf4fd47dc90c" + "hash": "522485fe2afadc07a74381cd0be32488" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListWebhooksTest.php", - "hash": "29ad2ed0fe56d8146f558958771c9542" + "hash": "68939392a19dbb9e2ec5b219298816be" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Orgs\/CreateWebhook.php", @@ -2500,7 +2500,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/ListWebhookDeliveries.php", - "hash": "e409e5c8780e7948fa0c04d3595328f1" + "hash": "4ebb15675ffe804034bf9bb67a4a40e8" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListWebhookDeliveriesTest.php", @@ -2564,7 +2564,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListAppInstallationsTest.php", - "hash": "c1a0cb0d466520a00926d94ff511dce7" + "hash": "81caa3053cb10ea9e9ac713ae3611278" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListForOrg.php", @@ -2572,11 +2572,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListForOrg.php", - "hash": "b751d94d72e6992905f6440e21c93842" + "hash": "a3406cb2089377b9df643329b27638b9" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListForOrgTest.php", - "hash": "09fef820fd7235191c92e8c13fb5a963" + "hash": "8432b9bcb2c198efbe754bd222bb972f" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Orgs\/ListMembers.php", @@ -2584,11 +2584,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/ListMembers.php", - "hash": "708d8f21c687210c0894fea5047162c4" + "hash": "5137d554631ce2da38d6524081dc55e4" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListMembersTest.php", - "hash": "6c2223867e654dc505ff3000a38a790a" + "hash": "eee961c054c8dee55ab6c9152b6b7d2e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Orgs\/CheckMembershipForUser.php", @@ -2652,7 +2652,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Migrations\/ListForOrg.php", - "hash": "880967ea712a59f8b6b1c9f7a5855a6b" + "hash": "aa86017374831c24f68b6c0a629678af" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Migrations\/ListForOrgTest.php", @@ -2736,11 +2736,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Migrations\/ListReposForOrg.php", - "hash": "5d19b544711d36f5af7fc3330fd2772b" + "hash": "c84ffb9d187920438786ad4e33ace792" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Migrations\/ListReposForOrgTest.php", - "hash": "3a831e16f7ceeb3a0260a30df1ead48f" + "hash": "4d0c3120a64b029b75724227927bdf63" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Orgs\/ListOutsideCollaborators.php", @@ -2748,7 +2748,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/ListOutsideCollaborators.php", - "hash": "7d44e53d9cefabb1c8624f10518dbd93" + "hash": "a8fb62bac705a2fc427347e9e91304e8" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListOutsideCollaboratorsTest.php", @@ -2784,7 +2784,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/ListPreReceiveHooksForOrg.php", - "hash": "aeda9b16f3cf17e7158036597cd9f768" + "hash": "cee731618031152156d2cefccffce1cc" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListPreReceiveHooksForOrgTest.php", @@ -2832,11 +2832,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Projects\/ListForOrg.php", - "hash": "838952e5b508ccdd669cf0f0e475b5b2" + "hash": "5dd89659d4d423dddb453de239e239a0" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Projects\/ListForOrgTest.php", - "hash": "3c3773cfb3500e3360ca1ff26e1af65a" + "hash": "0372457ab3d6bd51c2ef4602c369f382" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Projects\/CreateForOrg.php", @@ -2856,7 +2856,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/ListPublicMembers.php", - "hash": "ceddc5a9e152aa84b08ed39f02e86c8f" + "hash": "f840ceb128c166f2fd3557408f2e37b6" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListPublicMembersTest.php", @@ -2896,7 +2896,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListForOrg.php", - "hash": "b39654c43bcbb05e9f98b0d3f1b2f843" + "hash": "51af383255ffb6ddd89ee85419a8d321" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListForOrgTest.php", @@ -2920,11 +2920,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/SecretScanning\/ListAlertsForOrg.php", - "hash": "60893cab463c2603189fb6258f10d786" + "hash": "baf1fa409b292aa2ad99451d950d4d02" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/SecretScanning\/ListAlertsForOrgTest.php", - "hash": "b314c7fea79a656bc7be874a121cffbd" + "hash": "b5e5669bbd250ca36d5dce2c07d974e0" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Billing\/GetGithubAdvancedSecurityBillingOrg.php", @@ -2936,7 +2936,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Billing\/GetGithubAdvancedSecurityBillingOrgTest.php", - "hash": "5ccbd0ace3e781c27cb6e4be62627e17" + "hash": "d1f49ff69e42dd3ff6c830eeb2c7ca17" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/List_.php", @@ -2944,11 +2944,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/List_.php", - "hash": "e88f5ce2579e7848c02ac7b5004258ae" + "hash": "2bf3e3541f08fed22ff8304343481e11" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/List_Test.php", - "hash": "6ce6b504364f1bac50e3191011667b23" + "hash": "e650d3c85c29db26b59dceb625683af2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/Create.php", @@ -3000,7 +3000,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListDiscussionsInOrg.php", - "hash": "d22e3c92850fc6870d3bb95cdced93c5" + "hash": "3f446079b9fe79a820f319da3259fd92" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListDiscussionsInOrgTest.php", @@ -3056,7 +3056,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListDiscussionCommentsInOrg.php", - "hash": "9d4ac2ad72addf123ea074f20b3e41ec" + "hash": "f732845cb44ec7dab7e508d7765d46b7" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListDiscussionCommentsInOrgTest.php", @@ -3112,7 +3112,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForTeamDiscussionCommentInOrg.php", - "hash": "7dd43196c5a6842908d766db7c9dbcf1" + "hash": "fc721cbd044d3853a803debe271d1e61" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForTeamDiscussionCommentInOrgTest.php", @@ -3144,7 +3144,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForTeamDiscussionInOrg.php", - "hash": "35e54aa2e3ce5ad8535a6e35914660fe" + "hash": "70090b2b8a3c60c914a1013fe9f92e50" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForTeamDiscussionInOrgTest.php", @@ -3176,7 +3176,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListMembersInOrg.php", - "hash": "ca670c4d56d979b04d299a6523ea4cc4" + "hash": "4f2547c22d75eae2102ccf6758d67df9" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListMembersInOrgTest.php", @@ -3220,7 +3220,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListProjectsInOrg.php", - "hash": "b79ff24f19ccc1296df761eaa10e2016" + "hash": "12cb40326e1b24cf72d5b9d84d12fa5d" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListProjectsInOrgTest.php", @@ -3264,7 +3264,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListReposInOrg.php", - "hash": "5eb47ef16b7b0bf5193adc01ed6a1b00" + "hash": "14b284bd7352dfd4ce09fc696629e662" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListReposInOrgTest.php", @@ -3304,7 +3304,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListChildInOrg.php", - "hash": "5c8443d19ed34e76d2779e4003d17ba1" + "hash": "ad154f60ff132c56e18fbf5776cd1d72" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListChildInOrgTest.php", @@ -3400,11 +3400,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Projects\/ListCards.php", - "hash": "adcabbd57007a83a517a5fae9c906d55" + "hash": "cb57a4a865e216003d4234db039087e0" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Projects\/ListCardsTest.php", - "hash": "a6299e440b60c6336448091b0146ffe5" + "hash": "dd88aa9c39f9cf07c5de12d45c26edad" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Projects\/CreateCard.php", @@ -3472,11 +3472,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Projects\/ListCollaborators.php", - "hash": "347625a4d2e82cb3dd8d164619384156" + "hash": "d3a0d997a335b5055e7bd37ecbccfb23" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Projects\/ListCollaboratorsTest.php", - "hash": "4e64dc60423658f273b48f779530862e" + "hash": "1f895cdf01c4aa93b5cf3f12c99dd74f" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Projects\/AddCollaborator.php", @@ -3520,11 +3520,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Projects\/ListColumns.php", - "hash": "8387b5f9806b4cb85083bf07ab815934" + "hash": "eaeeec58d68e2eeb745235712501d5d4" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Projects\/ListColumnsTest.php", - "hash": "e400de02ae19af86978eac0e5e80cc0e" + "hash": "a183ea7a99e3248f2b130912b16dfb42" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Projects\/CreateColumn.php", @@ -3608,7 +3608,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListArtifactsForRepoTest.php", - "hash": "f49dd0451462231974ab475b3566bc54" + "hash": "ed035b3bd8635d73afdf075552dffc71" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions\/GetArtifact.php", @@ -3732,7 +3732,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListSelfHostedRunnersForRepoTest.php", - "hash": "ca11a4db3857df5bf11ae6bd7caef914" + "hash": "ddeb978f3609d0526309b29a8b21facd" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions\/ListRunnerApplicationsForRepo.php", @@ -3740,7 +3740,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Actions\/ListRunnerApplicationsForRepo.php", - "hash": "96f85b515ec7c3ec9b27de35d6dbbb07" + "hash": "57730b20145be9678298d7e279024923" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListRunnerApplicationsForRepoTest.php", @@ -3860,7 +3860,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListWorkflowRunsForRepoTest.php", - "hash": "246d79cee17a16e9af16e0413bba90fa" + "hash": "7cbee8d55910d225bfeaffeef7c0bfd3" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions\/GetWorkflowRun.php", @@ -3888,7 +3888,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Actions\/GetReviewsForRun.php", - "hash": "ea25bfdf9fb57ba743df119c437d88dc" + "hash": "c25f8f1f9a859843128cf1c1cd38ef65" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/GetReviewsForRunTest.php", @@ -3904,7 +3904,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListWorkflowRunArtifactsTest.php", - "hash": "4acb0ec9ae38d82d9eb8a17d43e26f37" + "hash": "1d158aad50a2e91513ad585d69cefc41" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions\/CancelWorkflowRun.php", @@ -3928,7 +3928,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListJobsForWorkflowRunTest.php", - "hash": "e9fe6d6fc27a2fed194235273940b911" + "hash": "7f8bae01df4114aa1afa901e770b6234" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions\/DownloadWorkflowRunLogs.php", @@ -3964,7 +3964,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Actions\/GetPendingDeploymentsForRun.php", - "hash": "84f327a5f8a6f9c63e3e70814fec1c22" + "hash": "d33cce6ada750eb99f53b0a5deb157be" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/GetPendingDeploymentsForRunTest.php", @@ -3976,7 +3976,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Actions\/ReviewPendingDeploymentsForRun.php", - "hash": "21885c7af369e72d7c5022db37b2bd12" + "hash": "ab8bf6f171c9dca08cba68164383a4f1" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ReviewPendingDeploymentsForRunTest.php", @@ -4004,7 +4004,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListRepoSecretsTest.php", - "hash": "a75f98d5b0aec2db926158f8f0da975d" + "hash": "89c072adf376571b5a1ea132e8a2a0b2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions\/GetRepoPublicKey.php", @@ -4060,7 +4060,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListRepoWorkflowsTest.php", - "hash": "992fc26bbc73901478500d9e2d701965" + "hash": "16bc1423b892bd25bc9ddb6ad3474fc7" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions\/GetWorkflow.php", @@ -4108,7 +4108,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListWorkflowRunsTest.php", - "hash": "9ad1c33f581a47c2d0d0b9f03e192d15" + "hash": "e347de8ec44e991b981a976faa581b28" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListAssignees.php", @@ -4116,11 +4116,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListAssignees.php", - "hash": "be4dcd0c653513dbd7bfb22683f0b8d9" + "hash": "536b6fcfec30b7a6bb3d3777fba8b122" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListAssigneesTest.php", - "hash": "f2039c2e86da4b9743ee6271779b4559" + "hash": "646fbdbe993a5f5372c6e11d8b9f5db3" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/CheckUserCanBeAssigned.php", @@ -4140,7 +4140,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListAutolinks.php", - "hash": "30c12bb4dcc0ffb67097a5280e19cf94" + "hash": "e99ddd6bb48621d17a522e8f31127034" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListAutolinksTest.php", @@ -4188,11 +4188,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListBranches.php", - "hash": "7619db3e0cd310e69767dc8ad2b8e34d" + "hash": "c4337a76dc545b4fca43d97389ed4e66" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListBranchesTest.php", - "hash": "f4e3f6c09dd8fdf44d156d8b14ae0deb" + "hash": "0a9911b05b15bcf1eca6fb28c036538a" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/GetBranch.php", @@ -4388,7 +4388,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/GetAllStatusCheckContexts.php", - "hash": "afa0e39dfe9e37b2eab4d1312509b0dc" + "hash": "49e87a969c71cdad5deb2710d6b93048" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/GetAllStatusCheckContextsTest.php", @@ -4400,7 +4400,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/SetStatusCheckContexts.php", - "hash": "9ee00a645958447b7f05a8e9b60876a1" + "hash": "5909eae5d3e51487f3dc545030bcbd11" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/SetStatusCheckContextsTest.php", @@ -4412,7 +4412,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/AddStatusCheckContexts.php", - "hash": "3292f5e41f2cfb6284c5fe3d8ac1490b" + "hash": "8836663e21b939faa1c4361b9cc3cecc" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/AddStatusCheckContextsTest.php", @@ -4424,7 +4424,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/RemoveStatusCheckContexts.php", - "hash": "0069302e72e69ae5134c3cdf87103f00" + "hash": "f4189fbae2b315535d594003542238e4" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/RemoveStatusCheckContextsTest.php", @@ -4456,7 +4456,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/GetAppsWithAccessToProtectedBranch.php", - "hash": "63e8171bc5ed75aea4e9c90c5b59ba2b" + "hash": "532073d2f19bc279f6568a56e7456636" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/GetAppsWithAccessToProtectedBranchTest.php", @@ -4468,7 +4468,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/SetAppAccessRestrictions.php", - "hash": "91f6abe673138f7546cd2992f1c642f3" + "hash": "3122d3e746c940944821f67f488bfdd6" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/SetAppAccessRestrictionsTest.php", @@ -4480,7 +4480,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/AddAppAccessRestrictions.php", - "hash": "a54f283aab09b075855d0c73db559fc6" + "hash": "10ee5a573f510079a301c4bf06c51f9b" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/AddAppAccessRestrictionsTest.php", @@ -4492,7 +4492,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/RemoveAppAccessRestrictions.php", - "hash": "9e96a750143676268ecaa06ee25dc768" + "hash": "bb30321f80ace83a1fd4bcb20eaa9556" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/RemoveAppAccessRestrictionsTest.php", @@ -4504,7 +4504,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/GetTeamsWithAccessToProtectedBranch.php", - "hash": "9cd450adeabb67f263bd4c76a419a438" + "hash": "5cb4d10db917d0f6270599c1473bf31b" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/GetTeamsWithAccessToProtectedBranchTest.php", @@ -4516,7 +4516,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/SetTeamAccessRestrictions.php", - "hash": "fca0f64e5b63a3b64b944eb2bd42fcd0" + "hash": "db01eb6d89606c218042ce33c0e0e473" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/SetTeamAccessRestrictionsTest.php", @@ -4528,7 +4528,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/AddTeamAccessRestrictions.php", - "hash": "74c2d1780718ba1e533cdad07a4d324f" + "hash": "5d6a21a78fd7929a1d6417578140dd95" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/AddTeamAccessRestrictionsTest.php", @@ -4540,7 +4540,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/RemoveTeamAccessRestrictions.php", - "hash": "75b09074ab07e0c65dee1fbba3385b41" + "hash": "43fbda39c88d826b13da34eeb6b026ab" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/RemoveTeamAccessRestrictionsTest.php", @@ -4552,7 +4552,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/GetUsersWithAccessToProtectedBranch.php", - "hash": "35e56ea6e36f170b7a1dbd2847964fcc" + "hash": "d4589806db5463cd016f1c56a18026a2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/GetUsersWithAccessToProtectedBranchTest.php", @@ -4564,7 +4564,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/SetUserAccessRestrictions.php", - "hash": "ac859935c0a85cb91a8d6c9114a1d934" + "hash": "72a5933ef5d2fa199e7e286a95dd621e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/SetUserAccessRestrictionsTest.php", @@ -4576,7 +4576,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/AddUserAccessRestrictions.php", - "hash": "a6b113682b5568d21224b17dea8ec391" + "hash": "21fd681b0f6176bfd5fda9bd667e374f" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/AddUserAccessRestrictionsTest.php", @@ -4588,7 +4588,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/RemoveUserAccessRestrictions.php", - "hash": "810cb1c989c4cd778b0874bf980af075" + "hash": "b66a8a8bcdc90cdfcacba291a7c6bb45" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/RemoveUserAccessRestrictionsTest.php", @@ -4648,7 +4648,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Checks\/ListAnnotations.php", - "hash": "ffb668d85cbe7ea952a41584b0529877" + "hash": "2e4a30a61183715c69fe8adb33eec39e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Checks\/ListAnnotationsTest.php", @@ -4712,7 +4712,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Checks\/ListForSuiteTest.php", - "hash": "9f8396aadf1f6aff81aeda43768328bb" + "hash": "4c81dcf5ba035f95ad25024ce5358fcf" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Checks\/RerequestSuite.php", @@ -4732,11 +4732,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/CodeScanning\/ListAlertsForRepo.php", - "hash": "b711b83a615f9782ac7f9ec542ed8e6a" + "hash": "2765ec5f9269ae56223a3e81ddf9fb58" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/CodeScanning\/ListAlertsForRepoTest.php", - "hash": "4c71f1897c0e1eb0bccbcaed59346253" + "hash": "83e42ce89a083563f40e674757317320" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/CodeScanning\/GetAlert.php", @@ -4768,11 +4768,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/CodeScanning\/ListAlertInstances.php", - "hash": "4e5a4c4d4f07bc9c1055583972030606" + "hash": "88814dc9cd1e22b0bc1afdddec65167d" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/CodeScanning\/ListAlertInstancesTest.php", - "hash": "a2fea8c22e753e8ea93878259bde8e8d" + "hash": "bf82399e5bcd97701c329d9c8f4f67ff" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/CodeScanning\/ListRecentAnalyses.php", @@ -4780,11 +4780,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/CodeScanning\/ListRecentAnalyses.php", - "hash": "1c2243aed288707c7168d2c1f589876f" + "hash": "c9f5978a3737c00047d0e5990ef4f203" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/CodeScanning\/ListRecentAnalysesTest.php", - "hash": "5b494a581f155195eafa3b84253c184a" + "hash": "1ab5a4db88f3a04f6babb49229fa0851" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/CodeScanning\/GetAnalysis.php", @@ -4840,11 +4840,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListCollaborators.php", - "hash": "25dcb3f41fa76d9c40c2c920c78c1616" + "hash": "ee1db658cf42b8c3becbc9e3b3545840" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListCollaboratorsTest.php", - "hash": "63914d6e6339e1c5ed7b8356c0dbc817" + "hash": "6a771ded41f89b53c8d3d132b7c67946" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/CheckCollaborator.php", @@ -4892,7 +4892,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListCommitCommentsForRepo.php", - "hash": "5439bcb819847d36cb5fba1c23c64673" + "hash": "9b8f469dda5b0cb71757ed4162ffba5e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListCommitCommentsForRepoTest.php", @@ -4940,11 +4940,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForCommitComment.php", - "hash": "b55ccb55b19e638cca8cc0bd1a5daca9" + "hash": "61e64a5a993ce784b9009c350c844a8b" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForCommitCommentTest.php", - "hash": "51baba703d828ef944ebcb5efef27c6d" + "hash": "7af0dc5ae9e202b91892c6bbf91ae645" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Reactions\/CreateForCommitComment.php", @@ -4972,11 +4972,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListCommits.php", - "hash": "e96dd75ac060814be3efd1e62c51ddca" + "hash": "02ae30b585c8e44102f9ed7e67caeedc" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListCommitsTest.php", - "hash": "0a8a19f98f484622cd3d6bf9a9a06782" + "hash": "7185f71ff4325a3fcefdc2c1f04fe334" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListBranchesForHeadCommit.php", @@ -4984,7 +4984,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListBranchesForHeadCommit.php", - "hash": "a4974db1e7324e4707e8754d8329bf33" + "hash": "fb985a196ffab2c42ebb16b6639872ed" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListBranchesForHeadCommitTest.php", @@ -4996,7 +4996,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListCommentsForCommit.php", - "hash": "b8707c6ec0236a8ec1ef4fd75244a708" + "hash": "f9c6de2811ada6f41df43e94e08e5be0" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListCommentsForCommitTest.php", @@ -5020,7 +5020,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListPullRequestsAssociatedWithCommit.php", - "hash": "0e96d5b16711bb22979fb209371f854a" + "hash": "bcd0f6292969c0c5a7cb3172fb487c79" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListPullRequestsAssociatedWithCommitTest.php", @@ -5036,7 +5036,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/GetCommitTest.php", - "hash": "80c9f6c82d186653cbcd3ca9599a0b7c" + "hash": "0c2a2f7a897a79c4329109a94d6158a0" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Checks\/ListForRef.php", @@ -5048,7 +5048,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Checks\/ListForRefTest.php", - "hash": "abcfc6478aac93652be40a9e6191798e" + "hash": "7fe75cc396da206596a8dfff6279adc6" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Checks\/ListSuitesForRef.php", @@ -5060,7 +5060,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Checks\/ListSuitesForRefTest.php", - "hash": "b75e701980cf17743820ac9fec9ed15a" + "hash": "d27d61673b2157a848d228d420b3d6e2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/GetCombinedStatusForRef.php", @@ -5072,7 +5072,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/GetCombinedStatusForRefTest.php", - "hash": "45cd92f8e06d6c7628616562403b8247" + "hash": "fb99aa21c419c60f8332b012a29fc6f4" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListCommitStatusesForRef.php", @@ -5080,11 +5080,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListCommitStatusesForRef.php", - "hash": "f1cc39c0f5adfe41f82d135eeb36a1ec" + "hash": "1f6190dcc8df86f3a31fb3bfa21371db" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListCommitStatusesForRefTest.php", - "hash": "60120ff1ed364842508ac9d8a810d220" + "hash": "194a559fcbfda0ff0c61b2ed4c2f07a0" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/CompareCommits.php", @@ -5096,7 +5096,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/CompareCommitsTest.php", - "hash": "e17e395211a7b686dc071581a7aecb63" + "hash": "5c675f8ca672b9adab5c6f8a5d9db1ba" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/GetContent.php", @@ -5140,11 +5140,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListContributors.php", - "hash": "de17e04e6b35ffc513e03eff2b335df4" + "hash": "8463351e924e8993e7b6afbf4603e762" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListContributorsTest.php", - "hash": "b51f17beaa901ebe5af417351e15e2c9" + "hash": "2fce3ce444d94d7b09eecbb1b1aa81ce" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Dependabot\/ListRepoSecrets.php", @@ -5156,7 +5156,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Dependabot\/ListRepoSecretsTest.php", - "hash": "b0ef6914d4d71d95d3a4dae8733b9b72" + "hash": "27fe409dda43d8630168a7b062a76bcd" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Dependabot\/GetRepoPublicKey.php", @@ -5208,7 +5208,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListDeployments.php", - "hash": "4396f2a164e049f9c4efeb0502a9871c" + "hash": "5e0f41f5edb92a12a394e050a5e4c78b" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListDeploymentsTest.php", @@ -5256,11 +5256,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListDeploymentStatuses.php", - "hash": "998f933b4f591562dcc5686fbe30f681" + "hash": "f15bf86dd4ce147d447197d3361f9761" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListDeploymentStatusesTest.php", - "hash": "9c6b77894d4b11471c8af558f1f250af" + "hash": "0dd02b08644c0e62216ca428f6db0dc2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/CreateDeploymentStatus.php", @@ -5308,7 +5308,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/GetAllEnvironmentsTest.php", - "hash": "b162eaad700de6e4a62850cb72a5d832" + "hash": "b69cf74160e429db2c600591a8ae5f4d" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/GetEnvironment.php", @@ -5352,7 +5352,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListDeploymentBranchPoliciesTest.php", - "hash": "104c84277da4e5347e6df59a1a9cf685" + "hash": "a68ec6d8cbf2f5958de48be208608be1" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/CreateDeploymentBranchPolicy.php", @@ -5404,7 +5404,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListRepoEvents.php", - "hash": "99692440599241a1762dbff4df589f8d" + "hash": "0a0336b0b25888c5cc7b6ef8a89df973" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListRepoEventsTest.php", @@ -5416,11 +5416,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListForks.php", - "hash": "6276ea13854b7dfcda0e7d6e16d445d0" + "hash": "28702497a463e94192f2f3c1a1fe49b9" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListForksTest.php", - "hash": "5c30afd18444e58964069c865f82af44" + "hash": "080ad7ffbab5f87befbfc9f7d953cf51" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/CreateFork.php", @@ -5488,7 +5488,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Git\/ListMatchingRefs.php", - "hash": "7b76311a3f32fe014c8b0caae378181e" + "hash": "8baafecfa7fdf0527f4ecc142b69bc7a" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Git\/ListMatchingRefsTest.php", @@ -5596,11 +5596,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListWebhooks.php", - "hash": "ce5b356c718d25b4a56238f6e1e03c1f" + "hash": "34bb937207cf8cddb37e84a1df9b59ff" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListWebhooksTest.php", - "hash": "395cd6afba7c1d77cdbf3940d554f559" + "hash": "6d9f09ea914cd6ba42f7cb1dafb89939" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/CreateWebhook.php", @@ -5680,7 +5680,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListWebhookDeliveries.php", - "hash": "72f21748248546457c191ee20e5c3298" + "hash": "84fac480aa072a267e157693f46203fb" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListWebhookDeliveriesTest.php", @@ -5752,7 +5752,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListInvitations.php", - "hash": "a9d478e383287475b983bb5c528f5f8c" + "hash": "0796732017f86982ed3dc423266ced21" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListInvitationsTest.php", @@ -5784,11 +5784,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListForRepo.php", - "hash": "f037af87dfaacc939e9143e2ac36d293" + "hash": "312b3c755558412e3c08df1abb385b5a" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListForRepoTest.php", - "hash": "85bb666bf75ce41d884b6551ba8c35e0" + "hash": "63b188fbccc410f737028b783177f859" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/Create.php", @@ -5808,11 +5808,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListCommentsForRepo.php", - "hash": "25284b22afa1d5863cd8d2edf1a35762" + "hash": "809a81a1617e232eb54ffcd124e15e39" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListCommentsForRepoTest.php", - "hash": "b8c3865c49c13a772a9b25e8461b522e" + "hash": "9728bbd406916a181689a6264e23d514" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/GetComment.php", @@ -5852,11 +5852,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForIssueComment.php", - "hash": "5a9c1e87c62d01170e9d6f975961f618" + "hash": "3243549cea3ef781ffd841ad8c5f8965" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForIssueCommentTest.php", - "hash": "5de33ecaf297e4e51fdb79e7dce621f1" + "hash": "f7b8d02773969bc73e853ef71902c6ed" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Reactions\/CreateForIssueComment.php", @@ -5884,11 +5884,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListEventsForRepo.php", - "hash": "59b28f8d76ff7f54309b0d88a270acc1" + "hash": "5248c0c0ecc64df898c614b13386bd01" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListEventsForRepoTest.php", - "hash": "b9ff967606516622a23946cf788704b1" + "hash": "7100138d0d3646bccf01b5f13b5567eb" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/GetEvent.php", @@ -5968,11 +5968,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListComments.php", - "hash": "f606d696d26323f758a7257e5d7d5612" + "hash": "2a0247542a7dad11423e826f0a2c8453" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListCommentsTest.php", - "hash": "4b66bd95289e3beacb1bfffc9f1e937c" + "hash": "c817ffed3456aa5d688af980809e9f70" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/CreateComment.php", @@ -5992,11 +5992,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListEvents.php", - "hash": "c88166ef6a80548ddaf8830ca92e210f" + "hash": "3f7b32e3be6a6ff08d159c0b3ee5b32a" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListEventsTest.php", - "hash": "164616baffa38bf2ac6c677d7d8c2dc0" + "hash": "88c6f7a950089bca8eaf1bedaf93097f" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListLabelsOnIssue.php", @@ -6004,11 +6004,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListLabelsOnIssue.php", - "hash": "8a48ed63dfd49375cf0ba75f41ff685d" + "hash": "56f38238e7cc5bc376e760ff27076cb2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListLabelsOnIssueTest.php", - "hash": "e57cb2c4b47c4087a124798be6e24ae1" + "hash": "9b3c816e93c356181232bf0057d106e6" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/SetLabels.php", @@ -6016,7 +6016,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/SetLabels.php", - "hash": "84a3d047a8f1765f67a3dbf22f5778ac" + "hash": "779536cbf1188f47f95d4a2202206eb4" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/SetLabelsTest.php", @@ -6028,7 +6028,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/AddLabels.php", - "hash": "e15013650fdca7cfb7c92e4de8762ed2" + "hash": "5093c42450266f47c0c98c7d50a70c63" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/AddLabelsTest.php", @@ -6052,7 +6052,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/RemoveLabel.php", - "hash": "23adff86e970d8c585f7c726b66fc834" + "hash": "8020a288c009b8967c4c1483b5c86c79" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/RemoveLabelTest.php", @@ -6088,11 +6088,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForIssue.php", - "hash": "224d911677045a324016a175b3448aae" + "hash": "a28c45dae4b51f23690933d0f26e8068" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForIssueTest.php", - "hash": "d0d19eb6af10362463be144a7c197b21" + "hash": "9428b9e69517d5f8c9db2c8d71a0e1aa" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Reactions\/CreateForIssue.php", @@ -6120,11 +6120,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListEventsForTimeline.php", - "hash": "8c54d4ff46e3c4c1503f5f2e507ecb02" + "hash": "82c0f70f83f814dc710394cb2f832dcf" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListEventsForTimelineTest.php", - "hash": "b749d86b0b70d3c25aed5d7341fcd5f3" + "hash": "e32569f32c8949466d5225548ca1999f" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListDeployKeys.php", @@ -6132,7 +6132,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListDeployKeys.php", - "hash": "92d2f4231d060c50b05f31b2dd636251" + "hash": "89cf4ae5c8326fa4e385da8f6eda4faa" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListDeployKeysTest.php", @@ -6176,11 +6176,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListLabelsForRepo.php", - "hash": "07cdc6fa3c28636660d58c4acd1ee79b" + "hash": "1640d56c90ce17e2512bf6a796d72aa6" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListLabelsForRepoTest.php", - "hash": "4a628b404889a1e99a4666152cc40851" + "hash": "24f4a97830fb9c378dba7b35f918e5e3" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/CreateLabel.php", @@ -6300,11 +6300,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListMilestones.php", - "hash": "515b302022e2e1803b73a6f7b2c32dfc" + "hash": "e5a73ef67b63f1648b12ecdeb5db9506" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListMilestonesTest.php", - "hash": "a27f6bc44e92509210806ac9cb5ea39e" + "hash": "e71389ce0e83533b5da347271bcf65e6" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/CreateMilestone.php", @@ -6360,7 +6360,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListLabelsForMilestone.php", - "hash": "ea9964eaba88eb4330e1e85f470f47e0" + "hash": "adbeb5fd278cfce29f9278793c4bbb3d" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListLabelsForMilestoneTest.php", @@ -6372,7 +6372,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListRepoNotificationsForAuthenticatedUser.php", - "hash": "9a750cb2a0b715d5c73908539a3be67e" + "hash": "09edbb6b672c8366b26793612f86705f" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListRepoNotificationsForAuthenticatedUserTest.php", @@ -6444,7 +6444,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListPagesBuilds.php", - "hash": "478f9d7dc4af281ed17fdc7256bac61a" + "hash": "57daa16671ca8945f5ac823d7c752672" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListPagesBuildsTest.php", @@ -6492,7 +6492,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/ListPreReceiveHooksForRepo.php", - "hash": "4fe337fe1bb03c2a7d34f6c52dccdfe9" + "hash": "75d7e9408c3cc8a4cb77f10093e0363e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListPreReceiveHooksForRepoTest.php", @@ -6540,11 +6540,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Projects\/ListForRepo.php", - "hash": "d65062cfc4608acbf003fe5bf9fdb1f4" + "hash": "8e5de89d0d4b11496cab4ddb1511bdbc" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Projects\/ListForRepoTest.php", - "hash": "aab97844e009c402615e839106d3588a" + "hash": "1384c84f11a87ba339111a4e0ddfb0ea" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Projects\/CreateForRepo.php", @@ -6564,11 +6564,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Pulls\/List_.php", - "hash": "b0ff48efbe53e498cee1ef716e2acc73" + "hash": "9f1683cfe0b0a20ba4ad6c1824600509" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Pulls\/List_Test.php", - "hash": "39cf4f05a6c81a7b16df8f38ee011175" + "hash": "3f79be42247f54eb708a0e98f4d40a88" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Pulls\/Create.php", @@ -6588,7 +6588,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Pulls\/ListReviewCommentsForRepo.php", - "hash": "efbf18b251c08ca5ce825c2779c6567f" + "hash": "756bda82906c8a6cd07fcb862b55a2b8" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Pulls\/ListReviewCommentsForRepoTest.php", @@ -6636,11 +6636,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForPullRequestReviewComment.php", - "hash": "c18ab1b1edc474552c140b9ed6231764" + "hash": "6ad9121fcee78f1fd52d51f1ae219e00" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForPullRequestReviewCommentTest.php", - "hash": "3c3e462e89ed677cf92eab2ad4796138" + "hash": "f402a675ff6c29089031b93eb5f29ae2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Reactions\/CreateForPullRequestReviewComment.php", @@ -6692,7 +6692,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Pulls\/ListReviewComments.php", - "hash": "c9de0757100b9f6282fa4b147630a1ff" + "hash": "98dabce352e582e507dff255f0342048" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Pulls\/ListReviewCommentsTest.php", @@ -6728,7 +6728,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Pulls\/ListCommits.php", - "hash": "1590934fe186f8b9f18482ef2ce79e5c" + "hash": "d2580479e73ee848db58e4e083a2b1de" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Pulls\/ListCommitsTest.php", @@ -6740,11 +6740,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Pulls\/ListFiles.php", - "hash": "9b8578e02d9241037c21a07b0d5cdee4" + "hash": "5ef80f6cc19e63d602132d00f07ae26b" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Pulls\/ListFilesTest.php", - "hash": "ed2c5c1d439765c30f31de9a8953a941" + "hash": "daa56fabe4485e58e7d5ba2bd4979025" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Pulls\/CheckIfMerged.php", @@ -6808,7 +6808,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Pulls\/ListReviews.php", - "hash": "fd82144628f40179f3cb605fd669d50a" + "hash": "d442f56a3405d8859a89c5e3bc7137a7" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Pulls\/ListReviewsTest.php", @@ -6868,11 +6868,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Pulls\/ListCommentsForReview.php", - "hash": "62d5c3f9df87d93f2eecf366c90642da" + "hash": "2713225de4c5501fdb31a81bb1e0963e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Pulls\/ListCommentsForReviewTest.php", - "hash": "1773cdf67c4f8ff136458af716bfe6a0" + "hash": "7854d16cc2e23923312df2e0acd61853" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Pulls\/DismissReview.php", @@ -6940,11 +6940,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListReleases.php", - "hash": "a857b64bb5ee5e41bfd171edf1a621d5" + "hash": "93e01c2c9c6e38b0de6b2d29bc4d135b" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListReleasesTest.php", - "hash": "696e0a36d408f17f56b39ee2e74b229e" + "hash": "cecb8bf22f79d9725a70345972aea56c" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/CreateRelease.php", @@ -7064,7 +7064,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListReleaseAssets.php", - "hash": "d84b770723ca8d819c4e986c0b3b373f" + "hash": "731afa19d8d9417e575433643943f44d" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListReleaseAssetsTest.php", @@ -7088,11 +7088,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForRelease.php", - "hash": "cdc344a766ff2594346ea9b898194f0d" + "hash": "465e9cdfe598293a43386e448ac2c4f1" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForReleaseTest.php", - "hash": "7044f91515ac5c256e46da71dd4e429e" + "hash": "58742c4123dffce4e3747ea4c91da725" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Reactions\/CreateForRelease.php", @@ -7120,11 +7120,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListCacheInfo.php", - "hash": "54a6d957aa47f679cc943087f4726707" + "hash": "1068afb69357fb96d7ac4b220258bb79" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListCacheInfoTest.php", - "hash": "0e6726504b7d1b38fe6cc2fca0d654d4" + "hash": "b86955149f734113250ae537b11e8659" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/SecretScanning\/ListAlertsForRepo.php", @@ -7132,11 +7132,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/SecretScanning\/ListAlertsForRepo.php", - "hash": "fc6d2a942b85db2b8f7f9291583f67b6" + "hash": "dc4152327409c22d91b53585023905ae" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/SecretScanning\/ListAlertsForRepoTest.php", - "hash": "66513b2323f9f99927b0d13ebccbc8dd" + "hash": "68756e059a21981b1b726975c6d9f4b9" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/SecretScanning\/GetAlert.php", @@ -7168,11 +7168,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/SecretScanning\/ListLocationsForAlert.php", - "hash": "2aa17ff02fa8d9977c3fe147836610e6" + "hash": "effa896234aaa264dff202e0ee218ee8" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/SecretScanning\/ListLocationsForAlertTest.php", - "hash": "e4cada01eafc919a2240fa60269b61ac" + "hash": "1543854ceaa1b6be4836b01135c3d586" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListStargazersForRepo.php", @@ -7180,11 +7180,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListStargazersForRepo.php", - "hash": "5523f4126823d8a8b98195a25c82d68c" + "hash": "6cdba0540b76804e4df73cbd3c047cd2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListStargazersForRepoTest.php", - "hash": "ea60bbe5499c449c75fd724c8a4f3eca" + "hash": "512048c2250ccd1698cb5c9148f64692" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/GetCodeFrequencyStats.php", @@ -7192,7 +7192,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/GetCodeFrequencyStats.php", - "hash": "1aa4b8f943ed35c01337741b03dae35f" + "hash": "60fd8567d61f8e3c790fe20914204256" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/GetCodeFrequencyStatsTest.php", @@ -7204,7 +7204,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/GetCommitActivityStats.php", - "hash": "d5cece4983a8e84d425e04e5e033d546" + "hash": "c1f59d5ada4ae5978a1f783d2b277f3e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/GetCommitActivityStatsTest.php", @@ -7216,7 +7216,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/GetContributorsStats.php", - "hash": "d94a788f448edc25aeef7d94196b76f0" + "hash": "b64c4fdd6e85e75f8f2eda1c7b14a7aa" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/GetContributorsStatsTest.php", @@ -7240,7 +7240,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/GetPunchCardStats.php", - "hash": "3e222dbc311b7bf497d682ce1c125ba0" + "hash": "f8404fc638d0b9f47dad68ac16cc05de" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/GetPunchCardStatsTest.php", @@ -7264,7 +7264,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListWatchersForRepo.php", - "hash": "e721819a7068a40a6ceca002b330f887" + "hash": "514ffc79bd2a2ea53003094af37e2f4e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListWatchersForRepoTest.php", @@ -7308,7 +7308,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListTags.php", - "hash": "882864060dd5419daed6574cbccda206" + "hash": "782e6478c1067faae57b45195c8874a7" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListTagsTest.php", @@ -7336,11 +7336,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListTeams.php", - "hash": "fb19b9854765ce2a68744661afacd329" + "hash": "dca382f3c9467fd6d52fe2ff60657c85" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListTeamsTest.php", - "hash": "447b1b944b86b1850afa668eb8f0f226" + "hash": "9f860157083e076f013e0883c4500d15" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/GetAllTopics.php", @@ -7352,7 +7352,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/GetAllTopicsTest.php", - "hash": "26536a6711bdba277ea39516bc49a387" + "hash": "2833825b956cb9015248bfa9b5646376" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ReplaceAllTopics.php", @@ -7412,7 +7412,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListPublic.php", - "hash": "3b55cbf88c8d626d1e791b6eacc54382" + "hash": "5b4a42f2f7c0040a748000c7014abb44" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListPublicTest.php", @@ -7428,7 +7428,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Actions\/ListEnvironmentSecretsTest.php", - "hash": "b48582177f8565446931750625c206e2" + "hash": "4fabdd7cb0bec52f02fc850ea5268b9f" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions\/GetEnvironmentPublicKey.php", @@ -7484,7 +7484,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Search\/CodeTest.php", - "hash": "39f4376721cb1dd21ee80dfe6106b6dd" + "hash": "12dfc3b2d94db2b2d7c2616daa15fcce" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Search\/Commits.php", @@ -7496,7 +7496,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Search\/CommitsTest.php", - "hash": "266ec26274a6b80d191e4904038a7b08" + "hash": "87eab034d76fe65774467792475a4702" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Search\/IssuesAndPullRequests.php", @@ -7508,7 +7508,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Search\/IssuesAndPullRequestsTest.php", - "hash": "6ac906689de1fa8a2f2fb0f5586ada26" + "hash": "5034a514f3e61e49408889317914ce7b" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Search\/Labels.php", @@ -7520,7 +7520,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Search\/LabelsTest.php", - "hash": "75b0da396198cb46be2f4311791fce80" + "hash": "6a272957c409c3545490011fa58daa8a" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Search\/Repos.php", @@ -7532,7 +7532,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Search\/ReposTest.php", - "hash": "50782e3dc40aae2a9351f886d537b4d1" + "hash": "840e84f4145386bf4e3841f2821cafc4" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Search\/Topics.php", @@ -7544,7 +7544,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Search\/TopicsTest.php", - "hash": "4ed525e60ce3971ccf597fd30a8435fd" + "hash": "5b436790ea6e822cf23d6973cab5b316" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Search\/Users.php", @@ -7556,7 +7556,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Search\/UsersTest.php", - "hash": "377d2219434c8703e4b735e62bf0adca" + "hash": "3d117c7b947ee6d40fbd0e9c43f1e43c" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin\/GetConfigurationStatus.php", @@ -7628,7 +7628,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/GetAllAuthorizedSshKeys.php", - "hash": "5c15d98cb8239c595d22f6b0c669ed74" + "hash": "e0385344d73fc8610793e476518657d2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/GetAllAuthorizedSshKeysTest.php", @@ -7640,7 +7640,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/AddAuthorizedSshKey.php", - "hash": "b8c698423de0b55d1e09cf08da2fbbba" + "hash": "8e7f03c939384b59d1ccc3340219f902" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/AddAuthorizedSshKeyTest.php", @@ -7652,7 +7652,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/RemoveAuthorizedSshKey.php", - "hash": "065c0b58882f1ca14ee720761a4e0603" + "hash": "0d636b4a103c34473521637753295ac1" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/RemoveAuthorizedSshKeyTest.php", @@ -7716,7 +7716,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListDiscussionsLegacy.php", - "hash": "70882bbb4166763ffbb8fa41f2e067ce" + "hash": "cba62e9f924f83793f433542e3e3824c" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListDiscussionsLegacyTest.php", @@ -7772,7 +7772,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListDiscussionCommentsLegacy.php", - "hash": "efbec13b03a1aef09c36c20a63207a41" + "hash": "8ef9abc0af845b8f373b410da6785e33" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListDiscussionCommentsLegacyTest.php", @@ -7828,7 +7828,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForTeamDiscussionCommentLegacy.php", - "hash": "0edbb5644e5641b7e5c4aabc28c1a306" + "hash": "9482e214c9715de828e21e5aeeb29ee2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForTeamDiscussionCommentLegacyTest.php", @@ -7852,7 +7852,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForTeamDiscussionLegacy.php", - "hash": "1fd3b8ff7f5c7fab8b3df7e28083f681" + "hash": "61adba5b2f43db4a7ee0a80d05edc7f4" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForTeamDiscussionLegacyTest.php", @@ -7876,11 +7876,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListMembersLegacy.php", - "hash": "031b61f8e05b7f5b13a18a7893598cb2" + "hash": "037b72ab9c559e4a1d8a4ace48aab9fa" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListMembersLegacyTest.php", - "hash": "a32c5adb52d66f97f8f3b560953aea69" + "hash": "cb08100d68b13bbdb4fb83e433a62e3d" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/GetMemberLegacy.php", @@ -7948,11 +7948,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListProjectsLegacy.php", - "hash": "306be9a52406158accbb277ff6ad0e95" + "hash": "95f08b0b67bf5ec8794fc925fcd0de5c" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListProjectsLegacyTest.php", - "hash": "222c5dd1ecbbc26467e13e3e70205491" + "hash": "3fd996fdbe29d07d875a5a77eed9367c" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/CheckPermissionsForProjectLegacy.php", @@ -7996,11 +7996,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListReposLegacy.php", - "hash": "7d781a50d7d3e2f39412089e19e9e9d7" + "hash": "66f71150597eb02d5ea31fb858dbcb43" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListReposLegacyTest.php", - "hash": "ee583817784028530cadc7326d9c2722" + "hash": "55c6b1be4ad3ce6fb0c638ad342937e8" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/CheckPermissionsForRepoLegacy.php", @@ -8040,11 +8040,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListChildLegacy.php", - "hash": "77ce5bd2c0d834f8393aaee85ff30677" + "hash": "e535791f63ac8f8ee1e50295019c21c9" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListChildLegacyTest.php", - "hash": "52b8a6ea9537e95805c64475af392146" + "hash": "96d4898bd68387a411960503cc25ef0f" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/GetAuthenticated.php", @@ -8076,11 +8076,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListEmailsForAuthenticatedUser.php", - "hash": "d2b32fa745cf7731013fc28b98d981ff" + "hash": "ba2b5b96da9d294f901878e74798f99f" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListEmailsForAuthenticatedUserTest.php", - "hash": "20ce3eb414afb19b18eff4598ca07a1f" + "hash": "d1b689d169d54255fc744f77a875b368" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/AddEmailForAuthenticatedUser.php", @@ -8088,7 +8088,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/AddEmailForAuthenticatedUser.php", - "hash": "1716ec5508b66089fe0459d52ec2cc4d" + "hash": "b91d77a3a7f0e3f170c104737a347d7d" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/AddEmailForAuthenticatedUserTest.php", @@ -8112,11 +8112,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListFollowersForAuthenticatedUser.php", - "hash": "28d5439f95bf6b6a15517695532a0833" + "hash": "dba1f127f04a68a8cfdc07bf77a16b91" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListFollowersForAuthenticatedUserTest.php", - "hash": "ed361f768262e56bba7d36c31681c01f" + "hash": "90b28a720d4d74818ab5b517c9192bf0" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/ListFollowedByAuthenticatedUser.php", @@ -8124,11 +8124,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListFollowedByAuthenticatedUser.php", - "hash": "26bc852a09a2e043fff42dc9388cc964" + "hash": "870e4c030d1106880ab33fd792f22cf2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListFollowedByAuthenticatedUserTest.php", - "hash": "00a6d9be32067623261b28e4a30b64b5" + "hash": "b01f2fb8548e8efe46db90e6b41b6fe0" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/CheckPersonIsFollowedByAuthenticated.php", @@ -8172,11 +8172,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListGpgKeysForAuthenticatedUser.php", - "hash": "93b580b0dc5a9790ecd72e3d1d326436" + "hash": "b71b0be69888a688990dee79fae78690" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListGpgKeysForAuthenticatedUserTest.php", - "hash": "761b1fdd6bf067fa60077f965ec41152" + "hash": "2c3832ec4eefcea616fb0eeedb8e9caf" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/CreateGpgKeyForAuthenticatedUser.php", @@ -8224,7 +8224,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Apps\/ListInstallationsForAuthenticatedUserTest.php", - "hash": "2ac0be9933e4ff2877ede9ab22c92992" + "hash": "b910270ce87eace6ddad9bd1f36e11bd" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Apps\/ListInstallationReposForAuthenticatedUser.php", @@ -8236,7 +8236,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Apps\/ListInstallationReposForAuthenticatedUserTest.php", - "hash": "4bfe4fab487227a2eb2bbc525467a369" + "hash": "73bc56da4273a724a435082e97e7b661" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Apps\/AddRepoToInstallationForAuthenticatedUser.php", @@ -8268,11 +8268,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListForAuthenticatedUser.php", - "hash": "0d9c5cd42a6418e648ee108e20455f58" + "hash": "5f9d095fdee42ac4560b6678f385f1d7" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListForAuthenticatedUserTest.php", - "hash": "43df6565805f7211dca9a0279c623ae0" + "hash": "6cb37d14eb9f74269fb1d98129341bba" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/ListPublicSshKeysForAuthenticatedUser.php", @@ -8280,11 +8280,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListPublicSshKeysForAuthenticatedUser.php", - "hash": "317b0a3d71e3d7405dc6393367d0027e" + "hash": "cb8f67e58495f3133f345ed14c11389e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListPublicSshKeysForAuthenticatedUserTest.php", - "hash": "f06bc5524882a5a1b2f17756f40e2b8f" + "hash": "687a623f4ebd323d7886d8a659ae73ba" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/CreatePublicSshKeyForAuthenticatedUser.php", @@ -8328,11 +8328,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/ListMembershipsForAuthenticatedUser.php", - "hash": "62f21f9e809323896c2e68537f1f1f74" + "hash": "4801357bef6959096e864109a048e157" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListMembershipsForAuthenticatedUserTest.php", - "hash": "5f0cb4f448482eb1f397c6dfea1e8e84" + "hash": "2631e96eb8499e2a0e4f22e5cabf3c2a" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Orgs\/GetMembershipForAuthenticatedUser.php", @@ -8364,11 +8364,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Migrations\/ListForAuthenticatedUser.php", - "hash": "999c87859d11808414c84e44c769cc4a" + "hash": "f4427dc6c763dabb1d86ac3f0686e043" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Migrations\/ListForAuthenticatedUserTest.php", - "hash": "d0d37d2fd6cf64508adb9ca4314c2604" + "hash": "105461a00313e57d4b1ea04c7ba97328" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Migrations\/StartForAuthenticatedUser.php", @@ -8400,11 +8400,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Migrations\/ListReposForAuthenticatedUser.php", - "hash": "42f91548da8560c544f02329ea303d5e" + "hash": "844669b799a751772d9a4db7c966dea1" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Migrations\/ListReposForAuthenticatedUserTest.php", - "hash": "6766a6ffba7ed71ba7c31137d264981d" + "hash": "62aa08d6d4f6d4c6cb0fff420ceb2987" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Orgs\/ListForAuthenticatedUser.php", @@ -8412,11 +8412,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/ListForAuthenticatedUser.php", - "hash": "70b01d5b5c69c3078e26da99b89bd4e0" + "hash": "fd9560a8e3ef0d64d89a63c40bfbeb53" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListForAuthenticatedUserTest.php", - "hash": "5f7dad75e5c717dc22e3de63949c4c74" + "hash": "93bfc9661137e996d3d200171cc8da08" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Projects\/CreateForAuthenticatedUser.php", @@ -8436,11 +8436,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListPublicEmailsForAuthenticatedUser.php", - "hash": "ed7a459719854e1ba8f800e5c4f09433" + "hash": "9965ea36faa1b8498706d4c8472d1494" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListPublicEmailsForAuthenticatedUserTest.php", - "hash": "b52d168fdf0d1ebaf28a21abefedbb3d" + "hash": "dff073d98801c1fd8636676ec925e423" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListForAuthenticatedUser.php", @@ -8448,11 +8448,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListForAuthenticatedUser.php", - "hash": "3ad77f5ea78a90e4b9713a9d22665ad5" + "hash": "d6fc17c1c837a57c4293714d1491c6e1" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListForAuthenticatedUserTest.php", - "hash": "6f8eef4c71f5d73de08eb58914372b7e" + "hash": "b94b468389351ff71ade52fd065771a0" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/CreateForAuthenticatedUser.php", @@ -8472,11 +8472,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListInvitationsForAuthenticatedUser.php", - "hash": "d4b5a65218fc2954b9eb6e3fcc06b44c" + "hash": "3581ac45ab7cd8954e7c4e82e2bf2f60" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListInvitationsForAuthenticatedUserTest.php", - "hash": "e3dc64eb50a39f4bcfcad4d8aa83c777" + "hash": "5b9e12674b1d750c2243f1871a65bd7b" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/DeclineInvitationForAuthenticatedUser.php", @@ -8508,11 +8508,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListReposStarredByAuthenticatedUser.php", - "hash": "0b4f7d9a25dd36655dae58a3a4f73457" + "hash": "76c08adcce0d0e9e8782e12994a55a08" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListReposStarredByAuthenticatedUserTest.php", - "hash": "e249107a2dc91285e0d84e7d8885005f" + "hash": "1f610ecd813d7f5fda2a179071fec9a6" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/CheckRepoIsStarredByAuthenticatedUser.php", @@ -8556,11 +8556,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListWatchedReposForAuthenticatedUser.php", - "hash": "d166c1424e419aeb6d763f4f486045bc" + "hash": "9c0f076dc152e4803afc56d0656687e0" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListWatchedReposForAuthenticatedUserTest.php", - "hash": "12b8e7f9bd1b0e5d52c6d81a73fc4848" + "hash": "0cc325d8e9c7ec81ea552139825b193c" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/ListForAuthenticatedUser.php", @@ -8568,11 +8568,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListForAuthenticatedUser.php", - "hash": "ad90af4bf71ddc0dc917b298022212b2" + "hash": "e2e62cf6f7bae0017f7b6a4a9695ba62" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListForAuthenticatedUserTest.php", - "hash": "ded888439432ab1c8f7eed3fdb6d07e5" + "hash": "32396b9921aa26f94942308060aab72f" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/List_.php", @@ -8580,7 +8580,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/List_.php", - "hash": "326330d2766bda815fdce0f690c207eb" + "hash": "f820288f658de7f4e671764e1e78dd59" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/List_Test.php", @@ -8592,7 +8592,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/GetByUsername.php", - "hash": "4864bd5eba048be25a180d401d58890d" + "hash": "6860c1c2c5a6a750623dd5206be8c9ff" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/GetByUsernameTest.php", @@ -8604,7 +8604,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListEventsForAuthenticatedUser.php", - "hash": "c0dc7f76c272c7f5bf8e6fddeec13785" + "hash": "25606a90359da07cf7fc18fb22355b6d" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListEventsForAuthenticatedUserTest.php", @@ -8616,7 +8616,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListOrgEventsForAuthenticatedUser.php", - "hash": "b4bf49e760c0b54ce30ad3984db721aa" + "hash": "c61b476a196128132417e5cac154685c" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListOrgEventsForAuthenticatedUserTest.php", @@ -8628,7 +8628,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListPublicEventsForUser.php", - "hash": "7c15f72f7701a86de6abe1c90f5c6b06" + "hash": "432aa7b6e02bde39e255f07a5ba4e045" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListPublicEventsForUserTest.php", @@ -8640,7 +8640,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListFollowersForUser.php", - "hash": "eae473e8f3d66cf220c0e6efa580fc7f" + "hash": "3d502e154d6de2b4bd5686055ee55a59" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListFollowersForUserTest.php", @@ -8652,7 +8652,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListFollowingForUser.php", - "hash": "641d9e663eb9d90d54f60a303cb8ed98" + "hash": "c8d59907f9d7c2e7487b6cafe71d537e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListFollowingForUserTest.php", @@ -8672,11 +8672,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Gists\/ListForUser.php", - "hash": "03508b0351a145b4188b7483fa2ecf99" + "hash": "f0abff599361b9853d20971f52f94a86" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Gists\/ListForUserTest.php", - "hash": "c8211c2d8d477115f41b03b93232c8aa" + "hash": "6904921da4a92e875aa216bf1a872233" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/ListGpgKeysForUser.php", @@ -8684,7 +8684,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListGpgKeysForUser.php", - "hash": "53d8369ee34cef1dec740df678b0146a" + "hash": "d59b339b016e5a01c556a68db347b47b" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListGpgKeysForUserTest.php", @@ -8720,7 +8720,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListPublicKeysForUser.php", - "hash": "9021889c38d2ad51321d1ea665aebb20" + "hash": "35643e8c7b0e84c853c47ebe89bd4669" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListPublicKeysForUserTest.php", @@ -8732,7 +8732,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/ListForUser.php", - "hash": "719d58b3073cb8f57833e53f80104b54" + "hash": "a2fc035c0f7b7b9eaf74ff00c2f7a439" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListForUserTest.php", @@ -8744,11 +8744,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Projects\/ListForUser.php", - "hash": "fd5efee5bcb57e6a66dc21291e1f545e" + "hash": "e643c2f74a2de48188a196d61a6a2185" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Projects\/ListForUserTest.php", - "hash": "ff4417a8aa65b830a4f9f0c0b338fee9" + "hash": "1b2b693a66538d261b297d429c4fe530" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListReceivedEventsForUser.php", @@ -8756,7 +8756,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListReceivedEventsForUser.php", - "hash": "bbfe95a2c30f8a3a6d6e7a88938b9d3c" + "hash": "4eaf65ce266f1e30bac39655e076e9ed" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListReceivedEventsForUserTest.php", @@ -8768,7 +8768,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListReceivedPublicEventsForUser.php", - "hash": "1a7eb02368e8ddd4ad508ac1d056b2b7" + "hash": "3b0570c45920df015fc8f9de5e20db75" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListReceivedPublicEventsForUserTest.php", @@ -8780,7 +8780,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListForUser.php", - "hash": "9b36ef81b873c7020f3b96de68569b0d" + "hash": "38ca89312b28e54cc190d7917205dfca" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListForUserTest.php", @@ -8808,7 +8808,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListReposStarredByUser.php", - "hash": "9885f7f3fff1b33d1ec0c49710b5a500" + "hash": "be90429c03784a6b1e07cb9e0e6cd1e6" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListReposStarredByUserTest.php", @@ -8820,7 +8820,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListReposWatchedByUser.php", - "hash": "81d795d1f7b3ddefde8545050901d928" + "hash": "dd9ed16fc23dd4311532702fa50a536d" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListReposWatchedByUserTest.php", @@ -11852,11 +11852,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/ClientInterface.php", - "hash": "8bae56eb42295cfa34eabca7ffc6f6f0" + "hash": "ed18ba03f96ec4b112a1a01f329327a1" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Client.php", - "hash": "4f34cb7c8903e24301fd52078568ae4b" + "hash": "2d2ca582cee0715571951426255849a1" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Meta.php", @@ -11864,39 +11864,39 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/EnterpriseAdmin.php", - "hash": "7aab25f4f4ea6d5b611abce7333e2f3a" + "hash": "14ab3df08092e2ee0df19f86831bdddb" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Apps.php", - "hash": "65c3598024e35ae8f784a87160518dbf" + "hash": "6cdfd9049aec6835419668a9e683f656" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/OauthAuthorizations.php", - "hash": "040472848cf72db7ec818a69c2305396" + "hash": "53a4e4d3dd981a9cef3d2e5c0eacda46" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/CodesOfConduct.php", - "hash": "06987305097e12cefcd3ea5ce6d5f121" + "hash": "c7fadfaea0f6f331f8153d4f977e5e17" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Gists.php", - "hash": "24d00c48e9b82fb66e6403e85955ddec" + "hash": "302e14a7086ca1b582a6414a56ba9c86" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Gitignore.php", - "hash": "94d3ade53b866f7829d2a12fd3836b66" + "hash": "44e0afc3ec6787d40382943a95b090cf" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Licenses.php", - "hash": "b9b423ac3922569b4ea90d32bfdc3fa2" + "hash": "753168b65c421617d8a0096d8516bdbe" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Orgs.php", - "hash": "d2fd6e1e22a602b499ac0fa32cb50d7e" + "hash": "00cb6ac95198329b981f60d4b95144c5" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Projects.php", - "hash": "dbea099a03ed67a348fd55696750c76f" + "hash": "ae36b67e4355024e18cd5cb0874eebda" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Search.php", @@ -11904,27 +11904,27 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Teams.php", - "hash": "18a401f27a49b032d0ae02efb341be4b" + "hash": "ee05aba5eea9a09f9e32e9fa3beae3f6" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Users.php", - "hash": "489637b705871ceef156790f3cbc94fd" + "hash": "421bd47e90d32192b77798d59d88f57c" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Issues.php", - "hash": "26a8a77a65a51f054abe8cf690fa9560" + "hash": "933bb7d2f308f89ed15c4637a7c02cf4" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Migrations.php", - "hash": "b1be297a70889d760edcc731e4441b79" + "hash": "5a7a60009e38e125e85d3e54894d544a" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Repos.php", - "hash": "7f8b18c0ce3a3f0931fc8f58db722b62" + "hash": "bc32e44e5394aeaccd1800c9acc9a644" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Activity.php", - "hash": "10efedbdbbf2f68fd8ff4b091c7d1dd5" + "hash": "bdca9f7dc99ff2f2591c9eaab735c22a" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Billing.php", @@ -11932,7 +11932,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Actions.php", - "hash": "7080293030c358c41c35a623cc22437c" + "hash": "d977dcc14fe458e9ae6328c0d20fab1b" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Dependabot.php", @@ -11940,23 +11940,23 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Checks.php", - "hash": "e5dd56f45986d49a68d916b91e03ccde" + "hash": "48e0544c51f95e3b923c9f28e904f123" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/CodeScanning.php", - "hash": "74ca6f34a926e78bf4319fb0b144865d" + "hash": "39d93f22c4978345867a659b450d532b" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Pulls.php", - "hash": "e355517e164314188b62ff75c915bd0b" + "hash": "ebc44a9d2c1eda98d67cce7aedb93456" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/SecretScanning.php", - "hash": "6b0c953d92be8bee7cf6e58887b28d3d" + "hash": "a1751b05099bf9f2d2bdc41540a78c57" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Reactions.php", - "hash": "021ea0f4dafdf76bd90608b48679b655" + "hash": "74d203c6fee33a13a48722fc081a08d3" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Emojis.php", @@ -11968,11 +11968,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Git.php", - "hash": "012076759b61c3a8acdb90da88e0c259" + "hash": "2144028ffaf577d9d2e69bfb6b26d825" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/EnterpriseAdmin.php", - "hash": "7976ef04e50865bb94f86771a46344b3" + "hash": "e5f78187c899136605665e7fd13bcd1c" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Markdown.php", @@ -11980,7 +11980,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Users.php", - "hash": "00a9a3f9321a91ac4757cd20bda6c4bd" + "hash": "14eb58b890ac0716c9f077f07b2ed235" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Migrations.php", @@ -11992,7 +11992,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Repos.php", - "hash": "725e678d80da37c84cbd7efa6c3ecc08" + "hash": "f8c7f41944ccec191451bae3ff92557c" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Apps.php", @@ -12000,7 +12000,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Actions.php", - "hash": "275cc679b9d5421d17effd4f93cee16a" + "hash": "dc5bd98b6be47e38ca62a8fe548632dd" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Checks.php", @@ -12008,7 +12008,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Issues.php", - "hash": "da0aebfd2e4354cb528ab9cd7e68ba39" + "hash": "e9c4988a2fdda7dd97819eda960a4827" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Pulls.php", @@ -12044,7 +12044,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Delete\/EnterpriseAdmin.php", - "hash": "1a65b67c8823b504e904d5239b9d05c5" + "hash": "be8005b116f24363e7215cde0b114087" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Delete\/Apps.php", @@ -12064,7 +12064,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Delete\/Repos.php", - "hash": "e7d519ec80fab53f0648604c0cfc06ad" + "hash": "7b841790f1b590401699df590de63e4c" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Delete\/Users.php", @@ -12104,7 +12104,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Delete\/Issues.php", - "hash": "29f4fc0d27d2cbfa92594f91ff8d7270" + "hash": "8b7880c5ab7cfbca62b157368147c938" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Delete\/Pulls.php", @@ -12140,7 +12140,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Patch\/Orgs.php", - "hash": "c8a0b69c7820d6894298a9e13577bf32" + "hash": "42a4f2159e7abafa6706d8b42c378fc2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Patch\/Checks.php", @@ -12212,7 +12212,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Put\/Repos.php", - "hash": "d85425037a87651106c7f718d538d4d6" + "hash": "143c42b248eaf065df95b4b2cdae4b27" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Put\/Teams.php", @@ -12232,7 +12232,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Put\/Issues.php", - "hash": "32a22f7bb41e06d53a5585d4b2952428" + "hash": "8b925c5fdd95d69a47945879de18a6f4" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Put\/Pulls.php", @@ -12240,183 +12240,183 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/One.php", - "hash": "96f376d82b98591056bc85e328a27d5c" + "hash": "558e60d9682dfac8961e80a317d85a97" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Three.php", - "hash": "f9d3a45ecd98389a96051d252b403262" + "hash": "208a70dc786fb61f71e35fb568f280df" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Four.php", - "hash": "0eeb0cb963d1dac7ba72f8d28c70ad17" + "hash": "22f90f980acba7ee2e31be4892050431" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Six.php", - "hash": "f3739cbcbc4a76b22d2f295b456b7ec1" + "hash": "8f64b6913b6db9857e7bacf2150a0056" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Two.php", - "hash": "f7f787175e3de906d392d28a134f745a" + "hash": "6b8b0648fdc43a556784f364183bd1c9" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Five.php", - "hash": "6400b8d117e31aee78100abc3f795a33" + "hash": "babce476537abc6dcaae83354a3fc7d3" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Seven.php", - "hash": "3b8fd5a8355afd8721f708be2d12f000" + "hash": "369f2ef99a7b5f433159cdcc914d588d" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Eight.php", - "hash": "a0fcc66df26f97e4aa816603e6ef55fd" + "hash": "758355c0f7a84954b1d1d8d400ceb218" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Nine.php", - "hash": "0fe38eeb9fee473bbe4c51e4734a4f86" + "hash": "b7a4d7d3e2ef1f38fa2dd7a159fc263d" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Get\/Ten.php", - "hash": "72ee0d3f63e3c0c44d08758c5d6d5b1b" + "hash": "7f3f1f723b66fed1828093613d5bfec1" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Three.php", - "hash": "1ade9a1bedc870fca915039160299004" + "hash": "1a1ac095c17321d84a41681c4411ddec" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Five.php", - "hash": "5a71e7810bca49ada7f730513d121c9a" + "hash": "f34416fc2a9328342ca96a12da06b2ed" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Six.php", - "hash": "0ea452dbe1c0b70173ad72f018f9b82d" + "hash": "61b372701a3986f4f1e36dc319216bd6" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Four.php", - "hash": "41add29dbda1407aaee16dcfa2109254" + "hash": "c4882f719bb22a0d9d6091906d3e51c0" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Two.php", - "hash": "8cf6f0942b3d6027ba18c33c41aa5821" + "hash": "0a25bdd272f2d29083214db110fcfc52" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Seven.php", - "hash": "594a2f391e4616553703bff33206b8c5" + "hash": "ef8fb200d5574aa52de3b95e20a9e403" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Eight.php", - "hash": "033bf17339f313a5ceba50cac218d1d4" + "hash": "1b8489745aae844a27ce8a70ea05a82b" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Ten.php", - "hash": "994c98dd04428322402cf747910b2659" + "hash": "2b55ed1cdbedefd71b073eee173b18ec" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Post\/Nine.php", - "hash": "4ebb55a1b8bffce76606ac145d6f0b4f" + "hash": "b830d11917bef43c594d4eee87c754fa" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Delete\/Four.php", - "hash": "952c92894e10772b36a054b06785ab8a" + "hash": "d9e259d981cd0e2b7b2b20c482a83aee" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Delete\/Five.php", - "hash": "95765d12b4a02ea4c942e4c806b75d1e" + "hash": "ad877f5549fe51169ca9660c89b854bf" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Delete\/Three.php", - "hash": "a0d55ab59615ac32af804cbee8787504" + "hash": "df44b51c19d3c2b5ef6e113a3e314e27" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Delete\/Seven.php", - "hash": "0082a4acf7d8d17e37b7aefb7e030a56" + "hash": "c76944b240724092670cd9540a81bf52" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Delete\/Six.php", - "hash": "0bb80cb87163ccf690b5b53fd51a9a12" + "hash": "83e262b8b6ab1910ef48ad2ffbe65c00" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Delete\/Eight.php", - "hash": "f15809cf00d99ba17087dc66eaba0b86" + "hash": "37193f97cc89d0d8f9473c4c93bd29b3" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Delete\/Nine.php", - "hash": "8598c072e49969225686bb9466206a06" + "hash": "ccd5dafc9f9b4ee67f0f793f65ebf789" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Delete\/Eleven.php", - "hash": "3d8364338e836e55252bf4822f53e560" + "hash": "ecc556227fcfe17be5da09963a631a62" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Patch\/Four.php", - "hash": "b264f967aa03053c2f2fe6a5a4147500" + "hash": "0d5c7fe34a52fc5fafdb2af3312061df" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Patch\/Six.php", - "hash": "1adcfbec71b454bc0fdc041695105f1a" + "hash": "454dc9845cfc8a2c66371902506ef40e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Patch\/Three.php", - "hash": "c224eeda83bf600b9fbd6df5ffb31d33" + "hash": "ae3b8c440a72c6d6fe63d445507067ea" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Patch\/Five.php", - "hash": "d663b851195345551f1e953d87b12187" + "hash": "2daa104c0a6c78cccb8f15bac80091ce" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Patch\/Seven.php", - "hash": "a45713c4c47722367a7b810cb2e7d877" + "hash": "aced4678fa10cfedc31c3e65a3ec021e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Patch\/Nine.php", - "hash": "620653696584b3e158df6d0ddba7131e" + "hash": "17bca454f56915c5c33584ff41c621d7" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Patch\/Eight.php", - "hash": "ae90d2bb79ddc7e2e3e54dd7239da923" + "hash": "ca30d2e6631ca96bcaa25435a405a303" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Patch\/Two.php", - "hash": "0aec8877d94309fcd4725f8511780533" + "hash": "e1f214e4cedb8720b6ea34f99627de60" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Stream\/Five.php", - "hash": "ebac43cb90ccb79f02e7754066987564" + "hash": "818cc33ef96ac07de9561556da65475a" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Stream\/Six.php", - "hash": "6324e826fada2f426607eb73b71dfbbb" + "hash": "eb3cce4b031c7dc6920a3428c564d5d9" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Stream\/Eight.php", - "hash": "8d4019735895b6eb9c980bd2513de2d3" + "hash": "2fa4057714381af397cf37af4d0e4132" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Put\/Five.php", - "hash": "fd1a5f04e2189202fdb0a25876ad1f9f" + "hash": "c3259be0bf5cdcfea8652df80ec21560" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Put\/Four.php", - "hash": "b8966d0db3e5ed38a3fbf18d6b4ea32f" + "hash": "af52c0517ba4e9c4db9c3abaef38fb85" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Put\/Six.php", - "hash": "5499018fdadcb74aa8904230fe963b3b" + "hash": "9fe9a8a10d9d3ba007b8faedcd4203f6" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Put\/Seven.php", - "hash": "3db5ca3056aeba123d088277eaddec62" + "hash": "9a849c6ea40c99233d3bb5157b1066b7" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Put\/Eight.php", - "hash": "e5f4dc97c25b933eead748ad64d2ce32" + "hash": "ca8c5c95e079f700bb622a7c9d2ecccf" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Put\/Two.php", - "hash": "b98ca5bd9ce65bd8baaaca260738050e" + "hash": "c7905dd5390e1b03e85951df41442eaa" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Put\/Nine.php", - "hash": "3ba1f06b64d1bb06d4f999a8934f68e1" + "hash": "709eaf57fa10ff0fddd76204357fc86e" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/OperationsInterface.php", @@ -12428,15 +12428,15 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php", - "hash": "5146d36ead036ae9fd6db24e5b813a20" + "hash": "c20cf8d9e5098766356657252fec72ee" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Apps.php", - "hash": "48dc8aa457fe55bd764cc88c54a62d9c" + "hash": "3dd27ace379826241bbcd1af6ed5eb81" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/OauthAuthorizations.php", - "hash": "481d5278534464e942924499bd544f9e" + "hash": "d30186d0f8f24c790cc5be4014da8b7d" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/CodesOfConduct.php", @@ -12448,7 +12448,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/SecretScanning.php", - "hash": "41853e7eb386469449e62c9b638104c7" + "hash": "b27319a92456e85dd58b3d20160aa234" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Billing.php", @@ -12456,11 +12456,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity.php", - "hash": "02942338b69fab80a355d2ac5ba44444" + "hash": "f1bc3639bfc1cbeb60d84338ea517485" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Gists.php", - "hash": "674af9e9e042018b85d6bffaa4b6290c" + "hash": "0045d0b7961382ac891582d381ae7169" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Gitignore.php", @@ -12468,11 +12468,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues.php", - "hash": "4372772ea870451c823990ed3347511e" + "hash": "cfdbddf3504cb05ac217089f268f4a55" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Licenses.php", - "hash": "b7338ab77bbdbb9a3c025377a7222e46" + "hash": "98d703357fe2011cd89ae917fb054499" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Markdown.php", @@ -12480,7 +12480,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Orgs.php", - "hash": "88b3a9fbddba5c79d4c4f39e2d5db86f" + "hash": "e56b62a987e4840148ea7e5eb8f3deb9" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Actions.php", @@ -12492,23 +12492,23 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Migrations.php", - "hash": "a13fa80ffdb0b82e7aa86eb026888a71" + "hash": "01c41d0aa2ea577d286b0e40e519402f" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Projects.php", - "hash": "acc4943e6b2f35ee6b3ada113709e40f" + "hash": "6ed53a921775a92851a71e68191029d2" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "7d6304b974ee329c7ff40244f773f06a" + "hash": "1c9481eb13de6564428017c1716fd906" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams.php", - "hash": "6f01a65c5034d9d467dbb88c3038fe62" + "hash": "0d1b6a520f5c24d19ed45ca8730fccd0" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Reactions.php", - "hash": "22e11d825d82989f3ab82ab5e1c6b0ed" + "hash": "031a13ed5c94551a8b80992150c3dbff" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/RateLimit.php", @@ -12516,11 +12516,11 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Checks.php", - "hash": "142a310b85b5b69145fd60b94b83af09" + "hash": "41bf2d84689830c52b098254c85719f1" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/CodeScanning.php", - "hash": "aebddae58b99c9227c6ddf3f87386c45" + "hash": "0c472d9c4a79377f3b08fe3d57d1a67c" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Git.php", @@ -12528,7 +12528,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Pulls.php", - "hash": "9e0d253e2eadbad8329c9ac8f8aed510" + "hash": "edc7f8b8a12b653adf7dc5a641c647cd" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Search.php", @@ -12536,7 +12536,7 @@ }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users.php", - "hash": "4d128bedfa874fdda986afd729d448d3" + "hash": "fbc4e83c14dcfcf7ef079e74cdc358e4" }, { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operations.php", @@ -15389,6 +15389,1786 @@ { "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet3F74F699\/TietB4031D65\/Tiet9A5C7B37\/Tiet0B176565.php", "hash": "4549010361ab12559a27b30eb413f67a" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin\/ListGlobalWebhooksListing.php", + "hash": "44c098c12f91530b330e867f2c1088ad" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/ListGlobalWebhooksListing.php", + "hash": "f063fa20b356cd129d86b6abbf8d44c1" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListGlobalWebhooksListingTest.php", + "hash": "03da4f6d0c8ad19b5ebe34bed61ac405" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin\/ListPublicKeysListing.php", + "hash": "4940af08a79d5b7e79bd677e20abe134" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/ListPublicKeysListing.php", + "hash": "4d8e8928bb3b4b8ef4156a7317bb66f4" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListPublicKeysListingTest.php", + "hash": "fcd0c77386d19a88af2408d845ee5533" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin\/ListPreReceiveEnvironmentsListing.php", + "hash": "3bc5570217779d99e88eaff3803f440e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/ListPreReceiveEnvironmentsListing.php", + "hash": "6b6d97711fe264a73feb24f8f9981ec8" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListPreReceiveEnvironmentsListingTest.php", + "hash": "0c25efd600886e75d6bd1955646eb209" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin\/ListPreReceiveHooksListing.php", + "hash": "3ec5289e2aac3b38b2bbb9ce4dfa9b61" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/ListPreReceiveHooksListing.php", + "hash": "65a509842ee8e68135c067f2ebd6ad4e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListPreReceiveHooksListingTest.php", + "hash": "1fb393c4cdb208682efdbcf17ed32019" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin\/ListPersonalAccessTokensListing.php", + "hash": "531c0864e4585d7d39acfae67687489d" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/ListPersonalAccessTokensListing.php", + "hash": "5b6ece74b0674e4ffdc6e3d0effd2d49" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListPersonalAccessTokensListingTest.php", + "hash": "c8e8fb1cca4245f630ea95c349081d61" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Apps\/ListInstallationRequestsForAuthenticatedAppListing.php", + "hash": "d60cdb138d0ed8ef9fc14768e7a595f0" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Apps\/ListInstallationRequestsForAuthenticatedAppListing.php", + "hash": "8461d2316e37ad15ebe319be9a5d7d81" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Apps\/ListInstallationRequestsForAuthenticatedAppListingTest.php", + "hash": "7d90a1959b7f3bd29e309014a3a6d8cc" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Apps\/ListInstallationsListing.php", + "hash": "4a82e847f05d89264eea4a2ca6ce3f86" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Apps\/ListInstallationsListing.php", + "hash": "9bf2d8dac40dc94d68e96a4dd2d15d41" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Apps\/ListInstallationsListingTest.php", + "hash": "b4149debb60a10432138c0d63f1cceef" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/OauthAuthorizations\/ListGrantsListing.php", + "hash": "86eb964f6ea2c68471df9fc13a6039e8" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/OauthAuthorizations\/ListGrantsListing.php", + "hash": "ce62d0cc8787eb16b185f1ddffa33ae1" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/OauthAuthorizations\/ListGrantsListingTest.php", + "hash": "9428b9ec83752e781bc6cd5a7a7cc3ef" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/OauthAuthorizations\/ListAuthorizationsListing.php", + "hash": "e777dae627cd68287b551bfacd1bb2a0" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/OauthAuthorizations\/ListAuthorizationsListing.php", + "hash": "17afccd4629c3160d06bb612e4e2afa0" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/OauthAuthorizations\/ListAuthorizationsListingTest.php", + "hash": "1c6c13eb45f1be4093267c09900d5654" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin\/GetAuditLogListing.php", + "hash": "df0c61c26df8abad9467ce606a798aed" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/GetAuditLogListing.php", + "hash": "7835de76a7a7b597f6067a0d9b1f4991" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/GetAuditLogListingTest.php", + "hash": "512fd57dcaac7800647b0e479b97e0f2" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListPublicEventsListing.php", + "hash": "43ac1b1796152a6c9f2f20a51986ea95" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListPublicEventsListing.php", + "hash": "720ab23a52fccbd90142cbeae9bb4cfb" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListPublicEventsListingTest.php", + "hash": "081762d703466b5a3e3a613ba09617ef" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Gists\/ListListing.php", + "hash": "2c96e2c54600fd745ce820213a06fc49" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Gists\/ListListing.php", + "hash": "9e26a8f238d82bc577f6282c031cd31b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Gists\/ListListingTest.php", + "hash": "163be0da47abf77b16db0162a3d999cc" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Gists\/ListPublicListing.php", + "hash": "ccebbfc30ba9d8de63821f538388c9f1" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Gists\/ListPublicListing.php", + "hash": "a4a38cdb0d8c6d78b447e75c1cda8013" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Gists\/ListPublicListingTest.php", + "hash": "2320973b8a00c559b1ba647cdf3e8374" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Gists\/ListStarredListing.php", + "hash": "ef1fc64f1a12470cba3922b0fe1fb4cb" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Gists\/ListStarredListing.php", + "hash": "1c5a9644a655d1766640bc8943c73fd4" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Gists\/ListStarredListingTest.php", + "hash": "639ee1e0f53939165b01d2a459bd3536" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Gists\/ListCommentsListing.php", + "hash": "e4344c652a8e522fb45b4fb9e76ea542" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Gists\/ListCommentsListing.php", + "hash": "6d200f879852a0b83089560a9cc43978" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Gists\/ListCommentsListingTest.php", + "hash": "ad97d0f7c000f010842453f4dd54edb2" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Gists\/ListCommitsListing.php", + "hash": "f78e7b5bc65fe301554657df52675044" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Gists\/ListCommitsListing.php", + "hash": "d196277b3c7ee3157b2accbac120ca7a" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Gists\/ListCommitsListingTest.php", + "hash": "57d36096a7b772646f9a027e0468be08" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Gists\/ListForksListing.php", + "hash": "a4ac9aa5b64876f837741bd6eda827cb" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Gists\/ListForksListing.php", + "hash": "34823d2f4e793504bbe90177b972c2f8" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Gists\/ListForksListingTest.php", + "hash": "4d4469e96fce15d3b3d19d93d6956b3f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListListing.php", + "hash": "80c8308ecf75c0ab2d187407a50d4980" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListListing.php", + "hash": "c0ae0757225e12454d3209a055fa95e8" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListListingTest.php", + "hash": "fdcb5e5cb7b8a02ea372bf6507cb78fb" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Licenses\/GetAllCommonlyUsedListing.php", + "hash": "b59c7494f8085462b694e3cffdf10e9c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Licenses\/GetAllCommonlyUsedListing.php", + "hash": "16d5c7855f001ecd8bb5b1a97eb4fd5f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Licenses\/GetAllCommonlyUsedListingTest.php", + "hash": "0be99b7f16bd48d3ebe555896f049f02" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListPublicEventsForRepoNetworkListing.php", + "hash": "bccab4c94d72a2b4d95cf72c2fcf9d48" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListPublicEventsForRepoNetworkListing.php", + "hash": "5e7e8c8dd2cfe3bac53648f6728b84ed" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListPublicEventsForRepoNetworkListingTest.php", + "hash": "0665c35028d478e7adc9630e249bc909" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListNotificationsForAuthenticatedUserListing.php", + "hash": "029df4e73d216baf66118c62648d7aaf" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListNotificationsForAuthenticatedUserListing.php", + "hash": "f87b30d1f52cfe3d3e6098c44c891912" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListNotificationsForAuthenticatedUserListingTest.php", + "hash": "8cd32841256d9b735ce8cf36a97e3fcb" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Orgs\/GetAuditLogListing.php", + "hash": "c703b4061325142263d9623f920b8c01" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/GetAuditLogListing.php", + "hash": "1d85d1f1510afed504b12af7f852cb9c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/GetAuditLogListingTest.php", + "hash": "aa3f115abc8accc7fafe8647f92e97a2" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListPublicOrgEventsListing.php", + "hash": "b5bc3033e4d68a79ca3f3a7da6c2aa27" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListPublicOrgEventsListing.php", + "hash": "ee392951346ee9bf8ab6726db6bd5f38" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListPublicOrgEventsListingTest.php", + "hash": "3b4a63a6163890d530f8102748453b95" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Orgs\/ListWebhooksListing.php", + "hash": "6ee4c796947909e3790d249f4d361e84" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/ListWebhooksListing.php", + "hash": "601936213d67f98611a6515d240fd142" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListWebhooksListingTest.php", + "hash": "726111f8ff5c7f5269a103f9ed1c2c80" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListForOrgListing.php", + "hash": "36e6ccc669e45e1396c2ffad161cc43d" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListForOrgListing.php", + "hash": "ecc99815a630ed9f56389e5024ca83c3" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListForOrgListingTest.php", + "hash": "e71b99c2dc57435b49d9e82916d8a603" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Orgs\/ListMembersListing.php", + "hash": "b5368501dd235b18eecb44b4524b3d57" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/ListMembersListing.php", + "hash": "dccfd4e138d8b3861b338e4d6d9ed63f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListMembersListingTest.php", + "hash": "12de740fd5228b32e93e606daf58eb13" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Migrations\/ListForOrgListing.php", + "hash": "b3eed92f2bf214933dab070be9d280f9" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Migrations\/ListForOrgListing.php", + "hash": "d676e7fb791df9d1dbd7eb85a9a532ff" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Migrations\/ListForOrgListingTest.php", + "hash": "58120e57e8f1b5aa4f610d74a3713361" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Migrations\/ListReposForOrgListing.php", + "hash": "a1931e9b901fdddcafa096361d7cbde0" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Migrations\/ListReposForOrgListing.php", + "hash": "e73c359b918a7ffe4a03360a8d1d2acd" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Migrations\/ListReposForOrgListingTest.php", + "hash": "30602ec583381da977c654ec87667707" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Orgs\/ListOutsideCollaboratorsListing.php", + "hash": "8c45445a121185598a9b5a5a27d3e154" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/ListOutsideCollaboratorsListing.php", + "hash": "0c3dd47bb499c3762de331798c777c8a" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListOutsideCollaboratorsListingTest.php", + "hash": "5405f106d4a18d7fa2a64d66d34cad69" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin\/ListPreReceiveHooksForOrgListing.php", + "hash": "49eb3f51b4885d2505893fac67cb48a3" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/ListPreReceiveHooksForOrgListing.php", + "hash": "2c7ac5342cf792c13603b516feec02dc" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListPreReceiveHooksForOrgListingTest.php", + "hash": "45c52c3bbab79793e193ac6be7d04628" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Projects\/ListForOrgListing.php", + "hash": "e37abd45bde9540a2540cdf9fc29c200" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Projects\/ListForOrgListing.php", + "hash": "e4fa4bcd650db1d4cef3e9021bd6b194" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Projects\/ListForOrgListingTest.php", + "hash": "f9ebddc340fd9da6f1ce2c0cad016125" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Orgs\/ListPublicMembersListing.php", + "hash": "2976f4a538d43f89e3edcf7780b6b157" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/ListPublicMembersListing.php", + "hash": "f92605884cd5cc8c122d85d590f5a9ad" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListPublicMembersListingTest.php", + "hash": "e46d507792241e83d8558fff9243f4ca" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListForOrgListing.php", + "hash": "b42f440fad645da570dcd25753e2431f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListForOrgListing.php", + "hash": "66484f1bd6b84e259333840b9b45cd5a" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListForOrgListingTest.php", + "hash": "eac60a504b16cea9191c70765ea733b8" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/SecretScanning\/ListAlertsForOrgListing.php", + "hash": "6f99e6cd9a09a3569ca397df4e39d5c7" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/SecretScanning\/ListAlertsForOrgListing.php", + "hash": "71d0325a1c5b37f0ceab0a9c6009c95e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/SecretScanning\/ListAlertsForOrgListingTest.php", + "hash": "be9ad474e38d4ea54724ec226c8e5ba6" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/ListListing.php", + "hash": "8fed5bcc2a3638fd0ef0f9087e98b811" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListListing.php", + "hash": "636ad301ca333683fe583021564cf986" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListListingTest.php", + "hash": "f1475a29b381d415050ee3609c9d9a60" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/ListDiscussionsInOrgListing.php", + "hash": "60d1d2f6716a0e4d21fcc68b49aea2d4" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListDiscussionsInOrgListing.php", + "hash": "d0b6e5602a2d9ca9afe593ff7295089a" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListDiscussionsInOrgListingTest.php", + "hash": "43eb6e4b52df5117d95960e020f53a69" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/ListDiscussionCommentsInOrgListing.php", + "hash": "0291df0d04ce167589b1d4517c9de175" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListDiscussionCommentsInOrgListing.php", + "hash": "e60936f7c900ac9633ebb472d93b1435" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListDiscussionCommentsInOrgListingTest.php", + "hash": "398e0bf51d1b12e22080583898b0117f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Reactions\/ListForTeamDiscussionCommentInOrgListing.php", + "hash": "f97a5e7a901d9e1a3cde881c2388c96c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForTeamDiscussionCommentInOrgListing.php", + "hash": "3a21c9cf34970ba5aa352955293f4766" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForTeamDiscussionCommentInOrgListingTest.php", + "hash": "d93785a4814062b9723645967872c72e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Reactions\/ListForTeamDiscussionInOrgListing.php", + "hash": "5db0069f44ba59f32715b5b1c4a8d9d0" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForTeamDiscussionInOrgListing.php", + "hash": "e4c9cdf153441b0fad6cdb7c9dcc3967" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForTeamDiscussionInOrgListingTest.php", + "hash": "f4ea102de004f4a9408783e9331b4214" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/ListMembersInOrgListing.php", + "hash": "ff75b02a7aac4600b7eb35013b0ffe33" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListMembersInOrgListing.php", + "hash": "f9828fdcba79abd4bafcfed60ba40010" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListMembersInOrgListingTest.php", + "hash": "3acd110a6edbfd8ef4487d1d6e427805" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/ListProjectsInOrgListing.php", + "hash": "2aa4d8fc42ac3563958bf646b703b94f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListProjectsInOrgListing.php", + "hash": "61c5fca2a046936352cb51be131c629e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListProjectsInOrgListingTest.php", + "hash": "bf22cbd96091fbaed9bc7eae9717fe5a" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/ListReposInOrgListing.php", + "hash": "d11e883bef0cd187fb3406d07e3b7723" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListReposInOrgListing.php", + "hash": "93de621b2757dabf760e55ce054177e3" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListReposInOrgListingTest.php", + "hash": "12c9dddcb662c625fe3c92b7a5262a11" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/ListChildInOrgListing.php", + "hash": "776e34f19601b538bae20f01b5760985" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListChildInOrgListing.php", + "hash": "53e3dfe491b28e1421615ad2cdefe21c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListChildInOrgListingTest.php", + "hash": "49990cc53c64669dc5b2a50c9c330f80" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Projects\/ListCardsListing.php", + "hash": "58121f867ce9275c8bbd387694d17ffd" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Projects\/ListCardsListing.php", + "hash": "7e441992ad081e363470907e416a7907" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Projects\/ListCardsListingTest.php", + "hash": "c924ee663b9555719a6ba0af723cfa57" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Projects\/ListCollaboratorsListing.php", + "hash": "b96b173cce30f40f53e5f6efbe53c299" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Projects\/ListCollaboratorsListing.php", + "hash": "57e4ad61964b716038bfc5ae687e8ef3" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Projects\/ListCollaboratorsListingTest.php", + "hash": "b17225adcc36b6da65ee841f33e2af57" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Projects\/ListColumnsListing.php", + "hash": "e20a2c66626c14f933da17f50974e30c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Projects\/ListColumnsListing.php", + "hash": "2eec2392872ab3f36b3593d31079edbe" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Projects\/ListColumnsListingTest.php", + "hash": "26fa0cf17d8f5155ee0b9fd8c2394c43" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListAssigneesListing.php", + "hash": "d98f3244bfab64945652a01b470ac6ec" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListAssigneesListing.php", + "hash": "d4496d3993ede77552911ac40df47240" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListAssigneesListingTest.php", + "hash": "d8a98eb72c82bd2a4394b33bef58571a" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListBranchesListing.php", + "hash": "b4e16ac03ea227203bd135efd9980d1c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListBranchesListing.php", + "hash": "5255d5259aa43311c6e4a775608a5fdc" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListBranchesListingTest.php", + "hash": "9948e5681e4c3678c9959b0c39e1e80b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Checks\/ListAnnotationsListing.php", + "hash": "623cd66558252cbf59ac0ebf52be3f2f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Checks\/ListAnnotationsListing.php", + "hash": "924613670c4ba0a7af075fc696ff0ae8" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Checks\/ListAnnotationsListingTest.php", + "hash": "83fd14bae8fdefdb069cb250561df601" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/CodeScanning\/ListAlertsForRepoListing.php", + "hash": "ec80f2cd467c4f98d1c001015185f1a1" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/CodeScanning\/ListAlertsForRepoListing.php", + "hash": "2a4ea3676e907ea7ac07d915ce67aaf0" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/CodeScanning\/ListAlertsForRepoListingTest.php", + "hash": "d6022daac04874c5adae17dfa852cbac" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/CodeScanning\/ListAlertInstancesListing.php", + "hash": "9110203b9d4e2577857970535b400b11" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/CodeScanning\/ListAlertInstancesListing.php", + "hash": "f2cbec56a3b929d818297910a621d16d" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/CodeScanning\/ListAlertInstancesListingTest.php", + "hash": "4ccc5171fdcb7cf48ed17e55774892bd" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/CodeScanning\/ListRecentAnalysesListing.php", + "hash": "0b66aeccb9701b0bf47036fea13fda59" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/CodeScanning\/ListRecentAnalysesListing.php", + "hash": "a6af20caeec8bfff644455fbb7442311" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/CodeScanning\/ListRecentAnalysesListingTest.php", + "hash": "e1722aa800fbcdba4616501d84c20b2f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListCollaboratorsListing.php", + "hash": "eca9d59f2f1bb397deb8ca06e85e6f3a" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListCollaboratorsListing.php", + "hash": "ee47fb9c80d36f837e130993d5f764a6" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListCollaboratorsListingTest.php", + "hash": "783a612fe90772ccf0e61ffdb99b9d85" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListCommitCommentsForRepoListing.php", + "hash": "e3e14dbca93c7039efadfa61f021d43f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListCommitCommentsForRepoListing.php", + "hash": "6d8bbe29af62cdd7bf7242e86edccf70" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListCommitCommentsForRepoListingTest.php", + "hash": "da50af209d38207e172556ca24c9c670" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Reactions\/ListForCommitCommentListing.php", + "hash": "76cbd30d87b6b47e13c7dcfbb52304d8" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForCommitCommentListing.php", + "hash": "9ab077c9f6051b627975d8ad0563b443" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForCommitCommentListingTest.php", + "hash": "d90ef6e866df74a634e027a37f19388c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListCommitsListing.php", + "hash": "813a9a00ec78057969e30a0d53563389" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListCommitsListing.php", + "hash": "e8fcc7ebebdae528e168bf0e810f53b0" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListCommitsListingTest.php", + "hash": "857b3a8dc2dc04ef00a059ecb7c6f7a1" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListCommentsForCommitListing.php", + "hash": "1cbce599bf1f5f1847f554899bf8c451" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListCommentsForCommitListing.php", + "hash": "009677bb30f210ab96f9d0a6af96bd81" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListCommentsForCommitListingTest.php", + "hash": "0cf9a19194eefda499660ad9f49c7d76" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListPullRequestsAssociatedWithCommitListing.php", + "hash": "628b10e49b795f25b0ec2b1a19da9506" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListPullRequestsAssociatedWithCommitListing.php", + "hash": "2f05d8350c7de1dea86e77fffbfd515c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListPullRequestsAssociatedWithCommitListingTest.php", + "hash": "8ef2278a9729642d5de565f6aa75ca17" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListCommitStatusesForRefListing.php", + "hash": "98ccafd59603453a2dc4bee4a52d933d" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListCommitStatusesForRefListing.php", + "hash": "20d02e6570cd6062462eb452a58468ad" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListCommitStatusesForRefListingTest.php", + "hash": "7225e843dfa35540c882c4ed17d60058" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListContributorsListing.php", + "hash": "87c3c6d8b602388a9cad2a39fa8d69fc" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListContributorsListing.php", + "hash": "f21a9dc804f54aa8f36de4b48f440e72" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListContributorsListingTest.php", + "hash": "3338a1a7e03caf196cc396c5a869f1a5" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListDeploymentsListing.php", + "hash": "02466bd1527597683c970a4efd9cb96d" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListDeploymentsListing.php", + "hash": "ca28abc4426bf88c74220272b2302de8" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListDeploymentsListingTest.php", + "hash": "d59290160777e9cb6095f31605988a01" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListDeploymentStatusesListing.php", + "hash": "b4bfedba7093e60d2928c92d6d25d883" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListDeploymentStatusesListing.php", + "hash": "bf23efd826d00008d355680c7fabb9d7" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListDeploymentStatusesListingTest.php", + "hash": "cf489ac0bd72cb570f9ed2865440ec4b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListRepoEventsListing.php", + "hash": "d8d2205a7549e6154bf3d5cea603de8c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListRepoEventsListing.php", + "hash": "e9e42327d09a0088586054942d1f18f4" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListRepoEventsListingTest.php", + "hash": "c9814c51fafcbe4c3a4a100e9b4a22f0" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListForksListing.php", + "hash": "ebe4b8d5e2f34062d7ffc31a78739365" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListForksListing.php", + "hash": "9b5ccabcf82b281c45166b8c1cfdc6d7" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListForksListingTest.php", + "hash": "281e26ee820ae5d9b0deabc65658d0cd" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListWebhooksListing.php", + "hash": "212d30ff112800b650b3e2aa12d91cd3" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListWebhooksListing.php", + "hash": "6238d392a3c0531150fa3ab485b6ca99" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListWebhooksListingTest.php", + "hash": "01884aff7491bb543a2235e4f81fc9be" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListInvitationsListing.php", + "hash": "3e4d62944c8f997249155ea14b6d2568" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListInvitationsListing.php", + "hash": "7373b9ecfb106d7e5a4810364dc3379b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListInvitationsListingTest.php", + "hash": "c5db35a702aeac370f648b34f1918b00" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListForRepoListing.php", + "hash": "1fc2d811721c8b3d0752df2b6ad1aaa7" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListForRepoListing.php", + "hash": "450bb58811946be63542a31333d2b9a6" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListForRepoListingTest.php", + "hash": "2a4d79711893a7e87c2271755f77921c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListCommentsForRepoListing.php", + "hash": "c50288ca7ab8e958a54f1c7c62c8bc5c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListCommentsForRepoListing.php", + "hash": "aa0244dfac21d7a86e76711c4b5d5c46" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListCommentsForRepoListingTest.php", + "hash": "034708c1d2021ea9db57bee12260cc9b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Reactions\/ListForIssueCommentListing.php", + "hash": "e7ec2004041113a126ccb706d0954301" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForIssueCommentListing.php", + "hash": "0dac41f0be3d2fbc185755e6d67e479c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForIssueCommentListingTest.php", + "hash": "eb176a787e6e51522fa0a4582f14a450" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListEventsForRepoListing.php", + "hash": "86051fd453b59c1d9e88ee003ba3f675" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListEventsForRepoListing.php", + "hash": "1a9e6417fb2d39405293c219c74e5288" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListEventsForRepoListingTest.php", + "hash": "e5b5e07d540843c8cb19443de26e309e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListCommentsListing.php", + "hash": "38b07186cb272e4497d2faa93ee3458d" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListCommentsListing.php", + "hash": "82bc29edad7075ccc97d9de07a312ea8" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListCommentsListingTest.php", + "hash": "39b0fda9d68073445e406cefa990f9b0" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListEventsListing.php", + "hash": "4fbee203402a885d2904af4ad3f7545f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListEventsListing.php", + "hash": "ae9e2354209270aed4e638692b802d91" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListEventsListingTest.php", + "hash": "65b6ea587fd9482470161e2e79cf281c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListLabelsOnIssueListing.php", + "hash": "70355f9d6a52c6b97d0e1900a4947d56" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListLabelsOnIssueListing.php", + "hash": "0a34309caadaf7d17b9ffcb7220b8387" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListLabelsOnIssueListingTest.php", + "hash": "f5c5b7cf988dbded414dfefa56b69b05" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Reactions\/ListForIssueListing.php", + "hash": "830bd472bd3f2e86c0588df20b2709b4" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForIssueListing.php", + "hash": "b6d18f478b70b29725a312626ef1aa14" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForIssueListingTest.php", + "hash": "1fde88c3ade4f96cf11d5600b987d97b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListEventsForTimelineListing.php", + "hash": "ccb4df202aead71ed55c7c74e2bab80c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListEventsForTimelineListing.php", + "hash": "c33f8854260f5b9832a23cb49c342ad5" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListEventsForTimelineListingTest.php", + "hash": "edafa1c4c19c3f9d5c3fbe760c6a9800" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListDeployKeysListing.php", + "hash": "0a0b73baa08a506e85629264984cc543" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListDeployKeysListing.php", + "hash": "4770e5fc357e2218b3b0dcbea8362e6f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListDeployKeysListingTest.php", + "hash": "d5933cecafd03ff3ee71df929be41054" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListLabelsForRepoListing.php", + "hash": "3ea89c4de74d3dc1030e0ba922fbbca6" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListLabelsForRepoListing.php", + "hash": "5ec6278ca530444f07b3bf08468a2064" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListLabelsForRepoListingTest.php", + "hash": "1f102d4f74c6ca7481006d1adf8209af" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListMilestonesListing.php", + "hash": "27b77ccdd95b44e6b322a53d623b69e5" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListMilestonesListing.php", + "hash": "faafe0889ef85b4f06110c1e3d5c6ae0" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListMilestonesListingTest.php", + "hash": "ca73e20a4071b0a4c6f0984cef38e236" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListLabelsForMilestoneListing.php", + "hash": "c686ea0040fb8731a22f2fbc2a4e3b82" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListLabelsForMilestoneListing.php", + "hash": "3f93fe13a675a62156bcbbbceed41a77" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListLabelsForMilestoneListingTest.php", + "hash": "ca8e5c1cd3b09fee130118e4152aa472" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListRepoNotificationsForAuthenticatedUserListing.php", + "hash": "50d84af0267b1e0d4fa03321457e7a01" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListRepoNotificationsForAuthenticatedUserListing.php", + "hash": "83d84fc0a85974bb49aa31974f388091" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListRepoNotificationsForAuthenticatedUserListingTest.php", + "hash": "8d2e7515fc609baadd20a681373d928e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListPagesBuildsListing.php", + "hash": "96d402189aa1dae0688bb28f71bfba68" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListPagesBuildsListing.php", + "hash": "6af919a169db0bb54275b462b840bd05" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListPagesBuildsListingTest.php", + "hash": "26636385a29c92c3dafc7d94182b179b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin\/ListPreReceiveHooksForRepoListing.php", + "hash": "39f756503caa654c03dc4343b8bc4833" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/EnterpriseAdmin\/ListPreReceiveHooksForRepoListing.php", + "hash": "1bf564524a52a6ef044c1ff147d4742a" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/EnterpriseAdmin\/ListPreReceiveHooksForRepoListingTest.php", + "hash": "b1183d46a1573df9bfc408960fad6634" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Projects\/ListForRepoListing.php", + "hash": "a6cc33ceb2261553b9c3702abc8a3cac" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Projects\/ListForRepoListing.php", + "hash": "96816304f949dfe29b4301fc402d2f05" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Projects\/ListForRepoListingTest.php", + "hash": "726407091674fcde7177eb6c64637a58" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Pulls\/ListListing.php", + "hash": "bf2f6197f2d38105f0786244f88f7436" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Pulls\/ListListing.php", + "hash": "6ad453249f207841ca973c8547ea99d5" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Pulls\/ListListingTest.php", + "hash": "0690b6de8c54c33d30e90570d4a5a94b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Pulls\/ListReviewCommentsForRepoListing.php", + "hash": "b8a68f381dcb0ffe30f1c0f5c898682b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Pulls\/ListReviewCommentsForRepoListing.php", + "hash": "3c20b01b588b4c097d5c66a379a5c396" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Pulls\/ListReviewCommentsForRepoListingTest.php", + "hash": "de7b60688822d7d412143cac8c3c9cfa" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Reactions\/ListForPullRequestReviewCommentListing.php", + "hash": "d7cea44f8ce15bbfb39277195b208e9a" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForPullRequestReviewCommentListing.php", + "hash": "cfa7f4069898f9bac47e633073fd5bc0" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForPullRequestReviewCommentListingTest.php", + "hash": "5defaa43507c43ee3826998974c503eb" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Pulls\/ListReviewCommentsListing.php", + "hash": "fe27c671f8c6f9b23e36ed8a2ce60d47" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Pulls\/ListReviewCommentsListing.php", + "hash": "525d98bed2724e010cfdd1455fb33a04" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Pulls\/ListReviewCommentsListingTest.php", + "hash": "c92d236ae793586670b63ebe6feb7eb0" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Pulls\/ListCommitsListing.php", + "hash": "a64e290f51fb09e5c30ffc7b585ce1f9" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Pulls\/ListCommitsListing.php", + "hash": "d4d53b32a8d07e4bbf2775af6eeeb66a" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Pulls\/ListCommitsListingTest.php", + "hash": "1c48e9fbc2e81d56bc8331fbe803c535" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Pulls\/ListFilesListing.php", + "hash": "61b35f4cd16511f294c1a7bf1e85a6a3" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Pulls\/ListFilesListing.php", + "hash": "9c1ff7ca77a89d0078280b6916d7da97" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Pulls\/ListFilesListingTest.php", + "hash": "aa29771a4e685176770782fdbe306799" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Pulls\/ListReviewsListing.php", + "hash": "31546019a20703b3a33e5ab4b9ad6a93" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Pulls\/ListReviewsListing.php", + "hash": "f2ddbe5480eeaaa72f226b1aa54f8f6d" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Pulls\/ListReviewsListingTest.php", + "hash": "229902d65fe0aa67ecda1196a84587c3" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Pulls\/ListCommentsForReviewListing.php", + "hash": "12f1cc6fa5fc534f5b03026ee30978bb" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Pulls\/ListCommentsForReviewListing.php", + "hash": "53f551b6c0d3e4179b18a2507a120974" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Pulls\/ListCommentsForReviewListingTest.php", + "hash": "ac7b0f631fc088c1a7d210132375c209" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListReleasesListing.php", + "hash": "1d2e2a122c4eb04f3ae1992d968e75f1" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListReleasesListing.php", + "hash": "539a7c35334d194f150155ac9e20af8f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListReleasesListingTest.php", + "hash": "e359e6a92fda9eb3f855a3a53843fc8e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListReleaseAssetsListing.php", + "hash": "ef0beba70b1d532da6fa3b532c8f19ad" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListReleaseAssetsListing.php", + "hash": "90e98aeb2434bd6fb7ae82d657ac78dc" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListReleaseAssetsListingTest.php", + "hash": "119d4c56eadd3772f12e0b316cc09931" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Reactions\/ListForReleaseListing.php", + "hash": "1a77bf0c0856dbe42993706f1340bc45" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForReleaseListing.php", + "hash": "cf9d6cc094451b3f7857830726960b8c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForReleaseListingTest.php", + "hash": "aa3b79897e12761ef0fc1a7fab17c732" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListCacheInfoListing.php", + "hash": "898ad824c7e42d9b9b05991d9c765192" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListCacheInfoListing.php", + "hash": "3a3244d3b2b9f0b835b1f98cab86ae49" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListCacheInfoListingTest.php", + "hash": "407ea99aa70608b65092081e5316b9c5" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/SecretScanning\/ListAlertsForRepoListing.php", + "hash": "514cfc7e2a563c8976a9ead244c849fa" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/SecretScanning\/ListAlertsForRepoListing.php", + "hash": "425b17dac9348a082512abb146535c15" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/SecretScanning\/ListAlertsForRepoListingTest.php", + "hash": "75fe545e5b55c7ff9b96d0df30c23f70" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/SecretScanning\/ListLocationsForAlertListing.php", + "hash": "d2dc1ac01a6f7535546f1bbda1700cd5" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/SecretScanning\/ListLocationsForAlertListing.php", + "hash": "f2e73b000879eb4929f715e08be5b784" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/SecretScanning\/ListLocationsForAlertListingTest.php", + "hash": "a0cf80756dd550726660c6ea8a8ec7ae" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListWatchersForRepoListing.php", + "hash": "439227ee8f197dee947fd9786d42fc44" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListWatchersForRepoListing.php", + "hash": "94ca36e819b9ced39b44d9b6b93fc493" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListWatchersForRepoListingTest.php", + "hash": "b85f0a6347e0a55b41bd154a97590444" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListTagsListing.php", + "hash": "57fab5fb71e48b0e3f90e50c79191f3e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListTagsListing.php", + "hash": "aaddb28d0e196fe23f4cf65037bc9722" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListTagsListingTest.php", + "hash": "16e7a5d160ac5c20ec6007c20515557f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListTeamsListing.php", + "hash": "57088475af5032ac3b56e7b62e82f32e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListTeamsListing.php", + "hash": "05ef155d06ea0ebb1ff1669b65640b69" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListTeamsListingTest.php", + "hash": "1c74c8f285e591c5bfe3a821bada1cfc" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/ListDiscussionsLegacyListing.php", + "hash": "47a437d2a1faae9ce0a1f19627b9c7b1" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListDiscussionsLegacyListing.php", + "hash": "fadd033ab38252c358fd1eb5d644f17b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListDiscussionsLegacyListingTest.php", + "hash": "76789509c57f29741708e5416fc10490" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/ListDiscussionCommentsLegacyListing.php", + "hash": "59ba6d62cbd1d255473ac37358024eb7" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListDiscussionCommentsLegacyListing.php", + "hash": "247b796af13255f61c74d65787e99495" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListDiscussionCommentsLegacyListingTest.php", + "hash": "48e7bef0cbf305ba8703472c757150ad" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Reactions\/ListForTeamDiscussionCommentLegacyListing.php", + "hash": "7d9dfd4796fc65898ce9ef2c7d533745" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForTeamDiscussionCommentLegacyListing.php", + "hash": "6621eb5d2e18e1c399dcc9b9390954a6" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForTeamDiscussionCommentLegacyListingTest.php", + "hash": "2bd78a322e03bee714286bda5a521566" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Reactions\/ListForTeamDiscussionLegacyListing.php", + "hash": "af040f44d5cbc0953a9a43be2eb1470c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Reactions\/ListForTeamDiscussionLegacyListing.php", + "hash": "7636348a777466ccc41695e31376cb36" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Reactions\/ListForTeamDiscussionLegacyListingTest.php", + "hash": "e8979cf33e023fce57b3aa008f631cfe" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/ListMembersLegacyListing.php", + "hash": "4231cb53077971a08a7d19575ce9765b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListMembersLegacyListing.php", + "hash": "565ecec542c1f99216bf269d3234433f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListMembersLegacyListingTest.php", + "hash": "22421e9ba8b8dce642eaf37e736a699e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/ListProjectsLegacyListing.php", + "hash": "b87d5e932c93b06b67c53f484242d527" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListProjectsLegacyListing.php", + "hash": "c3ef0d33bba7aab7f1872b5a4b579968" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListProjectsLegacyListingTest.php", + "hash": "6557953f9854192194e42ccb32d767b1" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/ListReposLegacyListing.php", + "hash": "a77a8751c987cb8183ac4f2b475ce491" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListReposLegacyListing.php", + "hash": "4809236bed401339b988643a50dfb9c3" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListReposLegacyListingTest.php", + "hash": "2338c10cd23752621527d7a5d9d9c74c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/ListChildLegacyListing.php", + "hash": "c38641606f4c089d34268bdf6eab5def" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListChildLegacyListing.php", + "hash": "cc73af3e50eec3f4d52e26e58db38404" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListChildLegacyListingTest.php", + "hash": "2a026123305ccebbadeb357b91a05c4a" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/ListEmailsForAuthenticatedUserListing.php", + "hash": "10fd36c6fe881aea8fd15158b3613cc5" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListEmailsForAuthenticatedUserListing.php", + "hash": "be4050134deb437d8b52bc2033d9bada" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListEmailsForAuthenticatedUserListingTest.php", + "hash": "d3475e4c468c61dd7e087713d5f58be6" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/ListFollowersForAuthenticatedUserListing.php", + "hash": "5a3e904b8bb3283fa01814282cc1bdb0" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListFollowersForAuthenticatedUserListing.php", + "hash": "0d56d291517790996fdfecbb5606b2cc" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListFollowersForAuthenticatedUserListingTest.php", + "hash": "f837819ffda8d4d06ae802b7b36f59a5" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/ListFollowedByAuthenticatedUserListing.php", + "hash": "c2939a631e19095fc3ad72c6739c95d8" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListFollowedByAuthenticatedUserListing.php", + "hash": "51111f10dc62d15c595697cbb6a1d7e9" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListFollowedByAuthenticatedUserListingTest.php", + "hash": "4925bf8c702ab449ce318ce92dc594f9" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/ListGpgKeysForAuthenticatedUserListing.php", + "hash": "4b2d5c775613b4cf7a1e2cad90a22420" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListGpgKeysForAuthenticatedUserListing.php", + "hash": "435c58b6f83d7fe19e4f28ad4aeca397" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListGpgKeysForAuthenticatedUserListingTest.php", + "hash": "13ad9f4a3cfd3688e38e54bbe1b6035f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Issues\/ListForAuthenticatedUserListing.php", + "hash": "8a512ecd21b9fd67cb2dab02383a0a24" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Issues\/ListForAuthenticatedUserListing.php", + "hash": "754ca588c3133699bf28437bdf85276c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Issues\/ListForAuthenticatedUserListingTest.php", + "hash": "8100b6b606932040ef42d4c0ca107601" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/ListPublicSshKeysForAuthenticatedUserListing.php", + "hash": "994909c2b71ad9feea08946452fe474e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListPublicSshKeysForAuthenticatedUserListing.php", + "hash": "5d292b1f6e98a8f17639bb885f30aba2" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListPublicSshKeysForAuthenticatedUserListingTest.php", + "hash": "b98947d7a4a81ab743a7db48e5c3455e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Orgs\/ListMembershipsForAuthenticatedUserListing.php", + "hash": "e173cf5681121c31d379e1f93b8ffc39" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/ListMembershipsForAuthenticatedUserListing.php", + "hash": "bd11e205e17b94c6092653bf015f7caa" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListMembershipsForAuthenticatedUserListingTest.php", + "hash": "52386cb67363be9c791fb5797023633f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Migrations\/ListForAuthenticatedUserListing.php", + "hash": "d2a55ecf70f829c6783ced2f43a19711" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Migrations\/ListForAuthenticatedUserListing.php", + "hash": "00e9f2b23d9c441e8c7516252315f09f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Migrations\/ListForAuthenticatedUserListingTest.php", + "hash": "d5b2ff895b37cd645dcc56c1cf0823b0" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Migrations\/ListReposForAuthenticatedUserListing.php", + "hash": "b0ad9d9a87e921477d8ed872dfcc88de" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Migrations\/ListReposForAuthenticatedUserListing.php", + "hash": "7bb65bb6f7bdd88eaad6df346ffc5474" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Migrations\/ListReposForAuthenticatedUserListingTest.php", + "hash": "49959ab7e763e6e2ded71db4caf5a491" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Orgs\/ListForAuthenticatedUserListing.php", + "hash": "c43a3fe8f18fbf836c20703f165133d6" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/ListForAuthenticatedUserListing.php", + "hash": "b6d435d62c911cec96d2015d5b020824" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListForAuthenticatedUserListingTest.php", + "hash": "6f9e821488f629be67f8210c49c2e2bc" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/ListPublicEmailsForAuthenticatedUserListing.php", + "hash": "faf37f187b7435094028ef93dc21eefd" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListPublicEmailsForAuthenticatedUserListing.php", + "hash": "c1705aa68fb5ac99d74d6b0930dc0a8a" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListPublicEmailsForAuthenticatedUserListingTest.php", + "hash": "06184397e17a43a7d56ad169e2fb7242" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListForAuthenticatedUserListing.php", + "hash": "0f362a807f7f2a738ce2e14c221ffb35" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListForAuthenticatedUserListing.php", + "hash": "af8ef246eab2e0d7626c0f5c35278441" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListForAuthenticatedUserListingTest.php", + "hash": "05e9119822ebcd4c3c8e49835591d681" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListInvitationsForAuthenticatedUserListing.php", + "hash": "0627aef79b8e225a5a4590a8ab38c4e7" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListInvitationsForAuthenticatedUserListing.php", + "hash": "af25ff5ca65198b32f00c516a69abc78" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListInvitationsForAuthenticatedUserListingTest.php", + "hash": "bcc8bff246368f8bce08741bbc5c9b9c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListReposStarredByAuthenticatedUserListing.php", + "hash": "a66ae556a8465ae55287a3a6ebec43dc" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListReposStarredByAuthenticatedUserListing.php", + "hash": "da1b3eba2c102440aa81c4aa0accab91" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListReposStarredByAuthenticatedUserListingTest.php", + "hash": "ae9999fe39d4c97f8b426e3a9f9412f4" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListWatchedReposForAuthenticatedUserListing.php", + "hash": "fcbc0f265126f80bdbc38abee8d4228f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListWatchedReposForAuthenticatedUserListing.php", + "hash": "8effbd468ece5d4ac0a6db19597e41f4" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListWatchedReposForAuthenticatedUserListingTest.php", + "hash": "b6ce6dad252913b62733850af5e63cd8" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Teams\/ListForAuthenticatedUserListing.php", + "hash": "ada0ada11aa6623256737de4c8c3413f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Teams\/ListForAuthenticatedUserListing.php", + "hash": "f9ac6d0eeb1ad54ef9c6370350fe0e27" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Teams\/ListForAuthenticatedUserListingTest.php", + "hash": "090b7f40b8b7a82ad8827398e5f09418" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListEventsForAuthenticatedUserListing.php", + "hash": "f14483638894a093f0c1f6f44b07fad8" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListEventsForAuthenticatedUserListing.php", + "hash": "e6cc020a16da522983b4472c536613c4" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListEventsForAuthenticatedUserListingTest.php", + "hash": "54e948945da494ac126efbe00b36c883" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListOrgEventsForAuthenticatedUserListing.php", + "hash": "c0320e000445c2cfa2114fe5be1f8411" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListOrgEventsForAuthenticatedUserListing.php", + "hash": "5806eaca26c7f5dce242f524ca09956d" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListOrgEventsForAuthenticatedUserListingTest.php", + "hash": "0af043b130a731c0c183edc139caeac6" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListPublicEventsForUserListing.php", + "hash": "48921049bcfd9f54134f323a2db626af" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListPublicEventsForUserListing.php", + "hash": "59134116f0d60e69deadec98276652c9" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListPublicEventsForUserListingTest.php", + "hash": "84990a2f82a562e6f4fe273ea5bc0063" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/ListFollowersForUserListing.php", + "hash": "3f82751ab23c5ede4024ea4827d52ac5" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListFollowersForUserListing.php", + "hash": "1dbbf303859cc7e7964d85539c3a297e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListFollowersForUserListingTest.php", + "hash": "8b1c265f416189229bf95a2cdb280fce" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/ListFollowingForUserListing.php", + "hash": "0b1d3d87888bec16c5db6344565378d6" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListFollowingForUserListing.php", + "hash": "b2ef65fd593e0c5dc69c6f20bb07bca4" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListFollowingForUserListingTest.php", + "hash": "aecdac4bedaae1d64cbe3ea957d4766b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Gists\/ListForUserListing.php", + "hash": "d88ff2293089c6ce741b0048b719d989" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Gists\/ListForUserListing.php", + "hash": "03832a4a4002061bdcffed215db705e7" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Gists\/ListForUserListingTest.php", + "hash": "00626be050a7528db60c0478d6033d55" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/ListGpgKeysForUserListing.php", + "hash": "fbc6d012b1b1c1a175599bcf4ba45a7e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListGpgKeysForUserListing.php", + "hash": "79ce8e32e012de6b4f613571edd93cbb" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListGpgKeysForUserListingTest.php", + "hash": "9a1db5b58b00c552050edda0b7946c7e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Users\/ListPublicKeysForUserListing.php", + "hash": "1240404609d083833f67b18733432197" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Users\/ListPublicKeysForUserListing.php", + "hash": "c3b8872092af1c365c17c0cffdfe712b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Users\/ListPublicKeysForUserListingTest.php", + "hash": "8faa741ca84432f2f7d7f17ce9c08e8f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Orgs\/ListForUserListing.php", + "hash": "21df11fd8e790fbff57aad8c5539ee28" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Orgs\/ListForUserListing.php", + "hash": "81b1de74d96ec07cd8a3e73ff66be501" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Orgs\/ListForUserListingTest.php", + "hash": "350327643ea7d2f68ffa5bc7817ef4bc" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Projects\/ListForUserListing.php", + "hash": "84404c7c90ac4400fb058d523f8f8fb5" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Projects\/ListForUserListing.php", + "hash": "015f798f87bd73ac50c708eb9d07ba9d" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Projects\/ListForUserListingTest.php", + "hash": "2f43b2cdc2f40c81c27dae33f0382628" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListReceivedEventsForUserListing.php", + "hash": "bb01c8e46ea50d354073183c5ff528eb" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListReceivedEventsForUserListing.php", + "hash": "6e82d67ed15ffee2bc5ae1c8c931b756" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListReceivedEventsForUserListingTest.php", + "hash": "286ef55136cf6471a24bb2b6b90ed9ed" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListReceivedPublicEventsForUserListing.php", + "hash": "451c21db0ab3f345154452153dfe0b44" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListReceivedPublicEventsForUserListing.php", + "hash": "3b34e8986dfafae9f66e50f69f2ca497" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListReceivedPublicEventsForUserListingTest.php", + "hash": "dbc60f5182d15008c8496ee9fc6f4a2d" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Repos\/ListForUserListing.php", + "hash": "a5ee83edbce8f023176a33e6f7e16751" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Repos\/ListForUserListing.php", + "hash": "f0259eb14dfbf03d8d4937dade1b8ded" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Repos\/ListForUserListingTest.php", + "hash": "384775d2d63c4750e533b2cdde29553f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operation\/Activity\/ListReposWatchedByUserListing.php", + "hash": "3bef40ebbcef2463bbb09e02bb7c29ef" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Operator\/Activity\/ListReposWatchedByUserListing.php", + "hash": "a8e127e9b882e045ba02c9bf201acd26" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/tests\/\/Operation\/Activity\/ListReposWatchedByUserListingTest.php", + "hash": "ad31cb1476090e0b2c4924878b8e9a6c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/EnterpriseAdmin.php", + "hash": "c6a410b4eb9a877ef19423e0225fc587" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Apps.php", + "hash": "9ef1128d1769dac0995a182f64b61647" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/OauthAuthorizations.php", + "hash": "ff6c8db54e61b735a5d5fb41bda70cb4" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Gists.php", + "hash": "3638e406db57c191a8bcc3ba9231bc39" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Users.php", + "hash": "8b4cde6d458fedcd89560821ba808f4e" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Issues.php", + "hash": "42732bbf076bed0d6b39131fe57722af" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Migrations.php", + "hash": "a8481c45e006506490d44b310ab260ec" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Orgs.php", + "hash": "f9169521e17fb0add7584f451b118d1b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Repos.php", + "hash": "889afe4e09868d3d3f87547ec5e9c6f4" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Activity.php", + "hash": "255eee705140a56f39f49c10397ee4b7" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Teams.php", + "hash": "ec0c8371d8f5af672ace901412636f1f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Licenses.php", + "hash": "bed3548190628cac9d7348fee98cfe6b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Projects.php", + "hash": "d51444e8da06ad0d6e7505a7027a2ebb" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/SecretScanning.php", + "hash": "d0db5b549468cac2405699fc4866eea9" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Pulls.php", + "hash": "eafabca9befecfc58e657517d58e2a55" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/CodeScanning.php", + "hash": "e386885459aeca3a307c4b5505a48915" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Reactions.php", + "hash": "6cbe04e435fa25008bf2181323299a21" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Checks.php", + "hash": "c839573e544322e761f39a74e181e7c5" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Stream\/EnterpriseAdmin.php", + "hash": "de43a3a951614659a51aa460dd5cb4ea" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Stream\/Migrations.php", + "hash": "089894e658c08656bf9af838d9501fcf" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Stream\/Repos.php", + "hash": "b01d9e5c791e9059f7cd7050b6589b0c" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/Stream\/Actions.php", + "hash": "cf9a4ee3a2ef3ff13f7563138501b919" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Three.php", + "hash": "a267dccc0b447d70ba38b6b92d32ee4f" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Two.php", + "hash": "ff72157252da2dcb9198cbaf6dd5c5d5" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Four.php", + "hash": "bb01967ecc2454cc8946f96f90f4496b" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Five.php", + "hash": "7b2fcb2c281497d248a3dee47ead64c8" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Six.php", + "hash": "f6acaf1c11d896376e4d5c1d7f86b464" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Eight.php", + "hash": "009eac05814889b15d67c342118a83ff" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Ten.php", + "hash": "e8c28566f1afc877c28038731b413927" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Seven.php", + "hash": "d3cd4284a01446bdf7a93225d49be495" + }, + { + "name": ".\/clients\/GitHubEnterprise-3.4\/etc\/..\/\/src\/\/Router\/List\/Nine.php", + "hash": "85ef453358224c9df16d0cd763198b8e" } ] }, @@ -15408,7 +17188,7 @@ }, { "name": "..\/..\/composer.lock", - "hash": "ce8d3c61d6fb819801f42d6c243a890e" + "hash": "01d5f51c3f46ee52c3fc15cacfd2dde3" } ] } diff --git a/clients/GitHubEnterprise-3.4/src/Client.php b/clients/GitHubEnterprise-3.4/src/Client.php index e77421fe0b0..5797faa6aa3 100644 --- a/clients/GitHubEnterprise-3.4/src/Client.php +++ b/clients/GitHubEnterprise-3.4/src/Client.php @@ -197,7 +197,7 @@ public function __construct(private readonly AuthenticationInterface $authentica // phpcs:disable /** - * @return ($call is Operation\Meta\Root::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListGlobalWebhooks::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\CreateGlobalWebhook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetGlobalWebhook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteGlobalWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateGlobalWebhook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\PingGlobalWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListPublicKeys::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\DeletePublicKey::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateLdapMappingForTeam::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SyncLdapMappingForTeam::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdateLdapMappingForUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SyncLdapMappingForUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateOrg::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdateOrgName::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPreReceiveEnvironments::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\CreatePreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeletePreReceiveEnvironment::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\StartPreReceiveEnvironmentDownload::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\StartPreReceiveEnvironmentDownloadStreaming::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetDownloadStatusForPreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetDownloadStatusForPreReceiveEnvironmentStreaming::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooks::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\CreatePreReceiveHook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPreReceiveHook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeletePreReceiveHook::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveHook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPersonalAccessTokens::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\DeletePersonalAccessToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\CreateUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateUsernameForUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateImpersonationOAuthToken::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteImpersonationOAuthToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\GetAuthenticated::OPERATION_MATCH ? : ($call is Operation\Apps\CreateFromManifest::OPERATION_MATCH ? : ($call is Operation\Apps\GetWebhookConfigForApp::OPERATION_MATCH ? : ($call is Operation\Apps\UpdateWebhookConfigForApp::OPERATION_MATCH ? : ($call is Operation\Apps\ListWebhookDeliveries::OPERATION_MATCH ? iterable : ($call is Operation\Apps\GetWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Apps\RedeliverWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Apps\ListInstallationRequestsForAuthenticatedApp::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Apps\ListInstallations::OPERATION_MATCH ? iterable : ($call is Operation\Apps\GetInstallation::OPERATION_MATCH ? : ($call is Operation\Apps\DeleteInstallation::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\CreateInstallationAccessToken::OPERATION_MATCH ? : ($call is Operation\Apps\SuspendInstallation::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\UnsuspendInstallation::OPERATION_MATCH ? array{code: int} : ($call is Operation\OauthAuthorizations\ListGrants::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\OauthAuthorizations\GetGrant::OPERATION_MATCH ? (Schema\ApplicationGrant | array{code: int}) : ($call is Operation\OauthAuthorizations\DeleteGrant::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\DeleteAuthorization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\CheckToken::OPERATION_MATCH ? : ($call is Operation\Apps\DeleteToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\ResetToken::OPERATION_MATCH ? : ($call is Operation\Apps\ScopeToken::OPERATION_MATCH ? : ($call is Operation\Apps\GetBySlug::OPERATION_MATCH ? : ($call is Operation\OauthAuthorizations\ListAuthorizations::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\OauthAuthorizations\CreateAuthorization::OPERATION_MATCH ? (Schema\Authorization | array{code: int}) : ($call is Operation\OauthAuthorizations\GetOrCreateAuthorizationForApp::OPERATION_MATCH ? (Schema\Authorization | array{code: int}) : ($call is Operation\OauthAuthorizations\GetOrCreateAuthorizationForAppAndFingerprint::OPERATION_MATCH ? : ($call is Operation\OauthAuthorizations\GetAuthorization::OPERATION_MATCH ? (Schema\Authorization | array{code: int}) : ($call is Operation\OauthAuthorizations\DeleteAuthorization::OPERATION_MATCH ? array{code: int} : ($call is Operation\OauthAuthorizations\UpdateAuthorization::OPERATION_MATCH ? : ($call is Operation\CodesOfConduct\GetAllCodesOfConduct::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\CodesOfConduct\GetConductCode::OPERATION_MATCH ? (Schema\CodeOfConduct | array{code: int}) : ($call is Operation\Emojis\Get::OPERATION_MATCH ? (Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\EnterpriseAdmin\GetAnnouncement::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemoveAnnouncement::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\SetAnnouncement::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetLicenseInformation::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetAllStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetCommentStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetGistStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetHooksStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetIssueStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetMilestoneStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetOrgStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPagesStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPullRequestStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetRepoStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetUserStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetGithubActionsPermissionsEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetGithubActionsPermissionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetSelectedOrganizationsEnabledGithubActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\EnableSelectedOrganizationGithubActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\DisableSelectedOrganizationGithubActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\GetAllowedActionsEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetAllowedActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateSelfHostedRunnerGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetSelfHostedRunnerGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteSelfHostedRunnerGroupFromEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateSelfHostedRunnerGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\AddOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\RemoveOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetSelfHostedRunnersInGroupForEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\AddSelfHostedRunnerToGroupForEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\RemoveSelfHostedRunnerFromGroupForEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListRunnerApplicationsForEnterprise::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\CreateRegistrationTokenForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateRemoveTokenForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteSelfHostedRunnerFromEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetCustomLabelsForSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\AddCustomLabelsToSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemoveCustomLabelFromSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetAuditLog::OPERATION_MATCH ? iterable : ($call is Operation\SecretScanning\ListAlertsForEnterprise::OPERATION_MATCH ? iterable : ($call is Operation\Billing\GetGithubAdvancedSecurityBillingGhe::OPERATION_MATCH ? : ($call is Operation\Activity\ListPublicEvents::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\GetFeeds::OPERATION_MATCH ? : ($call is Operation\Gists\List_::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\Create::OPERATION_MATCH ? (Schema\GistSimple | array{code: int}) : ($call is Operation\Gists\ListPublic::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\ListStarred::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\Get::OPERATION_MATCH ? (Schema\GistSimple | array{code: int}) : ($call is Operation\Gists\Delete::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\Update::OPERATION_MATCH ? : ($call is Operation\Gists\ListComments::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\CreateComment::OPERATION_MATCH ? (Schema\GistComment | array{code: int}) : ($call is Operation\Gists\GetComment::OPERATION_MATCH ? (Schema\GistComment | array{code: int}) : ($call is Operation\Gists\DeleteComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\UpdateComment::OPERATION_MATCH ? : ($call is Operation\Gists\ListCommits::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\ListForks::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\Fork::OPERATION_MATCH ? (Schema\BaseGist | array{code: int}) : ($call is Operation\Gists\CheckIsStarred::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\Star::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\Unstar::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\GetRevision::OPERATION_MATCH ? : ($call is Operation\Gitignore\GetAllTemplates::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gitignore\GetTemplate::OPERATION_MATCH ? (Schema\GitignoreTemplate | array{code: int}) : ($call is Operation\Apps\ListReposAccessibleToInstallation::OPERATION_MATCH ? (Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Apps\RevokeInstallationAccessToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\List_::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Licenses\GetAllCommonlyUsed::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Licenses\Get::OPERATION_MATCH ? (Schema\License | array{code: int}) : ($call is Operation\Markdown\Render::OPERATION_MATCH ? (string | array{code: int}) : ($call is Operation\Markdown\RenderRaw::OPERATION_MATCH ? (string | array{code: int}) : ($call is Operation\Meta\Get::OPERATION_MATCH ? (Schema\ApiOverview | array{code: int}) : ($call is Operation\Activity\ListPublicEventsForRepoNetwork::OPERATION_MATCH ? (iterable | Schema\BasicError | array{code: int}) : ($call is Operation\Activity\ListNotificationsForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\MarkNotificationsAsRead::OPERATION_MATCH ? (Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted | array{code: int}) : ($call is Operation\Activity\GetThread::OPERATION_MATCH ? (Schema\Thread | array{code: int}) : ($call is Operation\Activity\MarkThreadAsRead::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\GetThreadSubscriptionForAuthenticatedUser::OPERATION_MATCH ? (Schema\ThreadSubscription | array{code: int}) : ($call is Operation\Activity\SetThreadSubscription::OPERATION_MATCH ? (Schema\ThreadSubscription | array{code: int}) : ($call is Operation\Activity\DeleteThreadSubscription::OPERATION_MATCH ? array{code: int} : ($call is Operation\Meta\GetOctocat::OPERATION_MATCH ? : ($call is Operation\Orgs\List_::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Orgs\ListCustomRoles::OPERATION_MATCH ? : ($call is Operation\Orgs\Get::OPERATION_MATCH ? : ($call is Operation\Orgs\Update::OPERATION_MATCH ? Schema\OrganizationFull : ($call is Operation\Actions\GetGithubActionsPermissionsOrganization::OPERATION_MATCH ? : ($call is Operation\Actions\SetGithubActionsPermissionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization::OPERATION_MATCH ? : ($call is Operation\Actions\SetSelectedRepositoriesEnabledGithubActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\EnableSelectedRepositoryGithubActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\DisableSelectedRepositoryGithubActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetAllowedActionsOrganization::OPERATION_MATCH ? : ($call is Operation\Actions\SetAllowedActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnerGroupsForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\CreateSelfHostedRunnerGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\GetSelfHostedRunnerGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteSelfHostedRunnerGroupFromOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\UpdateSelfHostedRunnerGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? : ($call is Operation\Actions\SetRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\AddRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\RemoveRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnersInGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\SetSelfHostedRunnersInGroupForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\AddSelfHostedRunnerToGroupForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\RemoveSelfHostedRunnerFromGroupForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnersForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\ListRunnerApplicationsForOrg::OPERATION_MATCH ? iterable : ($call is Operation\Actions\CreateRegistrationTokenForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\CreateRemoveTokenForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\GetSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteSelfHostedRunnerFromOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListLabelsForSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\SetCustomLabelsForSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\AddCustomLabelsToSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveCustomLabelFromSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\ListOrgSecrets::OPERATION_MATCH ? : ($call is Operation\Actions\GetOrgPublicKey::OPERATION_MATCH ? : ($call is Operation\Actions\GetOrgSecret::OPERATION_MATCH ? : ($call is Operation\Actions\CreateOrUpdateOrgSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Actions\DeleteOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelectedReposForOrgSecret::OPERATION_MATCH ? : ($call is Operation\Actions\SetSelectedReposForOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\AddSelectedRepoToOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\RemoveSelectedRepoFromOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\GetAuditLog::OPERATION_MATCH ? iterable : ($call is Operation\Dependabot\ListOrgSecrets::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetOrgPublicKey::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetOrgSecret::OPERATION_MATCH ? : ($call is Operation\Dependabot\CreateOrUpdateOrgSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Dependabot\DeleteOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Dependabot\ListSelectedReposForOrgSecret::OPERATION_MATCH ? : ($call is Operation\Dependabot\SetSelectedReposForOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Dependabot\AddSelectedRepoToOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Dependabot\RemoveSelectedRepoFromOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListPublicOrgEvents::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListWebhooks::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\CreateWebhook::OPERATION_MATCH ? : ($call is Operation\Orgs\GetWebhook::OPERATION_MATCH ? : ($call is Operation\Orgs\DeleteWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\UpdateWebhook::OPERATION_MATCH ? : ($call is Operation\Orgs\GetWebhookConfigForOrg::OPERATION_MATCH ? : ($call is Operation\Orgs\UpdateWebhookConfigForOrg::OPERATION_MATCH ? : ($call is Operation\Orgs\ListWebhookDeliveries::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\GetWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Orgs\RedeliverWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Orgs\PingWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\GetOrgInstallation::OPERATION_MATCH ? : ($call is Operation\Orgs\ListAppInstallations::OPERATION_MATCH ? : ($call is Operation\Issues\ListForOrg::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListMembers::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\CheckMembershipForUser::OPERATION_MATCH ? (array{code: int} | array{code: int, location: string}) : ($call is Operation\Orgs\RemoveMember::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\GetMembershipForUser::OPERATION_MATCH ? : ($call is Operation\Orgs\SetMembershipForUser::OPERATION_MATCH ? : ($call is Operation\Orgs\RemoveMembershipForUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\ListForOrg::OPERATION_MATCH ? iterable : ($call is Operation\Migrations\StartForOrg::OPERATION_MATCH ? : ($call is Operation\Migrations\GetStatusForOrg::OPERATION_MATCH ? : ($call is Operation\Migrations\DownloadArchiveForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\DownloadArchiveForOrgStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Migrations\DeleteArchiveForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\UnlockRepoForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\ListReposForOrg::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListOutsideCollaborators::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ConvertMemberToOutsideCollaborator::OPERATION_MATCH ? (Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Orgs\RemoveOutsideCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooksForOrg::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\GetPreReceiveHookForOrg::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemovePreReceiveHookEnforcementForOrg::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveHookEnforcementForOrg::OPERATION_MATCH ? : ($call is Operation\Projects\ListForOrg::OPERATION_MATCH ? iterable : ($call is Operation\Projects\CreateForOrg::OPERATION_MATCH ? : ($call is Operation\Orgs\ListPublicMembers::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\CheckPublicMembershipForUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\SetPublicMembershipForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\RemovePublicMembershipForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListForOrg::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateInOrg::OPERATION_MATCH ? : ($call is Operation\SecretScanning\ListAlertsForOrg::OPERATION_MATCH ? iterable : ($call is Operation\Billing\GetGithubAdvancedSecurityBillingOrg::OPERATION_MATCH ? : ($call is Operation\Teams\List_::OPERATION_MATCH ? iterable : ($call is Operation\Teams\Create::OPERATION_MATCH ? : ($call is Operation\Teams\GetByName::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionsInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionCommentsInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionCommentInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForTeamDiscussionCommentInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForTeamDiscussionComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Reactions\ListForTeamDiscussionInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForTeamDiscussion::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListMembersInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Teams\GetMembershipForUserInOrg::OPERATION_MATCH ? (Schema\TeamMembership | array{code: int}) : ($call is Operation\Teams\AddOrUpdateMembershipForUserInOrg::OPERATION_MATCH ? (Schema\TeamMembership | array{code: int}) : ($call is Operation\Teams\RemoveMembershipForUserInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListProjectsInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForProjectInOrg::OPERATION_MATCH ? (Schema\TeamProject | array{code: int}) : ($call is Operation\Teams\AddOrUpdateProjectPermissionsInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveProjectInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListReposInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForRepoInOrg::OPERATION_MATCH ? (Schema\TeamRepository | array{code: int}) : ($call is Operation\Teams\AddOrUpdateRepoPermissionsInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveRepoInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListChildInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Projects\GetCard::OPERATION_MATCH ? (Schema\ProjectCard | array{code: int}) : ($call is Operation\Projects\DeleteCard::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\UpdateCard::OPERATION_MATCH ? (Schema\ProjectCard | array{code: int}) : ($call is Operation\Projects\MoveCard::OPERATION_MATCH ? (Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json | array{code: int}) : ($call is Operation\Projects\GetColumn::OPERATION_MATCH ? (Schema\ProjectColumn | array{code: int}) : ($call is Operation\Projects\DeleteColumn::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\UpdateColumn::OPERATION_MATCH ? (Schema\ProjectColumn | array{code: int}) : ($call is Operation\Projects\ListCards::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\CreateCard::OPERATION_MATCH ? (Schema\ProjectCard | array{code: int}) : ($call is Operation\Projects\MoveColumn::OPERATION_MATCH ? (Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json | array{code: int}) : ($call is Operation\Projects\Get::OPERATION_MATCH ? (Schema\Project | array{code: int}) : ($call is Operation\Projects\Delete::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\Update::OPERATION_MATCH ? (Schema\Project | array{code: int}) : ($call is Operation\Projects\ListCollaborators::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\AddCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\RemoveCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\GetPermissionForUser::OPERATION_MATCH ? (Schema\ProjectCollaboratorPermission | array{code: int}) : ($call is Operation\Projects\ListColumns::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\CreateColumn::OPERATION_MATCH ? (Schema\ProjectColumn | array{code: int}) : ($call is Operation\RateLimit\Get::OPERATION_MATCH ? (Schema\RateLimitOverview | array{code: int}) : ($call is Operation\Reactions\DeleteLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\Get::OPERATION_MATCH ? : ($call is Operation\Repos\Delete::OPERATION_MATCH ? (Schema\BasicError | array{code: int}) : ($call is Operation\Repos\Update::OPERATION_MATCH ? : ($call is Operation\Actions\ListArtifactsForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\GetArtifact::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteArtifact::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\DownloadArtifact::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Actions\DownloadArtifactStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Actions\GetJobForWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\DownloadJobLogsForWorkflowRun::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Actions\DownloadJobLogsForWorkflowRunStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Actions\GetGithubActionsPermissionsRepository::OPERATION_MATCH ? : ($call is Operation\Actions\SetGithubActionsPermissionsRepository::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetAllowedActionsRepository::OPERATION_MATCH ? : ($call is Operation\Actions\SetAllowedActionsRepository::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnersForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\ListRunnerApplicationsForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Actions\CreateRegistrationTokenForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\CreateRemoveTokenForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\GetSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteSelfHostedRunnerFromRepo::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListLabelsForSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\SetCustomLabelsForSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\AddCustomLabelsToSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveCustomLabelFromSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\ListWorkflowRunsForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\GetWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteWorkflowRun::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetReviewsForRun::OPERATION_MATCH ? iterable : ($call is Operation\Actions\ListWorkflowRunArtifacts::OPERATION_MATCH ? : ($call is Operation\Actions\CancelWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\ListJobsForWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\DownloadWorkflowRunLogs::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Actions\DownloadWorkflowRunLogsStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Actions\DeleteWorkflowRunLogs::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetPendingDeploymentsForRun::OPERATION_MATCH ? iterable : ($call is Operation\Actions\ReviewPendingDeploymentsForRun::OPERATION_MATCH ? iterable : ($call is Operation\Actions\ReRunWorkflow::OPERATION_MATCH ? : ($call is Operation\Actions\ListRepoSecrets::OPERATION_MATCH ? : ($call is Operation\Actions\GetRepoPublicKey::OPERATION_MATCH ? : ($call is Operation\Actions\GetRepoSecret::OPERATION_MATCH ? : ($call is Operation\Actions\CreateOrUpdateRepoSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Actions\DeleteRepoSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListRepoWorkflows::OPERATION_MATCH ? : ($call is Operation\Actions\GetWorkflow::OPERATION_MATCH ? : ($call is Operation\Actions\DisableWorkflow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\CreateWorkflowDispatch::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\EnableWorkflow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListWorkflowRuns::OPERATION_MATCH ? : ($call is Operation\Issues\ListAssignees::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CheckUserCanBeAssigned::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListAutolinks::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateAutolink::OPERATION_MATCH ? : ($call is Operation\Repos\GetAutolink::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAutolink::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListBranches::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetBranch::OPERATION_MATCH ? : ($call is Operation\Repos\GetBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteBranchProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetAdminBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\SetAdminBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAdminBranchProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetPullRequestReviewProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeletePullRequestReviewProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdatePullRequestReviewProtection::OPERATION_MATCH ? : ($call is Operation\Repos\GetCommitSignatureProtection::OPERATION_MATCH ? : ($call is Operation\Repos\CreateCommitSignatureProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteCommitSignatureProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetStatusChecksProtection::OPERATION_MATCH ? : ($call is Operation\Repos\RemoveStatusCheckProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateStatusCheckProtection::OPERATION_MATCH ? : ($call is Operation\Repos\GetAllStatusCheckContexts::OPERATION_MATCH ? iterable : ($call is Operation\Repos\SetStatusCheckContexts::OPERATION_MATCH ? iterable : ($call is Operation\Repos\AddStatusCheckContexts::OPERATION_MATCH ? iterable : ($call is Operation\Repos\RemoveStatusCheckContexts::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetAccessRestrictions::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAccessRestrictions::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetAppsWithAccessToProtectedBranch::OPERATION_MATCH ? iterable : ($call is Operation\Repos\SetAppAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\AddAppAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\RemoveAppAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetTeamsWithAccessToProtectedBranch::OPERATION_MATCH ? iterable : ($call is Operation\Repos\SetTeamAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\AddTeamAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\RemoveTeamAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetUsersWithAccessToProtectedBranch::OPERATION_MATCH ? iterable : ($call is Operation\Repos\SetUserAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\AddUserAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\RemoveUserAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\RenameBranch::OPERATION_MATCH ? : ($call is Operation\Checks\Create::OPERATION_MATCH ? : ($call is Operation\Checks\Get::OPERATION_MATCH ? : ($call is Operation\Checks\Update::OPERATION_MATCH ? : ($call is Operation\Checks\ListAnnotations::OPERATION_MATCH ? iterable : ($call is Operation\Checks\RerequestRun::OPERATION_MATCH ? : ($call is Operation\Checks\CreateSuite::OPERATION_MATCH ? : ($call is Operation\Checks\SetSuitesPreferences::OPERATION_MATCH ? : ($call is Operation\Checks\GetSuite::OPERATION_MATCH ? : ($call is Operation\Checks\ListForSuite::OPERATION_MATCH ? : ($call is Operation\Checks\RerequestSuite::OPERATION_MATCH ? : ($call is Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\CodeScanning\GetAlert::OPERATION_MATCH ? (Schema\CodeScanningAlert | array{code: int}) : ($call is Operation\CodeScanning\UpdateAlert::OPERATION_MATCH ? : ($call is Operation\CodeScanning\ListAlertInstances::OPERATION_MATCH ? iterable : ($call is Operation\CodeScanning\ListRecentAnalyses::OPERATION_MATCH ? iterable : ($call is Operation\CodeScanning\GetAnalysis::OPERATION_MATCH ? : ($call is Operation\CodeScanning\DeleteAnalysis::OPERATION_MATCH ? : ($call is Operation\CodeScanning\UploadSarif::OPERATION_MATCH ? (Schema\CodeScanningSarifsReceipt | array{code: int}) : ($call is Operation\CodeScanning\GetSarif::OPERATION_MATCH ? (Schema\CodeScanningSarifsStatus | array{code: int}) : ($call is Operation\Repos\ListCollaborators::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CheckCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\AddCollaborator::OPERATION_MATCH ? (Schema\RepositoryInvitation | array{code: int}) : ($call is Operation\Repos\RemoveCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetCollaboratorPermissionLevel::OPERATION_MATCH ? : ($call is Operation\Repos\ListCommitCommentsForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetCommitComment::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteCommitComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateCommitComment::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForCommitComment::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForCommitComment::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForCommitComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListCommits::OPERATION_MATCH ? iterable : ($call is Operation\Repos\ListBranchesForHeadCommit::OPERATION_MATCH ? iterable : ($call is Operation\Repos\ListCommentsForCommit::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateCommitComment::OPERATION_MATCH ? : ($call is Operation\Repos\ListPullRequestsAssociatedWithCommit::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetCommit::OPERATION_MATCH ? : ($call is Operation\Checks\ListForRef::OPERATION_MATCH ? : ($call is Operation\Checks\ListSuitesForRef::OPERATION_MATCH ? : ($call is Operation\Repos\GetCombinedStatusForRef::OPERATION_MATCH ? : ($call is Operation\Repos\ListCommitStatusesForRef::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Repos\CompareCommits::OPERATION_MATCH ? : ($call is Operation\Repos\GetContent::OPERATION_MATCH ? (Schema\ContentDirectory | Schema\ContentFile | Schema\ContentSymlink | Schema\ContentSubmodule | array{code: int}) : ($call is Operation\Repos\CreateOrUpdateFileContents::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteFile::OPERATION_MATCH ? : ($call is Operation\Repos\ListContributors::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Dependabot\ListRepoSecrets::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetRepoPublicKey::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetRepoSecret::OPERATION_MATCH ? : ($call is Operation\Dependabot\CreateOrUpdateRepoSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Dependabot\DeleteRepoSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListDeployments::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateDeployment::OPERATION_MATCH ? (Schema\Deployment | Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetDeployment::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteDeployment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListDeploymentStatuses::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateDeploymentStatus::OPERATION_MATCH ? : ($call is Operation\Repos\GetDeploymentStatus::OPERATION_MATCH ? : ($call is Operation\Repos\CreateDispatchEvent::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetAllEnvironments::OPERATION_MATCH ? : ($call is Operation\Repos\GetEnvironment::OPERATION_MATCH ? : ($call is Operation\Repos\CreateOrUpdateEnvironment::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAnEnvironment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListDeploymentBranchPolicies::OPERATION_MATCH ? : ($call is Operation\Repos\CreateDeploymentBranchPolicy::OPERATION_MATCH ? (Schema\DeploymentBranchPolicy | array{code: int}) : ($call is Operation\Repos\GetDeploymentBranchPolicy::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateDeploymentBranchPolicy::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteDeploymentBranchPolicy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListRepoEvents::OPERATION_MATCH ? iterable : ($call is Operation\Repos\ListForks::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateFork::OPERATION_MATCH ? : ($call is Operation\Git\CreateBlob::OPERATION_MATCH ? : ($call is Operation\Git\GetBlob::OPERATION_MATCH ? : ($call is Operation\Git\CreateCommit::OPERATION_MATCH ? : ($call is Operation\Git\GetCommit::OPERATION_MATCH ? : ($call is Operation\Git\ListMatchingRefs::OPERATION_MATCH ? iterable : ($call is Operation\Git\GetRef::OPERATION_MATCH ? : ($call is Operation\Git\CreateRef::OPERATION_MATCH ? : ($call is Operation\Git\DeleteRef::OPERATION_MATCH ? array{code: int} : ($call is Operation\Git\UpdateRef::OPERATION_MATCH ? : ($call is Operation\Git\CreateTag::OPERATION_MATCH ? : ($call is Operation\Git\GetTag::OPERATION_MATCH ? : ($call is Operation\Git\CreateTree::OPERATION_MATCH ? : ($call is Operation\Git\GetTree::OPERATION_MATCH ? : ($call is Operation\Repos\ListWebhooks::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateWebhook::OPERATION_MATCH ? : ($call is Operation\Repos\GetWebhook::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateWebhook::OPERATION_MATCH ? : ($call is Operation\Repos\GetWebhookConfigForRepo::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateWebhookConfigForRepo::OPERATION_MATCH ? : ($call is Operation\Repos\ListWebhookDeliveries::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Repos\RedeliverWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Repos\PingWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\TestPushWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\GetRepoInstallation::OPERATION_MATCH ? : ($call is Operation\Repos\ListInvitations::OPERATION_MATCH ? iterable : ($call is Operation\Repos\DeleteInvitation::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateInvitation::OPERATION_MATCH ? : ($call is Operation\Issues\ListForRepo::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Issues\Create::OPERATION_MATCH ? : ($call is Operation\Issues\ListCommentsForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Issues\GetComment::OPERATION_MATCH ? : ($call is Operation\Issues\DeleteComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\UpdateComment::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForIssueComment::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForIssueComment::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForIssueComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListEventsForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Issues\GetEvent::OPERATION_MATCH ? : ($call is Operation\Issues\Get::OPERATION_MATCH ? (Schema\Issue | Schema\BasicError | array{code: int}) : ($call is Operation\Issues\Update::OPERATION_MATCH ? : ($call is Operation\Issues\AddAssignees::OPERATION_MATCH ? : ($call is Operation\Issues\RemoveAssignees::OPERATION_MATCH ? : ($call is Operation\Issues\CheckUserCanBeAssignedToIssue::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListComments::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CreateComment::OPERATION_MATCH ? : ($call is Operation\Issues\ListEvents::OPERATION_MATCH ? iterable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\AssignedIssueEvent | Schema\UnassignedIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent)> : ($call is Operation\Issues\ListLabelsOnIssue::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Issues\SetLabels::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Issues\AddLabels::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Issues\RemoveAllLabels::OPERATION_MATCH ? (Schema\BasicError | array{code: int}) : ($call is Operation\Issues\RemoveLabel::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Issues\Lock::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\Unlock::OPERATION_MATCH ? array{code: int} : ($call is Operation\Reactions\ListForIssue::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForIssue::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForIssue::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListEventsForTimeline::OPERATION_MATCH ? iterable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent | Schema\TimelineCommentEvent | Schema\TimelineCrossReferencedEvent | Schema\TimelineCommittedEvent | Schema\TimelineReviewedEvent | Schema\TimelineLineCommentedEvent | Schema\TimelineCommitCommentedEvent | Schema\TimelineAssignedIssueEvent | Schema\TimelineUnassignedIssueEvent | Schema\StateChangeIssueEvent)> : ($call is Operation\Repos\ListDeployKeys::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateDeployKey::OPERATION_MATCH ? : ($call is Operation\Repos\GetDeployKey::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteDeployKey::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListLabelsForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CreateLabel::OPERATION_MATCH ? : ($call is Operation\Issues\GetLabel::OPERATION_MATCH ? : ($call is Operation\Issues\DeleteLabel::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\UpdateLabel::OPERATION_MATCH ? : ($call is Operation\Repos\ListLanguages::OPERATION_MATCH ? : ($call is Operation\Repos\EnableLfsForRepo::OPERATION_MATCH ? (Schema\Operations\Repos\EnableLfsForRepo\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\DisableLfsForRepo::OPERATION_MATCH ? array{code: int} : ($call is Operation\Licenses\GetForRepo::OPERATION_MATCH ? : ($call is Operation\Repos\MergeUpstream::OPERATION_MATCH ? (Schema\MergedUpstream | array{code: int}) : ($call is Operation\Repos\Merge::OPERATION_MATCH ? (Schema\Commit | array{code: int}) : ($call is Operation\Issues\ListMilestones::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CreateMilestone::OPERATION_MATCH ? : ($call is Operation\Issues\GetMilestone::OPERATION_MATCH ? : ($call is Operation\Issues\DeleteMilestone::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\UpdateMilestone::OPERATION_MATCH ? : ($call is Operation\Issues\ListLabelsForMilestone::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListRepoNotificationsForAuthenticatedUser::OPERATION_MATCH ? iterable : ($call is Operation\Activity\MarkRepoNotificationsAsRead::OPERATION_MATCH ? (Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetPages::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateInformationAboutPagesSite::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\CreatePagesSite::OPERATION_MATCH ? : ($call is Operation\Repos\DeletePagesSite::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListPagesBuilds::OPERATION_MATCH ? iterable : ($call is Operation\Repos\RequestPagesBuild::OPERATION_MATCH ? : ($call is Operation\Repos\GetLatestPagesBuild::OPERATION_MATCH ? : ($call is Operation\Repos\GetPagesBuild::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooksForRepo::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\GetPreReceiveHookForRepo::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemovePreReceiveHookEnforcementForRepo::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveHookEnforcementForRepo::OPERATION_MATCH ? : ($call is Operation\Projects\ListForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Projects\CreateForRepo::OPERATION_MATCH ? : ($call is Operation\Pulls\List_::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Pulls\Create::OPERATION_MATCH ? : ($call is Operation\Pulls\ListReviewCommentsForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\GetReviewComment::OPERATION_MATCH ? : ($call is Operation\Pulls\DeleteReviewComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Pulls\UpdateReviewComment::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForPullRequestReviewComment::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForPullRequestReviewComment::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForPullRequestComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Pulls\Get::OPERATION_MATCH ? (Schema\PullRequest | array{code: int}) : ($call is Operation\Pulls\Update::OPERATION_MATCH ? : ($call is Operation\Pulls\ListReviewComments::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\CreateReviewComment::OPERATION_MATCH ? : ($call is Operation\Pulls\CreateReplyForReviewComment::OPERATION_MATCH ? : ($call is Operation\Pulls\ListCommits::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\ListFiles::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\CheckIfMerged::OPERATION_MATCH ? array{code: int} : ($call is Operation\Pulls\Merge::OPERATION_MATCH ? : ($call is Operation\Pulls\ListRequestedReviewers::OPERATION_MATCH ? : ($call is Operation\Pulls\RequestReviewers::OPERATION_MATCH ? (Schema\PullRequestSimple | array{code: int}) : ($call is Operation\Pulls\RemoveRequestedReviewers::OPERATION_MATCH ? : ($call is Operation\Pulls\ListReviews::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\CreateReview::OPERATION_MATCH ? : ($call is Operation\Pulls\GetReview::OPERATION_MATCH ? : ($call is Operation\Pulls\UpdateReview::OPERATION_MATCH ? : ($call is Operation\Pulls\DeletePendingReview::OPERATION_MATCH ? : ($call is Operation\Pulls\ListCommentsForReview::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\DismissReview::OPERATION_MATCH ? : ($call is Operation\Pulls\SubmitReview::OPERATION_MATCH ? : ($call is Operation\Pulls\UpdateBranch::OPERATION_MATCH ? : ($call is Operation\Repos\GetReadme::OPERATION_MATCH ? : ($call is Operation\Repos\GetReadmeInDirectory::OPERATION_MATCH ? : ($call is Operation\Repos\ListReleases::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateRelease::OPERATION_MATCH ? : ($call is Operation\Repos\GetReleaseAsset::OPERATION_MATCH ? (Schema\ReleaseAsset | array{code: int}) : ($call is Operation\Repos\DeleteReleaseAsset::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateReleaseAsset::OPERATION_MATCH ? : ($call is Operation\Repos\GenerateReleaseNotes::OPERATION_MATCH ? : ($call is Operation\Repos\GetLatestRelease::OPERATION_MATCH ? : ($call is Operation\Repos\GetReleaseByTag::OPERATION_MATCH ? : ($call is Operation\Repos\GetRelease::OPERATION_MATCH ? (Schema\Release | array{code: int}) : ($call is Operation\Repos\DeleteRelease::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateRelease::OPERATION_MATCH ? : ($call is Operation\Repos\ListReleaseAssets::OPERATION_MATCH ? iterable : ($call is Operation\Repos\UploadReleaseAsset::OPERATION_MATCH ? (Schema\ReleaseAsset | array{code: int}) : ($call is Operation\Reactions\ListForRelease::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForRelease::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForRelease::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListCacheInfo::OPERATION_MATCH ? iterable : ($call is Operation\SecretScanning\ListAlertsForRepo::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\SecretScanning\GetAlert::OPERATION_MATCH ? (Schema\SecretScanningAlert | array{code: int}) : ($call is Operation\SecretScanning\UpdateAlert::OPERATION_MATCH ? (Schema\SecretScanningAlert | array{code: int}) : ($call is Operation\SecretScanning\ListLocationsForAlert::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\ListStargazersForRepo::OPERATION_MATCH ? (Schema\SimpleUser | Schema\Stargazer) : ($call is Operation\Repos\GetCodeFrequencyStats::OPERATION_MATCH ? (iterable | Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetCommitActivityStats::OPERATION_MATCH ? (iterable | Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetContributorsStats::OPERATION_MATCH ? (iterable | Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetParticipationStats::OPERATION_MATCH ? : ($call is Operation\Repos\GetPunchCardStats::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Repos\CreateCommitStatus::OPERATION_MATCH ? : ($call is Operation\Activity\ListWatchersForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Activity\GetRepoSubscription::OPERATION_MATCH ? (Schema\RepositorySubscription | array{code: int}) : ($call is Operation\Activity\SetRepoSubscription::OPERATION_MATCH ? : ($call is Operation\Activity\DeleteRepoSubscription::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListTags::OPERATION_MATCH ? iterable : ($call is Operation\Repos\DownloadTarballArchive::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Repos\DownloadTarballArchiveStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListTeams::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetAllTopics::OPERATION_MATCH ? : ($call is Operation\Repos\ReplaceAllTopics::OPERATION_MATCH ? : ($call is Operation\Repos\Transfer::OPERATION_MATCH ? : ($call is Operation\Repos\DownloadZipballArchive::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Repos\DownloadZipballArchiveStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Repos\CreateUsingTemplate::OPERATION_MATCH ? : ($call is Operation\Repos\ListPublic::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Actions\ListEnvironmentSecrets::OPERATION_MATCH ? : ($call is Operation\Actions\GetEnvironmentPublicKey::OPERATION_MATCH ? : ($call is Operation\Actions\GetEnvironmentSecret::OPERATION_MATCH ? : ($call is Operation\Actions\CreateOrUpdateEnvironmentSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Actions\DeleteEnvironmentSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Search\Code::OPERATION_MATCH ? (Schema\Operations\Search\Code\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Commits::OPERATION_MATCH ? (Schema\Operations\Search\Commits\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\IssuesAndPullRequests::OPERATION_MATCH ? (Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Labels::OPERATION_MATCH ? (Schema\Operations\Search\Labels\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Repos::OPERATION_MATCH ? (Schema\Operations\Search\Repos\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Topics::OPERATION_MATCH ? (Schema\Operations\Search\Topics\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Users::OPERATION_MATCH ? (Schema\Operations\Search\Users\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\EnterpriseAdmin\GetConfigurationStatus::OPERATION_MATCH ? (Schema\ConfigurationStatus | array{code: int}) : ($call is Operation\EnterpriseAdmin\StartConfigurationProcess::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\GetMaintenanceStatus::OPERATION_MATCH ? (Schema\MaintenanceStatus | array{code: int}) : ($call is Operation\EnterpriseAdmin\EnableOrDisableMaintenanceMode::OPERATION_MATCH ? (Schema\MaintenanceStatus | array{code: int}) : ($call is Operation\EnterpriseAdmin\GetSettings::OPERATION_MATCH ? (Schema\EnterpriseSettings | array{code: int}) : ($call is Operation\EnterpriseAdmin\SetSettings::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\GetAllAuthorizedSshKeys::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\EnterpriseAdmin\AddAuthorizedSshKey::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\EnterpriseAdmin\RemoveAuthorizedSshKey::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\EnterpriseAdmin\CreateEnterpriseServerLicense::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpgradeLicense::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\GetLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionsLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionCommentsLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionCommentLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForTeamDiscussionCommentLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForTeamDiscussionLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\ListMembersLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Teams\GetMemberLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\AddMemberLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveMemberLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\GetMembershipForUserLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\AddOrUpdateMembershipForUserLegacy::OPERATION_MATCH ? (Schema\TeamMembership | array{code: int}) : ($call is Operation\Teams\RemoveMembershipForUserLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListProjectsLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForProjectLegacy::OPERATION_MATCH ? (Schema\TeamProject | array{code: int}) : ($call is Operation\Teams\AddOrUpdateProjectPermissionsLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveProjectLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListReposLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForRepoLegacy::OPERATION_MATCH ? (Schema\TeamRepository | array{code: int}) : ($call is Operation\Teams\AddOrUpdateRepoPermissionsLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveRepoLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListChildLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Users\GetAuthenticated::OPERATION_MATCH ? (Schema\PrivateUser | Schema\PublicUser | array{code: int}) : ($call is Operation\Users\UpdateAuthenticated::OPERATION_MATCH ? (Schema\PrivateUser | array{code: int}) : ($call is Operation\Users\ListEmailsForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\AddEmailForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\DeleteEmailForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\ListFollowersForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\ListFollowedByAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\CheckPersonIsFollowedByAuthenticated::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\Follow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\Unfollow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\ListGpgKeysForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\CreateGpgKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\GpgKey | array{code: int}) : ($call is Operation\Users\GetGpgKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\GpgKey | array{code: int}) : ($call is Operation\Users\DeleteGpgKeyForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\ListInstallationsForAuthenticatedUser::OPERATION_MATCH ? (Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json | array{code: int}) : ($call is Operation\Apps\ListInstallationReposForAuthenticatedUser::OPERATION_MATCH ? (Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Apps\AddRepoToInstallationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\RemoveRepoFromInstallationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\ListPublicSshKeysForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\CreatePublicSshKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\Key | array{code: int}) : ($call is Operation\Users\GetPublicSshKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\Key | array{code: int}) : ($call is Operation\Users\DeletePublicSshKeyForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\ListMembershipsForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Orgs\GetMembershipForAuthenticatedUser::OPERATION_MATCH ? : ($call is Operation\Orgs\UpdateMembershipForAuthenticatedUser::OPERATION_MATCH ? : ($call is Operation\Migrations\ListForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Migrations\StartForAuthenticatedUser::OPERATION_MATCH ? (Schema\Migration | array{code: int}) : ($call is Operation\Migrations\GetArchiveForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\ListReposForAuthenticatedUser::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\CreateForAuthenticatedUser::OPERATION_MATCH ? (Schema\Project | array{code: int}) : ($call is Operation\Users\ListPublicEmailsForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Repos\ListForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Repos\CreateForAuthenticatedUser::OPERATION_MATCH ? (Schema\Repository | array{code: int}) : ($call is Operation\Repos\ListInvitationsForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Repos\DeclineInvitationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\AcceptInvitationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListReposStarredByAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\CheckRepoIsStarredByAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\StarRepoForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\UnstarRepoForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListWatchedReposForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Teams\ListForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\List_::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\GetByUsername::OPERATION_MATCH ? (Schema\PrivateUser | Schema\PublicUser) : ($call is Operation\Activity\ListEventsForAuthenticatedUser::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListOrgEventsForAuthenticatedUser::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListPublicEventsForUser::OPERATION_MATCH ? iterable : ($call is Operation\Users\ListFollowersForUser::OPERATION_MATCH ? iterable : ($call is Operation\Users\ListFollowingForUser::OPERATION_MATCH ? iterable : ($call is Operation\Users\CheckFollowingForUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\ListForUser::OPERATION_MATCH ? iterable : ($call is Operation\Users\ListGpgKeysForUser::OPERATION_MATCH ? iterable : ($call is Operation\Users\GetContextForUser::OPERATION_MATCH ? : ($call is Operation\Apps\GetUserInstallation::OPERATION_MATCH ? : ($call is Operation\Users\ListPublicKeysForUser::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListForUser::OPERATION_MATCH ? iterable : ($call is Operation\Projects\ListForUser::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListReceivedEventsForUser::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListReceivedPublicEventsForUser::OPERATION_MATCH ? iterable : ($call is Operation\Repos\ListForUser::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\PromoteUserToBeSiteAdministrator::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\DemoteSiteAdministrator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListReposStarredByUser::OPERATION_MATCH ? (Schema\StarredRepository | Schema\Repository) : ($call is Operation\Activity\ListReposWatchedByUser::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\SuspendUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UnsuspendUser::OPERATION_MATCH ? array{code: int} : )))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) + * @return ($call is Operation\Meta\Root::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListGlobalWebhooks::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\ListGlobalWebhooksListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\CreateGlobalWebhook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetGlobalWebhook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteGlobalWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateGlobalWebhook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\PingGlobalWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListPublicKeys::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\ListPublicKeysListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\DeletePublicKey::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateLdapMappingForTeam::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SyncLdapMappingForTeam::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdateLdapMappingForUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SyncLdapMappingForUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateOrg::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdateOrgName::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPreReceiveEnvironments::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\ListPreReceiveEnvironmentsListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\CreatePreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeletePreReceiveEnvironment::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\StartPreReceiveEnvironmentDownload::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\StartPreReceiveEnvironmentDownloadStreaming::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetDownloadStatusForPreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetDownloadStatusForPreReceiveEnvironmentStreaming::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooks::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooksListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\CreatePreReceiveHook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPreReceiveHook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeletePreReceiveHook::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveHook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPersonalAccessTokens::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\ListPersonalAccessTokensListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\DeletePersonalAccessToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\CreateUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateUsernameForUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateImpersonationOAuthToken::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteImpersonationOAuthToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\GetAuthenticated::OPERATION_MATCH ? : ($call is Operation\Apps\CreateFromManifest::OPERATION_MATCH ? : ($call is Operation\Apps\GetWebhookConfigForApp::OPERATION_MATCH ? : ($call is Operation\Apps\UpdateWebhookConfigForApp::OPERATION_MATCH ? : ($call is Operation\Apps\ListWebhookDeliveries::OPERATION_MATCH ? Observable : ($call is Operation\Apps\GetWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Apps\RedeliverWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Apps\ListInstallationRequestsForAuthenticatedApp::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Apps\ListInstallationRequestsForAuthenticatedAppListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Apps\ListInstallations::OPERATION_MATCH ? Observable : ($call is Operation\Apps\ListInstallationsListing::OPERATION_MATCH ? iterable : ($call is Operation\Apps\GetInstallation::OPERATION_MATCH ? : ($call is Operation\Apps\DeleteInstallation::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\CreateInstallationAccessToken::OPERATION_MATCH ? : ($call is Operation\Apps\SuspendInstallation::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\UnsuspendInstallation::OPERATION_MATCH ? array{code: int} : ($call is Operation\OauthAuthorizations\ListGrants::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\OauthAuthorizations\ListGrantsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\OauthAuthorizations\GetGrant::OPERATION_MATCH ? (Schema\ApplicationGrant | array{code: int}) : ($call is Operation\OauthAuthorizations\DeleteGrant::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\DeleteAuthorization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\CheckToken::OPERATION_MATCH ? : ($call is Operation\Apps\DeleteToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\ResetToken::OPERATION_MATCH ? : ($call is Operation\Apps\ScopeToken::OPERATION_MATCH ? : ($call is Operation\Apps\GetBySlug::OPERATION_MATCH ? : ($call is Operation\OauthAuthorizations\ListAuthorizations::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\OauthAuthorizations\ListAuthorizationsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\OauthAuthorizations\CreateAuthorization::OPERATION_MATCH ? (Schema\Authorization | array{code: int}) : ($call is Operation\OauthAuthorizations\GetOrCreateAuthorizationForApp::OPERATION_MATCH ? (Schema\Authorization | array{code: int}) : ($call is Operation\OauthAuthorizations\GetOrCreateAuthorizationForAppAndFingerprint::OPERATION_MATCH ? : ($call is Operation\OauthAuthorizations\GetAuthorization::OPERATION_MATCH ? (Schema\Authorization | array{code: int}) : ($call is Operation\OauthAuthorizations\DeleteAuthorization::OPERATION_MATCH ? array{code: int} : ($call is Operation\OauthAuthorizations\UpdateAuthorization::OPERATION_MATCH ? : ($call is Operation\CodesOfConduct\GetAllCodesOfConduct::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\CodesOfConduct\GetConductCode::OPERATION_MATCH ? (Schema\CodeOfConduct | array{code: int}) : ($call is Operation\Emojis\Get::OPERATION_MATCH ? (Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\EnterpriseAdmin\GetAnnouncement::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemoveAnnouncement::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\SetAnnouncement::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetLicenseInformation::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetAllStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetCommentStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetGistStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetHooksStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetIssueStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetMilestoneStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetOrgStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPagesStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPullRequestStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetRepoStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetUserStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetGithubActionsPermissionsEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetGithubActionsPermissionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetSelectedOrganizationsEnabledGithubActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\EnableSelectedOrganizationGithubActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\DisableSelectedOrganizationGithubActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\GetAllowedActionsEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetAllowedActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateSelfHostedRunnerGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetSelfHostedRunnerGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteSelfHostedRunnerGroupFromEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateSelfHostedRunnerGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\AddOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\RemoveOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetSelfHostedRunnersInGroupForEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\AddSelfHostedRunnerToGroupForEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\RemoveSelfHostedRunnerFromGroupForEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListRunnerApplicationsForEnterprise::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\CreateRegistrationTokenForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateRemoveTokenForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteSelfHostedRunnerFromEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetCustomLabelsForSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\AddCustomLabelsToSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemoveCustomLabelFromSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetAuditLog::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\GetAuditLogListing::OPERATION_MATCH ? iterable : ($call is Operation\SecretScanning\ListAlertsForEnterprise::OPERATION_MATCH ? Observable : ($call is Operation\Billing\GetGithubAdvancedSecurityBillingGhe::OPERATION_MATCH ? : ($call is Operation\Activity\ListPublicEvents::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Activity\ListPublicEventsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\GetFeeds::OPERATION_MATCH ? : ($call is Operation\Gists\List_::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Gists\ListListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\Create::OPERATION_MATCH ? (Schema\GistSimple | array{code: int}) : ($call is Operation\Gists\ListPublic::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Gists\ListPublicListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\ListStarred::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Gists\ListStarredListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\Get::OPERATION_MATCH ? (Schema\GistSimple | array{code: int}) : ($call is Operation\Gists\Delete::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\Update::OPERATION_MATCH ? : ($call is Operation\Gists\ListComments::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Gists\ListCommentsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\CreateComment::OPERATION_MATCH ? (Schema\GistComment | array{code: int}) : ($call is Operation\Gists\GetComment::OPERATION_MATCH ? (Schema\GistComment | array{code: int}) : ($call is Operation\Gists\DeleteComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\UpdateComment::OPERATION_MATCH ? : ($call is Operation\Gists\ListCommits::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Gists\ListCommitsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\ListForks::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Gists\ListForksListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\Fork::OPERATION_MATCH ? (Schema\BaseGist | array{code: int}) : ($call is Operation\Gists\CheckIsStarred::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\Star::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\Unstar::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\GetRevision::OPERATION_MATCH ? : ($call is Operation\Gitignore\GetAllTemplates::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Gitignore\GetTemplate::OPERATION_MATCH ? (Schema\GitignoreTemplate | array{code: int}) : ($call is Operation\Apps\ListReposAccessibleToInstallation::OPERATION_MATCH ? (Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Apps\RevokeInstallationAccessToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\List_::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Issues\ListListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Licenses\GetAllCommonlyUsed::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Licenses\GetAllCommonlyUsedListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Licenses\Get::OPERATION_MATCH ? (Schema\License | array{code: int}) : ($call is Operation\Markdown\Render::OPERATION_MATCH ? (string | array{code: int}) : ($call is Operation\Markdown\RenderRaw::OPERATION_MATCH ? (string | array{code: int}) : ($call is Operation\Meta\Get::OPERATION_MATCH ? (Schema\ApiOverview | array{code: int}) : ($call is Operation\Activity\ListPublicEventsForRepoNetwork::OPERATION_MATCH ? (Observable | Schema\BasicError | array{code: int}) : ($call is Operation\Activity\ListPublicEventsForRepoNetworkListing::OPERATION_MATCH ? (iterable | Schema\BasicError | array{code: int}) : ($call is Operation\Activity\ListNotificationsForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Activity\ListNotificationsForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\MarkNotificationsAsRead::OPERATION_MATCH ? (Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted | array{code: int}) : ($call is Operation\Activity\GetThread::OPERATION_MATCH ? (Schema\Thread | array{code: int}) : ($call is Operation\Activity\MarkThreadAsRead::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\GetThreadSubscriptionForAuthenticatedUser::OPERATION_MATCH ? (Schema\ThreadSubscription | array{code: int}) : ($call is Operation\Activity\SetThreadSubscription::OPERATION_MATCH ? (Schema\ThreadSubscription | array{code: int}) : ($call is Operation\Activity\DeleteThreadSubscription::OPERATION_MATCH ? array{code: int} : ($call is Operation\Meta\GetOctocat::OPERATION_MATCH ? : ($call is Operation\Orgs\List_::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Orgs\ListCustomRoles::OPERATION_MATCH ? : ($call is Operation\Orgs\Get::OPERATION_MATCH ? : ($call is Operation\Orgs\Update::OPERATION_MATCH ? : ($call is Operation\Actions\GetGithubActionsPermissionsOrganization::OPERATION_MATCH ? : ($call is Operation\Actions\SetGithubActionsPermissionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization::OPERATION_MATCH ? : ($call is Operation\Actions\SetSelectedRepositoriesEnabledGithubActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\EnableSelectedRepositoryGithubActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\DisableSelectedRepositoryGithubActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetAllowedActionsOrganization::OPERATION_MATCH ? : ($call is Operation\Actions\SetAllowedActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnerGroupsForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\CreateSelfHostedRunnerGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\GetSelfHostedRunnerGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteSelfHostedRunnerGroupFromOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\UpdateSelfHostedRunnerGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? : ($call is Operation\Actions\SetRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\AddRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\RemoveRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnersInGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\SetSelfHostedRunnersInGroupForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\AddSelfHostedRunnerToGroupForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\RemoveSelfHostedRunnerFromGroupForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnersForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\ListRunnerApplicationsForOrg::OPERATION_MATCH ? Observable : ($call is Operation\Actions\CreateRegistrationTokenForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\CreateRemoveTokenForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\GetSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteSelfHostedRunnerFromOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListLabelsForSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\SetCustomLabelsForSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\AddCustomLabelsToSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveCustomLabelFromSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\ListOrgSecrets::OPERATION_MATCH ? : ($call is Operation\Actions\GetOrgPublicKey::OPERATION_MATCH ? : ($call is Operation\Actions\GetOrgSecret::OPERATION_MATCH ? : ($call is Operation\Actions\CreateOrUpdateOrgSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Actions\DeleteOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelectedReposForOrgSecret::OPERATION_MATCH ? : ($call is Operation\Actions\SetSelectedReposForOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\AddSelectedRepoToOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\RemoveSelectedRepoFromOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\GetAuditLog::OPERATION_MATCH ? Observable : ($call is Operation\Orgs\GetAuditLogListing::OPERATION_MATCH ? iterable : ($call is Operation\Dependabot\ListOrgSecrets::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetOrgPublicKey::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetOrgSecret::OPERATION_MATCH ? : ($call is Operation\Dependabot\CreateOrUpdateOrgSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Dependabot\DeleteOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Dependabot\ListSelectedReposForOrgSecret::OPERATION_MATCH ? : ($call is Operation\Dependabot\SetSelectedReposForOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Dependabot\AddSelectedRepoToOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Dependabot\RemoveSelectedRepoFromOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListPublicOrgEvents::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListPublicOrgEventsListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListWebhooks::OPERATION_MATCH ? Observable : ($call is Operation\Orgs\ListWebhooksListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\CreateWebhook::OPERATION_MATCH ? : ($call is Operation\Orgs\GetWebhook::OPERATION_MATCH ? : ($call is Operation\Orgs\DeleteWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\UpdateWebhook::OPERATION_MATCH ? : ($call is Operation\Orgs\GetWebhookConfigForOrg::OPERATION_MATCH ? : ($call is Operation\Orgs\UpdateWebhookConfigForOrg::OPERATION_MATCH ? : ($call is Operation\Orgs\ListWebhookDeliveries::OPERATION_MATCH ? Observable : ($call is Operation\Orgs\GetWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Orgs\RedeliverWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Orgs\PingWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\GetOrgInstallation::OPERATION_MATCH ? : ($call is Operation\Orgs\ListAppInstallations::OPERATION_MATCH ? : ($call is Operation\Issues\ListForOrg::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListForOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListMembers::OPERATION_MATCH ? Observable : ($call is Operation\Orgs\ListMembersListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\CheckMembershipForUser::OPERATION_MATCH ? (array{code: int} | array{code: int, location: string}) : ($call is Operation\Orgs\RemoveMember::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\GetMembershipForUser::OPERATION_MATCH ? : ($call is Operation\Orgs\SetMembershipForUser::OPERATION_MATCH ? : ($call is Operation\Orgs\RemoveMembershipForUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\ListForOrg::OPERATION_MATCH ? Observable : ($call is Operation\Migrations\ListForOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Migrations\StartForOrg::OPERATION_MATCH ? : ($call is Operation\Migrations\GetStatusForOrg::OPERATION_MATCH ? : ($call is Operation\Migrations\DownloadArchiveForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\DownloadArchiveForOrgStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Migrations\DeleteArchiveForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\UnlockRepoForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\ListReposForOrg::OPERATION_MATCH ? Observable : ($call is Operation\Migrations\ListReposForOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListOutsideCollaborators::OPERATION_MATCH ? Observable : ($call is Operation\Orgs\ListOutsideCollaboratorsListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ConvertMemberToOutsideCollaborator::OPERATION_MATCH ? (Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Orgs\RemoveOutsideCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooksForOrg::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooksForOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\GetPreReceiveHookForOrg::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemovePreReceiveHookEnforcementForOrg::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveHookEnforcementForOrg::OPERATION_MATCH ? : ($call is Operation\Projects\ListForOrg::OPERATION_MATCH ? Observable : ($call is Operation\Projects\ListForOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Projects\CreateForOrg::OPERATION_MATCH ? : ($call is Operation\Orgs\ListPublicMembers::OPERATION_MATCH ? Observable : ($call is Operation\Orgs\ListPublicMembersListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\CheckPublicMembershipForUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\SetPublicMembershipForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\RemovePublicMembershipForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListForOrg::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListForOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateInOrg::OPERATION_MATCH ? : ($call is Operation\SecretScanning\ListAlertsForOrg::OPERATION_MATCH ? Observable : ($call is Operation\SecretScanning\ListAlertsForOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Billing\GetGithubAdvancedSecurityBillingOrg::OPERATION_MATCH ? : ($call is Operation\Teams\List_::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\Create::OPERATION_MATCH ? : ($call is Operation\Teams\GetByName::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionsInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListDiscussionsInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionCommentsInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListDiscussionCommentsInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionCommentInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForTeamDiscussionCommentInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForTeamDiscussionCommentInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForTeamDiscussionComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Reactions\ListForTeamDiscussionInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForTeamDiscussionInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForTeamDiscussion::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListMembersInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListMembersInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\GetMembershipForUserInOrg::OPERATION_MATCH ? (Schema\TeamMembership | array{code: int}) : ($call is Operation\Teams\AddOrUpdateMembershipForUserInOrg::OPERATION_MATCH ? (Schema\TeamMembership | array{code: int}) : ($call is Operation\Teams\RemoveMembershipForUserInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListProjectsInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListProjectsInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForProjectInOrg::OPERATION_MATCH ? (Schema\TeamProject | array{code: int}) : ($call is Operation\Teams\AddOrUpdateProjectPermissionsInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveProjectInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListReposInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListReposInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForRepoInOrg::OPERATION_MATCH ? (Schema\TeamRepository | array{code: int}) : ($call is Operation\Teams\AddOrUpdateRepoPermissionsInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveRepoInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListChildInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListChildInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Projects\GetCard::OPERATION_MATCH ? (Schema\ProjectCard | array{code: int}) : ($call is Operation\Projects\DeleteCard::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\UpdateCard::OPERATION_MATCH ? (Schema\ProjectCard | array{code: int}) : ($call is Operation\Projects\MoveCard::OPERATION_MATCH ? (Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json | array{code: int}) : ($call is Operation\Projects\GetColumn::OPERATION_MATCH ? (Schema\ProjectColumn | array{code: int}) : ($call is Operation\Projects\DeleteColumn::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\UpdateColumn::OPERATION_MATCH ? (Schema\ProjectColumn | array{code: int}) : ($call is Operation\Projects\ListCards::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Projects\ListCardsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\CreateCard::OPERATION_MATCH ? (Schema\ProjectCard | array{code: int}) : ($call is Operation\Projects\MoveColumn::OPERATION_MATCH ? (Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json | array{code: int}) : ($call is Operation\Projects\Get::OPERATION_MATCH ? (Schema\Project | array{code: int}) : ($call is Operation\Projects\Delete::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\Update::OPERATION_MATCH ? (Schema\Project | array{code: int}) : ($call is Operation\Projects\ListCollaborators::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Projects\ListCollaboratorsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\AddCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\RemoveCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\GetPermissionForUser::OPERATION_MATCH ? (Schema\ProjectCollaboratorPermission | array{code: int}) : ($call is Operation\Projects\ListColumns::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Projects\ListColumnsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\CreateColumn::OPERATION_MATCH ? (Schema\ProjectColumn | array{code: int}) : ($call is Operation\RateLimit\Get::OPERATION_MATCH ? (Schema\RateLimitOverview | array{code: int}) : ($call is Operation\Reactions\DeleteLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\Get::OPERATION_MATCH ? : ($call is Operation\Repos\Delete::OPERATION_MATCH ? (Schema\BasicError | array{code: int}) : ($call is Operation\Repos\Update::OPERATION_MATCH ? : ($call is Operation\Actions\ListArtifactsForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\GetArtifact::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteArtifact::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\DownloadArtifact::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Actions\DownloadArtifactStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Actions\GetJobForWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\DownloadJobLogsForWorkflowRun::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Actions\DownloadJobLogsForWorkflowRunStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Actions\GetGithubActionsPermissionsRepository::OPERATION_MATCH ? : ($call is Operation\Actions\SetGithubActionsPermissionsRepository::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetAllowedActionsRepository::OPERATION_MATCH ? : ($call is Operation\Actions\SetAllowedActionsRepository::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnersForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\ListRunnerApplicationsForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Actions\CreateRegistrationTokenForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\CreateRemoveTokenForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\GetSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteSelfHostedRunnerFromRepo::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListLabelsForSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\SetCustomLabelsForSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\AddCustomLabelsToSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveCustomLabelFromSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\ListWorkflowRunsForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\GetWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteWorkflowRun::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetReviewsForRun::OPERATION_MATCH ? Observable : ($call is Operation\Actions\ListWorkflowRunArtifacts::OPERATION_MATCH ? : ($call is Operation\Actions\CancelWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\ListJobsForWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\DownloadWorkflowRunLogs::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Actions\DownloadWorkflowRunLogsStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Actions\DeleteWorkflowRunLogs::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetPendingDeploymentsForRun::OPERATION_MATCH ? Observable : ($call is Operation\Actions\ReviewPendingDeploymentsForRun::OPERATION_MATCH ? Observable : ($call is Operation\Actions\ReRunWorkflow::OPERATION_MATCH ? : ($call is Operation\Actions\ListRepoSecrets::OPERATION_MATCH ? : ($call is Operation\Actions\GetRepoPublicKey::OPERATION_MATCH ? : ($call is Operation\Actions\GetRepoSecret::OPERATION_MATCH ? : ($call is Operation\Actions\CreateOrUpdateRepoSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Actions\DeleteRepoSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListRepoWorkflows::OPERATION_MATCH ? : ($call is Operation\Actions\GetWorkflow::OPERATION_MATCH ? : ($call is Operation\Actions\DisableWorkflow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\CreateWorkflowDispatch::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\EnableWorkflow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListWorkflowRuns::OPERATION_MATCH ? : ($call is Operation\Issues\ListAssignees::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListAssigneesListing::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CheckUserCanBeAssigned::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListAutolinks::OPERATION_MATCH ? Observable : ($call is Operation\Repos\CreateAutolink::OPERATION_MATCH ? : ($call is Operation\Repos\GetAutolink::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAutolink::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListBranches::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListBranchesListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetBranch::OPERATION_MATCH ? : ($call is Operation\Repos\GetBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteBranchProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetAdminBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\SetAdminBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAdminBranchProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetPullRequestReviewProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeletePullRequestReviewProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdatePullRequestReviewProtection::OPERATION_MATCH ? : ($call is Operation\Repos\GetCommitSignatureProtection::OPERATION_MATCH ? : ($call is Operation\Repos\CreateCommitSignatureProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteCommitSignatureProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetStatusChecksProtection::OPERATION_MATCH ? : ($call is Operation\Repos\RemoveStatusCheckProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateStatusCheckProtection::OPERATION_MATCH ? : ($call is Operation\Repos\GetAllStatusCheckContexts::OPERATION_MATCH ? Observable : ($call is Operation\Repos\SetStatusCheckContexts::OPERATION_MATCH ? Observable : ($call is Operation\Repos\AddStatusCheckContexts::OPERATION_MATCH ? Observable : ($call is Operation\Repos\RemoveStatusCheckContexts::OPERATION_MATCH ? Observable : ($call is Operation\Repos\GetAccessRestrictions::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAccessRestrictions::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetAppsWithAccessToProtectedBranch::OPERATION_MATCH ? Observable : ($call is Operation\Repos\SetAppAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\AddAppAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\RemoveAppAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\GetTeamsWithAccessToProtectedBranch::OPERATION_MATCH ? Observable : ($call is Operation\Repos\SetTeamAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\AddTeamAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\RemoveTeamAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\GetUsersWithAccessToProtectedBranch::OPERATION_MATCH ? Observable : ($call is Operation\Repos\SetUserAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\AddUserAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\RemoveUserAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\RenameBranch::OPERATION_MATCH ? : ($call is Operation\Checks\Create::OPERATION_MATCH ? : ($call is Operation\Checks\Get::OPERATION_MATCH ? : ($call is Operation\Checks\Update::OPERATION_MATCH ? : ($call is Operation\Checks\ListAnnotations::OPERATION_MATCH ? Observable : ($call is Operation\Checks\ListAnnotationsListing::OPERATION_MATCH ? iterable : ($call is Operation\Checks\RerequestRun::OPERATION_MATCH ? : ($call is Operation\Checks\CreateSuite::OPERATION_MATCH ? : ($call is Operation\Checks\SetSuitesPreferences::OPERATION_MATCH ? : ($call is Operation\Checks\GetSuite::OPERATION_MATCH ? : ($call is Operation\Checks\ListForSuite::OPERATION_MATCH ? : ($call is Operation\Checks\RerequestSuite::OPERATION_MATCH ? : ($call is Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\CodeScanning\GetAlert::OPERATION_MATCH ? (Schema\CodeScanningAlert | array{code: int}) : ($call is Operation\CodeScanning\UpdateAlert::OPERATION_MATCH ? : ($call is Operation\CodeScanning\ListAlertInstances::OPERATION_MATCH ? Observable : ($call is Operation\CodeScanning\ListAlertInstancesListing::OPERATION_MATCH ? iterable : ($call is Operation\CodeScanning\ListRecentAnalyses::OPERATION_MATCH ? Observable : ($call is Operation\CodeScanning\ListRecentAnalysesListing::OPERATION_MATCH ? iterable : ($call is Operation\CodeScanning\GetAnalysis::OPERATION_MATCH ? : ($call is Operation\CodeScanning\DeleteAnalysis::OPERATION_MATCH ? : ($call is Operation\CodeScanning\UploadSarif::OPERATION_MATCH ? (Schema\CodeScanningSarifsReceipt | array{code: int}) : ($call is Operation\CodeScanning\GetSarif::OPERATION_MATCH ? (Schema\CodeScanningSarifsStatus | array{code: int}) : ($call is Operation\Repos\ListCollaborators::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListCollaboratorsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CheckCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\AddCollaborator::OPERATION_MATCH ? (Schema\RepositoryInvitation | array{code: int}) : ($call is Operation\Repos\RemoveCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetCollaboratorPermissionLevel::OPERATION_MATCH ? : ($call is Operation\Repos\ListCommitCommentsForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListCommitCommentsForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetCommitComment::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteCommitComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateCommitComment::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForCommitComment::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForCommitCommentListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForCommitComment::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForCommitComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListCommits::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListCommitsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\ListBranchesForHeadCommit::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListCommentsForCommit::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListCommentsForCommitListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateCommitComment::OPERATION_MATCH ? : ($call is Operation\Repos\ListPullRequestsAssociatedWithCommit::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListPullRequestsAssociatedWithCommitListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetCommit::OPERATION_MATCH ? : ($call is Operation\Checks\ListForRef::OPERATION_MATCH ? : ($call is Operation\Checks\ListSuitesForRef::OPERATION_MATCH ? : ($call is Operation\Repos\GetCombinedStatusForRef::OPERATION_MATCH ? : ($call is Operation\Repos\ListCommitStatusesForRef::OPERATION_MATCH ? (Observable | Schema\BasicError) : ($call is Operation\Repos\ListCommitStatusesForRefListing::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Repos\CompareCommits::OPERATION_MATCH ? : ($call is Operation\Repos\GetContent::OPERATION_MATCH ? (Schema\ContentDirectory | Schema\ContentFile | Schema\ContentSymlink | Schema\ContentSubmodule | array{code: int}) : ($call is Operation\Repos\CreateOrUpdateFileContents::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteFile::OPERATION_MATCH ? : ($call is Operation\Repos\ListContributors::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Repos\ListContributorsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Dependabot\ListRepoSecrets::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetRepoPublicKey::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetRepoSecret::OPERATION_MATCH ? : ($call is Operation\Dependabot\CreateOrUpdateRepoSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Dependabot\DeleteRepoSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListDeployments::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListDeploymentsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateDeployment::OPERATION_MATCH ? (Schema\Deployment | Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetDeployment::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteDeployment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListDeploymentStatuses::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListDeploymentStatusesListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateDeploymentStatus::OPERATION_MATCH ? : ($call is Operation\Repos\GetDeploymentStatus::OPERATION_MATCH ? : ($call is Operation\Repos\CreateDispatchEvent::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetAllEnvironments::OPERATION_MATCH ? : ($call is Operation\Repos\GetEnvironment::OPERATION_MATCH ? : ($call is Operation\Repos\CreateOrUpdateEnvironment::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAnEnvironment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListDeploymentBranchPolicies::OPERATION_MATCH ? : ($call is Operation\Repos\CreateDeploymentBranchPolicy::OPERATION_MATCH ? (Schema\DeploymentBranchPolicy | array{code: int}) : ($call is Operation\Repos\GetDeploymentBranchPolicy::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateDeploymentBranchPolicy::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteDeploymentBranchPolicy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListRepoEvents::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListRepoEventsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\ListForks::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListForksListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateFork::OPERATION_MATCH ? : ($call is Operation\Git\CreateBlob::OPERATION_MATCH ? : ($call is Operation\Git\GetBlob::OPERATION_MATCH ? : ($call is Operation\Git\CreateCommit::OPERATION_MATCH ? : ($call is Operation\Git\GetCommit::OPERATION_MATCH ? : ($call is Operation\Git\ListMatchingRefs::OPERATION_MATCH ? Observable : ($call is Operation\Git\GetRef::OPERATION_MATCH ? : ($call is Operation\Git\CreateRef::OPERATION_MATCH ? : ($call is Operation\Git\DeleteRef::OPERATION_MATCH ? array{code: int} : ($call is Operation\Git\UpdateRef::OPERATION_MATCH ? : ($call is Operation\Git\CreateTag::OPERATION_MATCH ? : ($call is Operation\Git\GetTag::OPERATION_MATCH ? : ($call is Operation\Git\CreateTree::OPERATION_MATCH ? : ($call is Operation\Git\GetTree::OPERATION_MATCH ? : ($call is Operation\Repos\ListWebhooks::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListWebhooksListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateWebhook::OPERATION_MATCH ? : ($call is Operation\Repos\GetWebhook::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateWebhook::OPERATION_MATCH ? : ($call is Operation\Repos\GetWebhookConfigForRepo::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateWebhookConfigForRepo::OPERATION_MATCH ? : ($call is Operation\Repos\ListWebhookDeliveries::OPERATION_MATCH ? Observable : ($call is Operation\Repos\GetWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Repos\RedeliverWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Repos\PingWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\TestPushWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\GetRepoInstallation::OPERATION_MATCH ? : ($call is Operation\Repos\ListInvitations::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListInvitationsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\DeleteInvitation::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateInvitation::OPERATION_MATCH ? : ($call is Operation\Issues\ListForRepo::OPERATION_MATCH ? (Observable | Schema\BasicError) : ($call is Operation\Issues\ListForRepoListing::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Issues\Create::OPERATION_MATCH ? : ($call is Operation\Issues\ListCommentsForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListCommentsForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\Issues\GetComment::OPERATION_MATCH ? : ($call is Operation\Issues\DeleteComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\UpdateComment::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForIssueComment::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForIssueCommentListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForIssueComment::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForIssueComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListEventsForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListEventsForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\Issues\GetEvent::OPERATION_MATCH ? : ($call is Operation\Issues\Get::OPERATION_MATCH ? (Schema\Issue | Schema\BasicError | array{code: int}) : ($call is Operation\Issues\Update::OPERATION_MATCH ? : ($call is Operation\Issues\AddAssignees::OPERATION_MATCH ? : ($call is Operation\Issues\RemoveAssignees::OPERATION_MATCH ? : ($call is Operation\Issues\CheckUserCanBeAssignedToIssue::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListComments::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListCommentsListing::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CreateComment::OPERATION_MATCH ? : ($call is Operation\Issues\ListEvents::OPERATION_MATCH ? Observable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\AssignedIssueEvent | Schema\UnassignedIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent)> : ($call is Operation\Issues\ListEventsListing::OPERATION_MATCH ? iterable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\AssignedIssueEvent | Schema\UnassignedIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent)> : ($call is Operation\Issues\ListLabelsOnIssue::OPERATION_MATCH ? (Observable | Schema\BasicError) : ($call is Operation\Issues\ListLabelsOnIssueListing::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Issues\SetLabels::OPERATION_MATCH ? (Observable | Schema\BasicError) : ($call is Operation\Issues\AddLabels::OPERATION_MATCH ? (Observable | Schema\BasicError) : ($call is Operation\Issues\RemoveAllLabels::OPERATION_MATCH ? (Schema\BasicError | array{code: int}) : ($call is Operation\Issues\RemoveLabel::OPERATION_MATCH ? (Observable | Schema\BasicError) : ($call is Operation\Issues\Lock::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\Unlock::OPERATION_MATCH ? array{code: int} : ($call is Operation\Reactions\ListForIssue::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForIssueListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForIssue::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForIssue::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListEventsForTimeline::OPERATION_MATCH ? Observable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent | Schema\TimelineCommentEvent | Schema\TimelineCrossReferencedEvent | Schema\TimelineCommittedEvent | Schema\TimelineReviewedEvent | Schema\TimelineLineCommentedEvent | Schema\TimelineCommitCommentedEvent | Schema\TimelineAssignedIssueEvent | Schema\TimelineUnassignedIssueEvent | Schema\StateChangeIssueEvent)> : ($call is Operation\Issues\ListEventsForTimelineListing::OPERATION_MATCH ? iterable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent | Schema\TimelineCommentEvent | Schema\TimelineCrossReferencedEvent | Schema\TimelineCommittedEvent | Schema\TimelineReviewedEvent | Schema\TimelineLineCommentedEvent | Schema\TimelineCommitCommentedEvent | Schema\TimelineAssignedIssueEvent | Schema\TimelineUnassignedIssueEvent | Schema\StateChangeIssueEvent)> : ($call is Operation\Repos\ListDeployKeys::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListDeployKeysListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateDeployKey::OPERATION_MATCH ? : ($call is Operation\Repos\GetDeployKey::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteDeployKey::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListLabelsForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListLabelsForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CreateLabel::OPERATION_MATCH ? : ($call is Operation\Issues\GetLabel::OPERATION_MATCH ? : ($call is Operation\Issues\DeleteLabel::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\UpdateLabel::OPERATION_MATCH ? : ($call is Operation\Repos\ListLanguages::OPERATION_MATCH ? : ($call is Operation\Repos\EnableLfsForRepo::OPERATION_MATCH ? (Schema\Operations\Repos\EnableLfsForRepo\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\DisableLfsForRepo::OPERATION_MATCH ? array{code: int} : ($call is Operation\Licenses\GetForRepo::OPERATION_MATCH ? : ($call is Operation\Repos\MergeUpstream::OPERATION_MATCH ? (Schema\MergedUpstream | array{code: int}) : ($call is Operation\Repos\Merge::OPERATION_MATCH ? (Schema\Commit | array{code: int}) : ($call is Operation\Issues\ListMilestones::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListMilestonesListing::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CreateMilestone::OPERATION_MATCH ? : ($call is Operation\Issues\GetMilestone::OPERATION_MATCH ? : ($call is Operation\Issues\DeleteMilestone::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\UpdateMilestone::OPERATION_MATCH ? : ($call is Operation\Issues\ListLabelsForMilestone::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListLabelsForMilestoneListing::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListRepoNotificationsForAuthenticatedUser::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListRepoNotificationsForAuthenticatedUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Activity\MarkRepoNotificationsAsRead::OPERATION_MATCH ? (Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetPages::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateInformationAboutPagesSite::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\CreatePagesSite::OPERATION_MATCH ? : ($call is Operation\Repos\DeletePagesSite::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListPagesBuilds::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListPagesBuildsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\RequestPagesBuild::OPERATION_MATCH ? : ($call is Operation\Repos\GetLatestPagesBuild::OPERATION_MATCH ? : ($call is Operation\Repos\GetPagesBuild::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooksForRepo::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooksForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\GetPreReceiveHookForRepo::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemovePreReceiveHookEnforcementForRepo::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveHookEnforcementForRepo::OPERATION_MATCH ? : ($call is Operation\Projects\ListForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Projects\ListForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\Projects\CreateForRepo::OPERATION_MATCH ? : ($call is Operation\Pulls\List_::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Pulls\ListListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Pulls\Create::OPERATION_MATCH ? : ($call is Operation\Pulls\ListReviewCommentsForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Pulls\ListReviewCommentsForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\GetReviewComment::OPERATION_MATCH ? : ($call is Operation\Pulls\DeleteReviewComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Pulls\UpdateReviewComment::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForPullRequestReviewComment::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForPullRequestReviewCommentListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForPullRequestReviewComment::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForPullRequestComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Pulls\Get::OPERATION_MATCH ? (Schema\PullRequest | array{code: int}) : ($call is Operation\Pulls\Update::OPERATION_MATCH ? : ($call is Operation\Pulls\ListReviewComments::OPERATION_MATCH ? Observable : ($call is Operation\Pulls\ListReviewCommentsListing::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\CreateReviewComment::OPERATION_MATCH ? : ($call is Operation\Pulls\CreateReplyForReviewComment::OPERATION_MATCH ? : ($call is Operation\Pulls\ListCommits::OPERATION_MATCH ? Observable : ($call is Operation\Pulls\ListCommitsListing::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\ListFiles::OPERATION_MATCH ? Observable : ($call is Operation\Pulls\ListFilesListing::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\CheckIfMerged::OPERATION_MATCH ? array{code: int} : ($call is Operation\Pulls\Merge::OPERATION_MATCH ? : ($call is Operation\Pulls\ListRequestedReviewers::OPERATION_MATCH ? : ($call is Operation\Pulls\RequestReviewers::OPERATION_MATCH ? (Schema\PullRequestSimple | array{code: int}) : ($call is Operation\Pulls\RemoveRequestedReviewers::OPERATION_MATCH ? : ($call is Operation\Pulls\ListReviews::OPERATION_MATCH ? Observable : ($call is Operation\Pulls\ListReviewsListing::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\CreateReview::OPERATION_MATCH ? : ($call is Operation\Pulls\GetReview::OPERATION_MATCH ? : ($call is Operation\Pulls\UpdateReview::OPERATION_MATCH ? : ($call is Operation\Pulls\DeletePendingReview::OPERATION_MATCH ? : ($call is Operation\Pulls\ListCommentsForReview::OPERATION_MATCH ? Observable : ($call is Operation\Pulls\ListCommentsForReviewListing::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\DismissReview::OPERATION_MATCH ? : ($call is Operation\Pulls\SubmitReview::OPERATION_MATCH ? : ($call is Operation\Pulls\UpdateBranch::OPERATION_MATCH ? : ($call is Operation\Repos\GetReadme::OPERATION_MATCH ? : ($call is Operation\Repos\GetReadmeInDirectory::OPERATION_MATCH ? : ($call is Operation\Repos\ListReleases::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListReleasesListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateRelease::OPERATION_MATCH ? : ($call is Operation\Repos\GetReleaseAsset::OPERATION_MATCH ? (Schema\ReleaseAsset | array{code: int}) : ($call is Operation\Repos\DeleteReleaseAsset::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateReleaseAsset::OPERATION_MATCH ? : ($call is Operation\Repos\GenerateReleaseNotes::OPERATION_MATCH ? : ($call is Operation\Repos\GetLatestRelease::OPERATION_MATCH ? : ($call is Operation\Repos\GetReleaseByTag::OPERATION_MATCH ? : ($call is Operation\Repos\GetRelease::OPERATION_MATCH ? (Schema\Release | array{code: int}) : ($call is Operation\Repos\DeleteRelease::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateRelease::OPERATION_MATCH ? : ($call is Operation\Repos\ListReleaseAssets::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListReleaseAssetsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\UploadReleaseAsset::OPERATION_MATCH ? (Schema\ReleaseAsset | array{code: int}) : ($call is Operation\Reactions\ListForRelease::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForReleaseListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForRelease::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForRelease::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListCacheInfo::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListCacheInfoListing::OPERATION_MATCH ? iterable : ($call is Operation\SecretScanning\ListAlertsForRepo::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\SecretScanning\ListAlertsForRepoListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\SecretScanning\GetAlert::OPERATION_MATCH ? (Schema\SecretScanningAlert | array{code: int}) : ($call is Operation\SecretScanning\UpdateAlert::OPERATION_MATCH ? (Schema\SecretScanningAlert | array{code: int}) : ($call is Operation\SecretScanning\ListLocationsForAlert::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\SecretScanning\ListLocationsForAlertListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\ListStargazersForRepo::OPERATION_MATCH ? : ($call is Operation\Repos\GetCodeFrequencyStats::OPERATION_MATCH ? (Observable | Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetCommitActivityStats::OPERATION_MATCH ? (Observable | Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetContributorsStats::OPERATION_MATCH ? (Observable | Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetParticipationStats::OPERATION_MATCH ? : ($call is Operation\Repos\GetPunchCardStats::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Repos\CreateCommitStatus::OPERATION_MATCH ? : ($call is Operation\Activity\ListWatchersForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListWatchersForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\Activity\GetRepoSubscription::OPERATION_MATCH ? (Schema\RepositorySubscription | array{code: int}) : ($call is Operation\Activity\SetRepoSubscription::OPERATION_MATCH ? : ($call is Operation\Activity\DeleteRepoSubscription::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListTags::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListTagsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\DownloadTarballArchive::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Repos\DownloadTarballArchiveStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListTeams::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListTeamsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetAllTopics::OPERATION_MATCH ? : ($call is Operation\Repos\ReplaceAllTopics::OPERATION_MATCH ? : ($call is Operation\Repos\Transfer::OPERATION_MATCH ? : ($call is Operation\Repos\DownloadZipballArchive::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Repos\DownloadZipballArchiveStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Repos\CreateUsingTemplate::OPERATION_MATCH ? : ($call is Operation\Repos\ListPublic::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Actions\ListEnvironmentSecrets::OPERATION_MATCH ? : ($call is Operation\Actions\GetEnvironmentPublicKey::OPERATION_MATCH ? : ($call is Operation\Actions\GetEnvironmentSecret::OPERATION_MATCH ? : ($call is Operation\Actions\CreateOrUpdateEnvironmentSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Actions\DeleteEnvironmentSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Search\Code::OPERATION_MATCH ? (Schema\Operations\Search\Code\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Commits::OPERATION_MATCH ? (Schema\Operations\Search\Commits\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\IssuesAndPullRequests::OPERATION_MATCH ? (Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Labels::OPERATION_MATCH ? (Schema\Operations\Search\Labels\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Repos::OPERATION_MATCH ? (Schema\Operations\Search\Repos\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Topics::OPERATION_MATCH ? (Schema\Operations\Search\Topics\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Users::OPERATION_MATCH ? (Schema\Operations\Search\Users\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\EnterpriseAdmin\GetConfigurationStatus::OPERATION_MATCH ? (Schema\ConfigurationStatus | array{code: int}) : ($call is Operation\EnterpriseAdmin\StartConfigurationProcess::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\GetMaintenanceStatus::OPERATION_MATCH ? (Schema\MaintenanceStatus | array{code: int}) : ($call is Operation\EnterpriseAdmin\EnableOrDisableMaintenanceMode::OPERATION_MATCH ? (Schema\MaintenanceStatus | array{code: int}) : ($call is Operation\EnterpriseAdmin\GetSettings::OPERATION_MATCH ? (Schema\EnterpriseSettings | array{code: int}) : ($call is Operation\EnterpriseAdmin\SetSettings::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\GetAllAuthorizedSshKeys::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\EnterpriseAdmin\AddAuthorizedSshKey::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\EnterpriseAdmin\RemoveAuthorizedSshKey::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\EnterpriseAdmin\CreateEnterpriseServerLicense::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpgradeLicense::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\GetLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionsLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListDiscussionsLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionCommentsLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListDiscussionCommentsLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionCommentLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForTeamDiscussionCommentLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForTeamDiscussionCommentLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForTeamDiscussionLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForTeamDiscussionLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\ListMembersLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListMembersLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\GetMemberLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\AddMemberLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveMemberLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\GetMembershipForUserLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\AddOrUpdateMembershipForUserLegacy::OPERATION_MATCH ? (Schema\TeamMembership | array{code: int}) : ($call is Operation\Teams\RemoveMembershipForUserLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListProjectsLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListProjectsLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForProjectLegacy::OPERATION_MATCH ? (Schema\TeamProject | array{code: int}) : ($call is Operation\Teams\AddOrUpdateProjectPermissionsLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveProjectLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListReposLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListReposLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForRepoLegacy::OPERATION_MATCH ? (Schema\TeamRepository | array{code: int}) : ($call is Operation\Teams\AddOrUpdateRepoPermissionsLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveRepoLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListChildLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListChildLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Users\GetAuthenticated::OPERATION_MATCH ? (Schema\PrivateUser | Schema\PublicUser | array{code: int}) : ($call is Operation\Users\UpdateAuthenticated::OPERATION_MATCH ? (Schema\PrivateUser | array{code: int}) : ($call is Operation\Users\ListEmailsForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\ListEmailsForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\AddEmailForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\DeleteEmailForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\ListFollowersForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\ListFollowersForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\ListFollowedByAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\ListFollowedByAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\CheckPersonIsFollowedByAuthenticated::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\Follow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\Unfollow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\ListGpgKeysForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\ListGpgKeysForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\CreateGpgKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\GpgKey | array{code: int}) : ($call is Operation\Users\GetGpgKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\GpgKey | array{code: int}) : ($call is Operation\Users\DeleteGpgKeyForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\ListInstallationsForAuthenticatedUser::OPERATION_MATCH ? (Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json | array{code: int}) : ($call is Operation\Apps\ListInstallationReposForAuthenticatedUser::OPERATION_MATCH ? (Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Apps\AddRepoToInstallationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\RemoveRepoFromInstallationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Issues\ListForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\ListPublicSshKeysForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\ListPublicSshKeysForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\CreatePublicSshKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\Key | array{code: int}) : ($call is Operation\Users\GetPublicSshKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\Key | array{code: int}) : ($call is Operation\Users\DeletePublicSshKeyForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\ListMembershipsForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Orgs\ListMembershipsForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Orgs\GetMembershipForAuthenticatedUser::OPERATION_MATCH ? : ($call is Operation\Orgs\UpdateMembershipForAuthenticatedUser::OPERATION_MATCH ? : ($call is Operation\Migrations\ListForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Migrations\ListForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Migrations\StartForAuthenticatedUser::OPERATION_MATCH ? (Schema\Migration | array{code: int}) : ($call is Operation\Migrations\GetArchiveForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\ListReposForAuthenticatedUser::OPERATION_MATCH ? Observable : ($call is Operation\Migrations\ListReposForAuthenticatedUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Orgs\ListForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\CreateForAuthenticatedUser::OPERATION_MATCH ? (Schema\Project | array{code: int}) : ($call is Operation\Users\ListPublicEmailsForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\ListPublicEmailsForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Repos\ListForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Repos\ListForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Repos\CreateForAuthenticatedUser::OPERATION_MATCH ? (Schema\Repository | array{code: int}) : ($call is Operation\Repos\ListInvitationsForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Repos\ListInvitationsForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Repos\DeclineInvitationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\AcceptInvitationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListReposStarredByAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Activity\ListReposStarredByAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\CheckRepoIsStarredByAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\StarRepoForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\UnstarRepoForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListWatchedReposForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Activity\ListWatchedReposForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Teams\ListForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Teams\ListForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\List_::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\GetByUsername::OPERATION_MATCH ? : ($call is Operation\Activity\ListEventsForAuthenticatedUser::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListEventsForAuthenticatedUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListOrgEventsForAuthenticatedUser::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListOrgEventsForAuthenticatedUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListPublicEventsForUser::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListPublicEventsForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Users\ListFollowersForUser::OPERATION_MATCH ? Observable : ($call is Operation\Users\ListFollowersForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Users\ListFollowingForUser::OPERATION_MATCH ? Observable : ($call is Operation\Users\ListFollowingForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Users\CheckFollowingForUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\ListForUser::OPERATION_MATCH ? Observable : ($call is Operation\Gists\ListForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Users\ListGpgKeysForUser::OPERATION_MATCH ? Observable : ($call is Operation\Users\ListGpgKeysForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Users\GetContextForUser::OPERATION_MATCH ? : ($call is Operation\Apps\GetUserInstallation::OPERATION_MATCH ? : ($call is Operation\Users\ListPublicKeysForUser::OPERATION_MATCH ? Observable : ($call is Operation\Users\ListPublicKeysForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListForUser::OPERATION_MATCH ? Observable : ($call is Operation\Orgs\ListForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Projects\ListForUser::OPERATION_MATCH ? Observable : ($call is Operation\Projects\ListForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListReceivedEventsForUser::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListReceivedEventsForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListReceivedPublicEventsForUser::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListReceivedPublicEventsForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\ListForUser::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\PromoteUserToBeSiteAdministrator::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\DemoteSiteAdministrator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListReposStarredByUser::OPERATION_MATCH ? : ($call is Operation\Activity\ListReposWatchedByUser::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListReposWatchedByUserListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\SuspendUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UnsuspendUser::OPERATION_MATCH ? array{code: int} : )))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) */ // phpcs:enable public function call(string $call, array $params = []): Root|iterable|GlobalHook|GlobalHook2|LdapMappingTeam|Created|LdapMappingUser|Json|OrganizationSimple|Accepted|PreReceiveEnvironment|PreReceiveEnvironmentDownloadStatus|PreReceiveHook|SimpleUser|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\UpdateUsernameForUser\Response\ApplicationJson\Accepted\Application\Json|Authorization|Integration|WebhookConfig|HookDelivery|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|Installation|InstallationToken|ApplicationGrant|CodeOfConduct|Ok|Announcement|LicenseInfo|EnterpriseOverview|EnterpriseCommentOverview|EnterpriseGistOverview|EnterpriseHookOverview|EnterpriseIssueOverview|EnterpriseMilestoneOverview|EnterpriseOrganizationOverview|EnterprisePageOverview|EnterprisePullRequestOverview|EnterpriseRepositoryOverview|EnterpriseUserOverview|ActionsEnterprisePermissions|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise\Response\ApplicationJson\Ok|SelectedActions|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok|RunnerGroupsEnterprise|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|AuthenticationToken|Runner|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok\Application\Json|AdvancedSecurityActiveCommitters|Feed|GistSimple|GistComment|BaseGist|GitignoreTemplate|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|License|string|ApiOverview|BasicError|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted|Thread|ThreadSubscription|ResponseInterface|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\ListCustomRoles\Response\ApplicationJson\Ok|OrganizationFull|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|RunnerGroupsOrg|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|ActionsPublicKey|OrganizationActionsSecret|EmptyObject|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|OrgHook|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|OrgMembership|Migration|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|OrgPreReceiveHook|Project|Repository|TeamFull|TeamDiscussion|TeamDiscussionComment|Reaction|TeamMembership|TeamProject|TeamRepository|ProjectCard|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|ProjectColumn|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|ProjectCollaboratorPermission|RateLimitOverview|FullRepository|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|Artifact|Job|ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|WorkflowRun|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok|ActionsSecret|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|Workflow|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BranchProtection|ProtectedBranch|ProtectedBranchAdminEnforced|ProtectedBranchPullRequestReview|StatusCheckPolicy|BranchRestrictionPolicy|CheckRun|CheckSuite|CheckSuitePreference|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningAnalysisDeletion|CodeScanningSarifsReceipt|CodeScanningSarifsStatus|RepositoryInvitation|RepositoryCollaboratorPermission|CommitComment|Commit|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|FileCommit|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependabotSecret|Deployment|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|DeploymentStatus|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Environment|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|DeploymentBranchPolicy|ShortBlob|Blob|GitCommit|GitRef|GitTag|GitTree|Hook|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|Issue|IssueComment|IssueEvent|DeployKey|Label|Language|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\EnableLfsForRepo\Response\ApplicationJson\Accepted\Application\Json|LicenseContent|MergedUpstream|Milestone|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted\Application\Json|Page|PageBuildStatus|PageBuild|RepositoryPreReceiveHook|PullRequest|PullRequestReviewComment|PullRequestMergeResult|PullRequestReviewRequest|PullRequestSimple|PullRequestReview|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|Release|ReleaseAsset|ReleaseNotesContent|SecretScanningAlert|Stargazer|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|Status|RepositorySubscription|Topic|MinimalRepository|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|ConfigurationStatus|MaintenanceStatus|EnterpriseSettings|PrivateUser|PublicUser|GpgKey|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Key|Hovercard|StarredRepository @@ -278,6 +278,71 @@ public function call(string $call, array $params = []): Root|iterable|GlobalHook return $this->router[Router\Get\Ten::class]->call($call, $params, $pathChunks); } + } elseif ($method === 'LIST') { + if ($pathChunksCount === 3) { + $matched = true; + if (array_key_exists(Router\List\Three::class, $this->router) === false) { + $this->router[Router\List\Three::class] = new Router\List\Three(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + } + + return $this->router[Router\List\Three::class]->call($call, $params, $pathChunks); + } elseif ($pathChunksCount === 2) { + $matched = true; + if (array_key_exists(Router\List\Two::class, $this->router) === false) { + $this->router[Router\List\Two::class] = new Router\List\Two(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + } + + return $this->router[Router\List\Two::class]->call($call, $params, $pathChunks); + } elseif ($pathChunksCount === 4) { + $matched = true; + if (array_key_exists(Router\List\Four::class, $this->router) === false) { + $this->router[Router\List\Four::class] = new Router\List\Four(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + } + + return $this->router[Router\List\Four::class]->call($call, $params, $pathChunks); + } elseif ($pathChunksCount === 5) { + $matched = true; + if (array_key_exists(Router\List\Five::class, $this->router) === false) { + $this->router[Router\List\Five::class] = new Router\List\Five(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + } + + return $this->router[Router\List\Five::class]->call($call, $params, $pathChunks); + } elseif ($pathChunksCount === 6) { + $matched = true; + if (array_key_exists(Router\List\Six::class, $this->router) === false) { + $this->router[Router\List\Six::class] = new Router\List\Six(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + } + + return $this->router[Router\List\Six::class]->call($call, $params, $pathChunks); + } elseif ($pathChunksCount === 8) { + $matched = true; + if (array_key_exists(Router\List\Eight::class, $this->router) === false) { + $this->router[Router\List\Eight::class] = new Router\List\Eight(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + } + + return $this->router[Router\List\Eight::class]->call($call, $params, $pathChunks); + } elseif ($pathChunksCount === 10) { + $matched = true; + if (array_key_exists(Router\List\Ten::class, $this->router) === false) { + $this->router[Router\List\Ten::class] = new Router\List\Ten(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + } + + return $this->router[Router\List\Ten::class]->call($call, $params, $pathChunks); + } elseif ($pathChunksCount === 7) { + $matched = true; + if (array_key_exists(Router\List\Seven::class, $this->router) === false) { + $this->router[Router\List\Seven::class] = new Router\List\Seven(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + } + + return $this->router[Router\List\Seven::class]->call($call, $params, $pathChunks); + } elseif ($pathChunksCount === 9) { + $matched = true; + if (array_key_exists(Router\List\Nine::class, $this->router) === false) { + $this->router[Router\List\Nine::class] = new Router\List\Nine(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + } + + return $this->router[Router\List\Nine::class]->call($call, $params, $pathChunks); + } } elseif ($method === 'POST') { if ($pathChunksCount === 3) { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/ClientInterface.php b/clients/GitHubEnterprise-3.4/src/ClientInterface.php index 0fcaa1d0561..c5e80d5a94c 100644 --- a/clients/GitHubEnterprise-3.4/src/ClientInterface.php +++ b/clients/GitHubEnterprise-3.4/src/ClientInterface.php @@ -171,7 +171,7 @@ interface ClientInterface { // phpcs:disable /** - * @return ($call is Operation\Meta\Root::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListGlobalWebhooks::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\CreateGlobalWebhook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetGlobalWebhook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteGlobalWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateGlobalWebhook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\PingGlobalWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListPublicKeys::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\DeletePublicKey::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateLdapMappingForTeam::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SyncLdapMappingForTeam::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdateLdapMappingForUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SyncLdapMappingForUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateOrg::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdateOrgName::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPreReceiveEnvironments::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\CreatePreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeletePreReceiveEnvironment::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\StartPreReceiveEnvironmentDownload::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\StartPreReceiveEnvironmentDownloadStreaming::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetDownloadStatusForPreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetDownloadStatusForPreReceiveEnvironmentStreaming::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooks::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\CreatePreReceiveHook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPreReceiveHook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeletePreReceiveHook::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveHook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPersonalAccessTokens::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\DeletePersonalAccessToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\CreateUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateUsernameForUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateImpersonationOAuthToken::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteImpersonationOAuthToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\GetAuthenticated::OPERATION_MATCH ? : ($call is Operation\Apps\CreateFromManifest::OPERATION_MATCH ? : ($call is Operation\Apps\GetWebhookConfigForApp::OPERATION_MATCH ? : ($call is Operation\Apps\UpdateWebhookConfigForApp::OPERATION_MATCH ? : ($call is Operation\Apps\ListWebhookDeliveries::OPERATION_MATCH ? iterable : ($call is Operation\Apps\GetWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Apps\RedeliverWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Apps\ListInstallationRequestsForAuthenticatedApp::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Apps\ListInstallations::OPERATION_MATCH ? iterable : ($call is Operation\Apps\GetInstallation::OPERATION_MATCH ? : ($call is Operation\Apps\DeleteInstallation::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\CreateInstallationAccessToken::OPERATION_MATCH ? : ($call is Operation\Apps\SuspendInstallation::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\UnsuspendInstallation::OPERATION_MATCH ? array{code: int} : ($call is Operation\OauthAuthorizations\ListGrants::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\OauthAuthorizations\GetGrant::OPERATION_MATCH ? (Schema\ApplicationGrant | array{code: int}) : ($call is Operation\OauthAuthorizations\DeleteGrant::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\DeleteAuthorization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\CheckToken::OPERATION_MATCH ? : ($call is Operation\Apps\DeleteToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\ResetToken::OPERATION_MATCH ? : ($call is Operation\Apps\ScopeToken::OPERATION_MATCH ? : ($call is Operation\Apps\GetBySlug::OPERATION_MATCH ? : ($call is Operation\OauthAuthorizations\ListAuthorizations::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\OauthAuthorizations\CreateAuthorization::OPERATION_MATCH ? (Schema\Authorization | array{code: int}) : ($call is Operation\OauthAuthorizations\GetOrCreateAuthorizationForApp::OPERATION_MATCH ? (Schema\Authorization | array{code: int}) : ($call is Operation\OauthAuthorizations\GetOrCreateAuthorizationForAppAndFingerprint::OPERATION_MATCH ? : ($call is Operation\OauthAuthorizations\GetAuthorization::OPERATION_MATCH ? (Schema\Authorization | array{code: int}) : ($call is Operation\OauthAuthorizations\DeleteAuthorization::OPERATION_MATCH ? array{code: int} : ($call is Operation\OauthAuthorizations\UpdateAuthorization::OPERATION_MATCH ? : ($call is Operation\CodesOfConduct\GetAllCodesOfConduct::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\CodesOfConduct\GetConductCode::OPERATION_MATCH ? (Schema\CodeOfConduct | array{code: int}) : ($call is Operation\Emojis\Get::OPERATION_MATCH ? (Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\EnterpriseAdmin\GetAnnouncement::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemoveAnnouncement::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\SetAnnouncement::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetLicenseInformation::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetAllStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetCommentStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetGistStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetHooksStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetIssueStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetMilestoneStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetOrgStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPagesStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPullRequestStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetRepoStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetUserStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetGithubActionsPermissionsEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetGithubActionsPermissionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetSelectedOrganizationsEnabledGithubActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\EnableSelectedOrganizationGithubActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\DisableSelectedOrganizationGithubActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\GetAllowedActionsEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetAllowedActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateSelfHostedRunnerGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetSelfHostedRunnerGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteSelfHostedRunnerGroupFromEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateSelfHostedRunnerGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\AddOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\RemoveOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetSelfHostedRunnersInGroupForEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\AddSelfHostedRunnerToGroupForEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\RemoveSelfHostedRunnerFromGroupForEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListRunnerApplicationsForEnterprise::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\CreateRegistrationTokenForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateRemoveTokenForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteSelfHostedRunnerFromEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetCustomLabelsForSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\AddCustomLabelsToSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemoveCustomLabelFromSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetAuditLog::OPERATION_MATCH ? iterable : ($call is Operation\SecretScanning\ListAlertsForEnterprise::OPERATION_MATCH ? iterable : ($call is Operation\Billing\GetGithubAdvancedSecurityBillingGhe::OPERATION_MATCH ? : ($call is Operation\Activity\ListPublicEvents::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\GetFeeds::OPERATION_MATCH ? : ($call is Operation\Gists\List_::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\Create::OPERATION_MATCH ? (Schema\GistSimple | array{code: int}) : ($call is Operation\Gists\ListPublic::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\ListStarred::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\Get::OPERATION_MATCH ? (Schema\GistSimple | array{code: int}) : ($call is Operation\Gists\Delete::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\Update::OPERATION_MATCH ? : ($call is Operation\Gists\ListComments::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\CreateComment::OPERATION_MATCH ? (Schema\GistComment | array{code: int}) : ($call is Operation\Gists\GetComment::OPERATION_MATCH ? (Schema\GistComment | array{code: int}) : ($call is Operation\Gists\DeleteComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\UpdateComment::OPERATION_MATCH ? : ($call is Operation\Gists\ListCommits::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\ListForks::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\Fork::OPERATION_MATCH ? (Schema\BaseGist | array{code: int}) : ($call is Operation\Gists\CheckIsStarred::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\Star::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\Unstar::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\GetRevision::OPERATION_MATCH ? : ($call is Operation\Gitignore\GetAllTemplates::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gitignore\GetTemplate::OPERATION_MATCH ? (Schema\GitignoreTemplate | array{code: int}) : ($call is Operation\Apps\ListReposAccessibleToInstallation::OPERATION_MATCH ? (Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Apps\RevokeInstallationAccessToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\List_::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Licenses\GetAllCommonlyUsed::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Licenses\Get::OPERATION_MATCH ? (Schema\License | array{code: int}) : ($call is Operation\Markdown\Render::OPERATION_MATCH ? (string | array{code: int}) : ($call is Operation\Markdown\RenderRaw::OPERATION_MATCH ? (string | array{code: int}) : ($call is Operation\Meta\Get::OPERATION_MATCH ? (Schema\ApiOverview | array{code: int}) : ($call is Operation\Activity\ListPublicEventsForRepoNetwork::OPERATION_MATCH ? (iterable | Schema\BasicError | array{code: int}) : ($call is Operation\Activity\ListNotificationsForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\MarkNotificationsAsRead::OPERATION_MATCH ? (Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted | array{code: int}) : ($call is Operation\Activity\GetThread::OPERATION_MATCH ? (Schema\Thread | array{code: int}) : ($call is Operation\Activity\MarkThreadAsRead::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\GetThreadSubscriptionForAuthenticatedUser::OPERATION_MATCH ? (Schema\ThreadSubscription | array{code: int}) : ($call is Operation\Activity\SetThreadSubscription::OPERATION_MATCH ? (Schema\ThreadSubscription | array{code: int}) : ($call is Operation\Activity\DeleteThreadSubscription::OPERATION_MATCH ? array{code: int} : ($call is Operation\Meta\GetOctocat::OPERATION_MATCH ? : ($call is Operation\Orgs\List_::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Orgs\ListCustomRoles::OPERATION_MATCH ? : ($call is Operation\Orgs\Get::OPERATION_MATCH ? : ($call is Operation\Orgs\Update::OPERATION_MATCH ? Schema\OrganizationFull : ($call is Operation\Actions\GetGithubActionsPermissionsOrganization::OPERATION_MATCH ? : ($call is Operation\Actions\SetGithubActionsPermissionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization::OPERATION_MATCH ? : ($call is Operation\Actions\SetSelectedRepositoriesEnabledGithubActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\EnableSelectedRepositoryGithubActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\DisableSelectedRepositoryGithubActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetAllowedActionsOrganization::OPERATION_MATCH ? : ($call is Operation\Actions\SetAllowedActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnerGroupsForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\CreateSelfHostedRunnerGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\GetSelfHostedRunnerGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteSelfHostedRunnerGroupFromOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\UpdateSelfHostedRunnerGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? : ($call is Operation\Actions\SetRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\AddRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\RemoveRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnersInGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\SetSelfHostedRunnersInGroupForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\AddSelfHostedRunnerToGroupForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\RemoveSelfHostedRunnerFromGroupForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnersForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\ListRunnerApplicationsForOrg::OPERATION_MATCH ? iterable : ($call is Operation\Actions\CreateRegistrationTokenForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\CreateRemoveTokenForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\GetSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteSelfHostedRunnerFromOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListLabelsForSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\SetCustomLabelsForSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\AddCustomLabelsToSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveCustomLabelFromSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\ListOrgSecrets::OPERATION_MATCH ? : ($call is Operation\Actions\GetOrgPublicKey::OPERATION_MATCH ? : ($call is Operation\Actions\GetOrgSecret::OPERATION_MATCH ? : ($call is Operation\Actions\CreateOrUpdateOrgSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Actions\DeleteOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelectedReposForOrgSecret::OPERATION_MATCH ? : ($call is Operation\Actions\SetSelectedReposForOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\AddSelectedRepoToOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\RemoveSelectedRepoFromOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\GetAuditLog::OPERATION_MATCH ? iterable : ($call is Operation\Dependabot\ListOrgSecrets::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetOrgPublicKey::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetOrgSecret::OPERATION_MATCH ? : ($call is Operation\Dependabot\CreateOrUpdateOrgSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Dependabot\DeleteOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Dependabot\ListSelectedReposForOrgSecret::OPERATION_MATCH ? : ($call is Operation\Dependabot\SetSelectedReposForOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Dependabot\AddSelectedRepoToOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Dependabot\RemoveSelectedRepoFromOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListPublicOrgEvents::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListWebhooks::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\CreateWebhook::OPERATION_MATCH ? : ($call is Operation\Orgs\GetWebhook::OPERATION_MATCH ? : ($call is Operation\Orgs\DeleteWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\UpdateWebhook::OPERATION_MATCH ? : ($call is Operation\Orgs\GetWebhookConfigForOrg::OPERATION_MATCH ? : ($call is Operation\Orgs\UpdateWebhookConfigForOrg::OPERATION_MATCH ? : ($call is Operation\Orgs\ListWebhookDeliveries::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\GetWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Orgs\RedeliverWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Orgs\PingWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\GetOrgInstallation::OPERATION_MATCH ? : ($call is Operation\Orgs\ListAppInstallations::OPERATION_MATCH ? : ($call is Operation\Issues\ListForOrg::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListMembers::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\CheckMembershipForUser::OPERATION_MATCH ? (array{code: int} | array{code: int, location: string}) : ($call is Operation\Orgs\RemoveMember::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\GetMembershipForUser::OPERATION_MATCH ? : ($call is Operation\Orgs\SetMembershipForUser::OPERATION_MATCH ? : ($call is Operation\Orgs\RemoveMembershipForUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\ListForOrg::OPERATION_MATCH ? iterable : ($call is Operation\Migrations\StartForOrg::OPERATION_MATCH ? : ($call is Operation\Migrations\GetStatusForOrg::OPERATION_MATCH ? : ($call is Operation\Migrations\DownloadArchiveForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\DownloadArchiveForOrgStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Migrations\DeleteArchiveForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\UnlockRepoForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\ListReposForOrg::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListOutsideCollaborators::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ConvertMemberToOutsideCollaborator::OPERATION_MATCH ? (Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Orgs\RemoveOutsideCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooksForOrg::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\GetPreReceiveHookForOrg::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemovePreReceiveHookEnforcementForOrg::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveHookEnforcementForOrg::OPERATION_MATCH ? : ($call is Operation\Projects\ListForOrg::OPERATION_MATCH ? iterable : ($call is Operation\Projects\CreateForOrg::OPERATION_MATCH ? : ($call is Operation\Orgs\ListPublicMembers::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\CheckPublicMembershipForUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\SetPublicMembershipForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\RemovePublicMembershipForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListForOrg::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateInOrg::OPERATION_MATCH ? : ($call is Operation\SecretScanning\ListAlertsForOrg::OPERATION_MATCH ? iterable : ($call is Operation\Billing\GetGithubAdvancedSecurityBillingOrg::OPERATION_MATCH ? : ($call is Operation\Teams\List_::OPERATION_MATCH ? iterable : ($call is Operation\Teams\Create::OPERATION_MATCH ? : ($call is Operation\Teams\GetByName::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionsInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionCommentsInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionCommentInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForTeamDiscussionCommentInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForTeamDiscussionComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Reactions\ListForTeamDiscussionInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForTeamDiscussion::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListMembersInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Teams\GetMembershipForUserInOrg::OPERATION_MATCH ? (Schema\TeamMembership | array{code: int}) : ($call is Operation\Teams\AddOrUpdateMembershipForUserInOrg::OPERATION_MATCH ? (Schema\TeamMembership | array{code: int}) : ($call is Operation\Teams\RemoveMembershipForUserInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListProjectsInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForProjectInOrg::OPERATION_MATCH ? (Schema\TeamProject | array{code: int}) : ($call is Operation\Teams\AddOrUpdateProjectPermissionsInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveProjectInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListReposInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForRepoInOrg::OPERATION_MATCH ? (Schema\TeamRepository | array{code: int}) : ($call is Operation\Teams\AddOrUpdateRepoPermissionsInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveRepoInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListChildInOrg::OPERATION_MATCH ? iterable : ($call is Operation\Projects\GetCard::OPERATION_MATCH ? (Schema\ProjectCard | array{code: int}) : ($call is Operation\Projects\DeleteCard::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\UpdateCard::OPERATION_MATCH ? (Schema\ProjectCard | array{code: int}) : ($call is Operation\Projects\MoveCard::OPERATION_MATCH ? (Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json | array{code: int}) : ($call is Operation\Projects\GetColumn::OPERATION_MATCH ? (Schema\ProjectColumn | array{code: int}) : ($call is Operation\Projects\DeleteColumn::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\UpdateColumn::OPERATION_MATCH ? (Schema\ProjectColumn | array{code: int}) : ($call is Operation\Projects\ListCards::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\CreateCard::OPERATION_MATCH ? (Schema\ProjectCard | array{code: int}) : ($call is Operation\Projects\MoveColumn::OPERATION_MATCH ? (Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json | array{code: int}) : ($call is Operation\Projects\Get::OPERATION_MATCH ? (Schema\Project | array{code: int}) : ($call is Operation\Projects\Delete::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\Update::OPERATION_MATCH ? (Schema\Project | array{code: int}) : ($call is Operation\Projects\ListCollaborators::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\AddCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\RemoveCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\GetPermissionForUser::OPERATION_MATCH ? (Schema\ProjectCollaboratorPermission | array{code: int}) : ($call is Operation\Projects\ListColumns::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\CreateColumn::OPERATION_MATCH ? (Schema\ProjectColumn | array{code: int}) : ($call is Operation\RateLimit\Get::OPERATION_MATCH ? (Schema\RateLimitOverview | array{code: int}) : ($call is Operation\Reactions\DeleteLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\Get::OPERATION_MATCH ? : ($call is Operation\Repos\Delete::OPERATION_MATCH ? (Schema\BasicError | array{code: int}) : ($call is Operation\Repos\Update::OPERATION_MATCH ? : ($call is Operation\Actions\ListArtifactsForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\GetArtifact::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteArtifact::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\DownloadArtifact::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Actions\DownloadArtifactStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Actions\GetJobForWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\DownloadJobLogsForWorkflowRun::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Actions\DownloadJobLogsForWorkflowRunStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Actions\GetGithubActionsPermissionsRepository::OPERATION_MATCH ? : ($call is Operation\Actions\SetGithubActionsPermissionsRepository::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetAllowedActionsRepository::OPERATION_MATCH ? : ($call is Operation\Actions\SetAllowedActionsRepository::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnersForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\ListRunnerApplicationsForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Actions\CreateRegistrationTokenForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\CreateRemoveTokenForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\GetSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteSelfHostedRunnerFromRepo::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListLabelsForSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\SetCustomLabelsForSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\AddCustomLabelsToSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveCustomLabelFromSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\ListWorkflowRunsForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\GetWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteWorkflowRun::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetReviewsForRun::OPERATION_MATCH ? iterable : ($call is Operation\Actions\ListWorkflowRunArtifacts::OPERATION_MATCH ? : ($call is Operation\Actions\CancelWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\ListJobsForWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\DownloadWorkflowRunLogs::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Actions\DownloadWorkflowRunLogsStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Actions\DeleteWorkflowRunLogs::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetPendingDeploymentsForRun::OPERATION_MATCH ? iterable : ($call is Operation\Actions\ReviewPendingDeploymentsForRun::OPERATION_MATCH ? iterable : ($call is Operation\Actions\ReRunWorkflow::OPERATION_MATCH ? : ($call is Operation\Actions\ListRepoSecrets::OPERATION_MATCH ? : ($call is Operation\Actions\GetRepoPublicKey::OPERATION_MATCH ? : ($call is Operation\Actions\GetRepoSecret::OPERATION_MATCH ? : ($call is Operation\Actions\CreateOrUpdateRepoSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Actions\DeleteRepoSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListRepoWorkflows::OPERATION_MATCH ? : ($call is Operation\Actions\GetWorkflow::OPERATION_MATCH ? : ($call is Operation\Actions\DisableWorkflow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\CreateWorkflowDispatch::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\EnableWorkflow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListWorkflowRuns::OPERATION_MATCH ? : ($call is Operation\Issues\ListAssignees::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CheckUserCanBeAssigned::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListAutolinks::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateAutolink::OPERATION_MATCH ? : ($call is Operation\Repos\GetAutolink::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAutolink::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListBranches::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetBranch::OPERATION_MATCH ? : ($call is Operation\Repos\GetBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteBranchProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetAdminBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\SetAdminBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAdminBranchProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetPullRequestReviewProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeletePullRequestReviewProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdatePullRequestReviewProtection::OPERATION_MATCH ? : ($call is Operation\Repos\GetCommitSignatureProtection::OPERATION_MATCH ? : ($call is Operation\Repos\CreateCommitSignatureProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteCommitSignatureProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetStatusChecksProtection::OPERATION_MATCH ? : ($call is Operation\Repos\RemoveStatusCheckProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateStatusCheckProtection::OPERATION_MATCH ? : ($call is Operation\Repos\GetAllStatusCheckContexts::OPERATION_MATCH ? iterable : ($call is Operation\Repos\SetStatusCheckContexts::OPERATION_MATCH ? iterable : ($call is Operation\Repos\AddStatusCheckContexts::OPERATION_MATCH ? iterable : ($call is Operation\Repos\RemoveStatusCheckContexts::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetAccessRestrictions::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAccessRestrictions::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetAppsWithAccessToProtectedBranch::OPERATION_MATCH ? iterable : ($call is Operation\Repos\SetAppAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\AddAppAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\RemoveAppAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetTeamsWithAccessToProtectedBranch::OPERATION_MATCH ? iterable : ($call is Operation\Repos\SetTeamAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\AddTeamAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\RemoveTeamAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetUsersWithAccessToProtectedBranch::OPERATION_MATCH ? iterable : ($call is Operation\Repos\SetUserAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\AddUserAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\RemoveUserAccessRestrictions::OPERATION_MATCH ? iterable : ($call is Operation\Repos\RenameBranch::OPERATION_MATCH ? : ($call is Operation\Checks\Create::OPERATION_MATCH ? : ($call is Operation\Checks\Get::OPERATION_MATCH ? : ($call is Operation\Checks\Update::OPERATION_MATCH ? : ($call is Operation\Checks\ListAnnotations::OPERATION_MATCH ? iterable : ($call is Operation\Checks\RerequestRun::OPERATION_MATCH ? : ($call is Operation\Checks\CreateSuite::OPERATION_MATCH ? : ($call is Operation\Checks\SetSuitesPreferences::OPERATION_MATCH ? : ($call is Operation\Checks\GetSuite::OPERATION_MATCH ? : ($call is Operation\Checks\ListForSuite::OPERATION_MATCH ? : ($call is Operation\Checks\RerequestSuite::OPERATION_MATCH ? : ($call is Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\CodeScanning\GetAlert::OPERATION_MATCH ? (Schema\CodeScanningAlert | array{code: int}) : ($call is Operation\CodeScanning\UpdateAlert::OPERATION_MATCH ? : ($call is Operation\CodeScanning\ListAlertInstances::OPERATION_MATCH ? iterable : ($call is Operation\CodeScanning\ListRecentAnalyses::OPERATION_MATCH ? iterable : ($call is Operation\CodeScanning\GetAnalysis::OPERATION_MATCH ? : ($call is Operation\CodeScanning\DeleteAnalysis::OPERATION_MATCH ? : ($call is Operation\CodeScanning\UploadSarif::OPERATION_MATCH ? (Schema\CodeScanningSarifsReceipt | array{code: int}) : ($call is Operation\CodeScanning\GetSarif::OPERATION_MATCH ? (Schema\CodeScanningSarifsStatus | array{code: int}) : ($call is Operation\Repos\ListCollaborators::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CheckCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\AddCollaborator::OPERATION_MATCH ? (Schema\RepositoryInvitation | array{code: int}) : ($call is Operation\Repos\RemoveCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetCollaboratorPermissionLevel::OPERATION_MATCH ? : ($call is Operation\Repos\ListCommitCommentsForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetCommitComment::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteCommitComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateCommitComment::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForCommitComment::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForCommitComment::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForCommitComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListCommits::OPERATION_MATCH ? iterable : ($call is Operation\Repos\ListBranchesForHeadCommit::OPERATION_MATCH ? iterable : ($call is Operation\Repos\ListCommentsForCommit::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateCommitComment::OPERATION_MATCH ? : ($call is Operation\Repos\ListPullRequestsAssociatedWithCommit::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetCommit::OPERATION_MATCH ? : ($call is Operation\Checks\ListForRef::OPERATION_MATCH ? : ($call is Operation\Checks\ListSuitesForRef::OPERATION_MATCH ? : ($call is Operation\Repos\GetCombinedStatusForRef::OPERATION_MATCH ? : ($call is Operation\Repos\ListCommitStatusesForRef::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Repos\CompareCommits::OPERATION_MATCH ? : ($call is Operation\Repos\GetContent::OPERATION_MATCH ? (Schema\ContentDirectory | Schema\ContentFile | Schema\ContentSymlink | Schema\ContentSubmodule | array{code: int}) : ($call is Operation\Repos\CreateOrUpdateFileContents::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteFile::OPERATION_MATCH ? : ($call is Operation\Repos\ListContributors::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Dependabot\ListRepoSecrets::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetRepoPublicKey::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetRepoSecret::OPERATION_MATCH ? : ($call is Operation\Dependabot\CreateOrUpdateRepoSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Dependabot\DeleteRepoSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListDeployments::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateDeployment::OPERATION_MATCH ? (Schema\Deployment | Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetDeployment::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteDeployment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListDeploymentStatuses::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateDeploymentStatus::OPERATION_MATCH ? : ($call is Operation\Repos\GetDeploymentStatus::OPERATION_MATCH ? : ($call is Operation\Repos\CreateDispatchEvent::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetAllEnvironments::OPERATION_MATCH ? : ($call is Operation\Repos\GetEnvironment::OPERATION_MATCH ? : ($call is Operation\Repos\CreateOrUpdateEnvironment::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAnEnvironment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListDeploymentBranchPolicies::OPERATION_MATCH ? : ($call is Operation\Repos\CreateDeploymentBranchPolicy::OPERATION_MATCH ? (Schema\DeploymentBranchPolicy | array{code: int}) : ($call is Operation\Repos\GetDeploymentBranchPolicy::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateDeploymentBranchPolicy::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteDeploymentBranchPolicy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListRepoEvents::OPERATION_MATCH ? iterable : ($call is Operation\Repos\ListForks::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateFork::OPERATION_MATCH ? : ($call is Operation\Git\CreateBlob::OPERATION_MATCH ? : ($call is Operation\Git\GetBlob::OPERATION_MATCH ? : ($call is Operation\Git\CreateCommit::OPERATION_MATCH ? : ($call is Operation\Git\GetCommit::OPERATION_MATCH ? : ($call is Operation\Git\ListMatchingRefs::OPERATION_MATCH ? iterable : ($call is Operation\Git\GetRef::OPERATION_MATCH ? : ($call is Operation\Git\CreateRef::OPERATION_MATCH ? : ($call is Operation\Git\DeleteRef::OPERATION_MATCH ? array{code: int} : ($call is Operation\Git\UpdateRef::OPERATION_MATCH ? : ($call is Operation\Git\CreateTag::OPERATION_MATCH ? : ($call is Operation\Git\GetTag::OPERATION_MATCH ? : ($call is Operation\Git\CreateTree::OPERATION_MATCH ? : ($call is Operation\Git\GetTree::OPERATION_MATCH ? : ($call is Operation\Repos\ListWebhooks::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateWebhook::OPERATION_MATCH ? : ($call is Operation\Repos\GetWebhook::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateWebhook::OPERATION_MATCH ? : ($call is Operation\Repos\GetWebhookConfigForRepo::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateWebhookConfigForRepo::OPERATION_MATCH ? : ($call is Operation\Repos\ListWebhookDeliveries::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Repos\RedeliverWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Repos\PingWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\TestPushWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\GetRepoInstallation::OPERATION_MATCH ? : ($call is Operation\Repos\ListInvitations::OPERATION_MATCH ? iterable : ($call is Operation\Repos\DeleteInvitation::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateInvitation::OPERATION_MATCH ? : ($call is Operation\Issues\ListForRepo::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Issues\Create::OPERATION_MATCH ? : ($call is Operation\Issues\ListCommentsForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Issues\GetComment::OPERATION_MATCH ? : ($call is Operation\Issues\DeleteComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\UpdateComment::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForIssueComment::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForIssueComment::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForIssueComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListEventsForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Issues\GetEvent::OPERATION_MATCH ? : ($call is Operation\Issues\Get::OPERATION_MATCH ? (Schema\Issue | Schema\BasicError | array{code: int}) : ($call is Operation\Issues\Update::OPERATION_MATCH ? : ($call is Operation\Issues\AddAssignees::OPERATION_MATCH ? : ($call is Operation\Issues\RemoveAssignees::OPERATION_MATCH ? : ($call is Operation\Issues\CheckUserCanBeAssignedToIssue::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListComments::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CreateComment::OPERATION_MATCH ? : ($call is Operation\Issues\ListEvents::OPERATION_MATCH ? iterable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\AssignedIssueEvent | Schema\UnassignedIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent)> : ($call is Operation\Issues\ListLabelsOnIssue::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Issues\SetLabels::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Issues\AddLabels::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Issues\RemoveAllLabels::OPERATION_MATCH ? (Schema\BasicError | array{code: int}) : ($call is Operation\Issues\RemoveLabel::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Issues\Lock::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\Unlock::OPERATION_MATCH ? array{code: int} : ($call is Operation\Reactions\ListForIssue::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForIssue::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForIssue::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListEventsForTimeline::OPERATION_MATCH ? iterable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent | Schema\TimelineCommentEvent | Schema\TimelineCrossReferencedEvent | Schema\TimelineCommittedEvent | Schema\TimelineReviewedEvent | Schema\TimelineLineCommentedEvent | Schema\TimelineCommitCommentedEvent | Schema\TimelineAssignedIssueEvent | Schema\TimelineUnassignedIssueEvent | Schema\StateChangeIssueEvent)> : ($call is Operation\Repos\ListDeployKeys::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateDeployKey::OPERATION_MATCH ? : ($call is Operation\Repos\GetDeployKey::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteDeployKey::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListLabelsForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CreateLabel::OPERATION_MATCH ? : ($call is Operation\Issues\GetLabel::OPERATION_MATCH ? : ($call is Operation\Issues\DeleteLabel::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\UpdateLabel::OPERATION_MATCH ? : ($call is Operation\Repos\ListLanguages::OPERATION_MATCH ? : ($call is Operation\Repos\EnableLfsForRepo::OPERATION_MATCH ? (Schema\Operations\Repos\EnableLfsForRepo\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\DisableLfsForRepo::OPERATION_MATCH ? array{code: int} : ($call is Operation\Licenses\GetForRepo::OPERATION_MATCH ? : ($call is Operation\Repos\MergeUpstream::OPERATION_MATCH ? (Schema\MergedUpstream | array{code: int}) : ($call is Operation\Repos\Merge::OPERATION_MATCH ? (Schema\Commit | array{code: int}) : ($call is Operation\Issues\ListMilestones::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CreateMilestone::OPERATION_MATCH ? : ($call is Operation\Issues\GetMilestone::OPERATION_MATCH ? : ($call is Operation\Issues\DeleteMilestone::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\UpdateMilestone::OPERATION_MATCH ? : ($call is Operation\Issues\ListLabelsForMilestone::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListRepoNotificationsForAuthenticatedUser::OPERATION_MATCH ? iterable : ($call is Operation\Activity\MarkRepoNotificationsAsRead::OPERATION_MATCH ? (Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetPages::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateInformationAboutPagesSite::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\CreatePagesSite::OPERATION_MATCH ? : ($call is Operation\Repos\DeletePagesSite::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListPagesBuilds::OPERATION_MATCH ? iterable : ($call is Operation\Repos\RequestPagesBuild::OPERATION_MATCH ? : ($call is Operation\Repos\GetLatestPagesBuild::OPERATION_MATCH ? : ($call is Operation\Repos\GetPagesBuild::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooksForRepo::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\GetPreReceiveHookForRepo::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemovePreReceiveHookEnforcementForRepo::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveHookEnforcementForRepo::OPERATION_MATCH ? : ($call is Operation\Projects\ListForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Projects\CreateForRepo::OPERATION_MATCH ? : ($call is Operation\Pulls\List_::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Pulls\Create::OPERATION_MATCH ? : ($call is Operation\Pulls\ListReviewCommentsForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\GetReviewComment::OPERATION_MATCH ? : ($call is Operation\Pulls\DeleteReviewComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Pulls\UpdateReviewComment::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForPullRequestReviewComment::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForPullRequestReviewComment::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForPullRequestComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Pulls\Get::OPERATION_MATCH ? (Schema\PullRequest | array{code: int}) : ($call is Operation\Pulls\Update::OPERATION_MATCH ? : ($call is Operation\Pulls\ListReviewComments::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\CreateReviewComment::OPERATION_MATCH ? : ($call is Operation\Pulls\CreateReplyForReviewComment::OPERATION_MATCH ? : ($call is Operation\Pulls\ListCommits::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\ListFiles::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\CheckIfMerged::OPERATION_MATCH ? array{code: int} : ($call is Operation\Pulls\Merge::OPERATION_MATCH ? : ($call is Operation\Pulls\ListRequestedReviewers::OPERATION_MATCH ? : ($call is Operation\Pulls\RequestReviewers::OPERATION_MATCH ? (Schema\PullRequestSimple | array{code: int}) : ($call is Operation\Pulls\RemoveRequestedReviewers::OPERATION_MATCH ? : ($call is Operation\Pulls\ListReviews::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\CreateReview::OPERATION_MATCH ? : ($call is Operation\Pulls\GetReview::OPERATION_MATCH ? : ($call is Operation\Pulls\UpdateReview::OPERATION_MATCH ? : ($call is Operation\Pulls\DeletePendingReview::OPERATION_MATCH ? : ($call is Operation\Pulls\ListCommentsForReview::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\DismissReview::OPERATION_MATCH ? : ($call is Operation\Pulls\SubmitReview::OPERATION_MATCH ? : ($call is Operation\Pulls\UpdateBranch::OPERATION_MATCH ? : ($call is Operation\Repos\GetReadme::OPERATION_MATCH ? : ($call is Operation\Repos\GetReadmeInDirectory::OPERATION_MATCH ? : ($call is Operation\Repos\ListReleases::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateRelease::OPERATION_MATCH ? : ($call is Operation\Repos\GetReleaseAsset::OPERATION_MATCH ? (Schema\ReleaseAsset | array{code: int}) : ($call is Operation\Repos\DeleteReleaseAsset::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateReleaseAsset::OPERATION_MATCH ? : ($call is Operation\Repos\GenerateReleaseNotes::OPERATION_MATCH ? : ($call is Operation\Repos\GetLatestRelease::OPERATION_MATCH ? : ($call is Operation\Repos\GetReleaseByTag::OPERATION_MATCH ? : ($call is Operation\Repos\GetRelease::OPERATION_MATCH ? (Schema\Release | array{code: int}) : ($call is Operation\Repos\DeleteRelease::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateRelease::OPERATION_MATCH ? : ($call is Operation\Repos\ListReleaseAssets::OPERATION_MATCH ? iterable : ($call is Operation\Repos\UploadReleaseAsset::OPERATION_MATCH ? (Schema\ReleaseAsset | array{code: int}) : ($call is Operation\Reactions\ListForRelease::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForRelease::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForRelease::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListCacheInfo::OPERATION_MATCH ? iterable : ($call is Operation\SecretScanning\ListAlertsForRepo::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\SecretScanning\GetAlert::OPERATION_MATCH ? (Schema\SecretScanningAlert | array{code: int}) : ($call is Operation\SecretScanning\UpdateAlert::OPERATION_MATCH ? (Schema\SecretScanningAlert | array{code: int}) : ($call is Operation\SecretScanning\ListLocationsForAlert::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\ListStargazersForRepo::OPERATION_MATCH ? (Schema\SimpleUser | Schema\Stargazer) : ($call is Operation\Repos\GetCodeFrequencyStats::OPERATION_MATCH ? (iterable | Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetCommitActivityStats::OPERATION_MATCH ? (iterable | Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetContributorsStats::OPERATION_MATCH ? (iterable | Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetParticipationStats::OPERATION_MATCH ? : ($call is Operation\Repos\GetPunchCardStats::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Repos\CreateCommitStatus::OPERATION_MATCH ? : ($call is Operation\Activity\ListWatchersForRepo::OPERATION_MATCH ? iterable : ($call is Operation\Activity\GetRepoSubscription::OPERATION_MATCH ? (Schema\RepositorySubscription | array{code: int}) : ($call is Operation\Activity\SetRepoSubscription::OPERATION_MATCH ? : ($call is Operation\Activity\DeleteRepoSubscription::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListTags::OPERATION_MATCH ? iterable : ($call is Operation\Repos\DownloadTarballArchive::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Repos\DownloadTarballArchiveStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListTeams::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetAllTopics::OPERATION_MATCH ? : ($call is Operation\Repos\ReplaceAllTopics::OPERATION_MATCH ? : ($call is Operation\Repos\Transfer::OPERATION_MATCH ? : ($call is Operation\Repos\DownloadZipballArchive::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Repos\DownloadZipballArchiveStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Repos\CreateUsingTemplate::OPERATION_MATCH ? : ($call is Operation\Repos\ListPublic::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Actions\ListEnvironmentSecrets::OPERATION_MATCH ? : ($call is Operation\Actions\GetEnvironmentPublicKey::OPERATION_MATCH ? : ($call is Operation\Actions\GetEnvironmentSecret::OPERATION_MATCH ? : ($call is Operation\Actions\CreateOrUpdateEnvironmentSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Actions\DeleteEnvironmentSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Search\Code::OPERATION_MATCH ? (Schema\Operations\Search\Code\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Commits::OPERATION_MATCH ? (Schema\Operations\Search\Commits\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\IssuesAndPullRequests::OPERATION_MATCH ? (Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Labels::OPERATION_MATCH ? (Schema\Operations\Search\Labels\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Repos::OPERATION_MATCH ? (Schema\Operations\Search\Repos\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Topics::OPERATION_MATCH ? (Schema\Operations\Search\Topics\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Users::OPERATION_MATCH ? (Schema\Operations\Search\Users\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\EnterpriseAdmin\GetConfigurationStatus::OPERATION_MATCH ? (Schema\ConfigurationStatus | array{code: int}) : ($call is Operation\EnterpriseAdmin\StartConfigurationProcess::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\GetMaintenanceStatus::OPERATION_MATCH ? (Schema\MaintenanceStatus | array{code: int}) : ($call is Operation\EnterpriseAdmin\EnableOrDisableMaintenanceMode::OPERATION_MATCH ? (Schema\MaintenanceStatus | array{code: int}) : ($call is Operation\EnterpriseAdmin\GetSettings::OPERATION_MATCH ? (Schema\EnterpriseSettings | array{code: int}) : ($call is Operation\EnterpriseAdmin\SetSettings::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\GetAllAuthorizedSshKeys::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\EnterpriseAdmin\AddAuthorizedSshKey::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\EnterpriseAdmin\RemoveAuthorizedSshKey::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\EnterpriseAdmin\CreateEnterpriseServerLicense::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpgradeLicense::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\GetLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionsLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionCommentsLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionCommentLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForTeamDiscussionCommentLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForTeamDiscussionLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\ListMembersLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Teams\GetMemberLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\AddMemberLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveMemberLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\GetMembershipForUserLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\AddOrUpdateMembershipForUserLegacy::OPERATION_MATCH ? (Schema\TeamMembership | array{code: int}) : ($call is Operation\Teams\RemoveMembershipForUserLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListProjectsLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForProjectLegacy::OPERATION_MATCH ? (Schema\TeamProject | array{code: int}) : ($call is Operation\Teams\AddOrUpdateProjectPermissionsLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveProjectLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListReposLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForRepoLegacy::OPERATION_MATCH ? (Schema\TeamRepository | array{code: int}) : ($call is Operation\Teams\AddOrUpdateRepoPermissionsLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveRepoLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListChildLegacy::OPERATION_MATCH ? iterable : ($call is Operation\Users\GetAuthenticated::OPERATION_MATCH ? (Schema\PrivateUser | Schema\PublicUser | array{code: int}) : ($call is Operation\Users\UpdateAuthenticated::OPERATION_MATCH ? (Schema\PrivateUser | array{code: int}) : ($call is Operation\Users\ListEmailsForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\AddEmailForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\DeleteEmailForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\ListFollowersForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\ListFollowedByAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\CheckPersonIsFollowedByAuthenticated::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\Follow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\Unfollow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\ListGpgKeysForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\CreateGpgKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\GpgKey | array{code: int}) : ($call is Operation\Users\GetGpgKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\GpgKey | array{code: int}) : ($call is Operation\Users\DeleteGpgKeyForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\ListInstallationsForAuthenticatedUser::OPERATION_MATCH ? (Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json | array{code: int}) : ($call is Operation\Apps\ListInstallationReposForAuthenticatedUser::OPERATION_MATCH ? (Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Apps\AddRepoToInstallationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\RemoveRepoFromInstallationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\ListPublicSshKeysForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\CreatePublicSshKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\Key | array{code: int}) : ($call is Operation\Users\GetPublicSshKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\Key | array{code: int}) : ($call is Operation\Users\DeletePublicSshKeyForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\ListMembershipsForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Orgs\GetMembershipForAuthenticatedUser::OPERATION_MATCH ? : ($call is Operation\Orgs\UpdateMembershipForAuthenticatedUser::OPERATION_MATCH ? : ($call is Operation\Migrations\ListForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Migrations\StartForAuthenticatedUser::OPERATION_MATCH ? (Schema\Migration | array{code: int}) : ($call is Operation\Migrations\GetArchiveForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\ListReposForAuthenticatedUser::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\CreateForAuthenticatedUser::OPERATION_MATCH ? (Schema\Project | array{code: int}) : ($call is Operation\Users\ListPublicEmailsForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Repos\ListForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Repos\CreateForAuthenticatedUser::OPERATION_MATCH ? (Schema\Repository | array{code: int}) : ($call is Operation\Repos\ListInvitationsForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Repos\DeclineInvitationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\AcceptInvitationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListReposStarredByAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\CheckRepoIsStarredByAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\StarRepoForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\UnstarRepoForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListWatchedReposForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Teams\ListForAuthenticatedUser::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\List_::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\GetByUsername::OPERATION_MATCH ? (Schema\PrivateUser | Schema\PublicUser) : ($call is Operation\Activity\ListEventsForAuthenticatedUser::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListOrgEventsForAuthenticatedUser::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListPublicEventsForUser::OPERATION_MATCH ? iterable : ($call is Operation\Users\ListFollowersForUser::OPERATION_MATCH ? iterable : ($call is Operation\Users\ListFollowingForUser::OPERATION_MATCH ? iterable : ($call is Operation\Users\CheckFollowingForUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\ListForUser::OPERATION_MATCH ? iterable : ($call is Operation\Users\ListGpgKeysForUser::OPERATION_MATCH ? iterable : ($call is Operation\Users\GetContextForUser::OPERATION_MATCH ? : ($call is Operation\Apps\GetUserInstallation::OPERATION_MATCH ? : ($call is Operation\Users\ListPublicKeysForUser::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListForUser::OPERATION_MATCH ? iterable : ($call is Operation\Projects\ListForUser::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListReceivedEventsForUser::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListReceivedPublicEventsForUser::OPERATION_MATCH ? iterable : ($call is Operation\Repos\ListForUser::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\PromoteUserToBeSiteAdministrator::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\DemoteSiteAdministrator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListReposStarredByUser::OPERATION_MATCH ? (Schema\StarredRepository | Schema\Repository) : ($call is Operation\Activity\ListReposWatchedByUser::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\SuspendUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UnsuspendUser::OPERATION_MATCH ? array{code: int} : )))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) + * @return ($call is Operation\Meta\Root::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListGlobalWebhooks::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\ListGlobalWebhooksListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\CreateGlobalWebhook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetGlobalWebhook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteGlobalWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateGlobalWebhook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\PingGlobalWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListPublicKeys::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\ListPublicKeysListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\DeletePublicKey::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateLdapMappingForTeam::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SyncLdapMappingForTeam::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdateLdapMappingForUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SyncLdapMappingForUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateOrg::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdateOrgName::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPreReceiveEnvironments::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\ListPreReceiveEnvironmentsListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\CreatePreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeletePreReceiveEnvironment::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\StartPreReceiveEnvironmentDownload::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\StartPreReceiveEnvironmentDownloadStreaming::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetDownloadStatusForPreReceiveEnvironment::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetDownloadStatusForPreReceiveEnvironmentStreaming::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooks::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooksListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\CreatePreReceiveHook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPreReceiveHook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeletePreReceiveHook::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveHook::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPersonalAccessTokens::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\ListPersonalAccessTokensListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\DeletePersonalAccessToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\CreateUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateUsernameForUser::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateImpersonationOAuthToken::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteImpersonationOAuthToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\GetAuthenticated::OPERATION_MATCH ? : ($call is Operation\Apps\CreateFromManifest::OPERATION_MATCH ? : ($call is Operation\Apps\GetWebhookConfigForApp::OPERATION_MATCH ? : ($call is Operation\Apps\UpdateWebhookConfigForApp::OPERATION_MATCH ? : ($call is Operation\Apps\ListWebhookDeliveries::OPERATION_MATCH ? Observable : ($call is Operation\Apps\GetWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Apps\RedeliverWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Apps\ListInstallationRequestsForAuthenticatedApp::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Apps\ListInstallationRequestsForAuthenticatedAppListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Apps\ListInstallations::OPERATION_MATCH ? Observable : ($call is Operation\Apps\ListInstallationsListing::OPERATION_MATCH ? iterable : ($call is Operation\Apps\GetInstallation::OPERATION_MATCH ? : ($call is Operation\Apps\DeleteInstallation::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\CreateInstallationAccessToken::OPERATION_MATCH ? : ($call is Operation\Apps\SuspendInstallation::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\UnsuspendInstallation::OPERATION_MATCH ? array{code: int} : ($call is Operation\OauthAuthorizations\ListGrants::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\OauthAuthorizations\ListGrantsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\OauthAuthorizations\GetGrant::OPERATION_MATCH ? (Schema\ApplicationGrant | array{code: int}) : ($call is Operation\OauthAuthorizations\DeleteGrant::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\DeleteAuthorization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\CheckToken::OPERATION_MATCH ? : ($call is Operation\Apps\DeleteToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\ResetToken::OPERATION_MATCH ? : ($call is Operation\Apps\ScopeToken::OPERATION_MATCH ? : ($call is Operation\Apps\GetBySlug::OPERATION_MATCH ? : ($call is Operation\OauthAuthorizations\ListAuthorizations::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\OauthAuthorizations\ListAuthorizationsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\OauthAuthorizations\CreateAuthorization::OPERATION_MATCH ? (Schema\Authorization | array{code: int}) : ($call is Operation\OauthAuthorizations\GetOrCreateAuthorizationForApp::OPERATION_MATCH ? (Schema\Authorization | array{code: int}) : ($call is Operation\OauthAuthorizations\GetOrCreateAuthorizationForAppAndFingerprint::OPERATION_MATCH ? : ($call is Operation\OauthAuthorizations\GetAuthorization::OPERATION_MATCH ? (Schema\Authorization | array{code: int}) : ($call is Operation\OauthAuthorizations\DeleteAuthorization::OPERATION_MATCH ? array{code: int} : ($call is Operation\OauthAuthorizations\UpdateAuthorization::OPERATION_MATCH ? : ($call is Operation\CodesOfConduct\GetAllCodesOfConduct::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\CodesOfConduct\GetConductCode::OPERATION_MATCH ? (Schema\CodeOfConduct | array{code: int}) : ($call is Operation\Emojis\Get::OPERATION_MATCH ? (Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\EnterpriseAdmin\GetAnnouncement::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemoveAnnouncement::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\SetAnnouncement::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetLicenseInformation::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetAllStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetCommentStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetGistStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetHooksStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetIssueStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetMilestoneStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetOrgStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPagesStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetPullRequestStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetRepoStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetUserStats::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetGithubActionsPermissionsEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetGithubActionsPermissionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetSelectedOrganizationsEnabledGithubActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\EnableSelectedOrganizationGithubActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\DisableSelectedOrganizationGithubActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\GetAllowedActionsEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetAllowedActionsEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateSelfHostedRunnerGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetSelfHostedRunnerGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteSelfHostedRunnerGroupFromEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpdateSelfHostedRunnerGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\AddOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\RemoveOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetSelfHostedRunnersInGroupForEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\AddSelfHostedRunnerToGroupForEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\RemoveSelfHostedRunnerFromGroupForEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListRunnerApplicationsForEnterprise::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\CreateRegistrationTokenForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\CreateRemoveTokenForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\DeleteSelfHostedRunnerFromEnterprise::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\SetCustomLabelsForSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\AddCustomLabelsToSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemoveCustomLabelFromSelfHostedRunnerForEnterprise::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\GetAuditLog::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\GetAuditLogListing::OPERATION_MATCH ? iterable : ($call is Operation\SecretScanning\ListAlertsForEnterprise::OPERATION_MATCH ? Observable : ($call is Operation\Billing\GetGithubAdvancedSecurityBillingGhe::OPERATION_MATCH ? : ($call is Operation\Activity\ListPublicEvents::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Activity\ListPublicEventsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\GetFeeds::OPERATION_MATCH ? : ($call is Operation\Gists\List_::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Gists\ListListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\Create::OPERATION_MATCH ? (Schema\GistSimple | array{code: int}) : ($call is Operation\Gists\ListPublic::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Gists\ListPublicListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\ListStarred::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Gists\ListStarredListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\Get::OPERATION_MATCH ? (Schema\GistSimple | array{code: int}) : ($call is Operation\Gists\Delete::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\Update::OPERATION_MATCH ? : ($call is Operation\Gists\ListComments::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Gists\ListCommentsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\CreateComment::OPERATION_MATCH ? (Schema\GistComment | array{code: int}) : ($call is Operation\Gists\GetComment::OPERATION_MATCH ? (Schema\GistComment | array{code: int}) : ($call is Operation\Gists\DeleteComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\UpdateComment::OPERATION_MATCH ? : ($call is Operation\Gists\ListCommits::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Gists\ListCommitsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\ListForks::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Gists\ListForksListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Gists\Fork::OPERATION_MATCH ? (Schema\BaseGist | array{code: int}) : ($call is Operation\Gists\CheckIsStarred::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\Star::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\Unstar::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\GetRevision::OPERATION_MATCH ? : ($call is Operation\Gitignore\GetAllTemplates::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Gitignore\GetTemplate::OPERATION_MATCH ? (Schema\GitignoreTemplate | array{code: int}) : ($call is Operation\Apps\ListReposAccessibleToInstallation::OPERATION_MATCH ? (Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Apps\RevokeInstallationAccessToken::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\List_::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Issues\ListListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Licenses\GetAllCommonlyUsed::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Licenses\GetAllCommonlyUsedListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Licenses\Get::OPERATION_MATCH ? (Schema\License | array{code: int}) : ($call is Operation\Markdown\Render::OPERATION_MATCH ? (string | array{code: int}) : ($call is Operation\Markdown\RenderRaw::OPERATION_MATCH ? (string | array{code: int}) : ($call is Operation\Meta\Get::OPERATION_MATCH ? (Schema\ApiOverview | array{code: int}) : ($call is Operation\Activity\ListPublicEventsForRepoNetwork::OPERATION_MATCH ? (Observable | Schema\BasicError | array{code: int}) : ($call is Operation\Activity\ListPublicEventsForRepoNetworkListing::OPERATION_MATCH ? (iterable | Schema\BasicError | array{code: int}) : ($call is Operation\Activity\ListNotificationsForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Activity\ListNotificationsForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\MarkNotificationsAsRead::OPERATION_MATCH ? (Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted | array{code: int}) : ($call is Operation\Activity\GetThread::OPERATION_MATCH ? (Schema\Thread | array{code: int}) : ($call is Operation\Activity\MarkThreadAsRead::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\GetThreadSubscriptionForAuthenticatedUser::OPERATION_MATCH ? (Schema\ThreadSubscription | array{code: int}) : ($call is Operation\Activity\SetThreadSubscription::OPERATION_MATCH ? (Schema\ThreadSubscription | array{code: int}) : ($call is Operation\Activity\DeleteThreadSubscription::OPERATION_MATCH ? array{code: int} : ($call is Operation\Meta\GetOctocat::OPERATION_MATCH ? : ($call is Operation\Orgs\List_::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Orgs\ListCustomRoles::OPERATION_MATCH ? : ($call is Operation\Orgs\Get::OPERATION_MATCH ? : ($call is Operation\Orgs\Update::OPERATION_MATCH ? : ($call is Operation\Actions\GetGithubActionsPermissionsOrganization::OPERATION_MATCH ? : ($call is Operation\Actions\SetGithubActionsPermissionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization::OPERATION_MATCH ? : ($call is Operation\Actions\SetSelectedRepositoriesEnabledGithubActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\EnableSelectedRepositoryGithubActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\DisableSelectedRepositoryGithubActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetAllowedActionsOrganization::OPERATION_MATCH ? : ($call is Operation\Actions\SetAllowedActionsOrganization::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnerGroupsForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\CreateSelfHostedRunnerGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\GetSelfHostedRunnerGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteSelfHostedRunnerGroupFromOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\UpdateSelfHostedRunnerGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? : ($call is Operation\Actions\SetRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\AddRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\RemoveRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnersInGroupForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\SetSelfHostedRunnersInGroupForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\AddSelfHostedRunnerToGroupForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\RemoveSelfHostedRunnerFromGroupForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnersForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\ListRunnerApplicationsForOrg::OPERATION_MATCH ? Observable : ($call is Operation\Actions\CreateRegistrationTokenForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\CreateRemoveTokenForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\GetSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteSelfHostedRunnerFromOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListLabelsForSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\SetCustomLabelsForSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\AddCustomLabelsToSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveCustomLabelFromSelfHostedRunnerForOrg::OPERATION_MATCH ? : ($call is Operation\Actions\ListOrgSecrets::OPERATION_MATCH ? : ($call is Operation\Actions\GetOrgPublicKey::OPERATION_MATCH ? : ($call is Operation\Actions\GetOrgSecret::OPERATION_MATCH ? : ($call is Operation\Actions\CreateOrUpdateOrgSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Actions\DeleteOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelectedReposForOrgSecret::OPERATION_MATCH ? : ($call is Operation\Actions\SetSelectedReposForOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\AddSelectedRepoToOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\RemoveSelectedRepoFromOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\GetAuditLog::OPERATION_MATCH ? Observable : ($call is Operation\Orgs\GetAuditLogListing::OPERATION_MATCH ? iterable : ($call is Operation\Dependabot\ListOrgSecrets::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetOrgPublicKey::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetOrgSecret::OPERATION_MATCH ? : ($call is Operation\Dependabot\CreateOrUpdateOrgSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Dependabot\DeleteOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Dependabot\ListSelectedReposForOrgSecret::OPERATION_MATCH ? : ($call is Operation\Dependabot\SetSelectedReposForOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Dependabot\AddSelectedRepoToOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Dependabot\RemoveSelectedRepoFromOrgSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListPublicOrgEvents::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListPublicOrgEventsListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListWebhooks::OPERATION_MATCH ? Observable : ($call is Operation\Orgs\ListWebhooksListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\CreateWebhook::OPERATION_MATCH ? : ($call is Operation\Orgs\GetWebhook::OPERATION_MATCH ? : ($call is Operation\Orgs\DeleteWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\UpdateWebhook::OPERATION_MATCH ? : ($call is Operation\Orgs\GetWebhookConfigForOrg::OPERATION_MATCH ? : ($call is Operation\Orgs\UpdateWebhookConfigForOrg::OPERATION_MATCH ? : ($call is Operation\Orgs\ListWebhookDeliveries::OPERATION_MATCH ? Observable : ($call is Operation\Orgs\GetWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Orgs\RedeliverWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Orgs\PingWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\GetOrgInstallation::OPERATION_MATCH ? : ($call is Operation\Orgs\ListAppInstallations::OPERATION_MATCH ? : ($call is Operation\Issues\ListForOrg::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListForOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListMembers::OPERATION_MATCH ? Observable : ($call is Operation\Orgs\ListMembersListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\CheckMembershipForUser::OPERATION_MATCH ? (array{code: int} | array{code: int, location: string}) : ($call is Operation\Orgs\RemoveMember::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\GetMembershipForUser::OPERATION_MATCH ? : ($call is Operation\Orgs\SetMembershipForUser::OPERATION_MATCH ? : ($call is Operation\Orgs\RemoveMembershipForUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\ListForOrg::OPERATION_MATCH ? Observable : ($call is Operation\Migrations\ListForOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Migrations\StartForOrg::OPERATION_MATCH ? : ($call is Operation\Migrations\GetStatusForOrg::OPERATION_MATCH ? : ($call is Operation\Migrations\DownloadArchiveForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\DownloadArchiveForOrgStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Migrations\DeleteArchiveForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\UnlockRepoForOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\ListReposForOrg::OPERATION_MATCH ? Observable : ($call is Operation\Migrations\ListReposForOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListOutsideCollaborators::OPERATION_MATCH ? Observable : ($call is Operation\Orgs\ListOutsideCollaboratorsListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ConvertMemberToOutsideCollaborator::OPERATION_MATCH ? (Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Orgs\RemoveOutsideCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooksForOrg::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooksForOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\GetPreReceiveHookForOrg::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemovePreReceiveHookEnforcementForOrg::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveHookEnforcementForOrg::OPERATION_MATCH ? : ($call is Operation\Projects\ListForOrg::OPERATION_MATCH ? Observable : ($call is Operation\Projects\ListForOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Projects\CreateForOrg::OPERATION_MATCH ? : ($call is Operation\Orgs\ListPublicMembers::OPERATION_MATCH ? Observable : ($call is Operation\Orgs\ListPublicMembersListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\CheckPublicMembershipForUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\SetPublicMembershipForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\RemovePublicMembershipForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListForOrg::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListForOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateInOrg::OPERATION_MATCH ? : ($call is Operation\SecretScanning\ListAlertsForOrg::OPERATION_MATCH ? Observable : ($call is Operation\SecretScanning\ListAlertsForOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Billing\GetGithubAdvancedSecurityBillingOrg::OPERATION_MATCH ? : ($call is Operation\Teams\List_::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\Create::OPERATION_MATCH ? : ($call is Operation\Teams\GetByName::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionsInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListDiscussionsInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionCommentsInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListDiscussionCommentsInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionCommentInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForTeamDiscussionCommentInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForTeamDiscussionCommentInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionCommentInOrg::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForTeamDiscussionComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Reactions\ListForTeamDiscussionInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForTeamDiscussionInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionInOrg::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForTeamDiscussion::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListMembersInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListMembersInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\GetMembershipForUserInOrg::OPERATION_MATCH ? (Schema\TeamMembership | array{code: int}) : ($call is Operation\Teams\AddOrUpdateMembershipForUserInOrg::OPERATION_MATCH ? (Schema\TeamMembership | array{code: int}) : ($call is Operation\Teams\RemoveMembershipForUserInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListProjectsInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListProjectsInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForProjectInOrg::OPERATION_MATCH ? (Schema\TeamProject | array{code: int}) : ($call is Operation\Teams\AddOrUpdateProjectPermissionsInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveProjectInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListReposInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListReposInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForRepoInOrg::OPERATION_MATCH ? (Schema\TeamRepository | array{code: int}) : ($call is Operation\Teams\AddOrUpdateRepoPermissionsInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveRepoInOrg::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListChildInOrg::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListChildInOrgListing::OPERATION_MATCH ? iterable : ($call is Operation\Projects\GetCard::OPERATION_MATCH ? (Schema\ProjectCard | array{code: int}) : ($call is Operation\Projects\DeleteCard::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\UpdateCard::OPERATION_MATCH ? (Schema\ProjectCard | array{code: int}) : ($call is Operation\Projects\MoveCard::OPERATION_MATCH ? (Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json | array{code: int}) : ($call is Operation\Projects\GetColumn::OPERATION_MATCH ? (Schema\ProjectColumn | array{code: int}) : ($call is Operation\Projects\DeleteColumn::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\UpdateColumn::OPERATION_MATCH ? (Schema\ProjectColumn | array{code: int}) : ($call is Operation\Projects\ListCards::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Projects\ListCardsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\CreateCard::OPERATION_MATCH ? (Schema\ProjectCard | array{code: int}) : ($call is Operation\Projects\MoveColumn::OPERATION_MATCH ? (Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json | array{code: int}) : ($call is Operation\Projects\Get::OPERATION_MATCH ? (Schema\Project | array{code: int}) : ($call is Operation\Projects\Delete::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\Update::OPERATION_MATCH ? (Schema\Project | array{code: int}) : ($call is Operation\Projects\ListCollaborators::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Projects\ListCollaboratorsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\AddCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\RemoveCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Projects\GetPermissionForUser::OPERATION_MATCH ? (Schema\ProjectCollaboratorPermission | array{code: int}) : ($call is Operation\Projects\ListColumns::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Projects\ListColumnsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\CreateColumn::OPERATION_MATCH ? (Schema\ProjectColumn | array{code: int}) : ($call is Operation\RateLimit\Get::OPERATION_MATCH ? (Schema\RateLimitOverview | array{code: int}) : ($call is Operation\Reactions\DeleteLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\Get::OPERATION_MATCH ? : ($call is Operation\Repos\Delete::OPERATION_MATCH ? (Schema\BasicError | array{code: int}) : ($call is Operation\Repos\Update::OPERATION_MATCH ? : ($call is Operation\Actions\ListArtifactsForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\GetArtifact::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteArtifact::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\DownloadArtifact::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Actions\DownloadArtifactStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Actions\GetJobForWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\DownloadJobLogsForWorkflowRun::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Actions\DownloadJobLogsForWorkflowRunStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Actions\GetGithubActionsPermissionsRepository::OPERATION_MATCH ? : ($call is Operation\Actions\SetGithubActionsPermissionsRepository::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetAllowedActionsRepository::OPERATION_MATCH ? : ($call is Operation\Actions\SetAllowedActionsRepository::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListSelfHostedRunnersForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\ListRunnerApplicationsForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Actions\CreateRegistrationTokenForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\CreateRemoveTokenForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\GetSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteSelfHostedRunnerFromRepo::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListLabelsForSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\SetCustomLabelsForSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\AddCustomLabelsToSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\RemoveCustomLabelFromSelfHostedRunnerForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\ListWorkflowRunsForRepo::OPERATION_MATCH ? : ($call is Operation\Actions\GetWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\DeleteWorkflowRun::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetReviewsForRun::OPERATION_MATCH ? Observable : ($call is Operation\Actions\ListWorkflowRunArtifacts::OPERATION_MATCH ? : ($call is Operation\Actions\CancelWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\ListJobsForWorkflowRun::OPERATION_MATCH ? : ($call is Operation\Actions\DownloadWorkflowRunLogs::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Actions\DownloadWorkflowRunLogsStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Actions\DeleteWorkflowRunLogs::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\GetPendingDeploymentsForRun::OPERATION_MATCH ? Observable : ($call is Operation\Actions\ReviewPendingDeploymentsForRun::OPERATION_MATCH ? Observable : ($call is Operation\Actions\ReRunWorkflow::OPERATION_MATCH ? : ($call is Operation\Actions\ListRepoSecrets::OPERATION_MATCH ? : ($call is Operation\Actions\GetRepoPublicKey::OPERATION_MATCH ? : ($call is Operation\Actions\GetRepoSecret::OPERATION_MATCH ? : ($call is Operation\Actions\CreateOrUpdateRepoSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Actions\DeleteRepoSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListRepoWorkflows::OPERATION_MATCH ? : ($call is Operation\Actions\GetWorkflow::OPERATION_MATCH ? : ($call is Operation\Actions\DisableWorkflow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\CreateWorkflowDispatch::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\EnableWorkflow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Actions\ListWorkflowRuns::OPERATION_MATCH ? : ($call is Operation\Issues\ListAssignees::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListAssigneesListing::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CheckUserCanBeAssigned::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListAutolinks::OPERATION_MATCH ? Observable : ($call is Operation\Repos\CreateAutolink::OPERATION_MATCH ? : ($call is Operation\Repos\GetAutolink::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAutolink::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListBranches::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListBranchesListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetBranch::OPERATION_MATCH ? : ($call is Operation\Repos\GetBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteBranchProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetAdminBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\SetAdminBranchProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAdminBranchProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetPullRequestReviewProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeletePullRequestReviewProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdatePullRequestReviewProtection::OPERATION_MATCH ? : ($call is Operation\Repos\GetCommitSignatureProtection::OPERATION_MATCH ? : ($call is Operation\Repos\CreateCommitSignatureProtection::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteCommitSignatureProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetStatusChecksProtection::OPERATION_MATCH ? : ($call is Operation\Repos\RemoveStatusCheckProtection::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateStatusCheckProtection::OPERATION_MATCH ? : ($call is Operation\Repos\GetAllStatusCheckContexts::OPERATION_MATCH ? Observable : ($call is Operation\Repos\SetStatusCheckContexts::OPERATION_MATCH ? Observable : ($call is Operation\Repos\AddStatusCheckContexts::OPERATION_MATCH ? Observable : ($call is Operation\Repos\RemoveStatusCheckContexts::OPERATION_MATCH ? Observable : ($call is Operation\Repos\GetAccessRestrictions::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAccessRestrictions::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetAppsWithAccessToProtectedBranch::OPERATION_MATCH ? Observable : ($call is Operation\Repos\SetAppAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\AddAppAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\RemoveAppAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\GetTeamsWithAccessToProtectedBranch::OPERATION_MATCH ? Observable : ($call is Operation\Repos\SetTeamAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\AddTeamAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\RemoveTeamAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\GetUsersWithAccessToProtectedBranch::OPERATION_MATCH ? Observable : ($call is Operation\Repos\SetUserAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\AddUserAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\RemoveUserAccessRestrictions::OPERATION_MATCH ? Observable : ($call is Operation\Repos\RenameBranch::OPERATION_MATCH ? : ($call is Operation\Checks\Create::OPERATION_MATCH ? : ($call is Operation\Checks\Get::OPERATION_MATCH ? : ($call is Operation\Checks\Update::OPERATION_MATCH ? : ($call is Operation\Checks\ListAnnotations::OPERATION_MATCH ? Observable : ($call is Operation\Checks\ListAnnotationsListing::OPERATION_MATCH ? iterable : ($call is Operation\Checks\RerequestRun::OPERATION_MATCH ? : ($call is Operation\Checks\CreateSuite::OPERATION_MATCH ? : ($call is Operation\Checks\SetSuitesPreferences::OPERATION_MATCH ? : ($call is Operation\Checks\GetSuite::OPERATION_MATCH ? : ($call is Operation\Checks\ListForSuite::OPERATION_MATCH ? : ($call is Operation\Checks\RerequestSuite::OPERATION_MATCH ? : ($call is Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\CodeScanning\GetAlert::OPERATION_MATCH ? (Schema\CodeScanningAlert | array{code: int}) : ($call is Operation\CodeScanning\UpdateAlert::OPERATION_MATCH ? : ($call is Operation\CodeScanning\ListAlertInstances::OPERATION_MATCH ? Observable : ($call is Operation\CodeScanning\ListAlertInstancesListing::OPERATION_MATCH ? iterable : ($call is Operation\CodeScanning\ListRecentAnalyses::OPERATION_MATCH ? Observable : ($call is Operation\CodeScanning\ListRecentAnalysesListing::OPERATION_MATCH ? iterable : ($call is Operation\CodeScanning\GetAnalysis::OPERATION_MATCH ? : ($call is Operation\CodeScanning\DeleteAnalysis::OPERATION_MATCH ? : ($call is Operation\CodeScanning\UploadSarif::OPERATION_MATCH ? (Schema\CodeScanningSarifsReceipt | array{code: int}) : ($call is Operation\CodeScanning\GetSarif::OPERATION_MATCH ? (Schema\CodeScanningSarifsStatus | array{code: int}) : ($call is Operation\Repos\ListCollaborators::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListCollaboratorsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CheckCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\AddCollaborator::OPERATION_MATCH ? (Schema\RepositoryInvitation | array{code: int}) : ($call is Operation\Repos\RemoveCollaborator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetCollaboratorPermissionLevel::OPERATION_MATCH ? : ($call is Operation\Repos\ListCommitCommentsForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListCommitCommentsForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetCommitComment::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteCommitComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateCommitComment::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForCommitComment::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForCommitCommentListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForCommitComment::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForCommitComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListCommits::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListCommitsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\ListBranchesForHeadCommit::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListCommentsForCommit::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListCommentsForCommitListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateCommitComment::OPERATION_MATCH ? : ($call is Operation\Repos\ListPullRequestsAssociatedWithCommit::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListPullRequestsAssociatedWithCommitListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetCommit::OPERATION_MATCH ? : ($call is Operation\Checks\ListForRef::OPERATION_MATCH ? : ($call is Operation\Checks\ListSuitesForRef::OPERATION_MATCH ? : ($call is Operation\Repos\GetCombinedStatusForRef::OPERATION_MATCH ? : ($call is Operation\Repos\ListCommitStatusesForRef::OPERATION_MATCH ? (Observable | Schema\BasicError) : ($call is Operation\Repos\ListCommitStatusesForRefListing::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Repos\CompareCommits::OPERATION_MATCH ? : ($call is Operation\Repos\GetContent::OPERATION_MATCH ? (Schema\ContentDirectory | Schema\ContentFile | Schema\ContentSymlink | Schema\ContentSubmodule | array{code: int}) : ($call is Operation\Repos\CreateOrUpdateFileContents::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteFile::OPERATION_MATCH ? : ($call is Operation\Repos\ListContributors::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Repos\ListContributorsListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Dependabot\ListRepoSecrets::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetRepoPublicKey::OPERATION_MATCH ? : ($call is Operation\Dependabot\GetRepoSecret::OPERATION_MATCH ? : ($call is Operation\Dependabot\CreateOrUpdateRepoSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Dependabot\DeleteRepoSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListDeployments::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListDeploymentsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateDeployment::OPERATION_MATCH ? (Schema\Deployment | Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetDeployment::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteDeployment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListDeploymentStatuses::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListDeploymentStatusesListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateDeploymentStatus::OPERATION_MATCH ? : ($call is Operation\Repos\GetDeploymentStatus::OPERATION_MATCH ? : ($call is Operation\Repos\CreateDispatchEvent::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\GetAllEnvironments::OPERATION_MATCH ? : ($call is Operation\Repos\GetEnvironment::OPERATION_MATCH ? : ($call is Operation\Repos\CreateOrUpdateEnvironment::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteAnEnvironment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListDeploymentBranchPolicies::OPERATION_MATCH ? : ($call is Operation\Repos\CreateDeploymentBranchPolicy::OPERATION_MATCH ? (Schema\DeploymentBranchPolicy | array{code: int}) : ($call is Operation\Repos\GetDeploymentBranchPolicy::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateDeploymentBranchPolicy::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteDeploymentBranchPolicy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListRepoEvents::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListRepoEventsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\ListForks::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListForksListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateFork::OPERATION_MATCH ? : ($call is Operation\Git\CreateBlob::OPERATION_MATCH ? : ($call is Operation\Git\GetBlob::OPERATION_MATCH ? : ($call is Operation\Git\CreateCommit::OPERATION_MATCH ? : ($call is Operation\Git\GetCommit::OPERATION_MATCH ? : ($call is Operation\Git\ListMatchingRefs::OPERATION_MATCH ? Observable : ($call is Operation\Git\GetRef::OPERATION_MATCH ? : ($call is Operation\Git\CreateRef::OPERATION_MATCH ? : ($call is Operation\Git\DeleteRef::OPERATION_MATCH ? array{code: int} : ($call is Operation\Git\UpdateRef::OPERATION_MATCH ? : ($call is Operation\Git\CreateTag::OPERATION_MATCH ? : ($call is Operation\Git\GetTag::OPERATION_MATCH ? : ($call is Operation\Git\CreateTree::OPERATION_MATCH ? : ($call is Operation\Git\GetTree::OPERATION_MATCH ? : ($call is Operation\Repos\ListWebhooks::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListWebhooksListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateWebhook::OPERATION_MATCH ? : ($call is Operation\Repos\GetWebhook::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateWebhook::OPERATION_MATCH ? : ($call is Operation\Repos\GetWebhookConfigForRepo::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateWebhookConfigForRepo::OPERATION_MATCH ? : ($call is Operation\Repos\ListWebhookDeliveries::OPERATION_MATCH ? Observable : ($call is Operation\Repos\GetWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Repos\RedeliverWebhookDelivery::OPERATION_MATCH ? : ($call is Operation\Repos\PingWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\TestPushWebhook::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\GetRepoInstallation::OPERATION_MATCH ? : ($call is Operation\Repos\ListInvitations::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListInvitationsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\DeleteInvitation::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateInvitation::OPERATION_MATCH ? : ($call is Operation\Issues\ListForRepo::OPERATION_MATCH ? (Observable | Schema\BasicError) : ($call is Operation\Issues\ListForRepoListing::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Issues\Create::OPERATION_MATCH ? : ($call is Operation\Issues\ListCommentsForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListCommentsForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\Issues\GetComment::OPERATION_MATCH ? : ($call is Operation\Issues\DeleteComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\UpdateComment::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForIssueComment::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForIssueCommentListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForIssueComment::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForIssueComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListEventsForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListEventsForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\Issues\GetEvent::OPERATION_MATCH ? : ($call is Operation\Issues\Get::OPERATION_MATCH ? (Schema\Issue | Schema\BasicError | array{code: int}) : ($call is Operation\Issues\Update::OPERATION_MATCH ? : ($call is Operation\Issues\AddAssignees::OPERATION_MATCH ? : ($call is Operation\Issues\RemoveAssignees::OPERATION_MATCH ? : ($call is Operation\Issues\CheckUserCanBeAssignedToIssue::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListComments::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListCommentsListing::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CreateComment::OPERATION_MATCH ? : ($call is Operation\Issues\ListEvents::OPERATION_MATCH ? Observable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\AssignedIssueEvent | Schema\UnassignedIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent)> : ($call is Operation\Issues\ListEventsListing::OPERATION_MATCH ? iterable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\AssignedIssueEvent | Schema\UnassignedIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent)> : ($call is Operation\Issues\ListLabelsOnIssue::OPERATION_MATCH ? (Observable | Schema\BasicError) : ($call is Operation\Issues\ListLabelsOnIssueListing::OPERATION_MATCH ? (iterable | Schema\BasicError) : ($call is Operation\Issues\SetLabels::OPERATION_MATCH ? (Observable | Schema\BasicError) : ($call is Operation\Issues\AddLabels::OPERATION_MATCH ? (Observable | Schema\BasicError) : ($call is Operation\Issues\RemoveAllLabels::OPERATION_MATCH ? (Schema\BasicError | array{code: int}) : ($call is Operation\Issues\RemoveLabel::OPERATION_MATCH ? (Observable | Schema\BasicError) : ($call is Operation\Issues\Lock::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\Unlock::OPERATION_MATCH ? array{code: int} : ($call is Operation\Reactions\ListForIssue::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForIssueListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForIssue::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForIssue::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListEventsForTimeline::OPERATION_MATCH ? Observable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent | Schema\TimelineCommentEvent | Schema\TimelineCrossReferencedEvent | Schema\TimelineCommittedEvent | Schema\TimelineReviewedEvent | Schema\TimelineLineCommentedEvent | Schema\TimelineCommitCommentedEvent | Schema\TimelineAssignedIssueEvent | Schema\TimelineUnassignedIssueEvent | Schema\StateChangeIssueEvent)> : ($call is Operation\Issues\ListEventsForTimelineListing::OPERATION_MATCH ? iterable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent | Schema\TimelineCommentEvent | Schema\TimelineCrossReferencedEvent | Schema\TimelineCommittedEvent | Schema\TimelineReviewedEvent | Schema\TimelineLineCommentedEvent | Schema\TimelineCommitCommentedEvent | Schema\TimelineAssignedIssueEvent | Schema\TimelineUnassignedIssueEvent | Schema\StateChangeIssueEvent)> : ($call is Operation\Repos\ListDeployKeys::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListDeployKeysListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateDeployKey::OPERATION_MATCH ? : ($call is Operation\Repos\GetDeployKey::OPERATION_MATCH ? : ($call is Operation\Repos\DeleteDeployKey::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListLabelsForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListLabelsForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CreateLabel::OPERATION_MATCH ? : ($call is Operation\Issues\GetLabel::OPERATION_MATCH ? : ($call is Operation\Issues\DeleteLabel::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\UpdateLabel::OPERATION_MATCH ? : ($call is Operation\Repos\ListLanguages::OPERATION_MATCH ? : ($call is Operation\Repos\EnableLfsForRepo::OPERATION_MATCH ? (Schema\Operations\Repos\EnableLfsForRepo\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\DisableLfsForRepo::OPERATION_MATCH ? array{code: int} : ($call is Operation\Licenses\GetForRepo::OPERATION_MATCH ? : ($call is Operation\Repos\MergeUpstream::OPERATION_MATCH ? (Schema\MergedUpstream | array{code: int}) : ($call is Operation\Repos\Merge::OPERATION_MATCH ? (Schema\Commit | array{code: int}) : ($call is Operation\Issues\ListMilestones::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListMilestonesListing::OPERATION_MATCH ? iterable : ($call is Operation\Issues\CreateMilestone::OPERATION_MATCH ? : ($call is Operation\Issues\GetMilestone::OPERATION_MATCH ? : ($call is Operation\Issues\DeleteMilestone::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\UpdateMilestone::OPERATION_MATCH ? : ($call is Operation\Issues\ListLabelsForMilestone::OPERATION_MATCH ? Observable : ($call is Operation\Issues\ListLabelsForMilestoneListing::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListRepoNotificationsForAuthenticatedUser::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListRepoNotificationsForAuthenticatedUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Activity\MarkRepoNotificationsAsRead::OPERATION_MATCH ? (Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetPages::OPERATION_MATCH ? : ($call is Operation\Repos\UpdateInformationAboutPagesSite::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\CreatePagesSite::OPERATION_MATCH ? : ($call is Operation\Repos\DeletePagesSite::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListPagesBuilds::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListPagesBuildsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\RequestPagesBuild::OPERATION_MATCH ? : ($call is Operation\Repos\GetLatestPagesBuild::OPERATION_MATCH ? : ($call is Operation\Repos\GetPagesBuild::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooksForRepo::OPERATION_MATCH ? Observable : ($call is Operation\EnterpriseAdmin\ListPreReceiveHooksForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\GetPreReceiveHookForRepo::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\RemovePreReceiveHookEnforcementForRepo::OPERATION_MATCH ? : ($call is Operation\EnterpriseAdmin\UpdatePreReceiveHookEnforcementForRepo::OPERATION_MATCH ? : ($call is Operation\Projects\ListForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Projects\ListForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\Projects\CreateForRepo::OPERATION_MATCH ? : ($call is Operation\Pulls\List_::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Pulls\ListListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Pulls\Create::OPERATION_MATCH ? : ($call is Operation\Pulls\ListReviewCommentsForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Pulls\ListReviewCommentsForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\GetReviewComment::OPERATION_MATCH ? : ($call is Operation\Pulls\DeleteReviewComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Pulls\UpdateReviewComment::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForPullRequestReviewComment::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForPullRequestReviewCommentListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForPullRequestReviewComment::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForPullRequestComment::OPERATION_MATCH ? array{code: int} : ($call is Operation\Pulls\Get::OPERATION_MATCH ? (Schema\PullRequest | array{code: int}) : ($call is Operation\Pulls\Update::OPERATION_MATCH ? : ($call is Operation\Pulls\ListReviewComments::OPERATION_MATCH ? Observable : ($call is Operation\Pulls\ListReviewCommentsListing::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\CreateReviewComment::OPERATION_MATCH ? : ($call is Operation\Pulls\CreateReplyForReviewComment::OPERATION_MATCH ? : ($call is Operation\Pulls\ListCommits::OPERATION_MATCH ? Observable : ($call is Operation\Pulls\ListCommitsListing::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\ListFiles::OPERATION_MATCH ? Observable : ($call is Operation\Pulls\ListFilesListing::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\CheckIfMerged::OPERATION_MATCH ? array{code: int} : ($call is Operation\Pulls\Merge::OPERATION_MATCH ? : ($call is Operation\Pulls\ListRequestedReviewers::OPERATION_MATCH ? : ($call is Operation\Pulls\RequestReviewers::OPERATION_MATCH ? (Schema\PullRequestSimple | array{code: int}) : ($call is Operation\Pulls\RemoveRequestedReviewers::OPERATION_MATCH ? : ($call is Operation\Pulls\ListReviews::OPERATION_MATCH ? Observable : ($call is Operation\Pulls\ListReviewsListing::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\CreateReview::OPERATION_MATCH ? : ($call is Operation\Pulls\GetReview::OPERATION_MATCH ? : ($call is Operation\Pulls\UpdateReview::OPERATION_MATCH ? : ($call is Operation\Pulls\DeletePendingReview::OPERATION_MATCH ? : ($call is Operation\Pulls\ListCommentsForReview::OPERATION_MATCH ? Observable : ($call is Operation\Pulls\ListCommentsForReviewListing::OPERATION_MATCH ? iterable : ($call is Operation\Pulls\DismissReview::OPERATION_MATCH ? : ($call is Operation\Pulls\SubmitReview::OPERATION_MATCH ? : ($call is Operation\Pulls\UpdateBranch::OPERATION_MATCH ? : ($call is Operation\Repos\GetReadme::OPERATION_MATCH ? : ($call is Operation\Repos\GetReadmeInDirectory::OPERATION_MATCH ? : ($call is Operation\Repos\ListReleases::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListReleasesListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\CreateRelease::OPERATION_MATCH ? : ($call is Operation\Repos\GetReleaseAsset::OPERATION_MATCH ? (Schema\ReleaseAsset | array{code: int}) : ($call is Operation\Repos\DeleteReleaseAsset::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateReleaseAsset::OPERATION_MATCH ? : ($call is Operation\Repos\GenerateReleaseNotes::OPERATION_MATCH ? : ($call is Operation\Repos\GetLatestRelease::OPERATION_MATCH ? : ($call is Operation\Repos\GetReleaseByTag::OPERATION_MATCH ? : ($call is Operation\Repos\GetRelease::OPERATION_MATCH ? (Schema\Release | array{code: int}) : ($call is Operation\Repos\DeleteRelease::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\UpdateRelease::OPERATION_MATCH ? : ($call is Operation\Repos\ListReleaseAssets::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListReleaseAssetsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\UploadReleaseAsset::OPERATION_MATCH ? (Schema\ReleaseAsset | array{code: int}) : ($call is Operation\Reactions\ListForRelease::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForReleaseListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForRelease::OPERATION_MATCH ? : ($call is Operation\Reactions\DeleteForRelease::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListCacheInfo::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListCacheInfoListing::OPERATION_MATCH ? iterable : ($call is Operation\SecretScanning\ListAlertsForRepo::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\SecretScanning\ListAlertsForRepoListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\SecretScanning\GetAlert::OPERATION_MATCH ? (Schema\SecretScanningAlert | array{code: int}) : ($call is Operation\SecretScanning\UpdateAlert::OPERATION_MATCH ? (Schema\SecretScanningAlert | array{code: int}) : ($call is Operation\SecretScanning\ListLocationsForAlert::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\SecretScanning\ListLocationsForAlertListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\ListStargazersForRepo::OPERATION_MATCH ? : ($call is Operation\Repos\GetCodeFrequencyStats::OPERATION_MATCH ? (Observable | Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetCommitActivityStats::OPERATION_MATCH ? (Observable | Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetContributorsStats::OPERATION_MATCH ? (Observable | Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) : ($call is Operation\Repos\GetParticipationStats::OPERATION_MATCH ? : ($call is Operation\Repos\GetPunchCardStats::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Repos\CreateCommitStatus::OPERATION_MATCH ? : ($call is Operation\Activity\ListWatchersForRepo::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListWatchersForRepoListing::OPERATION_MATCH ? iterable : ($call is Operation\Activity\GetRepoSubscription::OPERATION_MATCH ? (Schema\RepositorySubscription | array{code: int}) : ($call is Operation\Activity\SetRepoSubscription::OPERATION_MATCH ? : ($call is Operation\Activity\DeleteRepoSubscription::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\ListTags::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListTagsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\DownloadTarballArchive::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Repos\DownloadTarballArchiveStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListTeams::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListTeamsListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\GetAllTopics::OPERATION_MATCH ? : ($call is Operation\Repos\ReplaceAllTopics::OPERATION_MATCH ? : ($call is Operation\Repos\Transfer::OPERATION_MATCH ? : ($call is Operation\Repos\DownloadZipballArchive::OPERATION_MATCH ? array{code: int, location: string} : ($call is Operation\Repos\DownloadZipballArchiveStreaming::OPERATION_MATCH ? Observable : ($call is Operation\Repos\CreateUsingTemplate::OPERATION_MATCH ? : ($call is Operation\Repos\ListPublic::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Actions\ListEnvironmentSecrets::OPERATION_MATCH ? : ($call is Operation\Actions\GetEnvironmentPublicKey::OPERATION_MATCH ? : ($call is Operation\Actions\GetEnvironmentSecret::OPERATION_MATCH ? : ($call is Operation\Actions\CreateOrUpdateEnvironmentSecret::OPERATION_MATCH ? (Schema\EmptyObject | array{code: int}) : ($call is Operation\Actions\DeleteEnvironmentSecret::OPERATION_MATCH ? array{code: int} : ($call is Operation\Search\Code::OPERATION_MATCH ? (Schema\Operations\Search\Code\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Commits::OPERATION_MATCH ? (Schema\Operations\Search\Commits\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\IssuesAndPullRequests::OPERATION_MATCH ? (Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Labels::OPERATION_MATCH ? (Schema\Operations\Search\Labels\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Repos::OPERATION_MATCH ? (Schema\Operations\Search\Repos\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Topics::OPERATION_MATCH ? (Schema\Operations\Search\Topics\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Search\Users::OPERATION_MATCH ? (Schema\Operations\Search\Users\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\EnterpriseAdmin\GetConfigurationStatus::OPERATION_MATCH ? (Schema\ConfigurationStatus | array{code: int}) : ($call is Operation\EnterpriseAdmin\StartConfigurationProcess::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\GetMaintenanceStatus::OPERATION_MATCH ? (Schema\MaintenanceStatus | array{code: int}) : ($call is Operation\EnterpriseAdmin\EnableOrDisableMaintenanceMode::OPERATION_MATCH ? (Schema\MaintenanceStatus | array{code: int}) : ($call is Operation\EnterpriseAdmin\GetSettings::OPERATION_MATCH ? (Schema\EnterpriseSettings | array{code: int}) : ($call is Operation\EnterpriseAdmin\SetSettings::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\GetAllAuthorizedSshKeys::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\EnterpriseAdmin\AddAuthorizedSshKey::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\EnterpriseAdmin\RemoveAuthorizedSshKey::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\EnterpriseAdmin\CreateEnterpriseServerLicense::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UpgradeLicense::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\GetLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionsLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListDiscussionsLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\ListDiscussionCommentsLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListDiscussionCommentsLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CreateDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\GetDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\DeleteDiscussionCommentLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\UpdateDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForTeamDiscussionCommentLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForTeamDiscussionCommentLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionCommentLegacy::OPERATION_MATCH ? : ($call is Operation\Reactions\ListForTeamDiscussionLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Reactions\ListForTeamDiscussionLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Reactions\CreateForTeamDiscussionLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\ListMembersLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListMembersLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\GetMemberLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\AddMemberLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveMemberLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\GetMembershipForUserLegacy::OPERATION_MATCH ? : ($call is Operation\Teams\AddOrUpdateMembershipForUserLegacy::OPERATION_MATCH ? (Schema\TeamMembership | array{code: int}) : ($call is Operation\Teams\RemoveMembershipForUserLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListProjectsLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListProjectsLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForProjectLegacy::OPERATION_MATCH ? (Schema\TeamProject | array{code: int}) : ($call is Operation\Teams\AddOrUpdateProjectPermissionsLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveProjectLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListReposLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListReposLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Teams\CheckPermissionsForRepoLegacy::OPERATION_MATCH ? (Schema\TeamRepository | array{code: int}) : ($call is Operation\Teams\AddOrUpdateRepoPermissionsLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\RemoveRepoLegacy::OPERATION_MATCH ? array{code: int} : ($call is Operation\Teams\ListChildLegacy::OPERATION_MATCH ? Observable : ($call is Operation\Teams\ListChildLegacyListing::OPERATION_MATCH ? iterable : ($call is Operation\Users\GetAuthenticated::OPERATION_MATCH ? (Schema\PrivateUser | Schema\PublicUser | array{code: int}) : ($call is Operation\Users\UpdateAuthenticated::OPERATION_MATCH ? (Schema\PrivateUser | array{code: int}) : ($call is Operation\Users\ListEmailsForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\ListEmailsForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\AddEmailForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\DeleteEmailForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\ListFollowersForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\ListFollowersForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\ListFollowedByAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\ListFollowedByAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\CheckPersonIsFollowedByAuthenticated::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\Follow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\Unfollow::OPERATION_MATCH ? array{code: int} : ($call is Operation\Users\ListGpgKeysForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\ListGpgKeysForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\CreateGpgKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\GpgKey | array{code: int}) : ($call is Operation\Users\GetGpgKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\GpgKey | array{code: int}) : ($call is Operation\Users\DeleteGpgKeyForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\ListInstallationsForAuthenticatedUser::OPERATION_MATCH ? (Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json | array{code: int}) : ($call is Operation\Apps\ListInstallationReposForAuthenticatedUser::OPERATION_MATCH ? (Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok | array{code: int}) : ($call is Operation\Apps\AddRepoToInstallationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Apps\RemoveRepoFromInstallationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Issues\ListForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Issues\ListForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\ListPublicSshKeysForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\ListPublicSshKeysForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\CreatePublicSshKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\Key | array{code: int}) : ($call is Operation\Users\GetPublicSshKeyForAuthenticatedUser::OPERATION_MATCH ? (Schema\Key | array{code: int}) : ($call is Operation\Users\DeletePublicSshKeyForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Orgs\ListMembershipsForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Orgs\ListMembershipsForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Orgs\GetMembershipForAuthenticatedUser::OPERATION_MATCH ? : ($call is Operation\Orgs\UpdateMembershipForAuthenticatedUser::OPERATION_MATCH ? : ($call is Operation\Migrations\ListForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Migrations\ListForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Migrations\StartForAuthenticatedUser::OPERATION_MATCH ? (Schema\Migration | array{code: int}) : ($call is Operation\Migrations\GetArchiveForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Migrations\ListReposForAuthenticatedUser::OPERATION_MATCH ? Observable : ($call is Operation\Migrations\ListReposForAuthenticatedUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Orgs\ListForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Projects\CreateForAuthenticatedUser::OPERATION_MATCH ? (Schema\Project | array{code: int}) : ($call is Operation\Users\ListPublicEmailsForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\ListPublicEmailsForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Repos\ListForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Repos\ListForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Repos\CreateForAuthenticatedUser::OPERATION_MATCH ? (Schema\Repository | array{code: int}) : ($call is Operation\Repos\ListInvitationsForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Repos\ListInvitationsForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Repos\DeclineInvitationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Repos\AcceptInvitationForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListReposStarredByAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Activity\ListReposStarredByAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Activity\CheckRepoIsStarredByAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\StarRepoForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\UnstarRepoForAuthenticatedUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListWatchedReposForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Activity\ListWatchedReposForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Teams\ListForAuthenticatedUser::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Teams\ListForAuthenticatedUserListing::OPERATION_MATCH ? (iterable | array{code: int}) : ($call is Operation\Users\List_::OPERATION_MATCH ? (Observable | array{code: int}) : ($call is Operation\Users\GetByUsername::OPERATION_MATCH ? : ($call is Operation\Activity\ListEventsForAuthenticatedUser::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListEventsForAuthenticatedUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListOrgEventsForAuthenticatedUser::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListOrgEventsForAuthenticatedUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListPublicEventsForUser::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListPublicEventsForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Users\ListFollowersForUser::OPERATION_MATCH ? Observable : ($call is Operation\Users\ListFollowersForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Users\ListFollowingForUser::OPERATION_MATCH ? Observable : ($call is Operation\Users\ListFollowingForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Users\CheckFollowingForUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\Gists\ListForUser::OPERATION_MATCH ? Observable : ($call is Operation\Gists\ListForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Users\ListGpgKeysForUser::OPERATION_MATCH ? Observable : ($call is Operation\Users\ListGpgKeysForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Users\GetContextForUser::OPERATION_MATCH ? : ($call is Operation\Apps\GetUserInstallation::OPERATION_MATCH ? : ($call is Operation\Users\ListPublicKeysForUser::OPERATION_MATCH ? Observable : ($call is Operation\Users\ListPublicKeysForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Orgs\ListForUser::OPERATION_MATCH ? Observable : ($call is Operation\Orgs\ListForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Projects\ListForUser::OPERATION_MATCH ? Observable : ($call is Operation\Projects\ListForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListReceivedEventsForUser::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListReceivedEventsForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Activity\ListReceivedPublicEventsForUser::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListReceivedPublicEventsForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\Repos\ListForUser::OPERATION_MATCH ? Observable : ($call is Operation\Repos\ListForUserListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\PromoteUserToBeSiteAdministrator::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\DemoteSiteAdministrator::OPERATION_MATCH ? array{code: int} : ($call is Operation\Activity\ListReposStarredByUser::OPERATION_MATCH ? : ($call is Operation\Activity\ListReposWatchedByUser::OPERATION_MATCH ? Observable : ($call is Operation\Activity\ListReposWatchedByUserListing::OPERATION_MATCH ? iterable : ($call is Operation\EnterpriseAdmin\SuspendUser::OPERATION_MATCH ? array{code: int} : ($call is Operation\EnterpriseAdmin\UnsuspendUser::OPERATION_MATCH ? array{code: int} : )))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) */ // phpcs:enable public function call(string $call, array $params = []): Root|iterable|GlobalHook|GlobalHook2|LdapMappingTeam|Created|LdapMappingUser|Json|OrganizationSimple|Accepted|PreReceiveEnvironment|PreReceiveEnvironmentDownloadStatus|PreReceiveHook|SimpleUser|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\UpdateUsernameForUser\Response\ApplicationJson\Accepted\Application\Json|Authorization|Integration|WebhookConfig|HookDelivery|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|Installation|InstallationToken|ApplicationGrant|CodeOfConduct|Ok|Announcement|LicenseInfo|EnterpriseOverview|EnterpriseCommentOverview|EnterpriseGistOverview|EnterpriseHookOverview|EnterpriseIssueOverview|EnterpriseMilestoneOverview|EnterpriseOrganizationOverview|EnterprisePageOverview|EnterprisePullRequestOverview|EnterpriseRepositoryOverview|EnterpriseUserOverview|ActionsEnterprisePermissions|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise\Response\ApplicationJson\Ok|SelectedActions|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok|RunnerGroupsEnterprise|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|AuthenticationToken|Runner|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok\Application\Json|AdvancedSecurityActiveCommitters|Feed|GistSimple|GistComment|BaseGist|GitignoreTemplate|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|License|string|ApiOverview|BasicError|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted|Thread|ThreadSubscription|ResponseInterface|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\ListCustomRoles\Response\ApplicationJson\Ok|OrganizationFull|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|RunnerGroupsOrg|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|ActionsPublicKey|OrganizationActionsSecret|EmptyObject|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|OrgHook|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|OrgMembership|Migration|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|OrgPreReceiveHook|Project|Repository|TeamFull|TeamDiscussion|TeamDiscussionComment|Reaction|TeamMembership|TeamProject|TeamRepository|ProjectCard|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|ProjectColumn|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|ProjectCollaboratorPermission|RateLimitOverview|FullRepository|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|Artifact|Job|ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|WorkflowRun|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok|ActionsSecret|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|Workflow|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BranchProtection|ProtectedBranch|ProtectedBranchAdminEnforced|ProtectedBranchPullRequestReview|StatusCheckPolicy|BranchRestrictionPolicy|CheckRun|CheckSuite|CheckSuitePreference|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningAnalysisDeletion|CodeScanningSarifsReceipt|CodeScanningSarifsStatus|RepositoryInvitation|RepositoryCollaboratorPermission|CommitComment|Commit|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|FileCommit|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependabotSecret|Deployment|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|DeploymentStatus|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Environment|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|DeploymentBranchPolicy|ShortBlob|Blob|GitCommit|GitRef|GitTag|GitTree|Hook|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|Issue|IssueComment|IssueEvent|DeployKey|Label|Language|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\EnableLfsForRepo\Response\ApplicationJson\Accepted\Application\Json|LicenseContent|MergedUpstream|Milestone|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted\Application\Json|Page|PageBuildStatus|PageBuild|RepositoryPreReceiveHook|PullRequest|PullRequestReviewComment|PullRequestMergeResult|PullRequestReviewRequest|PullRequestSimple|PullRequestReview|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|Release|ReleaseAsset|ReleaseNotesContent|SecretScanningAlert|Stargazer|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|Status|RepositorySubscription|Topic|MinimalRepository|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|ConfigurationStatus|MaintenanceStatus|EnterpriseSettings|PrivateUser|PublicUser|GpgKey|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Key|Hovercard|StarredRepository; diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity.php index 70ca754c3a6..948128c5192 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/Activity.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity.php @@ -31,6 +31,15 @@ public function listPublicEvents(int $perPage, int $page): Schema\Event return $this->operator[Operator\Activity\ListPublicEvents::class]->call($perPage, $page); } + public function listPublicEventsListing(int $perPage, int $page): Schema\Event + { + if (array_key_exists(Operator\Activity\ListPublicEventsListing::class, $this->operator) === false) { + $this->operator[Operator\Activity\ListPublicEventsListing::class] = new Operator\Activity\ListPublicEventsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Events()); + } + + return $this->operator[Operator\Activity\ListPublicEventsListing::class]->call($perPage, $page); + } + public function getFeeds(): Schema\Feed { if (array_key_exists(Operator\Activity\GetFeeds::class, $this->operator) === false) { @@ -49,6 +58,15 @@ public function listPublicEventsForRepoNetwork(string $owner, string $repo, int return $this->operator[Operator\Activity\ListPublicEventsForRepoNetwork::class]->call($owner, $repo, $perPage, $page); } + public function listPublicEventsForRepoNetworkListing(string $owner, string $repo, int $perPage, int $page): Schema\Event|Schema\BasicError + { + if (array_key_exists(Operator\Activity\ListPublicEventsForRepoNetworkListing::class, $this->operator) === false) { + $this->operator[Operator\Activity\ListPublicEventsForRepoNetworkListing::class] = new Operator\Activity\ListPublicEventsForRepoNetworkListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Networks🌀Owner🌀Repo🌀Events()); + } + + return $this->operator[Operator\Activity\ListPublicEventsForRepoNetworkListing::class]->call($owner, $repo, $perPage, $page); + } + public function listNotificationsForAuthenticatedUser(string $since, string $before, bool $all, bool $participating, int $page, int $perPage): Schema\Thread { if (array_key_exists(Operator\Activity\ListNotificationsForAuthenticatedUser::class, $this->operator) === false) { @@ -58,6 +76,15 @@ public function listNotificationsForAuthenticatedUser(string $since, string $bef return $this->operator[Operator\Activity\ListNotificationsForAuthenticatedUser::class]->call($since, $before, $all, $participating, $page, $perPage); } + public function listNotificationsForAuthenticatedUserListing(string $since, string $before, bool $all, bool $participating, int $page, int $perPage): Schema\Thread + { + if (array_key_exists(Operator\Activity\ListNotificationsForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Activity\ListNotificationsForAuthenticatedUserListing::class] = new Operator\Activity\ListNotificationsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Notifications()); + } + + return $this->operator[Operator\Activity\ListNotificationsForAuthenticatedUserListing::class]->call($since, $before, $all, $participating, $page, $perPage); + } + public function markNotificationsAsRead(array $params): Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted { if (array_key_exists(Operator\Activity\MarkNotificationsAsRead::class, $this->operator) === false) { @@ -121,6 +148,15 @@ public function listPublicOrgEvents(string $org, int $perPage, int $page): Schem return $this->operator[Operator\Activity\ListPublicOrgEvents::class]->call($org, $perPage, $page); } + public function listPublicOrgEventsListing(string $org, int $perPage, int $page): Schema\Event + { + if (array_key_exists(Operator\Activity\ListPublicOrgEventsListing::class, $this->operator) === false) { + $this->operator[Operator\Activity\ListPublicOrgEventsListing::class] = new Operator\Activity\ListPublicOrgEventsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Events()); + } + + return $this->operator[Operator\Activity\ListPublicOrgEventsListing::class]->call($org, $perPage, $page); + } + public function listRepoEvents(string $owner, string $repo, int $perPage, int $page): Schema\Event { if (array_key_exists(Operator\Activity\ListRepoEvents::class, $this->operator) === false) { @@ -130,6 +166,15 @@ public function listRepoEvents(string $owner, string $repo, int $perPage, int $p return $this->operator[Operator\Activity\ListRepoEvents::class]->call($owner, $repo, $perPage, $page); } + public function listRepoEventsListing(string $owner, string $repo, int $perPage, int $page): Schema\Event + { + if (array_key_exists(Operator\Activity\ListRepoEventsListing::class, $this->operator) === false) { + $this->operator[Operator\Activity\ListRepoEventsListing::class] = new Operator\Activity\ListRepoEventsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Events()); + } + + return $this->operator[Operator\Activity\ListRepoEventsListing::class]->call($owner, $repo, $perPage, $page); + } + public function listRepoNotificationsForAuthenticatedUser(string $owner, string $repo, string $since, string $before, bool $all, bool $participating, int $perPage, int $page): Schema\Thread { if (array_key_exists(Operator\Activity\ListRepoNotificationsForAuthenticatedUser::class, $this->operator) === false) { @@ -139,6 +184,15 @@ public function listRepoNotificationsForAuthenticatedUser(string $owner, string return $this->operator[Operator\Activity\ListRepoNotificationsForAuthenticatedUser::class]->call($owner, $repo, $since, $before, $all, $participating, $perPage, $page); } + public function listRepoNotificationsForAuthenticatedUserListing(string $owner, string $repo, string $since, string $before, bool $all, bool $participating, int $perPage, int $page): Schema\Thread + { + if (array_key_exists(Operator\Activity\ListRepoNotificationsForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Activity\ListRepoNotificationsForAuthenticatedUserListing::class] = new Operator\Activity\ListRepoNotificationsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Notifications()); + } + + return $this->operator[Operator\Activity\ListRepoNotificationsForAuthenticatedUserListing::class]->call($owner, $repo, $since, $before, $all, $participating, $perPage, $page); + } + public function markRepoNotificationsAsRead(string $owner, string $repo, array $params): Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted { if (array_key_exists(Operator\Activity\MarkRepoNotificationsAsRead::class, $this->operator) === false) { @@ -166,6 +220,15 @@ public function listWatchersForRepo(string $owner, string $repo, int $perPage, i return $this->operator[Operator\Activity\ListWatchersForRepo::class]->call($owner, $repo, $perPage, $page); } + public function listWatchersForRepoListing(string $owner, string $repo, int $perPage, int $page): Schema\SimpleUser + { + if (array_key_exists(Operator\Activity\ListWatchersForRepoListing::class, $this->operator) === false) { + $this->operator[Operator\Activity\ListWatchersForRepoListing::class] = new Operator\Activity\ListWatchersForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Subscribers()); + } + + return $this->operator[Operator\Activity\ListWatchersForRepoListing::class]->call($owner, $repo, $perPage, $page); + } + public function getRepoSubscription(string $owner, string $repo): Schema\RepositorySubscription { if (array_key_exists(Operator\Activity\GetRepoSubscription::class, $this->operator) === false) { @@ -202,6 +265,15 @@ public function listReposStarredByAuthenticatedUser(string $sort, string $direct return $this->operator[Operator\Activity\ListReposStarredByAuthenticatedUser::class]->call($sort, $direction, $perPage, $page); } + public function listReposStarredByAuthenticatedUserListing(string $sort, string $direction, int $perPage, int $page): Schema\Repository|Schema\StarredRepository + { + if (array_key_exists(Operator\Activity\ListReposStarredByAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Activity\ListReposStarredByAuthenticatedUserListing::class] = new Operator\Activity\ListReposStarredByAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Starred()); + } + + return $this->operator[Operator\Activity\ListReposStarredByAuthenticatedUserListing::class]->call($sort, $direction, $perPage, $page); + } + public function checkRepoIsStarredByAuthenticatedUser(string $owner, string $repo): ResponseInterface { if (array_key_exists(Operator\Activity\CheckRepoIsStarredByAuthenticatedUser::class, $this->operator) === false) { @@ -238,6 +310,15 @@ public function listWatchedReposForAuthenticatedUser(int $perPage, int $page): S return $this->operator[Operator\Activity\ListWatchedReposForAuthenticatedUser::class]->call($perPage, $page); } + public function listWatchedReposForAuthenticatedUserListing(int $perPage, int $page): Schema\MinimalRepository + { + if (array_key_exists(Operator\Activity\ListWatchedReposForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Activity\ListWatchedReposForAuthenticatedUserListing::class] = new Operator\Activity\ListWatchedReposForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Subscriptions()); + } + + return $this->operator[Operator\Activity\ListWatchedReposForAuthenticatedUserListing::class]->call($perPage, $page); + } + public function listEventsForAuthenticatedUser(string $username, int $perPage, int $page): Schema\Event { if (array_key_exists(Operator\Activity\ListEventsForAuthenticatedUser::class, $this->operator) === false) { @@ -247,6 +328,15 @@ public function listEventsForAuthenticatedUser(string $username, int $perPage, i return $this->operator[Operator\Activity\ListEventsForAuthenticatedUser::class]->call($username, $perPage, $page); } + public function listEventsForAuthenticatedUserListing(string $username, int $perPage, int $page): Schema\Event + { + if (array_key_exists(Operator\Activity\ListEventsForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Activity\ListEventsForAuthenticatedUserListing::class] = new Operator\Activity\ListEventsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Events()); + } + + return $this->operator[Operator\Activity\ListEventsForAuthenticatedUserListing::class]->call($username, $perPage, $page); + } + public function listOrgEventsForAuthenticatedUser(string $username, string $org, int $perPage, int $page): Schema\Event { if (array_key_exists(Operator\Activity\ListOrgEventsForAuthenticatedUser::class, $this->operator) === false) { @@ -256,6 +346,15 @@ public function listOrgEventsForAuthenticatedUser(string $username, string $org, return $this->operator[Operator\Activity\ListOrgEventsForAuthenticatedUser::class]->call($username, $org, $perPage, $page); } + public function listOrgEventsForAuthenticatedUserListing(string $username, string $org, int $perPage, int $page): Schema\Event + { + if (array_key_exists(Operator\Activity\ListOrgEventsForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Activity\ListOrgEventsForAuthenticatedUserListing::class] = new Operator\Activity\ListOrgEventsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Events🌀Orgs🌀Org()); + } + + return $this->operator[Operator\Activity\ListOrgEventsForAuthenticatedUserListing::class]->call($username, $org, $perPage, $page); + } + public function listPublicEventsForUser(string $username, int $perPage, int $page): Schema\Event { if (array_key_exists(Operator\Activity\ListPublicEventsForUser::class, $this->operator) === false) { @@ -265,6 +364,15 @@ public function listPublicEventsForUser(string $username, int $perPage, int $pag return $this->operator[Operator\Activity\ListPublicEventsForUser::class]->call($username, $perPage, $page); } + public function listPublicEventsForUserListing(string $username, int $perPage, int $page): Schema\Event + { + if (array_key_exists(Operator\Activity\ListPublicEventsForUserListing::class, $this->operator) === false) { + $this->operator[Operator\Activity\ListPublicEventsForUserListing::class] = new Operator\Activity\ListPublicEventsForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Events🌀Public_()); + } + + return $this->operator[Operator\Activity\ListPublicEventsForUserListing::class]->call($username, $perPage, $page); + } + public function listReceivedEventsForUser(string $username, int $perPage, int $page): Schema\Event { if (array_key_exists(Operator\Activity\ListReceivedEventsForUser::class, $this->operator) === false) { @@ -274,6 +382,15 @@ public function listReceivedEventsForUser(string $username, int $perPage, int $p return $this->operator[Operator\Activity\ListReceivedEventsForUser::class]->call($username, $perPage, $page); } + public function listReceivedEventsForUserListing(string $username, int $perPage, int $page): Schema\Event + { + if (array_key_exists(Operator\Activity\ListReceivedEventsForUserListing::class, $this->operator) === false) { + $this->operator[Operator\Activity\ListReceivedEventsForUserListing::class] = new Operator\Activity\ListReceivedEventsForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀ReceivedEvents()); + } + + return $this->operator[Operator\Activity\ListReceivedEventsForUserListing::class]->call($username, $perPage, $page); + } + public function listReceivedPublicEventsForUser(string $username, int $perPage, int $page): Schema\Event { if (array_key_exists(Operator\Activity\ListReceivedPublicEventsForUser::class, $this->operator) === false) { @@ -283,6 +400,15 @@ public function listReceivedPublicEventsForUser(string $username, int $perPage, return $this->operator[Operator\Activity\ListReceivedPublicEventsForUser::class]->call($username, $perPage, $page); } + public function listReceivedPublicEventsForUserListing(string $username, int $perPage, int $page): Schema\Event + { + if (array_key_exists(Operator\Activity\ListReceivedPublicEventsForUserListing::class, $this->operator) === false) { + $this->operator[Operator\Activity\ListReceivedPublicEventsForUserListing::class] = new Operator\Activity\ListReceivedPublicEventsForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀ReceivedEvents🌀Public_()); + } + + return $this->operator[Operator\Activity\ListReceivedPublicEventsForUserListing::class]->call($username, $perPage, $page); + } + public function listReposStarredByUser(string $username, string $sort, string $direction, int $perPage, int $page): Schema\Operations\Activity\ListReposStarredByUser\Response\ApplicationJson\Ok { if (array_key_exists(Operator\Activity\ListReposStarredByUser::class, $this->operator) === false) { @@ -300,4 +426,13 @@ public function listReposWatchedByUser(string $username, int $perPage, int $page return $this->operator[Operator\Activity\ListReposWatchedByUser::class]->call($username, $perPage, $page); } + + public function listReposWatchedByUserListing(string $username, int $perPage, int $page): Schema\MinimalRepository + { + if (array_key_exists(Operator\Activity\ListReposWatchedByUserListing::class, $this->operator) === false) { + $this->operator[Operator\Activity\ListReposWatchedByUserListing::class] = new Operator\Activity\ListReposWatchedByUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Subscriptions()); + } + + return $this->operator[Operator\Activity\ListReposWatchedByUserListing::class]->call($username, $perPage, $page); + } } diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListEventsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListEventsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..7b32b9550f1 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListEventsForAuthenticatedUserListing.php @@ -0,0 +1,81 @@ +username = $username; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{username}', '{per_page}', '{page}'], [$this->username, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Event { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Event::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Event::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListNotificationsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListNotificationsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..9a91cc5df10 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListNotificationsForAuthenticatedUserListing.php @@ -0,0 +1,123 @@ +since = $since; + $this->before = $before; + $this->all = $all; + $this->participating = $participating; + $this->page = $page; + $this->perPage = $perPage; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{since}', '{before}', '{all}', '{participating}', '{page}', '{per_page}'], [$this->since, $this->before, $this->all, $this->participating, $this->page, $this->perPage], self::PATH . '?since={since}&before={before}&all={all}&participating={participating}&page={page}&per_page={per_page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Thread { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Thread::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Thread::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListOrgEventsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListOrgEventsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..8834fa6b41f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListOrgEventsForAuthenticatedUserListing.php @@ -0,0 +1,84 @@ +username = $username; + $this->org = $org; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{username}', '{org}', '{per_page}', '{page}'], [$this->username, $this->org, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Event { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Event::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Event::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicEventsForRepoNetworkListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicEventsForRepoNetworkListing.php new file mode 100644 index 00000000000..771bd092a1b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicEventsForRepoNetworkListing.php @@ -0,0 +1,117 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|Schema\BasicError|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|Schema\BasicError|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Event { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Event::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Event::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Moved permanently + **/ + + case 301: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\BasicError::class, $body); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicEventsForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicEventsForUserListing.php new file mode 100644 index 00000000000..b9a0e7a96f0 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicEventsForUserListing.php @@ -0,0 +1,81 @@ +username = $username; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{username}', '{per_page}', '{page}'], [$this->username, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Event { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Event::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Event::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicEventsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicEventsListing.php new file mode 100644 index 00000000000..58030ae5b72 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicEventsListing.php @@ -0,0 +1,103 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}'], [$this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Event { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Event::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Event::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Service unavailable + **/ + + case 503: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable(503, $this->hydrator->hydrateObject(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicOrgEventsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicOrgEventsListing.php new file mode 100644 index 00000000000..34daf59494b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListPublicOrgEventsListing.php @@ -0,0 +1,81 @@ +org = $org; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{per_page}', '{page}'], [$this->org, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Event { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Event::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Event::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReceivedEventsForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReceivedEventsForUserListing.php new file mode 100644 index 00000000000..61bb01726cd --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReceivedEventsForUserListing.php @@ -0,0 +1,81 @@ +username = $username; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{username}', '{per_page}', '{page}'], [$this->username, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Event { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Event::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Event::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReceivedPublicEventsForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReceivedPublicEventsForUserListing.php new file mode 100644 index 00000000000..09f106a252c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReceivedPublicEventsForUserListing.php @@ -0,0 +1,81 @@ +username = $username; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{username}', '{per_page}', '{page}'], [$this->username, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Event { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Event::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Event::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListRepoEventsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListRepoEventsListing.php new file mode 100644 index 00000000000..9f23d7b96ef --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListRepoEventsListing.php @@ -0,0 +1,84 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Event { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Event::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Event::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListRepoNotificationsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListRepoNotificationsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..7f4c9e552d6 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListRepoNotificationsForAuthenticatedUserListing.php @@ -0,0 +1,96 @@ +owner = $owner; + $this->repo = $repo; + $this->since = $since; + $this->before = $before; + $this->all = $all; + $this->participating = $participating; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{since}', '{before}', '{all}', '{participating}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->since, $this->before, $this->all, $this->participating, $this->perPage, $this->page], self::PATH . '?since={since}&before={before}&all={all}&participating={participating}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Thread { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Thread::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Thread::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReposStarredByAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReposStarredByAuthenticatedUserListing.php new file mode 100644 index 00000000000..ecbd5f66fd3 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReposStarredByAuthenticatedUserListing.php @@ -0,0 +1,109 @@ +sort = $sort; + $this->direction = $direction; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{sort}', '{direction}', '{per_page}', '{page}'], [$this->sort, $this->direction, $this->perPage, $this->page], self::PATH . '?sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Repository { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Repository::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Repository::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReposWatchedByUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReposWatchedByUserListing.php new file mode 100644 index 00000000000..6425c19ffec --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListReposWatchedByUserListing.php @@ -0,0 +1,81 @@ +username = $username; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{username}', '{per_page}', '{page}'], [$this->username, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\MinimalRepository { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\MinimalRepository::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\MinimalRepository::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListWatchedReposForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListWatchedReposForAuthenticatedUserListing.php new file mode 100644 index 00000000000..b956e8e600b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListWatchedReposForAuthenticatedUserListing.php @@ -0,0 +1,103 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}'], [$this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\MinimalRepository { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\MinimalRepository::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\MinimalRepository::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListWatchersForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListWatchersForRepoListing.php new file mode 100644 index 00000000000..fb0446a13fb --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Activity/ListWatchersForRepoListing.php @@ -0,0 +1,84 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SimpleUser { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SimpleUser::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SimpleUser::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Apps.php b/clients/GitHubEnterprise-3.4/src/Operation/Apps.php index cf773412ecb..334a8e800f3 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/Apps.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/Apps.php @@ -94,6 +94,15 @@ public function listInstallationRequestsForAuthenticatedApp(int $perPage, int $p return $this->operator[Operator\Apps\ListInstallationRequestsForAuthenticatedApp::class]->call($perPage, $page); } + public function listInstallationRequestsForAuthenticatedAppListing(int $perPage, int $page): Schema\IntegrationInstallationRequest + { + if (array_key_exists(Operator\Apps\ListInstallationRequestsForAuthenticatedAppListing::class, $this->operator) === false) { + $this->operator[Operator\Apps\ListInstallationRequestsForAuthenticatedAppListing::class] = new Operator\Apps\ListInstallationRequestsForAuthenticatedAppListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀App🌀InstallationRequests()); + } + + return $this->operator[Operator\Apps\ListInstallationRequestsForAuthenticatedAppListing::class]->call($perPage, $page); + } + public function listInstallations(string $since, string $outdated, int $perPage, int $page): Schema\Installation { if (array_key_exists(Operator\Apps\ListInstallations::class, $this->operator) === false) { @@ -103,6 +112,15 @@ public function listInstallations(string $since, string $outdated, int $perPage, return $this->operator[Operator\Apps\ListInstallations::class]->call($since, $outdated, $perPage, $page); } + public function listInstallationsListing(string $since, string $outdated, int $perPage, int $page): Schema\Installation + { + if (array_key_exists(Operator\Apps\ListInstallationsListing::class, $this->operator) === false) { + $this->operator[Operator\Apps\ListInstallationsListing::class] = new Operator\Apps\ListInstallationsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀App🌀Installations()); + } + + return $this->operator[Operator\Apps\ListInstallationsListing::class]->call($since, $outdated, $perPage, $page); + } + public function getInstallation(int $installationId): Schema\Installation { if (array_key_exists(Operator\Apps\GetInstallation::class, $this->operator) === false) { diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Apps/ListInstallationRequestsForAuthenticatedAppListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Apps/ListInstallationRequestsForAuthenticatedAppListing.php new file mode 100644 index 00000000000..1e35c0d1a0c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Apps/ListInstallationRequestsForAuthenticatedAppListing.php @@ -0,0 +1,95 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}'], [$this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * List of integration installation requests + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\IntegrationInstallationRequest { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\IntegrationInstallationRequest::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\IntegrationInstallationRequest::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Apps/ListInstallationsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Apps/ListInstallationsListing.php new file mode 100644 index 00000000000..06fc9c84908 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Apps/ListInstallationsListing.php @@ -0,0 +1,81 @@ +since = $since; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{since}', '{outdated}', '{per_page}', '{page}'], [$this->since, $this->outdated, $this->perPage, $this->page], self::PATH . '?since={since}&outdated={outdated}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * The permissions the installation has are included under the `permissions` key. + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Installation { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Installation::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Installation::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Checks.php b/clients/GitHubEnterprise-3.4/src/Operation/Checks.php index 8af61bd2e3e..e1269bef5e4 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/Checks.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/Checks.php @@ -57,6 +57,15 @@ public function listAnnotations(string $owner, string $repo, int $checkRunId, in return $this->operator[Operator\Checks\ListAnnotations::class]->call($owner, $repo, $checkRunId, $perPage, $page); } + public function listAnnotationsListing(string $owner, string $repo, int $checkRunId, int $perPage, int $page): Schema\CheckAnnotation + { + if (array_key_exists(Operator\Checks\ListAnnotationsListing::class, $this->operator) === false) { + $this->operator[Operator\Checks\ListAnnotationsListing::class] = new Operator\Checks\ListAnnotationsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CheckRuns🌀CheckRunId🌀Annotations()); + } + + return $this->operator[Operator\Checks\ListAnnotationsListing::class]->call($owner, $repo, $checkRunId, $perPage, $page); + } + public function rerequestRun(string $owner, string $repo, int $checkRunId): Schema\EmptyObject { if (array_key_exists(Operator\Checks\RerequestRun::class, $this->operator) === false) { diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Checks/ListAnnotationsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Checks/ListAnnotationsListing.php new file mode 100644 index 00000000000..1a2fb6c7c6e --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Checks/ListAnnotationsListing.php @@ -0,0 +1,87 @@ +owner = $owner; + $this->repo = $repo; + $this->checkRunId = $checkRunId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{check_run_id}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->checkRunId, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CheckAnnotation { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CheckAnnotation::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\CheckAnnotation::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/CodeScanning.php b/clients/GitHubEnterprise-3.4/src/Operation/CodeScanning.php index 04dfa585118..bf24222734e 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/CodeScanning.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/CodeScanning.php @@ -30,6 +30,15 @@ public function listAlertsForRepo(string $owner, string $repo, string $toolName, return $this->operator[Operator\CodeScanning\ListAlertsForRepo::class]->call($owner, $repo, $toolName, $toolGuid, $ref, $state, $page, $perPage, $direction, $sort); } + public function listAlertsForRepoListing(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, int $page, int $perPage, string $direction, string $sort): Schema\CodeScanningAlertItems + { + if (array_key_exists(Operator\CodeScanning\ListAlertsForRepoListing::class, $this->operator) === false) { + $this->operator[Operator\CodeScanning\ListAlertsForRepoListing::class] = new Operator\CodeScanning\ListAlertsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Alerts()); + } + + return $this->operator[Operator\CodeScanning\ListAlertsForRepoListing::class]->call($owner, $repo, $toolName, $toolGuid, $ref, $state, $page, $perPage, $direction, $sort); + } + public function getAlert(string $owner, string $repo, int $alertNumber): Schema\CodeScanningAlert { if (array_key_exists(Operator\CodeScanning\GetAlert::class, $this->operator) === false) { @@ -57,6 +66,15 @@ public function listAlertInstances(string $owner, string $repo, int $alertNumber return $this->operator[Operator\CodeScanning\ListAlertInstances::class]->call($owner, $repo, $alertNumber, $ref, $page, $perPage); } + public function listAlertInstancesListing(string $owner, string $repo, int $alertNumber, string $ref, int $page, int $perPage): Schema\CodeScanningAlertInstance + { + if (array_key_exists(Operator\CodeScanning\ListAlertInstancesListing::class, $this->operator) === false) { + $this->operator[Operator\CodeScanning\ListAlertInstancesListing::class] = new Operator\CodeScanning\ListAlertInstancesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Alerts🌀AlertNumber🌀Instances()); + } + + return $this->operator[Operator\CodeScanning\ListAlertInstancesListing::class]->call($owner, $repo, $alertNumber, $ref, $page, $perPage); + } + public function listRecentAnalyses(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page, int $perPage): Schema\CodeScanningAnalysis { if (array_key_exists(Operator\CodeScanning\ListRecentAnalyses::class, $this->operator) === false) { @@ -66,6 +84,15 @@ public function listRecentAnalyses(string $owner, string $repo, string $toolName return $this->operator[Operator\CodeScanning\ListRecentAnalyses::class]->call($owner, $repo, $toolName, $toolGuid, $ref, $sarifId, $page, $perPage); } + public function listRecentAnalysesListing(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page, int $perPage): Schema\CodeScanningAnalysis + { + if (array_key_exists(Operator\CodeScanning\ListRecentAnalysesListing::class, $this->operator) === false) { + $this->operator[Operator\CodeScanning\ListRecentAnalysesListing::class] = new Operator\CodeScanning\ListRecentAnalysesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Analyses()); + } + + return $this->operator[Operator\CodeScanning\ListRecentAnalysesListing::class]->call($owner, $repo, $toolName, $toolGuid, $ref, $sarifId, $page, $perPage); + } + public function getAnalysis(string $owner, string $repo, int $analysisId): Schema\CodeScanningAnalysis|Schema\Operations\CodeScanning\GetAnalysis\Response\ApplicationJsonSarif\Ok { if (array_key_exists(Operator\CodeScanning\GetAnalysis::class, $this->operator) === false) { diff --git a/clients/GitHubEnterprise-3.4/src/Operation/CodeScanning/ListAlertInstancesListing.php b/clients/GitHubEnterprise-3.4/src/Operation/CodeScanning/ListAlertInstancesListing.php new file mode 100644 index 00000000000..9e1d1c9047b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/CodeScanning/ListAlertInstancesListing.php @@ -0,0 +1,115 @@ +` or simply ``. To reference a pull request use `refs/pull//merge`. **/ + private string $ref; + /**Page number of the results to fetch. **/ + private int $page; + /**The number of results per page (max 100). **/ + private int $perPage; + + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts\AlertNumber\Instances $hydrator, string $owner, string $repo, int $alertNumber, string $ref, int $page = 1, int $perPage = 30) + { + $this->owner = $owner; + $this->repo = $repo; + $this->alertNumber = $alertNumber; + $this->ref = $ref; + $this->page = $page; + $this->perPage = $perPage; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{alert_number}', '{ref}', '{page}', '{per_page}'], [$this->owner, $this->repo, $this->alertNumber, $this->ref, $this->page, $this->perPage], self::PATH . '?ref={ref}&page={page}&per_page={per_page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CodeScanningAlertInstance { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CodeScanningAlertInstance::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\CodeScanningAlertInstance::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Response if GitHub Advanced Security is not enabled for this repository + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Service unavailable + **/ + + case 503: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable(503, $this->hydrator->hydrateObject(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/CodeScanning/ListAlertsForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operation/CodeScanning/ListAlertsForRepoListing.php new file mode 100644 index 00000000000..b475a2d7c49 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/CodeScanning/ListAlertsForRepoListing.php @@ -0,0 +1,135 @@ +` or simply ``. To reference a pull request use `refs/pull//merge`. **/ + private string $ref; + /**If specified, only code scanning alerts with this state will be returned. **/ + private string $state; + /**Page number of the results to fetch. **/ + private int $page; + /**The number of results per page (max 100). **/ + private int $perPage; + /**The direction to sort the results by. **/ + private string $direction; + /**The property by which to sort the results. **/ + private string $sort; + + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, 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->state = $state; + $this->page = $page; + $this->perPage = $perPage; + $this->direction = $direction; + $this->sort = $sort; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{state}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->state, $this->page, $this->perPage, $this->direction, $this->sort], self::PATH . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&state={state}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CodeScanningAlertItems { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CodeScanningAlertItems::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\CodeScanningAlertItems::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Response if GitHub Advanced Security is not enabled for this repository + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Service unavailable + **/ + + case 503: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable(503, $this->hydrator->hydrateObject(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/CodeScanning/ListRecentAnalysesListing.php b/clients/GitHubEnterprise-3.4/src/Operation/CodeScanning/ListRecentAnalysesListing.php new file mode 100644 index 00000000000..d1194275d8a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/CodeScanning/ListRecentAnalysesListing.php @@ -0,0 +1,121 @@ +` or simply ``. To reference a pull request use `refs/pull//merge`. **/ + private string $ref; + /**Filter analyses belonging to the same SARIF upload. **/ + private string $sarifId; + /**Page number of the results to fetch. **/ + private int $page; + /**The number of results per page (max 100). **/ + private int $perPage; + + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly 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) + { + $this->owner = $owner; + $this->repo = $repo; + $this->toolName = $toolName; + $this->toolGuid = $toolGuid; + $this->ref = $ref; + $this->sarifId = $sarifId; + $this->page = $page; + $this->perPage = $perPage; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{sarif_id}', '{page}', '{per_page}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->sarifId, $this->page, $this->perPage], self::PATH . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&sarif_id={sarif_id}&page={page}&per_page={per_page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CodeScanningAnalysis { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CodeScanningAnalysis::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\CodeScanningAnalysis::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Response if GitHub Advanced Security is not enabled for this repository + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Service unavailable + **/ + + case 503: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable(503, $this->hydrator->hydrateObject(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin.php b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin.php index 87c70e413d2..c3520a7a2c0 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin.php @@ -31,6 +31,15 @@ public function listGlobalWebhooks(int $perPage, int $page): Schema\GlobalHook return $this->operator[Operator\EnterpriseAdmin\ListGlobalWebhooks::class]->call($perPage, $page); } + public function listGlobalWebhooksListing(int $perPage, int $page): Schema\GlobalHook + { + if (array_key_exists(Operator\EnterpriseAdmin\ListGlobalWebhooksListing::class, $this->operator) === false) { + $this->operator[Operator\EnterpriseAdmin\ListGlobalWebhooksListing::class] = new Operator\EnterpriseAdmin\ListGlobalWebhooksListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Admin🌀Hooks()); + } + + return $this->operator[Operator\EnterpriseAdmin\ListGlobalWebhooksListing::class]->call($perPage, $page); + } + public function createGlobalWebhook(array $params): Schema\GlobalHook { if (array_key_exists(Operator\EnterpriseAdmin\CreateGlobalWebhook::class, $this->operator) === false) { @@ -85,6 +94,15 @@ public function listPublicKeys(string $since, int $perPage, int $page, string $d return $this->operator[Operator\EnterpriseAdmin\ListPublicKeys::class]->call($since, $perPage, $page, $direction, $sort); } + public function listPublicKeysListing(string $since, int $perPage, int $page, string $direction, string $sort): Schema\PublicKeyFull + { + if (array_key_exists(Operator\EnterpriseAdmin\ListPublicKeysListing::class, $this->operator) === false) { + $this->operator[Operator\EnterpriseAdmin\ListPublicKeysListing::class] = new Operator\EnterpriseAdmin\ListPublicKeysListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Admin🌀Keys()); + } + + return $this->operator[Operator\EnterpriseAdmin\ListPublicKeysListing::class]->call($since, $perPage, $page, $direction, $sort); + } + public function deletePublicKey(string $keyIds): ResponseInterface { if (array_key_exists(Operator\EnterpriseAdmin\DeletePublicKey::class, $this->operator) === false) { @@ -157,6 +175,15 @@ public function listPreReceiveEnvironments(int $perPage, int $page, string $dire return $this->operator[Operator\EnterpriseAdmin\ListPreReceiveEnvironments::class]->call($perPage, $page, $direction, $sort); } + public function listPreReceiveEnvironmentsListing(int $perPage, int $page, string $direction, string $sort): Schema\PreReceiveEnvironment + { + if (array_key_exists(Operator\EnterpriseAdmin\ListPreReceiveEnvironmentsListing::class, $this->operator) === false) { + $this->operator[Operator\EnterpriseAdmin\ListPreReceiveEnvironmentsListing::class] = new Operator\EnterpriseAdmin\ListPreReceiveEnvironmentsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Admin🌀PreReceiveEnvironments()); + } + + return $this->operator[Operator\EnterpriseAdmin\ListPreReceiveEnvironmentsListing::class]->call($perPage, $page, $direction, $sort); + } + public function createPreReceiveEnvironment(array $params): Schema\PreReceiveEnvironment { if (array_key_exists(Operator\EnterpriseAdmin\CreatePreReceiveEnvironment::class, $this->operator) === false) { @@ -238,6 +265,15 @@ public function listPreReceiveHooks(int $perPage, int $page, string $direction, return $this->operator[Operator\EnterpriseAdmin\ListPreReceiveHooks::class]->call($perPage, $page, $direction, $sort); } + public function listPreReceiveHooksListing(int $perPage, int $page, string $direction, string $sort): Schema\PreReceiveHook + { + if (array_key_exists(Operator\EnterpriseAdmin\ListPreReceiveHooksListing::class, $this->operator) === false) { + $this->operator[Operator\EnterpriseAdmin\ListPreReceiveHooksListing::class] = new Operator\EnterpriseAdmin\ListPreReceiveHooksListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Admin🌀PreReceiveHooks()); + } + + return $this->operator[Operator\EnterpriseAdmin\ListPreReceiveHooksListing::class]->call($perPage, $page, $direction, $sort); + } + public function createPreReceiveHook(array $params): Schema\PreReceiveHook { if (array_key_exists(Operator\EnterpriseAdmin\CreatePreReceiveHook::class, $this->operator) === false) { @@ -283,6 +319,15 @@ public function listPersonalAccessTokens(int $perPage, int $page): Schema\Author return $this->operator[Operator\EnterpriseAdmin\ListPersonalAccessTokens::class]->call($perPage, $page); } + public function listPersonalAccessTokensListing(int $perPage, int $page): Schema\Authorization + { + if (array_key_exists(Operator\EnterpriseAdmin\ListPersonalAccessTokensListing::class, $this->operator) === false) { + $this->operator[Operator\EnterpriseAdmin\ListPersonalAccessTokensListing::class] = new Operator\EnterpriseAdmin\ListPersonalAccessTokensListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Admin🌀Tokens()); + } + + return $this->operator[Operator\EnterpriseAdmin\ListPersonalAccessTokensListing::class]->call($perPage, $page); + } + public function deletePersonalAccessToken(int $tokenId): ResponseInterface { if (array_key_exists(Operator\EnterpriseAdmin\DeletePersonalAccessToken::class, $this->operator) === false) { @@ -769,6 +814,15 @@ public function getAuditLog(string $enterprise, string $phrase, string $include, return $this->operator[Operator\EnterpriseAdmin\GetAuditLog::class]->call($enterprise, $phrase, $include, $after, $before, $order, $page, $perPage); } + public function getAuditLogListing(string $enterprise, string $phrase, string $include, string $after, string $before, string $order, int $page, int $perPage): Schema\AuditLogEvent + { + if (array_key_exists(Operator\EnterpriseAdmin\GetAuditLogListing::class, $this->operator) === false) { + $this->operator[Operator\EnterpriseAdmin\GetAuditLogListing::class] = new Operator\EnterpriseAdmin\GetAuditLogListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀AuditLog()); + } + + return $this->operator[Operator\EnterpriseAdmin\GetAuditLogListing::class]->call($enterprise, $phrase, $include, $after, $before, $order, $page, $perPage); + } + public function listPreReceiveHooksForOrg(string $org, int $perPage, int $page, string $direction, string $sort): Schema\OrgPreReceiveHook { if (array_key_exists(Operator\EnterpriseAdmin\ListPreReceiveHooksForOrg::class, $this->operator) === false) { @@ -778,6 +832,15 @@ public function listPreReceiveHooksForOrg(string $org, int $perPage, int $page, return $this->operator[Operator\EnterpriseAdmin\ListPreReceiveHooksForOrg::class]->call($org, $perPage, $page, $direction, $sort); } + public function listPreReceiveHooksForOrgListing(string $org, int $perPage, int $page, string $direction, string $sort): Schema\OrgPreReceiveHook + { + if (array_key_exists(Operator\EnterpriseAdmin\ListPreReceiveHooksForOrgListing::class, $this->operator) === false) { + $this->operator[Operator\EnterpriseAdmin\ListPreReceiveHooksForOrgListing::class] = new Operator\EnterpriseAdmin\ListPreReceiveHooksForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀PreReceiveHooks()); + } + + return $this->operator[Operator\EnterpriseAdmin\ListPreReceiveHooksForOrgListing::class]->call($org, $perPage, $page, $direction, $sort); + } + public function getPreReceiveHookForOrg(string $org, int $preReceiveHookId): Schema\OrgPreReceiveHook { if (array_key_exists(Operator\EnterpriseAdmin\GetPreReceiveHookForOrg::class, $this->operator) === false) { @@ -814,6 +877,15 @@ public function listPreReceiveHooksForRepo(string $owner, string $repo, int $per return $this->operator[Operator\EnterpriseAdmin\ListPreReceiveHooksForRepo::class]->call($owner, $repo, $perPage, $page, $direction, $sort); } + public function listPreReceiveHooksForRepoListing(string $owner, string $repo, int $perPage, int $page, string $direction, string $sort): Schema\RepositoryPreReceiveHook + { + if (array_key_exists(Operator\EnterpriseAdmin\ListPreReceiveHooksForRepoListing::class, $this->operator) === false) { + $this->operator[Operator\EnterpriseAdmin\ListPreReceiveHooksForRepoListing::class] = new Operator\EnterpriseAdmin\ListPreReceiveHooksForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀PreReceiveHooks()); + } + + return $this->operator[Operator\EnterpriseAdmin\ListPreReceiveHooksForRepoListing::class]->call($owner, $repo, $perPage, $page, $direction, $sort); + } + public function getPreReceiveHookForRepo(string $owner, string $repo, int $preReceiveHookId): Schema\RepositoryPreReceiveHook { if (array_key_exists(Operator\EnterpriseAdmin\GetPreReceiveHookForRepo::class, $this->operator) === false) { diff --git a/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/GetAuditLogListing.php b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/GetAuditLogListing.php new file mode 100644 index 00000000000..fe791c6f066 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/GetAuditLogListing.php @@ -0,0 +1,104 @@ +enterprise = $enterprise; + $this->phrase = $phrase; + $this->include = $include; + $this->after = $after; + $this->before = $before; + $this->order = $order; + $this->page = $page; + $this->perPage = $perPage; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{enterprise}', '{phrase}', '{include}', '{after}', '{before}', '{order}', '{page}', '{per_page}'], [$this->enterprise, $this->phrase, $this->include, $this->after, $this->before, $this->order, $this->page, $this->perPage], self::PATH . '?phrase={phrase}&include={include}&after={after}&before={before}&order={order}&page={page}&per_page={per_page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\AuditLogEvent { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\AuditLogEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\AuditLogEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListGlobalWebhooksListing.php b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListGlobalWebhooksListing.php new file mode 100644 index 00000000000..feb7e1f6b74 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListGlobalWebhooksListing.php @@ -0,0 +1,78 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}'], [$this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\GlobalHook { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\GlobalHook::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\GlobalHook::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPersonalAccessTokensListing.php b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPersonalAccessTokensListing.php new file mode 100644 index 00000000000..c19f3f77244 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPersonalAccessTokensListing.php @@ -0,0 +1,78 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}'], [$this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Authorization { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Authorization::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Authorization::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveEnvironmentsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveEnvironmentsListing.php new file mode 100644 index 00000000000..97a35a39a14 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveEnvironmentsListing.php @@ -0,0 +1,81 @@ +perPage = $perPage; + $this->page = $page; + $this->direction = $direction; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}', '{direction}', '{sort}'], [$this->perPage, $this->page, $this->direction, $this->sort], self::PATH . '?per_page={per_page}&page={page}&direction={direction}&sort={sort}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\PreReceiveEnvironment { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\PreReceiveEnvironment::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\PreReceiveEnvironment::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveHooksForOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveHooksForOrgListing.php new file mode 100644 index 00000000000..479aa05472f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveHooksForOrgListing.php @@ -0,0 +1,87 @@ +org = $org; + $this->perPage = $perPage; + $this->page = $page; + $this->direction = $direction; + $this->sort = $sort; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{per_page}', '{page}', '{direction}', '{sort}'], [$this->org, $this->perPage, $this->page, $this->direction, $this->sort], self::PATH . '?per_page={per_page}&page={page}&direction={direction}&sort={sort}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\OrgPreReceiveHook { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\OrgPreReceiveHook::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\OrgPreReceiveHook::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveHooksForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveHooksForRepoListing.php new file mode 100644 index 00000000000..590bb0cc5e8 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveHooksForRepoListing.php @@ -0,0 +1,87 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + $this->direction = $direction; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->perPage, $this->page, $this->direction, $this->sort], self::PATH . '?per_page={per_page}&page={page}&direction={direction}&sort={sort}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\RepositoryPreReceiveHook { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryPreReceiveHook::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RepositoryPreReceiveHook::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveHooksListing.php b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveHooksListing.php new file mode 100644 index 00000000000..6849083ef84 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPreReceiveHooksListing.php @@ -0,0 +1,84 @@ +perPage = $perPage; + $this->page = $page; + $this->direction = $direction; + $this->sort = $sort; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}', '{direction}', '{sort}'], [$this->perPage, $this->page, $this->direction, $this->sort], self::PATH . '?per_page={per_page}&page={page}&direction={direction}&sort={sort}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\PreReceiveHook { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\PreReceiveHook::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\PreReceiveHook::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPublicKeysListing.php b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPublicKeysListing.php new file mode 100644 index 00000000000..46475c548d9 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/EnterpriseAdmin/ListPublicKeysListing.php @@ -0,0 +1,84 @@ +since = $since; + $this->perPage = $perPage; + $this->page = $page; + $this->direction = $direction; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{since}', '{per_page}', '{page}', '{direction}', '{sort}'], [$this->since, $this->perPage, $this->page, $this->direction, $this->sort], self::PATH . '?since={since}&per_page={per_page}&page={page}&direction={direction}&sort={sort}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\PublicKeyFull { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\PublicKeyFull::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\PublicKeyFull::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Gists.php b/clients/GitHubEnterprise-3.4/src/Operation/Gists.php index f45f6af2915..01c13045d03 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/Gists.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/Gists.php @@ -31,6 +31,15 @@ public function list(string $since, int $perPage, int $page): Schema\BaseGist return $this->operator[Operator\Gists\List_::class]->call($since, $perPage, $page); } + public function listListing(string $since, int $perPage, int $page): Schema\BaseGist + { + if (array_key_exists(Operator\Gists\ListListing::class, $this->operator) === false) { + $this->operator[Operator\Gists\ListListing::class] = new Operator\Gists\ListListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Gists()); + } + + return $this->operator[Operator\Gists\ListListing::class]->call($since, $perPage, $page); + } + public function create(array $params): Schema\GistSimple { if (array_key_exists(Operator\Gists\Create::class, $this->operator) === false) { @@ -49,6 +58,15 @@ public function listPublic(string $since, int $perPage, int $page): Schema\BaseG return $this->operator[Operator\Gists\ListPublic::class]->call($since, $perPage, $page); } + public function listPublicListing(string $since, int $perPage, int $page): Schema\BaseGist + { + if (array_key_exists(Operator\Gists\ListPublicListing::class, $this->operator) === false) { + $this->operator[Operator\Gists\ListPublicListing::class] = new Operator\Gists\ListPublicListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Gists🌀Public_()); + } + + return $this->operator[Operator\Gists\ListPublicListing::class]->call($since, $perPage, $page); + } + public function listStarred(string $since, int $perPage, int $page): Schema\BaseGist { if (array_key_exists(Operator\Gists\ListStarred::class, $this->operator) === false) { @@ -58,6 +76,15 @@ public function listStarred(string $since, int $perPage, int $page): Schema\Base return $this->operator[Operator\Gists\ListStarred::class]->call($since, $perPage, $page); } + public function listStarredListing(string $since, int $perPage, int $page): Schema\BaseGist + { + if (array_key_exists(Operator\Gists\ListStarredListing::class, $this->operator) === false) { + $this->operator[Operator\Gists\ListStarredListing::class] = new Operator\Gists\ListStarredListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Gists🌀Starred()); + } + + return $this->operator[Operator\Gists\ListStarredListing::class]->call($since, $perPage, $page); + } + public function get(string $gistId): Schema\GistSimple { if (array_key_exists(Operator\Gists\Get::class, $this->operator) === false) { @@ -94,6 +121,15 @@ public function listComments(string $gistId, int $perPage, int $page): Schema\Gi return $this->operator[Operator\Gists\ListComments::class]->call($gistId, $perPage, $page); } + public function listCommentsListing(string $gistId, int $perPage, int $page): Schema\GistComment + { + if (array_key_exists(Operator\Gists\ListCommentsListing::class, $this->operator) === false) { + $this->operator[Operator\Gists\ListCommentsListing::class] = new Operator\Gists\ListCommentsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Gists🌀GistId🌀Comments()); + } + + return $this->operator[Operator\Gists\ListCommentsListing::class]->call($gistId, $perPage, $page); + } + public function createComment(string $gistId, array $params): Schema\GistComment { if (array_key_exists(Operator\Gists\CreateComment::class, $this->operator) === false) { @@ -139,6 +175,15 @@ public function listCommits(string $gistId, int $perPage, int $page): Schema\Gis return $this->operator[Operator\Gists\ListCommits::class]->call($gistId, $perPage, $page); } + public function listCommitsListing(string $gistId, int $perPage, int $page): Schema\GistCommit + { + if (array_key_exists(Operator\Gists\ListCommitsListing::class, $this->operator) === false) { + $this->operator[Operator\Gists\ListCommitsListing::class] = new Operator\Gists\ListCommitsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Gists🌀GistId🌀Commits()); + } + + return $this->operator[Operator\Gists\ListCommitsListing::class]->call($gistId, $perPage, $page); + } + public function listForks(string $gistId, int $perPage, int $page): Schema\GistSimple { if (array_key_exists(Operator\Gists\ListForks::class, $this->operator) === false) { @@ -148,6 +193,15 @@ public function listForks(string $gistId, int $perPage, int $page): Schema\GistS return $this->operator[Operator\Gists\ListForks::class]->call($gistId, $perPage, $page); } + public function listForksListing(string $gistId, int $perPage, int $page): Schema\GistSimple + { + if (array_key_exists(Operator\Gists\ListForksListing::class, $this->operator) === false) { + $this->operator[Operator\Gists\ListForksListing::class] = new Operator\Gists\ListForksListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Gists🌀GistId🌀Forks()); + } + + return $this->operator[Operator\Gists\ListForksListing::class]->call($gistId, $perPage, $page); + } + public function fork(string $gistId): Schema\BaseGist { if (array_key_exists(Operator\Gists\Fork::class, $this->operator) === false) { @@ -201,4 +255,13 @@ public function listForUser(string $username, string $since, int $perPage, int $ return $this->operator[Operator\Gists\ListForUser::class]->call($username, $since, $perPage, $page); } + + public function listForUserListing(string $username, string $since, int $perPage, int $page): Schema\BaseGist + { + if (array_key_exists(Operator\Gists\ListForUserListing::class, $this->operator) === false) { + $this->operator[Operator\Gists\ListForUserListing::class] = new Operator\Gists\ListForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Gists()); + } + + return $this->operator[Operator\Gists\ListForUserListing::class]->call($username, $since, $perPage, $page); + } } diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListCommentsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListCommentsListing.php new file mode 100644 index 00000000000..726704562b5 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListCommentsListing.php @@ -0,0 +1,106 @@ +gistId = $gistId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{gist_id}', '{per_page}', '{page}'], [$this->gistId, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\GistComment { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\GistComment::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\GistComment::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListCommitsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListCommitsListing.php new file mode 100644 index 00000000000..34e37284629 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListCommitsListing.php @@ -0,0 +1,106 @@ +gistId = $gistId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{gist_id}', '{per_page}', '{page}'], [$this->gistId, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\GistCommit { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\GistCommit::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\GistCommit::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListForUserListing.php new file mode 100644 index 00000000000..8e1efd157ee --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListForUserListing.php @@ -0,0 +1,93 @@ +username = $username; + $this->since = $since; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{username}', '{since}', '{per_page}', '{page}'], [$this->username, $this->since, $this->perPage, $this->page], self::PATH . '?since={since}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\BaseGist { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BaseGist::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\BaseGist::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListForksListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListForksListing.php new file mode 100644 index 00000000000..ca5666db088 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListForksListing.php @@ -0,0 +1,106 @@ +gistId = $gistId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{gist_id}', '{per_page}', '{page}'], [$this->gistId, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\GistSimple { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\GistSimple::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\GistSimple::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListListing.php new file mode 100644 index 00000000000..29d7860537e --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListListing.php @@ -0,0 +1,98 @@ +since = $since; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{since}', '{per_page}', '{page}'], [$this->since, $this->perPage, $this->page], self::PATH . '?since={since}&per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\BaseGist { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BaseGist::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\BaseGist::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListPublicListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListPublicListing.php new file mode 100644 index 00000000000..d644303e8eb --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListPublicListing.php @@ -0,0 +1,106 @@ +since = $since; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{since}', '{per_page}', '{page}'], [$this->since, $this->perPage, $this->page], self::PATH . '?since={since}&per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\BaseGist { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BaseGist::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\BaseGist::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListStarredListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListStarredListing.php new file mode 100644 index 00000000000..03d81dbd0b1 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Gists/ListStarredListing.php @@ -0,0 +1,106 @@ +since = $since; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{since}', '{per_page}', '{page}'], [$this->since, $this->perPage, $this->page], self::PATH . '?since={since}&per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\BaseGist { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BaseGist::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\BaseGist::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Issues.php b/clients/GitHubEnterprise-3.4/src/Operation/Issues.php index 654556c925c..357de36342a 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/Issues.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/Issues.php @@ -31,6 +31,15 @@ public function list(string $labels, string $since, bool $collab, bool $orgs, bo return $this->operator[Operator\Issues\List_::class]->call($labels, $since, $collab, $orgs, $owned, $pulls, $filter, $state, $sort, $direction, $perPage, $page); } + public function listListing(string $labels, string $since, bool $collab, bool $orgs, bool $owned, bool $pulls, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): Schema\Issue + { + if (array_key_exists(Operator\Issues\ListListing::class, $this->operator) === false) { + $this->operator[Operator\Issues\ListListing::class] = new Operator\Issues\ListListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Issues()); + } + + return $this->operator[Operator\Issues\ListListing::class]->call($labels, $since, $collab, $orgs, $owned, $pulls, $filter, $state, $sort, $direction, $perPage, $page); + } + public function listForOrg(string $org, string $labels, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): Schema\Issue { if (array_key_exists(Operator\Issues\ListForOrg::class, $this->operator) === false) { @@ -40,6 +49,15 @@ public function listForOrg(string $org, string $labels, string $since, string $f return $this->operator[Operator\Issues\ListForOrg::class]->call($org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); } + public function listForOrgListing(string $org, string $labels, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): Schema\Issue + { + if (array_key_exists(Operator\Issues\ListForOrgListing::class, $this->operator) === false) { + $this->operator[Operator\Issues\ListForOrgListing::class] = new Operator\Issues\ListForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Issues()); + } + + return $this->operator[Operator\Issues\ListForOrgListing::class]->call($org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + } + public function listAssignees(string $owner, string $repo, int $perPage, int $page): Schema\SimpleUser { if (array_key_exists(Operator\Issues\ListAssignees::class, $this->operator) === false) { @@ -49,6 +67,15 @@ public function listAssignees(string $owner, string $repo, int $perPage, int $pa return $this->operator[Operator\Issues\ListAssignees::class]->call($owner, $repo, $perPage, $page); } + public function listAssigneesListing(string $owner, string $repo, int $perPage, int $page): Schema\SimpleUser + { + if (array_key_exists(Operator\Issues\ListAssigneesListing::class, $this->operator) === false) { + $this->operator[Operator\Issues\ListAssigneesListing::class] = new Operator\Issues\ListAssigneesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Assignees()); + } + + return $this->operator[Operator\Issues\ListAssigneesListing::class]->call($owner, $repo, $perPage, $page); + } + public function checkUserCanBeAssigned(string $owner, string $repo, string $assignee): ResponseInterface { if (array_key_exists(Operator\Issues\CheckUserCanBeAssigned::class, $this->operator) === false) { @@ -67,6 +94,15 @@ public function listForRepo(string $owner, string $repo, string $milestone, stri return $this->operator[Operator\Issues\ListForRepo::class]->call($owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); } + public function listForRepoListing(string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state, string $sort, string $direction, int $perPage, int $page): Schema\Issue|Schema\BasicError + { + if (array_key_exists(Operator\Issues\ListForRepoListing::class, $this->operator) === false) { + $this->operator[Operator\Issues\ListForRepoListing::class] = new Operator\Issues\ListForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()); + } + + return $this->operator[Operator\Issues\ListForRepoListing::class]->call($owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); + } + public function create(string $owner, string $repo, array $params): Schema\Issue { if (array_key_exists(Operator\Issues\Create::class, $this->operator) === false) { @@ -85,6 +121,15 @@ public function listCommentsForRepo(string $owner, string $repo, string $directi return $this->operator[Operator\Issues\ListCommentsForRepo::class]->call($owner, $repo, $direction, $since, $sort, $perPage, $page); } + public function listCommentsForRepoListing(string $owner, string $repo, string $direction, string $since, string $sort, int $perPage, int $page): Schema\IssueComment + { + if (array_key_exists(Operator\Issues\ListCommentsForRepoListing::class, $this->operator) === false) { + $this->operator[Operator\Issues\ListCommentsForRepoListing::class] = new Operator\Issues\ListCommentsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments()); + } + + return $this->operator[Operator\Issues\ListCommentsForRepoListing::class]->call($owner, $repo, $direction, $since, $sort, $perPage, $page); + } + public function getComment(string $owner, string $repo, int $commentId): Schema\IssueComment { if (array_key_exists(Operator\Issues\GetComment::class, $this->operator) === false) { @@ -121,6 +166,15 @@ public function listEventsForRepo(string $owner, string $repo, int $perPage, int return $this->operator[Operator\Issues\ListEventsForRepo::class]->call($owner, $repo, $perPage, $page); } + public function listEventsForRepoListing(string $owner, string $repo, int $perPage, int $page): Schema\IssueEvent + { + if (array_key_exists(Operator\Issues\ListEventsForRepoListing::class, $this->operator) === false) { + $this->operator[Operator\Issues\ListEventsForRepoListing::class] = new Operator\Issues\ListEventsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Events()); + } + + return $this->operator[Operator\Issues\ListEventsForRepoListing::class]->call($owner, $repo, $perPage, $page); + } + public function getEvent(string $owner, string $repo, int $eventId): Schema\IssueEvent { if (array_key_exists(Operator\Issues\GetEvent::class, $this->operator) === false) { @@ -184,6 +238,15 @@ public function listComments(string $owner, string $repo, int $issueNumber, stri return $this->operator[Operator\Issues\ListComments::class]->call($owner, $repo, $issueNumber, $since, $perPage, $page); } + public function listCommentsListing(string $owner, string $repo, int $issueNumber, string $since, int $perPage, int $page): Schema\IssueComment + { + if (array_key_exists(Operator\Issues\ListCommentsListing::class, $this->operator) === false) { + $this->operator[Operator\Issues\ListCommentsListing::class] = new Operator\Issues\ListCommentsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Comments()); + } + + return $this->operator[Operator\Issues\ListCommentsListing::class]->call($owner, $repo, $issueNumber, $since, $perPage, $page); + } + public function createComment(string $owner, string $repo, int $issueNumber, array $params): Schema\IssueComment { if (array_key_exists(Operator\Issues\CreateComment::class, $this->operator) === false) { @@ -202,6 +265,15 @@ public function listEvents(string $owner, string $repo, int $issueNumber, int $p return $this->operator[Operator\Issues\ListEvents::class]->call($owner, $repo, $issueNumber, $perPage, $page); } + public function listEventsListing(string $owner, string $repo, int $issueNumber, int $perPage, int $page): Schema\IssueEventForIssue + { + if (array_key_exists(Operator\Issues\ListEventsListing::class, $this->operator) === false) { + $this->operator[Operator\Issues\ListEventsListing::class] = new Operator\Issues\ListEventsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Events()); + } + + return $this->operator[Operator\Issues\ListEventsListing::class]->call($owner, $repo, $issueNumber, $perPage, $page); + } + public function listLabelsOnIssue(string $owner, string $repo, int $issueNumber, int $perPage, int $page): Schema\Label|Schema\BasicError { if (array_key_exists(Operator\Issues\ListLabelsOnIssue::class, $this->operator) === false) { @@ -211,6 +283,15 @@ public function listLabelsOnIssue(string $owner, string $repo, int $issueNumber, return $this->operator[Operator\Issues\ListLabelsOnIssue::class]->call($owner, $repo, $issueNumber, $perPage, $page); } + public function listLabelsOnIssueListing(string $owner, string $repo, int $issueNumber, int $perPage, int $page): Schema\Label|Schema\BasicError + { + if (array_key_exists(Operator\Issues\ListLabelsOnIssueListing::class, $this->operator) === false) { + $this->operator[Operator\Issues\ListLabelsOnIssueListing::class] = new Operator\Issues\ListLabelsOnIssueListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Labels()); + } + + return $this->operator[Operator\Issues\ListLabelsOnIssueListing::class]->call($owner, $repo, $issueNumber, $perPage, $page); + } + public function setLabels(string $owner, string $repo, int $issueNumber, array $params): Schema\Label|Schema\BasicError { if (array_key_exists(Operator\Issues\SetLabels::class, $this->operator) === false) { @@ -274,6 +355,15 @@ public function listEventsForTimeline(string $owner, string $repo, int $issueNum return $this->operator[Operator\Issues\ListEventsForTimeline::class]->call($owner, $repo, $issueNumber, $perPage, $page); } + public function listEventsForTimelineListing(string $owner, string $repo, int $issueNumber, int $perPage, int $page): Schema\TimelineIssueEvents + { + if (array_key_exists(Operator\Issues\ListEventsForTimelineListing::class, $this->operator) === false) { + $this->operator[Operator\Issues\ListEventsForTimelineListing::class] = new Operator\Issues\ListEventsForTimelineListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Timeline()); + } + + return $this->operator[Operator\Issues\ListEventsForTimelineListing::class]->call($owner, $repo, $issueNumber, $perPage, $page); + } + public function listLabelsForRepo(string $owner, string $repo, int $perPage, int $page): Schema\Label { if (array_key_exists(Operator\Issues\ListLabelsForRepo::class, $this->operator) === false) { @@ -283,6 +373,15 @@ public function listLabelsForRepo(string $owner, string $repo, int $perPage, int return $this->operator[Operator\Issues\ListLabelsForRepo::class]->call($owner, $repo, $perPage, $page); } + public function listLabelsForRepoListing(string $owner, string $repo, int $perPage, int $page): Schema\Label + { + if (array_key_exists(Operator\Issues\ListLabelsForRepoListing::class, $this->operator) === false) { + $this->operator[Operator\Issues\ListLabelsForRepoListing::class] = new Operator\Issues\ListLabelsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Labels()); + } + + return $this->operator[Operator\Issues\ListLabelsForRepoListing::class]->call($owner, $repo, $perPage, $page); + } + public function createLabel(string $owner, string $repo, array $params): Schema\Label { if (array_key_exists(Operator\Issues\CreateLabel::class, $this->operator) === false) { @@ -328,6 +427,15 @@ public function listMilestones(string $owner, string $repo, string $state, strin return $this->operator[Operator\Issues\ListMilestones::class]->call($owner, $repo, $state, $sort, $direction, $perPage, $page); } + public function listMilestonesListing(string $owner, string $repo, string $state, string $sort, string $direction, int $perPage, int $page): Schema\Milestone + { + if (array_key_exists(Operator\Issues\ListMilestonesListing::class, $this->operator) === false) { + $this->operator[Operator\Issues\ListMilestonesListing::class] = new Operator\Issues\ListMilestonesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Milestones()); + } + + return $this->operator[Operator\Issues\ListMilestonesListing::class]->call($owner, $repo, $state, $sort, $direction, $perPage, $page); + } + public function createMilestone(string $owner, string $repo, array $params): Schema\Milestone { if (array_key_exists(Operator\Issues\CreateMilestone::class, $this->operator) === false) { @@ -373,6 +481,15 @@ public function listLabelsForMilestone(string $owner, string $repo, int $milesto return $this->operator[Operator\Issues\ListLabelsForMilestone::class]->call($owner, $repo, $milestoneNumber, $perPage, $page); } + public function listLabelsForMilestoneListing(string $owner, string $repo, int $milestoneNumber, int $perPage, int $page): Schema\Label + { + if (array_key_exists(Operator\Issues\ListLabelsForMilestoneListing::class, $this->operator) === false) { + $this->operator[Operator\Issues\ListLabelsForMilestoneListing::class] = new Operator\Issues\ListLabelsForMilestoneListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Milestones🌀MilestoneNumber🌀Labels()); + } + + return $this->operator[Operator\Issues\ListLabelsForMilestoneListing::class]->call($owner, $repo, $milestoneNumber, $perPage, $page); + } + public function listForAuthenticatedUser(string $labels, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): Schema\Issue { if (array_key_exists(Operator\Issues\ListForAuthenticatedUser::class, $this->operator) === false) { @@ -381,4 +498,13 @@ public function listForAuthenticatedUser(string $labels, string $since, string $ return $this->operator[Operator\Issues\ListForAuthenticatedUser::class]->call($labels, $since, $filter, $state, $sort, $direction, $perPage, $page); } + + public function listForAuthenticatedUserListing(string $labels, string $since, string $filter, string $state, string $sort, string $direction, int $perPage, int $page): Schema\Issue + { + if (array_key_exists(Operator\Issues\ListForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Issues\ListForAuthenticatedUserListing::class] = new Operator\Issues\ListForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Issues()); + } + + return $this->operator[Operator\Issues\ListForAuthenticatedUserListing::class]->call($labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + } } diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListAssigneesListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListAssigneesListing.php new file mode 100644 index 00000000000..7fbb1f1b8fd --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListAssigneesListing.php @@ -0,0 +1,93 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SimpleUser { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SimpleUser::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SimpleUser::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListCommentsForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListCommentsForRepoListing.php new file mode 100644 index 00000000000..b1091d71dfb --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListCommentsForRepoListing.php @@ -0,0 +1,110 @@ +owner = $owner; + $this->repo = $repo; + $this->direction = $direction; + $this->since = $since; + $this->sort = $sort; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{direction}', '{since}', '{sort}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->direction, $this->since, $this->sort, $this->perPage, $this->page], self::PATH . '?direction={direction}&since={since}&sort={sort}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\IssueComment { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\IssueComment::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\IssueComment::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListCommentsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListCommentsListing.php new file mode 100644 index 00000000000..608aed29ca6 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListCommentsListing.php @@ -0,0 +1,107 @@ +owner = $owner; + $this->repo = $repo; + $this->issueNumber = $issueNumber; + $this->since = $since; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{issue_number}', '{since}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->issueNumber, $this->since, $this->perPage, $this->page], self::PATH . '?since={since}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\IssueComment { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\IssueComment::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\IssueComment::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Gone + **/ + + case 410: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(410, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListEventsForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListEventsForRepoListing.php new file mode 100644 index 00000000000..ec7f42987ce --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListEventsForRepoListing.php @@ -0,0 +1,93 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\IssueEvent { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\IssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\IssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListEventsForTimelineListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListEventsForTimelineListing.php new file mode 100644 index 00000000000..fed6e7bd761 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListEventsForTimelineListing.php @@ -0,0 +1,293 @@ +owner = $owner; + $this->repo = $repo; + $this->issueNumber = $issueNumber; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{issue_number}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->issueNumber, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\LabeledIssueEvent|Schema\UnlabeledIssueEvent|Schema\MilestonedIssueEvent|Schema\DemilestonedIssueEvent|Schema\RenamedIssueEvent|Schema\ReviewRequestedIssueEvent|Schema\ReviewRequestRemovedIssueEvent|Schema\ReviewDismissedIssueEvent|Schema\LockedIssueEvent|Schema\AddedToProjectIssueEvent|Schema\MovedColumnInProjectIssueEvent|Schema\RemovedFromProjectIssueEvent|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\LabeledIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\LabeledIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\UnlabeledIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\UnlabeledIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaab; + } + + items_application_json_two_hundred_aaaab: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\MilestonedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\MilestonedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaac; + } + + items_application_json_two_hundred_aaaac: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\DemilestonedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\DemilestonedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaad; + } + + items_application_json_two_hundred_aaaad: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RenamedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RenamedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaae; + } + + items_application_json_two_hundred_aaaae: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ReviewRequestedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\ReviewRequestedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaf; + } + + items_application_json_two_hundred_aaaaf: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ReviewRequestRemovedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\ReviewRequestRemovedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaag; + } + + items_application_json_two_hundred_aaaag: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ReviewDismissedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\ReviewDismissedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaah; + } + + items_application_json_two_hundred_aaaah: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\LockedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\LockedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaai; + } + + items_application_json_two_hundred_aaaai: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\AddedToProjectIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\AddedToProjectIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaj; + } + + items_application_json_two_hundred_aaaaj: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\MovedColumnInProjectIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\MovedColumnInProjectIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaak; + } + + items_application_json_two_hundred_aaaak: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RemovedFromProjectIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RemovedFromProjectIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaal; + } + + items_application_json_two_hundred_aaaal: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ConvertedNoteToIssueIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\ConvertedNoteToIssueIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaam; + } + + items_application_json_two_hundred_aaaam: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\TimelineCommentEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\TimelineCommentEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaan; + } + + items_application_json_two_hundred_aaaan: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\TimelineCrossReferencedEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\TimelineCrossReferencedEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaao; + } + + items_application_json_two_hundred_aaaao: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\TimelineCommittedEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\TimelineCommittedEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaap; + } + + items_application_json_two_hundred_aaaap: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\TimelineReviewedEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\TimelineReviewedEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaq; + } + + items_application_json_two_hundred_aaaaq: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\TimelineLineCommentedEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\TimelineLineCommentedEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaar; + } + + items_application_json_two_hundred_aaaar: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\TimelineCommitCommentedEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\TimelineCommitCommentedEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaas; + } + + items_application_json_two_hundred_aaaas: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\TimelineAssignedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\TimelineAssignedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaat; + } + + items_application_json_two_hundred_aaaat: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\TimelineUnassignedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\TimelineUnassignedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaau; + } + + items_application_json_two_hundred_aaaau: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\StateChangeIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\StateChangeIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaav; + } + + items_application_json_two_hundred_aaaav: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Gone + **/ + + case 410: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(410, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListEventsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListEventsListing.php new file mode 100644 index 00000000000..f3d1723b1c1 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListEventsListing.php @@ -0,0 +1,222 @@ +owner = $owner; + $this->repo = $repo; + $this->issueNumber = $issueNumber; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{issue_number}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->issueNumber, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\LabeledIssueEvent|Schema\UnlabeledIssueEvent|Schema\AssignedIssueEvent|Schema\UnassignedIssueEvent|Schema\MilestonedIssueEvent|Schema\DemilestonedIssueEvent|Schema\RenamedIssueEvent|Schema\ReviewRequestedIssueEvent|Schema\ReviewRequestRemovedIssueEvent|Schema\ReviewDismissedIssueEvent|Schema\LockedIssueEvent|Schema\AddedToProjectIssueEvent|Schema\MovedColumnInProjectIssueEvent|Schema\RemovedFromProjectIssueEvent|Schema\ConvertedNoteToIssueIssueEvent { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\LabeledIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\LabeledIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\UnlabeledIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\UnlabeledIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaab; + } + + items_application_json_two_hundred_aaaab: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\AssignedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\AssignedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaac; + } + + items_application_json_two_hundred_aaaac: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\UnassignedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\UnassignedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaad; + } + + items_application_json_two_hundred_aaaad: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\MilestonedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\MilestonedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaae; + } + + items_application_json_two_hundred_aaaae: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\DemilestonedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\DemilestonedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaf; + } + + items_application_json_two_hundred_aaaaf: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RenamedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RenamedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaag; + } + + items_application_json_two_hundred_aaaag: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ReviewRequestedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\ReviewRequestedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaah; + } + + items_application_json_two_hundred_aaaah: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ReviewRequestRemovedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\ReviewRequestRemovedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaai; + } + + items_application_json_two_hundred_aaaai: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ReviewDismissedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\ReviewDismissedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaj; + } + + items_application_json_two_hundred_aaaaj: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\LockedIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\LockedIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaak; + } + + items_application_json_two_hundred_aaaak: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\AddedToProjectIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\AddedToProjectIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaal; + } + + items_application_json_two_hundred_aaaal: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\MovedColumnInProjectIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\MovedColumnInProjectIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaam; + } + + items_application_json_two_hundred_aaaam: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RemovedFromProjectIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RemovedFromProjectIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaan; + } + + items_application_json_two_hundred_aaaan: + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ConvertedNoteToIssueIssueEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\ConvertedNoteToIssueIssueEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaao; + } + + items_application_json_two_hundred_aaaao: + throw $error; + }); + /** + * Gone + **/ + + case 410: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(410, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListForAuthenticatedUserListing.php new file mode 100644 index 00000000000..ad46c05c79a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListForAuthenticatedUserListing.php @@ -0,0 +1,113 @@ +labels = $labels; + $this->since = $since; + $this->filter = $filter; + $this->state = $state; + $this->sort = $sort; + $this->direction = $direction; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{labels}', '{since}', '{filter}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->labels, $this->since, $this->filter, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], self::PATH . '?labels={labels}&since={since}&filter={filter}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Issue { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Issue::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Issue::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListForOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListForOrgListing.php new file mode 100644 index 00000000000..f619a6f49e2 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListForOrgListing.php @@ -0,0 +1,108 @@ +org = $org; + $this->labels = $labels; + $this->since = $since; + $this->filter = $filter; + $this->state = $state; + $this->sort = $sort; + $this->direction = $direction; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{labels}', '{since}', '{filter}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->org, $this->labels, $this->since, $this->filter, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], self::PATH . '?labels={labels}&since={since}&filter={filter}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Issue { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Issue::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Issue::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListForRepoListing.php new file mode 100644 index 00000000000..efc374da923 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListForRepoListing.php @@ -0,0 +1,136 @@ +owner = $owner; + $this->repo = $repo; + $this->milestone = $milestone; + $this->assignee = $assignee; + $this->creator = $creator; + $this->mentioned = $mentioned; + $this->labels = $labels; + $this->since = $since; + $this->state = $state; + $this->sort = $sort; + $this->direction = $direction; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{milestone}', '{assignee}', '{creator}', '{mentioned}', '{labels}', '{since}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->milestone, $this->assignee, $this->creator, $this->mentioned, $this->labels, $this->since, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], self::PATH . '?milestone={milestone}&assignee={assignee}&creator={creator}&mentioned={mentioned}&labels={labels}&since={since}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + } + + /** @return Observable|Schema\BasicError */ + public function createResponse(ResponseInterface $response): Observable|Schema\BasicError + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Issue { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Issue::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Issue::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Moved permanently + **/ + + case 301: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\BasicError::class, $body); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListLabelsForMilestoneListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListLabelsForMilestoneListing.php new file mode 100644 index 00000000000..372ad74cb71 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListLabelsForMilestoneListing.php @@ -0,0 +1,87 @@ +owner = $owner; + $this->repo = $repo; + $this->milestoneNumber = $milestoneNumber; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{milestone_number}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->milestoneNumber, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Label { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Label::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Label::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListLabelsForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListLabelsForRepoListing.php new file mode 100644 index 00000000000..bf374133404 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListLabelsForRepoListing.php @@ -0,0 +1,93 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Label { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Label::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Label::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListLabelsOnIssueListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListLabelsOnIssueListing.php new file mode 100644 index 00000000000..de9781d445a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListLabelsOnIssueListing.php @@ -0,0 +1,112 @@ +owner = $owner; + $this->repo = $repo; + $this->issueNumber = $issueNumber; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{issue_number}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->issueNumber, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|Schema\BasicError */ + public function createResponse(ResponseInterface $response): Observable|Schema\BasicError + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Label { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Label::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Label::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Moved permanently + **/ + + case 301: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\BasicError::class, $body); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Gone + **/ + + case 410: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(410, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListListing.php new file mode 100644 index 00000000000..8681187b58d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListListing.php @@ -0,0 +1,121 @@ +labels = $labels; + $this->since = $since; + $this->filter = $filter; + $this->state = $state; + $this->sort = $sort; + $this->direction = $direction; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{labels}', '{since}', '{collab}', '{orgs}', '{owned}', '{pulls}', '{filter}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->labels, $this->since, $this->collab, $this->orgs, $this->owned, $this->pulls, $this->filter, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], self::PATH . '?labels={labels}&since={since}&collab={collab}&orgs={orgs}&owned={owned}&pulls={pulls}&filter={filter}&state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Issue { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Issue::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Issue::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListMilestonesListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListMilestonesListing.php new file mode 100644 index 00000000000..6cacdc6e691 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Issues/ListMilestonesListing.php @@ -0,0 +1,102 @@ +owner = $owner; + $this->repo = $repo; + $this->state = $state; + $this->sort = $sort; + $this->direction = $direction; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{state}', '{sort}', '{direction}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->state, $this->sort, $this->direction, $this->perPage, $this->page], self::PATH . '?state={state}&sort={sort}&direction={direction}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Milestone { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Milestone::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Milestone::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Licenses.php b/clients/GitHubEnterprise-3.4/src/Operation/Licenses.php index 56f36656eff..0beaf2326b5 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/Licenses.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/Licenses.php @@ -30,6 +30,15 @@ public function getAllCommonlyUsed(bool $featured, int $perPage, int $page): Sch return $this->operator[Operator\Licenses\GetAllCommonlyUsed::class]->call($featured, $perPage, $page); } + public function getAllCommonlyUsedListing(bool $featured, int $perPage, int $page): Schema\LicenseSimple + { + if (array_key_exists(Operator\Licenses\GetAllCommonlyUsedListing::class, $this->operator) === false) { + $this->operator[Operator\Licenses\GetAllCommonlyUsedListing::class] = new Operator\Licenses\GetAllCommonlyUsedListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Licenses()); + } + + return $this->operator[Operator\Licenses\GetAllCommonlyUsedListing::class]->call($featured, $perPage, $page); + } + public function get(string $license): Schema\License { if (array_key_exists(Operator\Licenses\Get::class, $this->operator) === false) { diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Licenses/GetAllCommonlyUsedListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Licenses/GetAllCommonlyUsedListing.php new file mode 100644 index 00000000000..0bee4d83806 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Licenses/GetAllCommonlyUsedListing.php @@ -0,0 +1,86 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{featured}', '{per_page}', '{page}'], [$this->featured, $this->perPage, $this->page], self::PATH . '?featured={featured}&per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\LicenseSimple { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\LicenseSimple::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\LicenseSimple::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Migrations.php b/clients/GitHubEnterprise-3.4/src/Operation/Migrations.php index 4b1f6144a9e..2d91e7b4177 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/Migrations.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/Migrations.php @@ -31,6 +31,15 @@ public function listForOrg(string $org, array $exclude, int $perPage, int $page) return $this->operator[Operator\Migrations\ListForOrg::class]->call($org, $exclude, $perPage, $page); } + public function listForOrgListing(string $org, array $exclude, int $perPage, int $page): Schema\Migration + { + if (array_key_exists(Operator\Migrations\ListForOrgListing::class, $this->operator) === false) { + $this->operator[Operator\Migrations\ListForOrgListing::class] = new Operator\Migrations\ListForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Migrations()); + } + + return $this->operator[Operator\Migrations\ListForOrgListing::class]->call($org, $exclude, $perPage, $page); + } + public function startForOrg(string $org, array $params): Schema\Migration { if (array_key_exists(Operator\Migrations\StartForOrg::class, $this->operator) === false) { @@ -94,6 +103,15 @@ public function listReposForOrg(string $org, int $migrationId, int $perPage, int return $this->operator[Operator\Migrations\ListReposForOrg::class]->call($org, $migrationId, $perPage, $page); } + public function listReposForOrgListing(string $org, int $migrationId, int $perPage, int $page): Schema\MinimalRepository + { + if (array_key_exists(Operator\Migrations\ListReposForOrgListing::class, $this->operator) === false) { + $this->operator[Operator\Migrations\ListReposForOrgListing::class] = new Operator\Migrations\ListReposForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Migrations🌀MigrationId🌀Repositories()); + } + + return $this->operator[Operator\Migrations\ListReposForOrgListing::class]->call($org, $migrationId, $perPage, $page); + } + public function listForAuthenticatedUser(int $perPage, int $page): Schema\Migration { if (array_key_exists(Operator\Migrations\ListForAuthenticatedUser::class, $this->operator) === false) { @@ -103,6 +121,15 @@ public function listForAuthenticatedUser(int $perPage, int $page): Schema\Migrat return $this->operator[Operator\Migrations\ListForAuthenticatedUser::class]->call($perPage, $page); } + public function listForAuthenticatedUserListing(int $perPage, int $page): Schema\Migration + { + if (array_key_exists(Operator\Migrations\ListForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Migrations\ListForAuthenticatedUserListing::class] = new Operator\Migrations\ListForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Migrations()); + } + + return $this->operator[Operator\Migrations\ListForAuthenticatedUserListing::class]->call($perPage, $page); + } + public function startForAuthenticatedUser(array $params): Schema\Migration { if (array_key_exists(Operator\Migrations\StartForAuthenticatedUser::class, $this->operator) === false) { @@ -129,4 +156,13 @@ public function listReposForAuthenticatedUser(int $migrationId, int $perPage, in return $this->operator[Operator\Migrations\ListReposForAuthenticatedUser::class]->call($migrationId, $perPage, $page); } + + public function listReposForAuthenticatedUserListing(int $migrationId, int $perPage, int $page): Schema\MinimalRepository + { + if (array_key_exists(Operator\Migrations\ListReposForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Migrations\ListReposForAuthenticatedUserListing::class] = new Operator\Migrations\ListReposForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Migrations🌀MigrationId🌀Repositories()); + } + + return $this->operator[Operator\Migrations\ListReposForAuthenticatedUserListing::class]->call($migrationId, $perPage, $page); + } } diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListForAuthenticatedUserListing.php new file mode 100644 index 00000000000..3242a368849 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListForAuthenticatedUserListing.php @@ -0,0 +1,103 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}'], [$this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Migration { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Migration::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Migration::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListForOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListForOrgListing.php new file mode 100644 index 00000000000..77aee425bfd --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListForOrgListing.php @@ -0,0 +1,84 @@ +org = $org; + $this->exclude = $exclude; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{exclude}', '{per_page}', '{page}'], [$this->org, $this->exclude, $this->perPage, $this->page], self::PATH . '?exclude={exclude}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Migration { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Migration::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Migration::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListReposForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListReposForAuthenticatedUserListing.php new file mode 100644 index 00000000000..20fd0e30f56 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListReposForAuthenticatedUserListing.php @@ -0,0 +1,90 @@ +migrationId = $migrationId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{migration_id}', '{per_page}', '{page}'], [$this->migrationId, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\MinimalRepository { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\MinimalRepository::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\MinimalRepository::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListReposForOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListReposForOrgListing.php new file mode 100644 index 00000000000..5c75a809719 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Migrations/ListReposForOrgListing.php @@ -0,0 +1,93 @@ +org = $org; + $this->migrationId = $migrationId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{migration_id}', '{per_page}', '{page}'], [$this->org, $this->migrationId, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\MinimalRepository { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\MinimalRepository::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\MinimalRepository::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/OauthAuthorizations.php b/clients/GitHubEnterprise-3.4/src/Operation/OauthAuthorizations.php index 2b766b5de3d..688a8357d81 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/OauthAuthorizations.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/OauthAuthorizations.php @@ -31,6 +31,15 @@ public function listGrants(string $clientId, int $perPage, int $page): Schema\Ap return $this->operator[Operator\OauthAuthorizations\ListGrants::class]->call($clientId, $perPage, $page); } + public function listGrantsListing(string $clientId, int $perPage, int $page): Schema\ApplicationGrant + { + if (array_key_exists(Operator\OauthAuthorizations\ListGrantsListing::class, $this->operator) === false) { + $this->operator[Operator\OauthAuthorizations\ListGrantsListing::class] = new Operator\OauthAuthorizations\ListGrantsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Applications🌀Grants()); + } + + return $this->operator[Operator\OauthAuthorizations\ListGrantsListing::class]->call($clientId, $perPage, $page); + } + public function getGrant(int $grantId): Schema\ApplicationGrant { if (array_key_exists(Operator\OauthAuthorizations\GetGrant::class, $this->operator) === false) { @@ -58,6 +67,15 @@ public function listAuthorizations(string $clientId, int $perPage, int $page): S return $this->operator[Operator\OauthAuthorizations\ListAuthorizations::class]->call($clientId, $perPage, $page); } + public function listAuthorizationsListing(string $clientId, int $perPage, int $page): Schema\Authorization + { + if (array_key_exists(Operator\OauthAuthorizations\ListAuthorizationsListing::class, $this->operator) === false) { + $this->operator[Operator\OauthAuthorizations\ListAuthorizationsListing::class] = new Operator\OauthAuthorizations\ListAuthorizationsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Authorizations()); + } + + return $this->operator[Operator\OauthAuthorizations\ListAuthorizationsListing::class]->call($clientId, $perPage, $page); + } + public function createAuthorization(array $params): Schema\Authorization { if (array_key_exists(Operator\OauthAuthorizations\CreateAuthorization::class, $this->operator) === false) { diff --git a/clients/GitHubEnterprise-3.4/src/Operation/OauthAuthorizations/ListAuthorizationsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/OauthAuthorizations/ListAuthorizationsListing.php new file mode 100644 index 00000000000..b262683bd9c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/OauthAuthorizations/ListAuthorizationsListing.php @@ -0,0 +1,114 @@ +clientId = $clientId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{client_id}', '{per_page}', '{page}'], [$this->clientId, $this->perPage, $this->page], self::PATH . '?client_id={client_id}&per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Authorization { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Authorization::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Authorization::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/OauthAuthorizations/ListGrantsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/OauthAuthorizations/ListGrantsListing.php new file mode 100644 index 00000000000..a8117e3ba85 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/OauthAuthorizations/ListGrantsListing.php @@ -0,0 +1,114 @@ +clientId = $clientId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{client_id}', '{per_page}', '{page}'], [$this->clientId, $this->perPage, $this->page], self::PATH . '?client_id={client_id}&per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\ApplicationGrant { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ApplicationGrant::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\ApplicationGrant::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Orgs.php b/clients/GitHubEnterprise-3.4/src/Operation/Orgs.php index cf1d691c3e0..3cd42f1061a 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/Orgs.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/Orgs.php @@ -67,6 +67,15 @@ public function getAuditLog(string $org, string $phrase, string $include, string return $this->operator[Operator\Orgs\GetAuditLog::class]->call($org, $phrase, $include, $after, $before, $order, $perPage, $page); } + public function getAuditLogListing(string $org, string $phrase, string $include, string $after, string $before, string $order, int $perPage, int $page): Schema\AuditLogEvent + { + if (array_key_exists(Operator\Orgs\GetAuditLogListing::class, $this->operator) === false) { + $this->operator[Operator\Orgs\GetAuditLogListing::class] = new Operator\Orgs\GetAuditLogListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀AuditLog()); + } + + return $this->operator[Operator\Orgs\GetAuditLogListing::class]->call($org, $phrase, $include, $after, $before, $order, $perPage, $page); + } + public function listWebhooks(string $org, int $perPage, int $page): Schema\OrgHook { if (array_key_exists(Operator\Orgs\ListWebhooks::class, $this->operator) === false) { @@ -76,6 +85,15 @@ public function listWebhooks(string $org, int $perPage, int $page): Schema\OrgHo return $this->operator[Operator\Orgs\ListWebhooks::class]->call($org, $perPage, $page); } + public function listWebhooksListing(string $org, int $perPage, int $page): Schema\OrgHook + { + if (array_key_exists(Operator\Orgs\ListWebhooksListing::class, $this->operator) === false) { + $this->operator[Operator\Orgs\ListWebhooksListing::class] = new Operator\Orgs\ListWebhooksListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Hooks()); + } + + return $this->operator[Operator\Orgs\ListWebhooksListing::class]->call($org, $perPage, $page); + } + public function createWebhook(string $org, array $params): Schema\OrgHook { if (array_key_exists(Operator\Orgs\CreateWebhook::class, $this->operator) === false) { @@ -184,6 +202,15 @@ public function listMembers(string $org, string $filter, string $role, int $perP return $this->operator[Operator\Orgs\ListMembers::class]->call($org, $filter, $role, $perPage, $page); } + public function listMembersListing(string $org, string $filter, string $role, int $perPage, int $page): Schema\SimpleUser + { + if (array_key_exists(Operator\Orgs\ListMembersListing::class, $this->operator) === false) { + $this->operator[Operator\Orgs\ListMembersListing::class] = new Operator\Orgs\ListMembersListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Members()); + } + + return $this->operator[Operator\Orgs\ListMembersListing::class]->call($org, $filter, $role, $perPage, $page); + } + public function checkMembershipForUser(string $org, string $username): ResponseInterface { if (array_key_exists(Operator\Orgs\CheckMembershipForUser::class, $this->operator) === false) { @@ -238,6 +265,15 @@ public function listOutsideCollaborators(string $org, string $filter, int $perPa return $this->operator[Operator\Orgs\ListOutsideCollaborators::class]->call($org, $filter, $perPage, $page); } + public function listOutsideCollaboratorsListing(string $org, string $filter, int $perPage, int $page): Schema\SimpleUser + { + if (array_key_exists(Operator\Orgs\ListOutsideCollaboratorsListing::class, $this->operator) === false) { + $this->operator[Operator\Orgs\ListOutsideCollaboratorsListing::class] = new Operator\Orgs\ListOutsideCollaboratorsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀OutsideCollaborators()); + } + + return $this->operator[Operator\Orgs\ListOutsideCollaboratorsListing::class]->call($org, $filter, $perPage, $page); + } + public function convertMemberToOutsideCollaborator(string $org, string $username, array $params): Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted { if (array_key_exists(Operator\Orgs\ConvertMemberToOutsideCollaborator::class, $this->operator) === false) { @@ -265,6 +301,15 @@ public function listPublicMembers(string $org, int $perPage, int $page): Schema\ return $this->operator[Operator\Orgs\ListPublicMembers::class]->call($org, $perPage, $page); } + public function listPublicMembersListing(string $org, int $perPage, int $page): Schema\SimpleUser + { + if (array_key_exists(Operator\Orgs\ListPublicMembersListing::class, $this->operator) === false) { + $this->operator[Operator\Orgs\ListPublicMembersListing::class] = new Operator\Orgs\ListPublicMembersListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀PublicMembers()); + } + + return $this->operator[Operator\Orgs\ListPublicMembersListing::class]->call($org, $perPage, $page); + } + public function checkPublicMembershipForUser(string $org, string $username): ResponseInterface { if (array_key_exists(Operator\Orgs\CheckPublicMembershipForUser::class, $this->operator) === false) { @@ -301,6 +346,15 @@ public function listMembershipsForAuthenticatedUser(string $state, int $perPage, return $this->operator[Operator\Orgs\ListMembershipsForAuthenticatedUser::class]->call($state, $perPage, $page); } + public function listMembershipsForAuthenticatedUserListing(string $state, int $perPage, int $page): Schema\OrgMembership + { + if (array_key_exists(Operator\Orgs\ListMembershipsForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Orgs\ListMembershipsForAuthenticatedUserListing::class] = new Operator\Orgs\ListMembershipsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Memberships🌀Orgs()); + } + + return $this->operator[Operator\Orgs\ListMembershipsForAuthenticatedUserListing::class]->call($state, $perPage, $page); + } + public function getMembershipForAuthenticatedUser(string $org): Schema\OrgMembership { if (array_key_exists(Operator\Orgs\GetMembershipForAuthenticatedUser::class, $this->operator) === false) { @@ -328,6 +382,15 @@ public function listForAuthenticatedUser(int $perPage, int $page): Schema\Organi return $this->operator[Operator\Orgs\ListForAuthenticatedUser::class]->call($perPage, $page); } + public function listForAuthenticatedUserListing(int $perPage, int $page): Schema\OrganizationSimple + { + if (array_key_exists(Operator\Orgs\ListForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Orgs\ListForAuthenticatedUserListing::class] = new Operator\Orgs\ListForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Orgs()); + } + + return $this->operator[Operator\Orgs\ListForAuthenticatedUserListing::class]->call($perPage, $page); + } + public function listForUser(string $username, int $perPage, int $page): Schema\OrganizationSimple { if (array_key_exists(Operator\Orgs\ListForUser::class, $this->operator) === false) { @@ -336,4 +399,13 @@ public function listForUser(string $username, int $perPage, int $page): Schema\O return $this->operator[Operator\Orgs\ListForUser::class]->call($username, $perPage, $page); } + + public function listForUserListing(string $username, int $perPage, int $page): Schema\OrganizationSimple + { + if (array_key_exists(Operator\Orgs\ListForUserListing::class, $this->operator) === false) { + $this->operator[Operator\Orgs\ListForUserListing::class] = new Operator\Orgs\ListForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Orgs()); + } + + return $this->operator[Operator\Orgs\ListForUserListing::class]->call($username, $perPage, $page); + } } diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Orgs/GetAuditLogListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/GetAuditLogListing.php new file mode 100644 index 00000000000..d5d8bdc7eb2 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/GetAuditLogListing.php @@ -0,0 +1,104 @@ +org = $org; + $this->phrase = $phrase; + $this->include = $include; + $this->after = $after; + $this->before = $before; + $this->order = $order; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{phrase}', '{include}', '{after}', '{before}', '{order}', '{per_page}', '{page}'], [$this->org, $this->phrase, $this->include, $this->after, $this->before, $this->order, $this->perPage, $this->page], self::PATH . '?phrase={phrase}&include={include}&after={after}&before={before}&order={order}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\AuditLogEvent { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\AuditLogEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\AuditLogEvent::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListForAuthenticatedUserListing.php new file mode 100644 index 00000000000..a8eb2ccb1b3 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListForAuthenticatedUserListing.php @@ -0,0 +1,103 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}'], [$this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\OrganizationSimple { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\OrganizationSimple::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\OrganizationSimple::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListForUserListing.php new file mode 100644 index 00000000000..e937dfb2f2f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListForUserListing.php @@ -0,0 +1,81 @@ +username = $username; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{username}', '{per_page}', '{page}'], [$this->username, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\OrganizationSimple { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\OrganizationSimple::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\OrganizationSimple::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListMembersListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListMembersListing.php new file mode 100644 index 00000000000..583afa837fb --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListMembersListing.php @@ -0,0 +1,96 @@ +org = $org; + $this->filter = $filter; + $this->role = $role; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{filter}', '{role}', '{per_page}', '{page}'], [$this->org, $this->filter, $this->role, $this->perPage, $this->page], self::PATH . '?filter={filter}&role={role}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SimpleUser { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SimpleUser::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SimpleUser::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListMembershipsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListMembershipsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..9100c0bd46c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListMembershipsForAuthenticatedUserListing.php @@ -0,0 +1,114 @@ +state = $state; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{state}', '{per_page}', '{page}'], [$this->state, $this->perPage, $this->page], self::PATH . '?state={state}&per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\OrgMembership { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\OrgMembership::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\OrgMembership::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListOutsideCollaboratorsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListOutsideCollaboratorsListing.php new file mode 100644 index 00000000000..52806c0f675 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListOutsideCollaboratorsListing.php @@ -0,0 +1,84 @@ +org = $org; + $this->filter = $filter; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{filter}', '{per_page}', '{page}'], [$this->org, $this->filter, $this->perPage, $this->page], self::PATH . '?filter={filter}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SimpleUser { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SimpleUser::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SimpleUser::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListPublicMembersListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListPublicMembersListing.php new file mode 100644 index 00000000000..a3d24f7ff02 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListPublicMembersListing.php @@ -0,0 +1,81 @@ +org = $org; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{per_page}', '{page}'], [$this->org, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SimpleUser { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SimpleUser::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SimpleUser::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListWebhooksListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListWebhooksListing.php new file mode 100644 index 00000000000..f0966309fbc --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Orgs/ListWebhooksListing.php @@ -0,0 +1,90 @@ +org = $org; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{per_page}', '{page}'], [$this->org, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\OrgHook { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\OrgHook::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\OrgHook::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Projects.php b/clients/GitHubEnterprise-3.4/src/Operation/Projects.php index 21c1bb17c79..ac07d6c9596 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/Projects.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/Projects.php @@ -31,6 +31,15 @@ public function listForOrg(string $org, string $state, int $perPage, int $page): return $this->operator[Operator\Projects\ListForOrg::class]->call($org, $state, $perPage, $page); } + public function listForOrgListing(string $org, string $state, int $perPage, int $page): Schema\Project + { + if (array_key_exists(Operator\Projects\ListForOrgListing::class, $this->operator) === false) { + $this->operator[Operator\Projects\ListForOrgListing::class] = new Operator\Projects\ListForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Projects()); + } + + return $this->operator[Operator\Projects\ListForOrgListing::class]->call($org, $state, $perPage, $page); + } + public function createForOrg(string $org, array $params): Schema\Project { if (array_key_exists(Operator\Projects\CreateForOrg::class, $this->operator) === false) { @@ -112,6 +121,15 @@ public function listCards(int $columnId, string $archivedState, int $perPage, in return $this->operator[Operator\Projects\ListCards::class]->call($columnId, $archivedState, $perPage, $page); } + public function listCardsListing(int $columnId, string $archivedState, int $perPage, int $page): Schema\ProjectCard + { + if (array_key_exists(Operator\Projects\ListCardsListing::class, $this->operator) === false) { + $this->operator[Operator\Projects\ListCardsListing::class] = new Operator\Projects\ListCardsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Projects🌀Columns🌀ColumnId🌀Cards()); + } + + return $this->operator[Operator\Projects\ListCardsListing::class]->call($columnId, $archivedState, $perPage, $page); + } + public function createCard(int $columnId, array $params): Schema\ProjectCard { if (array_key_exists(Operator\Projects\CreateCard::class, $this->operator) === false) { @@ -166,6 +184,15 @@ public function listCollaborators(int $projectId, string $affiliation, int $perP return $this->operator[Operator\Projects\ListCollaborators::class]->call($projectId, $affiliation, $perPage, $page); } + public function listCollaboratorsListing(int $projectId, string $affiliation, int $perPage, int $page): Schema\SimpleUser + { + if (array_key_exists(Operator\Projects\ListCollaboratorsListing::class, $this->operator) === false) { + $this->operator[Operator\Projects\ListCollaboratorsListing::class] = new Operator\Projects\ListCollaboratorsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Projects🌀ProjectId🌀Collaborators()); + } + + return $this->operator[Operator\Projects\ListCollaboratorsListing::class]->call($projectId, $affiliation, $perPage, $page); + } + public function addCollaborator(int $projectId, string $username, array $params): ResponseInterface { if (array_key_exists(Operator\Projects\AddCollaborator::class, $this->operator) === false) { @@ -202,6 +229,15 @@ public function listColumns(int $projectId, int $perPage, int $page): Schema\Pro return $this->operator[Operator\Projects\ListColumns::class]->call($projectId, $perPage, $page); } + public function listColumnsListing(int $projectId, int $perPage, int $page): Schema\ProjectColumn + { + if (array_key_exists(Operator\Projects\ListColumnsListing::class, $this->operator) === false) { + $this->operator[Operator\Projects\ListColumnsListing::class] = new Operator\Projects\ListColumnsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Projects🌀ProjectId🌀Columns()); + } + + return $this->operator[Operator\Projects\ListColumnsListing::class]->call($projectId, $perPage, $page); + } + public function createColumn(int $projectId, array $params): Schema\ProjectColumn { if (array_key_exists(Operator\Projects\CreateColumn::class, $this->operator) === false) { @@ -220,6 +256,15 @@ public function listForRepo(string $owner, string $repo, string $state, int $per return $this->operator[Operator\Projects\ListForRepo::class]->call($owner, $repo, $state, $perPage, $page); } + public function listForRepoListing(string $owner, string $repo, string $state, int $perPage, int $page): Schema\Project + { + if (array_key_exists(Operator\Projects\ListForRepoListing::class, $this->operator) === false) { + $this->operator[Operator\Projects\ListForRepoListing::class] = new Operator\Projects\ListForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Projects()); + } + + return $this->operator[Operator\Projects\ListForRepoListing::class]->call($owner, $repo, $state, $perPage, $page); + } + public function createForRepo(string $owner, string $repo, array $params): Schema\Project { if (array_key_exists(Operator\Projects\CreateForRepo::class, $this->operator) === false) { @@ -246,4 +291,13 @@ public function listForUser(string $username, string $state, int $perPage, int $ return $this->operator[Operator\Projects\ListForUser::class]->call($username, $state, $perPage, $page); } + + public function listForUserListing(string $username, string $state, int $perPage, int $page): Schema\Project + { + if (array_key_exists(Operator\Projects\ListForUserListing::class, $this->operator) === false) { + $this->operator[Operator\Projects\ListForUserListing::class] = new Operator\Projects\ListForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Projects()); + } + + return $this->operator[Operator\Projects\ListForUserListing::class]->call($username, $state, $perPage, $page); + } } diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListCardsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListCardsListing.php new file mode 100644 index 00000000000..69b85da8714 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListCardsListing.php @@ -0,0 +1,109 @@ +columnId = $columnId; + $this->archivedState = $archivedState; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{column_id}', '{archived_state}', '{per_page}', '{page}'], [$this->columnId, $this->archivedState, $this->perPage, $this->page], self::PATH . '?archived_state={archived_state}&per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\ProjectCard { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ProjectCard::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\ProjectCard::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListCollaboratorsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListCollaboratorsListing.php new file mode 100644 index 00000000000..6fcf0c5c5ea --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListCollaboratorsListing.php @@ -0,0 +1,125 @@ +projectId = $projectId; + $this->affiliation = $affiliation; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{project_id}', '{affiliation}', '{per_page}', '{page}'], [$this->projectId, $this->affiliation, $this->perPage, $this->page], self::PATH . '?affiliation={affiliation}&per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SimpleUser { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SimpleUser::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SimpleUser::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListColumnsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListColumnsListing.php new file mode 100644 index 00000000000..9d2af42ff1f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListColumnsListing.php @@ -0,0 +1,106 @@ +projectId = $projectId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{project_id}', '{per_page}', '{page}'], [$this->projectId, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\ProjectColumn { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ProjectColumn::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\ProjectColumn::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListForOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListForOrgListing.php new file mode 100644 index 00000000000..667a7fa964e --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListForOrgListing.php @@ -0,0 +1,93 @@ +org = $org; + $this->state = $state; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{state}', '{per_page}', '{page}'], [$this->org, $this->state, $this->perPage, $this->page], self::PATH . '?state={state}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Project { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Project::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Project::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationErrorSimple::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationErrorSimple(422, $this->hydrator->hydrateObject(Schema\ValidationErrorSimple::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListForRepoListing.php new file mode 100644 index 00000000000..4051e9bce46 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListForRepoListing.php @@ -0,0 +1,128 @@ +owner = $owner; + $this->repo = $repo; + $this->state = $state; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{state}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->state, $this->perPage, $this->page], self::PATH . '?state={state}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Project { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Project::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Project::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Gone + **/ + + case 410: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(410, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationErrorSimple::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationErrorSimple(422, $this->hydrator->hydrateObject(Schema\ValidationErrorSimple::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListForUserListing.php new file mode 100644 index 00000000000..dfb3ad6c0de --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Projects/ListForUserListing.php @@ -0,0 +1,93 @@ +username = $username; + $this->state = $state; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{username}', '{state}', '{per_page}', '{page}'], [$this->username, $this->state, $this->perPage, $this->page], self::PATH . '?state={state}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Project { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Project::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Project::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Pulls.php b/clients/GitHubEnterprise-3.4/src/Operation/Pulls.php index 4b8287a19c3..3f6375f225d 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/Pulls.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/Pulls.php @@ -31,6 +31,15 @@ public function list(string $owner, string $repo, string $head, string $base, st return $this->operator[Operator\Pulls\List_::class]->call($owner, $repo, $head, $base, $direction, $state, $sort, $perPage, $page); } + public function listListing(string $owner, string $repo, string $head, string $base, string $direction, string $state, string $sort, int $perPage, int $page): Schema\PullRequestSimple + { + if (array_key_exists(Operator\Pulls\ListListing::class, $this->operator) === false) { + $this->operator[Operator\Pulls\ListListing::class] = new Operator\Pulls\ListListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls()); + } + + return $this->operator[Operator\Pulls\ListListing::class]->call($owner, $repo, $head, $base, $direction, $state, $sort, $perPage, $page); + } + public function create(string $owner, string $repo, array $params): Schema\PullRequest { if (array_key_exists(Operator\Pulls\Create::class, $this->operator) === false) { @@ -49,6 +58,15 @@ public function listReviewCommentsForRepo(string $owner, string $repo, string $s return $this->operator[Operator\Pulls\ListReviewCommentsForRepo::class]->call($owner, $repo, $sort, $direction, $since, $perPage, $page); } + public function listReviewCommentsForRepoListing(string $owner, string $repo, string $sort, string $direction, string $since, int $perPage, int $page): Schema\PullRequestReviewComment + { + if (array_key_exists(Operator\Pulls\ListReviewCommentsForRepoListing::class, $this->operator) === false) { + $this->operator[Operator\Pulls\ListReviewCommentsForRepoListing::class] = new Operator\Pulls\ListReviewCommentsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀Comments()); + } + + return $this->operator[Operator\Pulls\ListReviewCommentsForRepoListing::class]->call($owner, $repo, $sort, $direction, $since, $perPage, $page); + } + public function getReviewComment(string $owner, string $repo, int $commentId): Schema\PullRequestReviewComment { if (array_key_exists(Operator\Pulls\GetReviewComment::class, $this->operator) === false) { @@ -103,6 +121,15 @@ public function listReviewComments(string $owner, string $repo, int $pullNumber, return $this->operator[Operator\Pulls\ListReviewComments::class]->call($owner, $repo, $pullNumber, $direction, $since, $sort, $perPage, $page); } + public function listReviewCommentsListing(string $owner, string $repo, int $pullNumber, string $direction, string $since, string $sort, int $perPage, int $page): Schema\PullRequestReviewComment + { + if (array_key_exists(Operator\Pulls\ListReviewCommentsListing::class, $this->operator) === false) { + $this->operator[Operator\Pulls\ListReviewCommentsListing::class] = new Operator\Pulls\ListReviewCommentsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Comments()); + } + + return $this->operator[Operator\Pulls\ListReviewCommentsListing::class]->call($owner, $repo, $pullNumber, $direction, $since, $sort, $perPage, $page); + } + public function createReviewComment(string $owner, string $repo, int $pullNumber, array $params): Schema\PullRequestReviewComment { if (array_key_exists(Operator\Pulls\CreateReviewComment::class, $this->operator) === false) { @@ -130,6 +157,15 @@ public function listCommits(string $owner, string $repo, int $pullNumber, int $p return $this->operator[Operator\Pulls\ListCommits::class]->call($owner, $repo, $pullNumber, $perPage, $page); } + public function listCommitsListing(string $owner, string $repo, int $pullNumber, int $perPage, int $page): Schema\Commit + { + if (array_key_exists(Operator\Pulls\ListCommitsListing::class, $this->operator) === false) { + $this->operator[Operator\Pulls\ListCommitsListing::class] = new Operator\Pulls\ListCommitsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Commits()); + } + + return $this->operator[Operator\Pulls\ListCommitsListing::class]->call($owner, $repo, $pullNumber, $perPage, $page); + } + public function listFiles(string $owner, string $repo, int $pullNumber, int $perPage, int $page): Schema\DiffEntry { if (array_key_exists(Operator\Pulls\ListFiles::class, $this->operator) === false) { @@ -139,6 +175,15 @@ public function listFiles(string $owner, string $repo, int $pullNumber, int $per return $this->operator[Operator\Pulls\ListFiles::class]->call($owner, $repo, $pullNumber, $perPage, $page); } + public function listFilesListing(string $owner, string $repo, int $pullNumber, int $perPage, int $page): Schema\DiffEntry + { + if (array_key_exists(Operator\Pulls\ListFilesListing::class, $this->operator) === false) { + $this->operator[Operator\Pulls\ListFilesListing::class] = new Operator\Pulls\ListFilesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Files()); + } + + return $this->operator[Operator\Pulls\ListFilesListing::class]->call($owner, $repo, $pullNumber, $perPage, $page); + } + public function checkIfMerged(string $owner, string $repo, int $pullNumber): ResponseInterface { if (array_key_exists(Operator\Pulls\CheckIfMerged::class, $this->operator) === false) { @@ -193,6 +238,15 @@ public function listReviews(string $owner, string $repo, int $pullNumber, int $p return $this->operator[Operator\Pulls\ListReviews::class]->call($owner, $repo, $pullNumber, $perPage, $page); } + public function listReviewsListing(string $owner, string $repo, int $pullNumber, int $perPage, int $page): Schema\PullRequestReview + { + if (array_key_exists(Operator\Pulls\ListReviewsListing::class, $this->operator) === false) { + $this->operator[Operator\Pulls\ListReviewsListing::class] = new Operator\Pulls\ListReviewsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Reviews()); + } + + return $this->operator[Operator\Pulls\ListReviewsListing::class]->call($owner, $repo, $pullNumber, $perPage, $page); + } + public function createReview(string $owner, string $repo, int $pullNumber, array $params): Schema\PullRequestReview { if (array_key_exists(Operator\Pulls\CreateReview::class, $this->operator) === false) { @@ -238,6 +292,15 @@ public function listCommentsForReview(string $owner, string $repo, int $pullNumb return $this->operator[Operator\Pulls\ListCommentsForReview::class]->call($owner, $repo, $pullNumber, $reviewId, $perPage, $page); } + public function listCommentsForReviewListing(string $owner, string $repo, int $pullNumber, int $reviewId, int $perPage, int $page): Schema\ReviewComment + { + if (array_key_exists(Operator\Pulls\ListCommentsForReviewListing::class, $this->operator) === false) { + $this->operator[Operator\Pulls\ListCommentsForReviewListing::class] = new Operator\Pulls\ListCommentsForReviewListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Reviews🌀ReviewId🌀Comments()); + } + + return $this->operator[Operator\Pulls\ListCommentsForReviewListing::class]->call($owner, $repo, $pullNumber, $reviewId, $perPage, $page); + } + public function dismissReview(string $owner, string $repo, int $pullNumber, int $reviewId, array $params): Schema\PullRequestReview { if (array_key_exists(Operator\Pulls\DismissReview::class, $this->operator) === false) { diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListCommentsForReviewListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListCommentsForReviewListing.php new file mode 100644 index 00000000000..841444c743c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListCommentsForReviewListing.php @@ -0,0 +1,99 @@ +owner = $owner; + $this->repo = $repo; + $this->pullNumber = $pullNumber; + $this->reviewId = $reviewId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{pull_number}', '{review_id}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->pullNumber, $this->reviewId, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\ReviewComment { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ReviewComment::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\ReviewComment::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListCommitsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListCommitsListing.php new file mode 100644 index 00000000000..4e053bcd4f0 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListCommitsListing.php @@ -0,0 +1,87 @@ +owner = $owner; + $this->repo = $repo; + $this->pullNumber = $pullNumber; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{pull_number}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->pullNumber, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Commit { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Commit::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Commit::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListFilesListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListFilesListing.php new file mode 100644 index 00000000000..465d706d357 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListFilesListing.php @@ -0,0 +1,112 @@ +owner = $owner; + $this->repo = $repo; + $this->pullNumber = $pullNumber; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{pull_number}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->pullNumber, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\DiffEntry { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\DiffEntry::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\DiffEntry::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + /** + * Internal Error + **/ + + case 500: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Service unavailable + **/ + + case 503: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable(503, $this->hydrator->hydrateObject(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListListing.php new file mode 100644 index 00000000000..b73f5dcd1d5 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListListing.php @@ -0,0 +1,116 @@ +owner = $owner; + $this->repo = $repo; + $this->head = $head; + $this->base = $base; + $this->direction = $direction; + $this->state = $state; + $this->sort = $sort; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{head}', '{base}', '{direction}', '{state}', '{sort}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->head, $this->base, $this->direction, $this->state, $this->sort, $this->perPage, $this->page], self::PATH . '?head={head}&base={base}&direction={direction}&state={state}&sort={sort}&per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\PullRequestSimple { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\PullRequestSimple::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\PullRequestSimple::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListReviewCommentsForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListReviewCommentsForRepoListing.php new file mode 100644 index 00000000000..da24ab15f7b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListReviewCommentsForRepoListing.php @@ -0,0 +1,90 @@ +owner = $owner; + $this->repo = $repo; + $this->direction = $direction; + $this->since = $since; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{sort}', '{direction}', '{since}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->sort, $this->direction, $this->since, $this->perPage, $this->page], self::PATH . '?sort={sort}&direction={direction}&since={since}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\PullRequestReviewComment { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\PullRequestReviewComment::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\PullRequestReviewComment::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListReviewCommentsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListReviewCommentsListing.php new file mode 100644 index 00000000000..bf6c539fd6b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListReviewCommentsListing.php @@ -0,0 +1,96 @@ +owner = $owner; + $this->repo = $repo; + $this->pullNumber = $pullNumber; + $this->direction = $direction; + $this->since = $since; + $this->sort = $sort; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{pull_number}', '{direction}', '{since}', '{sort}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->pullNumber, $this->direction, $this->since, $this->sort, $this->perPage, $this->page], self::PATH . '?direction={direction}&since={since}&sort={sort}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\PullRequestReviewComment { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\PullRequestReviewComment::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\PullRequestReviewComment::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListReviewsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListReviewsListing.php new file mode 100644 index 00000000000..8fc57e88406 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Pulls/ListReviewsListing.php @@ -0,0 +1,87 @@ +owner = $owner; + $this->repo = $repo; + $this->pullNumber = $pullNumber; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{pull_number}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->pullNumber, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * The list of reviews returns in chronological order. + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\PullRequestReview { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\PullRequestReview::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\PullRequestReview::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Reactions.php b/clients/GitHubEnterprise-3.4/src/Operation/Reactions.php index ac38e5887e6..9ce9b3114f8 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/Reactions.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/Reactions.php @@ -31,6 +31,15 @@ public function listForTeamDiscussionCommentInOrg(string $org, string $teamSlug, return $this->operator[Operator\Reactions\ListForTeamDiscussionCommentInOrg::class]->call($org, $teamSlug, $discussionNumber, $commentNumber, $content, $perPage, $page); } + public function listForTeamDiscussionCommentInOrgListing(string $org, string $teamSlug, int $discussionNumber, int $commentNumber, string $content, int $perPage, int $page): Schema\Reaction + { + if (array_key_exists(Operator\Reactions\ListForTeamDiscussionCommentInOrgListing::class, $this->operator) === false) { + $this->operator[Operator\Reactions\ListForTeamDiscussionCommentInOrgListing::class] = new Operator\Reactions\ListForTeamDiscussionCommentInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Discussions🌀DiscussionNumber🌀Comments🌀CommentNumber🌀Reactions()); + } + + return $this->operator[Operator\Reactions\ListForTeamDiscussionCommentInOrgListing::class]->call($org, $teamSlug, $discussionNumber, $commentNumber, $content, $perPage, $page); + } + public function createForTeamDiscussionCommentInOrg(string $org, string $teamSlug, int $discussionNumber, int $commentNumber, array $params): Schema\Reaction { if (array_key_exists(Operator\Reactions\CreateForTeamDiscussionCommentInOrg::class, $this->operator) === false) { @@ -58,6 +67,15 @@ public function listForTeamDiscussionInOrg(string $org, string $teamSlug, int $d return $this->operator[Operator\Reactions\ListForTeamDiscussionInOrg::class]->call($org, $teamSlug, $discussionNumber, $content, $perPage, $page); } + public function listForTeamDiscussionInOrgListing(string $org, string $teamSlug, int $discussionNumber, string $content, int $perPage, int $page): Schema\Reaction + { + if (array_key_exists(Operator\Reactions\ListForTeamDiscussionInOrgListing::class, $this->operator) === false) { + $this->operator[Operator\Reactions\ListForTeamDiscussionInOrgListing::class] = new Operator\Reactions\ListForTeamDiscussionInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Discussions🌀DiscussionNumber🌀Reactions()); + } + + return $this->operator[Operator\Reactions\ListForTeamDiscussionInOrgListing::class]->call($org, $teamSlug, $discussionNumber, $content, $perPage, $page); + } + public function createForTeamDiscussionInOrg(string $org, string $teamSlug, int $discussionNumber, array $params): Schema\Reaction { if (array_key_exists(Operator\Reactions\CreateForTeamDiscussionInOrg::class, $this->operator) === false) { @@ -94,6 +112,15 @@ public function listForCommitComment(string $owner, string $repo, int $commentId return $this->operator[Operator\Reactions\ListForCommitComment::class]->call($owner, $repo, $commentId, $content, $perPage, $page); } + public function listForCommitCommentListing(string $owner, string $repo, int $commentId, string $content, int $perPage, int $page): Schema\Reaction + { + if (array_key_exists(Operator\Reactions\ListForCommitCommentListing::class, $this->operator) === false) { + $this->operator[Operator\Reactions\ListForCommitCommentListing::class] = new Operator\Reactions\ListForCommitCommentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Comments🌀CommentId🌀Reactions()); + } + + return $this->operator[Operator\Reactions\ListForCommitCommentListing::class]->call($owner, $repo, $commentId, $content, $perPage, $page); + } + public function createForCommitComment(string $owner, string $repo, int $commentId, array $params): Schema\Reaction { if (array_key_exists(Operator\Reactions\CreateForCommitComment::class, $this->operator) === false) { @@ -121,6 +148,15 @@ public function listForIssueComment(string $owner, string $repo, int $commentId, return $this->operator[Operator\Reactions\ListForIssueComment::class]->call($owner, $repo, $commentId, $content, $perPage, $page); } + public function listForIssueCommentListing(string $owner, string $repo, int $commentId, string $content, int $perPage, int $page): Schema\Reaction + { + if (array_key_exists(Operator\Reactions\ListForIssueCommentListing::class, $this->operator) === false) { + $this->operator[Operator\Reactions\ListForIssueCommentListing::class] = new Operator\Reactions\ListForIssueCommentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments🌀CommentId🌀Reactions()); + } + + return $this->operator[Operator\Reactions\ListForIssueCommentListing::class]->call($owner, $repo, $commentId, $content, $perPage, $page); + } + public function createForIssueComment(string $owner, string $repo, int $commentId, array $params): Schema\Reaction { if (array_key_exists(Operator\Reactions\CreateForIssueComment::class, $this->operator) === false) { @@ -148,6 +184,15 @@ public function listForIssue(string $owner, string $repo, int $issueNumber, stri return $this->operator[Operator\Reactions\ListForIssue::class]->call($owner, $repo, $issueNumber, $content, $perPage, $page); } + public function listForIssueListing(string $owner, string $repo, int $issueNumber, string $content, int $perPage, int $page): Schema\Reaction + { + if (array_key_exists(Operator\Reactions\ListForIssueListing::class, $this->operator) === false) { + $this->operator[Operator\Reactions\ListForIssueListing::class] = new Operator\Reactions\ListForIssueListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Reactions()); + } + + return $this->operator[Operator\Reactions\ListForIssueListing::class]->call($owner, $repo, $issueNumber, $content, $perPage, $page); + } + public function createForIssue(string $owner, string $repo, int $issueNumber, array $params): Schema\Reaction { if (array_key_exists(Operator\Reactions\CreateForIssue::class, $this->operator) === false) { @@ -175,6 +220,15 @@ public function listForPullRequestReviewComment(string $owner, string $repo, int return $this->operator[Operator\Reactions\ListForPullRequestReviewComment::class]->call($owner, $repo, $commentId, $content, $perPage, $page); } + public function listForPullRequestReviewCommentListing(string $owner, string $repo, int $commentId, string $content, int $perPage, int $page): Schema\Reaction + { + if (array_key_exists(Operator\Reactions\ListForPullRequestReviewCommentListing::class, $this->operator) === false) { + $this->operator[Operator\Reactions\ListForPullRequestReviewCommentListing::class] = new Operator\Reactions\ListForPullRequestReviewCommentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀Comments🌀CommentId🌀Reactions()); + } + + return $this->operator[Operator\Reactions\ListForPullRequestReviewCommentListing::class]->call($owner, $repo, $commentId, $content, $perPage, $page); + } + public function createForPullRequestReviewComment(string $owner, string $repo, int $commentId, array $params): Schema\Reaction { if (array_key_exists(Operator\Reactions\CreateForPullRequestReviewComment::class, $this->operator) === false) { @@ -202,6 +256,15 @@ public function listForRelease(string $owner, string $repo, int $releaseId, stri return $this->operator[Operator\Reactions\ListForRelease::class]->call($owner, $repo, $releaseId, $content, $perPage, $page); } + public function listForReleaseListing(string $owner, string $repo, int $releaseId, string $content, int $perPage, int $page): Schema\Reaction + { + if (array_key_exists(Operator\Reactions\ListForReleaseListing::class, $this->operator) === false) { + $this->operator[Operator\Reactions\ListForReleaseListing::class] = new Operator\Reactions\ListForReleaseListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Releases🌀ReleaseId🌀Reactions()); + } + + return $this->operator[Operator\Reactions\ListForReleaseListing::class]->call($owner, $repo, $releaseId, $content, $perPage, $page); + } + public function createForRelease(string $owner, string $repo, int $releaseId, array $params): Schema\Reaction { if (array_key_exists(Operator\Reactions\CreateForRelease::class, $this->operator) === false) { @@ -229,6 +292,15 @@ public function listForTeamDiscussionCommentLegacy(int $teamId, int $discussionN return $this->operator[Operator\Reactions\ListForTeamDiscussionCommentLegacy::class]->call($teamId, $discussionNumber, $commentNumber, $content, $perPage, $page); } + public function listForTeamDiscussionCommentLegacyListing(int $teamId, int $discussionNumber, int $commentNumber, string $content, int $perPage, int $page): Schema\Reaction + { + if (array_key_exists(Operator\Reactions\ListForTeamDiscussionCommentLegacyListing::class, $this->operator) === false) { + $this->operator[Operator\Reactions\ListForTeamDiscussionCommentLegacyListing::class] = new Operator\Reactions\ListForTeamDiscussionCommentLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Discussions🌀DiscussionNumber🌀Comments🌀CommentNumber🌀Reactions()); + } + + return $this->operator[Operator\Reactions\ListForTeamDiscussionCommentLegacyListing::class]->call($teamId, $discussionNumber, $commentNumber, $content, $perPage, $page); + } + public function createForTeamDiscussionCommentLegacy(int $teamId, int $discussionNumber, int $commentNumber, array $params): Schema\Reaction { if (array_key_exists(Operator\Reactions\CreateForTeamDiscussionCommentLegacy::class, $this->operator) === false) { @@ -247,6 +319,15 @@ public function listForTeamDiscussionLegacy(int $teamId, int $discussionNumber, return $this->operator[Operator\Reactions\ListForTeamDiscussionLegacy::class]->call($teamId, $discussionNumber, $content, $perPage, $page); } + public function listForTeamDiscussionLegacyListing(int $teamId, int $discussionNumber, string $content, int $perPage, int $page): Schema\Reaction + { + if (array_key_exists(Operator\Reactions\ListForTeamDiscussionLegacyListing::class, $this->operator) === false) { + $this->operator[Operator\Reactions\ListForTeamDiscussionLegacyListing::class] = new Operator\Reactions\ListForTeamDiscussionLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Discussions🌀DiscussionNumber🌀Reactions()); + } + + return $this->operator[Operator\Reactions\ListForTeamDiscussionLegacyListing::class]->call($teamId, $discussionNumber, $content, $perPage, $page); + } + public function createForTeamDiscussionLegacy(int $teamId, int $discussionNumber, array $params): Schema\Reaction { if (array_key_exists(Operator\Reactions\CreateForTeamDiscussionLegacy::class, $this->operator) === false) { diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForCommitCommentListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForCommitCommentListing.php new file mode 100644 index 00000000000..e6950319598 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForCommitCommentListing.php @@ -0,0 +1,99 @@ +owner = $owner; + $this->repo = $repo; + $this->commentId = $commentId; + $this->content = $content; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{comment_id}', '{content}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->commentId, $this->content, $this->perPage, $this->page], self::PATH . '?content={content}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Reaction { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Reaction::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Reaction::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForIssueCommentListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForIssueCommentListing.php new file mode 100644 index 00000000000..81440c45ab7 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForIssueCommentListing.php @@ -0,0 +1,99 @@ +owner = $owner; + $this->repo = $repo; + $this->commentId = $commentId; + $this->content = $content; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{comment_id}', '{content}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->commentId, $this->content, $this->perPage, $this->page], self::PATH . '?content={content}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Reaction { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Reaction::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Reaction::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForIssueListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForIssueListing.php new file mode 100644 index 00000000000..077616a55d5 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForIssueListing.php @@ -0,0 +1,107 @@ +owner = $owner; + $this->repo = $repo; + $this->issueNumber = $issueNumber; + $this->content = $content; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{issue_number}', '{content}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->issueNumber, $this->content, $this->perPage, $this->page], self::PATH . '?content={content}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Reaction { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Reaction::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Reaction::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Gone + **/ + + case 410: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(410, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForPullRequestReviewCommentListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForPullRequestReviewCommentListing.php new file mode 100644 index 00000000000..40ce6f3ec7d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForPullRequestReviewCommentListing.php @@ -0,0 +1,99 @@ +owner = $owner; + $this->repo = $repo; + $this->commentId = $commentId; + $this->content = $content; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{comment_id}', '{content}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->commentId, $this->content, $this->perPage, $this->page], self::PATH . '?content={content}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Reaction { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Reaction::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Reaction::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForReleaseListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForReleaseListing.php new file mode 100644 index 00000000000..46cf9e85b6a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForReleaseListing.php @@ -0,0 +1,99 @@ +owner = $owner; + $this->repo = $repo; + $this->releaseId = $releaseId; + $this->content = $content; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{release_id}', '{content}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->releaseId, $this->content, $this->perPage, $this->page], self::PATH . '?content={content}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Reaction { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Reaction::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Reaction::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionCommentInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionCommentInOrgListing.php new file mode 100644 index 00000000000..59fa00a0235 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionCommentInOrgListing.php @@ -0,0 +1,93 @@ +org = $org; + $this->teamSlug = $teamSlug; + $this->discussionNumber = $discussionNumber; + $this->commentNumber = $commentNumber; + $this->content = $content; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{team_slug}', '{discussion_number}', '{comment_number}', '{content}', '{per_page}', '{page}'], [$this->org, $this->teamSlug, $this->discussionNumber, $this->commentNumber, $this->content, $this->perPage, $this->page], self::PATH . '?content={content}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Reaction { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Reaction::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Reaction::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionCommentLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionCommentLegacyListing.php new file mode 100644 index 00000000000..f9ec2cbf33f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionCommentLegacyListing.php @@ -0,0 +1,90 @@ +teamId = $teamId; + $this->discussionNumber = $discussionNumber; + $this->commentNumber = $commentNumber; + $this->content = $content; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{team_id}', '{discussion_number}', '{comment_number}', '{content}', '{per_page}', '{page}'], [$this->teamId, $this->discussionNumber, $this->commentNumber, $this->content, $this->perPage, $this->page], self::PATH . '?content={content}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Reaction { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Reaction::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Reaction::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionInOrgListing.php new file mode 100644 index 00000000000..8acdfc61add --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionInOrgListing.php @@ -0,0 +1,90 @@ +org = $org; + $this->teamSlug = $teamSlug; + $this->discussionNumber = $discussionNumber; + $this->content = $content; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{team_slug}', '{discussion_number}', '{content}', '{per_page}', '{page}'], [$this->org, $this->teamSlug, $this->discussionNumber, $this->content, $this->perPage, $this->page], self::PATH . '?content={content}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Reaction { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Reaction::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Reaction::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionLegacyListing.php new file mode 100644 index 00000000000..23bb497bd8f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Reactions/ListForTeamDiscussionLegacyListing.php @@ -0,0 +1,87 @@ +teamId = $teamId; + $this->discussionNumber = $discussionNumber; + $this->content = $content; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{team_id}', '{discussion_number}', '{content}', '{per_page}', '{page}'], [$this->teamId, $this->discussionNumber, $this->content, $this->perPage, $this->page], self::PATH . '?content={content}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Reaction { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Reaction::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Reaction::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos.php index 749e8f43e7b..3e61f4b0abd 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/Repos.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos.php @@ -31,6 +31,15 @@ public function listForOrg(string $org, string $type, string $direction, string return $this->operator[Operator\Repos\ListForOrg::class]->call($org, $type, $direction, $sort, $perPage, $page); } + public function listForOrgListing(string $org, string $type, string $direction, string $sort, int $perPage, int $page): Schema\MinimalRepository + { + if (array_key_exists(Operator\Repos\ListForOrgListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListForOrgListing::class] = new Operator\Repos\ListForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Repos()); + } + + return $this->operator[Operator\Repos\ListForOrgListing::class]->call($org, $type, $direction, $sort, $perPage, $page); + } + public function createInOrg(string $org, array $params): Schema\Repository { if (array_key_exists(Operator\Repos\CreateInOrg::class, $this->operator) === false) { @@ -112,6 +121,15 @@ public function listBranches(string $owner, string $repo, bool $protected, int $ return $this->operator[Operator\Repos\ListBranches::class]->call($owner, $repo, $protected, $perPage, $page); } + public function listBranchesListing(string $owner, string $repo, bool $protected, int $perPage, int $page): Schema\ShortBranch + { + if (array_key_exists(Operator\Repos\ListBranchesListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListBranchesListing::class] = new Operator\Repos\ListBranchesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Branches()); + } + + return $this->operator[Operator\Repos\ListBranchesListing::class]->call($owner, $repo, $protected, $perPage, $page); + } + public function getBranch(string $owner, string $repo, string $branch): Schema\BranchWithProtection|Schema\BasicError { if (array_key_exists(Operator\Repos\GetBranch::class, $this->operator) === false) { @@ -436,6 +454,15 @@ public function listCollaborators(string $owner, string $repo, string $affiliati return $this->operator[Operator\Repos\ListCollaborators::class]->call($owner, $repo, $affiliation, $perPage, $page); } + public function listCollaboratorsListing(string $owner, string $repo, string $affiliation, int $perPage, int $page): Schema\Collaborator + { + if (array_key_exists(Operator\Repos\ListCollaboratorsListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListCollaboratorsListing::class] = new Operator\Repos\ListCollaboratorsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Collaborators()); + } + + return $this->operator[Operator\Repos\ListCollaboratorsListing::class]->call($owner, $repo, $affiliation, $perPage, $page); + } + public function checkCollaborator(string $owner, string $repo, string $username): ResponseInterface { if (array_key_exists(Operator\Repos\CheckCollaborator::class, $this->operator) === false) { @@ -481,6 +508,15 @@ public function listCommitCommentsForRepo(string $owner, string $repo, int $perP return $this->operator[Operator\Repos\ListCommitCommentsForRepo::class]->call($owner, $repo, $perPage, $page); } + public function listCommitCommentsForRepoListing(string $owner, string $repo, int $perPage, int $page): Schema\CommitComment + { + if (array_key_exists(Operator\Repos\ListCommitCommentsForRepoListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListCommitCommentsForRepoListing::class] = new Operator\Repos\ListCommitCommentsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Comments()); + } + + return $this->operator[Operator\Repos\ListCommitCommentsForRepoListing::class]->call($owner, $repo, $perPage, $page); + } + public function getCommitComment(string $owner, string $repo, int $commentId): Schema\CommitComment { if (array_key_exists(Operator\Repos\GetCommitComment::class, $this->operator) === false) { @@ -517,6 +553,15 @@ public function listCommits(string $owner, string $repo, string $sha, string $pa return $this->operator[Operator\Repos\ListCommits::class]->call($owner, $repo, $sha, $path, $author, $committer, $since, $until, $perPage, $page); } + public function listCommitsListing(string $owner, string $repo, string $sha, string $path, string $author, string $committer, string $since, string $until, int $perPage, int $page): Schema\Commit + { + if (array_key_exists(Operator\Repos\ListCommitsListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListCommitsListing::class] = new Operator\Repos\ListCommitsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Commits()); + } + + return $this->operator[Operator\Repos\ListCommitsListing::class]->call($owner, $repo, $sha, $path, $author, $committer, $since, $until, $perPage, $page); + } + public function listBranchesForHeadCommit(string $owner, string $repo, string $commitSha): Schema\BranchShort { if (array_key_exists(Operator\Repos\ListBranchesForHeadCommit::class, $this->operator) === false) { @@ -535,6 +580,15 @@ public function listCommentsForCommit(string $owner, string $repo, string $commi return $this->operator[Operator\Repos\ListCommentsForCommit::class]->call($owner, $repo, $commitSha, $perPage, $page); } + public function listCommentsForCommitListing(string $owner, string $repo, string $commitSha, int $perPage, int $page): Schema\CommitComment + { + if (array_key_exists(Operator\Repos\ListCommentsForCommitListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListCommentsForCommitListing::class] = new Operator\Repos\ListCommentsForCommitListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Commits🌀CommitSha🌀Comments()); + } + + return $this->operator[Operator\Repos\ListCommentsForCommitListing::class]->call($owner, $repo, $commitSha, $perPage, $page); + } + public function createCommitComment(string $owner, string $repo, string $commitSha, array $params): Schema\CommitComment { if (array_key_exists(Operator\Repos\CreateCommitComment::class, $this->operator) === false) { @@ -553,6 +607,15 @@ public function listPullRequestsAssociatedWithCommit(string $owner, string $repo return $this->operator[Operator\Repos\ListPullRequestsAssociatedWithCommit::class]->call($owner, $repo, $commitSha, $perPage, $page); } + public function listPullRequestsAssociatedWithCommitListing(string $owner, string $repo, string $commitSha, int $perPage, int $page): Schema\PullRequestSimple + { + if (array_key_exists(Operator\Repos\ListPullRequestsAssociatedWithCommitListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListPullRequestsAssociatedWithCommitListing::class] = new Operator\Repos\ListPullRequestsAssociatedWithCommitListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Commits🌀CommitSha🌀Pulls()); + } + + return $this->operator[Operator\Repos\ListPullRequestsAssociatedWithCommitListing::class]->call($owner, $repo, $commitSha, $perPage, $page); + } + public function getCommit(string $owner, string $repo, string $ref, int $page, int $perPage): Schema\Commit { if (array_key_exists(Operator\Repos\GetCommit::class, $this->operator) === false) { @@ -580,6 +643,15 @@ public function listCommitStatusesForRef(string $owner, string $repo, string $re return $this->operator[Operator\Repos\ListCommitStatusesForRef::class]->call($owner, $repo, $ref, $perPage, $page); } + public function listCommitStatusesForRefListing(string $owner, string $repo, string $ref, int $perPage, int $page): Schema\Status|Schema\BasicError + { + if (array_key_exists(Operator\Repos\ListCommitStatusesForRefListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListCommitStatusesForRefListing::class] = new Operator\Repos\ListCommitStatusesForRefListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Commits🌀Ref🌀Statuses()); + } + + return $this->operator[Operator\Repos\ListCommitStatusesForRefListing::class]->call($owner, $repo, $ref, $perPage, $page); + } + public function compareCommits(string $owner, string $repo, string $basehead, int $page, int $perPage): Schema\CommitComparison { if (array_key_exists(Operator\Repos\CompareCommits::class, $this->operator) === false) { @@ -625,6 +697,15 @@ public function listContributors(string $owner, string $repo, string $anon, int return $this->operator[Operator\Repos\ListContributors::class]->call($owner, $repo, $anon, $perPage, $page); } + public function listContributorsListing(string $owner, string $repo, string $anon, int $perPage, int $page): Schema\Contributor + { + if (array_key_exists(Operator\Repos\ListContributorsListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListContributorsListing::class] = new Operator\Repos\ListContributorsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Contributors()); + } + + return $this->operator[Operator\Repos\ListContributorsListing::class]->call($owner, $repo, $anon, $perPage, $page); + } + public function listDeployments(string $owner, string $repo, string $sha, string $ref, string $task, string|null $environment, int $perPage, int $page): Schema\Deployment { if (array_key_exists(Operator\Repos\ListDeployments::class, $this->operator) === false) { @@ -634,6 +715,15 @@ public function listDeployments(string $owner, string $repo, string $sha, string return $this->operator[Operator\Repos\ListDeployments::class]->call($owner, $repo, $sha, $ref, $task, $environment, $perPage, $page); } + public function listDeploymentsListing(string $owner, string $repo, string $sha, string $ref, string $task, string|null $environment, int $perPage, int $page): Schema\Deployment + { + if (array_key_exists(Operator\Repos\ListDeploymentsListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListDeploymentsListing::class] = new Operator\Repos\ListDeploymentsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Deployments()); + } + + return $this->operator[Operator\Repos\ListDeploymentsListing::class]->call($owner, $repo, $sha, $ref, $task, $environment, $perPage, $page); + } + public function createDeployment(string $owner, string $repo, array $params): Schema\Deployment|Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted { if (array_key_exists(Operator\Repos\CreateDeployment::class, $this->operator) === false) { @@ -670,6 +760,15 @@ public function listDeploymentStatuses(string $owner, string $repo, int $deploym return $this->operator[Operator\Repos\ListDeploymentStatuses::class]->call($owner, $repo, $deploymentId, $perPage, $page); } + public function listDeploymentStatusesListing(string $owner, string $repo, int $deploymentId, int $perPage, int $page): Schema\DeploymentStatus + { + if (array_key_exists(Operator\Repos\ListDeploymentStatusesListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListDeploymentStatusesListing::class] = new Operator\Repos\ListDeploymentStatusesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Deployments🌀DeploymentId🌀Statuses()); + } + + return $this->operator[Operator\Repos\ListDeploymentStatusesListing::class]->call($owner, $repo, $deploymentId, $perPage, $page); + } + public function createDeploymentStatus(string $owner, string $repo, int $deploymentId, array $params): Schema\DeploymentStatus { if (array_key_exists(Operator\Repos\CreateDeploymentStatus::class, $this->operator) === false) { @@ -787,6 +886,15 @@ public function listForks(string $owner, string $repo, string $sort, int $perPag return $this->operator[Operator\Repos\ListForks::class]->call($owner, $repo, $sort, $perPage, $page); } + public function listForksListing(string $owner, string $repo, string $sort, int $perPage, int $page): Schema\MinimalRepository + { + if (array_key_exists(Operator\Repos\ListForksListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListForksListing::class] = new Operator\Repos\ListForksListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Forks()); + } + + return $this->operator[Operator\Repos\ListForksListing::class]->call($owner, $repo, $sort, $perPage, $page); + } + public function createFork(string $owner, string $repo, array $params): Schema\FullRepository { if (array_key_exists(Operator\Repos\CreateFork::class, $this->operator) === false) { @@ -805,6 +913,15 @@ public function listWebhooks(string $owner, string $repo, int $perPage, int $pag return $this->operator[Operator\Repos\ListWebhooks::class]->call($owner, $repo, $perPage, $page); } + public function listWebhooksListing(string $owner, string $repo, int $perPage, int $page): Schema\Hook + { + if (array_key_exists(Operator\Repos\ListWebhooksListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListWebhooksListing::class] = new Operator\Repos\ListWebhooksListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Hooks()); + } + + return $this->operator[Operator\Repos\ListWebhooksListing::class]->call($owner, $repo, $perPage, $page); + } + public function createWebhook(string $owner, string $repo, array $params): Schema\Hook { if (array_key_exists(Operator\Repos\CreateWebhook::class, $this->operator) === false) { @@ -913,6 +1030,15 @@ public function listInvitations(string $owner, string $repo, int $perPage, int $ return $this->operator[Operator\Repos\ListInvitations::class]->call($owner, $repo, $perPage, $page); } + public function listInvitationsListing(string $owner, string $repo, int $perPage, int $page): Schema\RepositoryInvitation + { + if (array_key_exists(Operator\Repos\ListInvitationsListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListInvitationsListing::class] = new Operator\Repos\ListInvitationsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Invitations()); + } + + return $this->operator[Operator\Repos\ListInvitationsListing::class]->call($owner, $repo, $perPage, $page); + } + public function deleteInvitation(string $owner, string $repo, int $invitationId): ResponseInterface { if (array_key_exists(Operator\Repos\DeleteInvitation::class, $this->operator) === false) { @@ -940,6 +1066,15 @@ public function listDeployKeys(string $owner, string $repo, int $perPage, int $p return $this->operator[Operator\Repos\ListDeployKeys::class]->call($owner, $repo, $perPage, $page); } + public function listDeployKeysListing(string $owner, string $repo, int $perPage, int $page): Schema\DeployKey + { + if (array_key_exists(Operator\Repos\ListDeployKeysListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListDeployKeysListing::class] = new Operator\Repos\ListDeployKeysListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Keys()); + } + + return $this->operator[Operator\Repos\ListDeployKeysListing::class]->call($owner, $repo, $perPage, $page); + } + public function createDeployKey(string $owner, string $repo, array $params): Schema\DeployKey { if (array_key_exists(Operator\Repos\CreateDeployKey::class, $this->operator) === false) { @@ -1057,6 +1192,15 @@ public function listPagesBuilds(string $owner, string $repo, int $perPage, int $ return $this->operator[Operator\Repos\ListPagesBuilds::class]->call($owner, $repo, $perPage, $page); } + public function listPagesBuildsListing(string $owner, string $repo, int $perPage, int $page): Schema\PageBuild + { + if (array_key_exists(Operator\Repos\ListPagesBuildsListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListPagesBuildsListing::class] = new Operator\Repos\ListPagesBuildsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pages🌀Builds()); + } + + return $this->operator[Operator\Repos\ListPagesBuildsListing::class]->call($owner, $repo, $perPage, $page); + } + public function requestPagesBuild(string $owner, string $repo): Schema\PageBuildStatus { if (array_key_exists(Operator\Repos\RequestPagesBuild::class, $this->operator) === false) { @@ -1111,6 +1255,15 @@ public function listReleases(string $owner, string $repo, int $perPage, int $pag return $this->operator[Operator\Repos\ListReleases::class]->call($owner, $repo, $perPage, $page); } + public function listReleasesListing(string $owner, string $repo, int $perPage, int $page): Schema\Release + { + if (array_key_exists(Operator\Repos\ListReleasesListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListReleasesListing::class] = new Operator\Repos\ListReleasesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Releases()); + } + + return $this->operator[Operator\Repos\ListReleasesListing::class]->call($owner, $repo, $perPage, $page); + } + public function createRelease(string $owner, string $repo, array $params): Schema\Release { if (array_key_exists(Operator\Repos\CreateRelease::class, $this->operator) === false) { @@ -1210,6 +1363,15 @@ public function listReleaseAssets(string $owner, string $repo, int $releaseId, i return $this->operator[Operator\Repos\ListReleaseAssets::class]->call($owner, $repo, $releaseId, $perPage, $page); } + public function listReleaseAssetsListing(string $owner, string $repo, int $releaseId, int $perPage, int $page): Schema\ReleaseAsset + { + if (array_key_exists(Operator\Repos\ListReleaseAssetsListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListReleaseAssetsListing::class] = new Operator\Repos\ListReleaseAssetsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Releases🌀ReleaseId🌀Assets()); + } + + return $this->operator[Operator\Repos\ListReleaseAssetsListing::class]->call($owner, $repo, $releaseId, $perPage, $page); + } + public function uploadReleaseAsset(string $owner, string $repo, int $releaseId, string $name, string $label, array $params): Schema\ReleaseAsset { if (array_key_exists(Operator\Repos\UploadReleaseAsset::class, $this->operator) === false) { @@ -1228,6 +1390,15 @@ public function listCacheInfo(string $owner, string $repo, int $perPage, int $pa return $this->operator[Operator\Repos\ListCacheInfo::class]->call($owner, $repo, $perPage, $page); } + public function listCacheInfoListing(string $owner, string $repo, int $perPage, int $page): Schema\Operations\Repos\ListCacheInfo\Response\ApplicationJson\Ok + { + if (array_key_exists(Operator\Repos\ListCacheInfoListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListCacheInfoListing::class] = new Operator\Repos\ListCacheInfoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Replicas🌀Caches()); + } + + return $this->operator[Operator\Repos\ListCacheInfoListing::class]->call($owner, $repo, $perPage, $page); + } + public function getCodeFrequencyStats(string $owner, string $repo): Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Ok|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted { if (array_key_exists(Operator\Repos\GetCodeFrequencyStats::class, $this->operator) === false) { @@ -1291,6 +1462,15 @@ public function listTags(string $owner, string $repo, int $perPage, int $page): return $this->operator[Operator\Repos\ListTags::class]->call($owner, $repo, $perPage, $page); } + public function listTagsListing(string $owner, string $repo, int $perPage, int $page): Schema\Tag + { + if (array_key_exists(Operator\Repos\ListTagsListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListTagsListing::class] = new Operator\Repos\ListTagsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Tags()); + } + + return $this->operator[Operator\Repos\ListTagsListing::class]->call($owner, $repo, $perPage, $page); + } + public function downloadTarballArchive(string $owner, string $repo, string $ref): ResponseInterface { if (array_key_exists(Operator\Repos\DownloadTarballArchive::class, $this->operator) === false) { @@ -1318,6 +1498,15 @@ public function listTeams(string $owner, string $repo, int $perPage, int $page): return $this->operator[Operator\Repos\ListTeams::class]->call($owner, $repo, $perPage, $page); } + public function listTeamsListing(string $owner, string $repo, int $perPage, int $page): Schema\Team + { + if (array_key_exists(Operator\Repos\ListTeamsListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListTeamsListing::class] = new Operator\Repos\ListTeamsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Teams()); + } + + return $this->operator[Operator\Repos\ListTeamsListing::class]->call($owner, $repo, $perPage, $page); + } + public function getAllTopics(string $owner, string $repo, int $page, int $perPage): Schema\Topic { if (array_key_exists(Operator\Repos\GetAllTopics::class, $this->operator) === false) { @@ -1390,6 +1579,15 @@ public function listForAuthenticatedUser(string $direction, string $since, strin return $this->operator[Operator\Repos\ListForAuthenticatedUser::class]->call($direction, $since, $before, $visibility, $affiliation, $type, $sort, $perPage, $page); } + public function listForAuthenticatedUserListing(string $direction, string $since, string $before, string $visibility, string $affiliation, string $type, string $sort, int $perPage, int $page): Schema\Repository + { + if (array_key_exists(Operator\Repos\ListForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListForAuthenticatedUserListing::class] = new Operator\Repos\ListForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Repos()); + } + + return $this->operator[Operator\Repos\ListForAuthenticatedUserListing::class]->call($direction, $since, $before, $visibility, $affiliation, $type, $sort, $perPage, $page); + } + public function createForAuthenticatedUser(array $params): Schema\Repository { if (array_key_exists(Operator\Repos\CreateForAuthenticatedUser::class, $this->operator) === false) { @@ -1408,6 +1606,15 @@ public function listInvitationsForAuthenticatedUser(int $perPage, int $page): Sc return $this->operator[Operator\Repos\ListInvitationsForAuthenticatedUser::class]->call($perPage, $page); } + public function listInvitationsForAuthenticatedUserListing(int $perPage, int $page): Schema\RepositoryInvitation + { + if (array_key_exists(Operator\Repos\ListInvitationsForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListInvitationsForAuthenticatedUserListing::class] = new Operator\Repos\ListInvitationsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀RepositoryInvitations()); + } + + return $this->operator[Operator\Repos\ListInvitationsForAuthenticatedUserListing::class]->call($perPage, $page); + } + public function declineInvitationForAuthenticatedUser(int $invitationId): ResponseInterface { if (array_key_exists(Operator\Repos\DeclineInvitationForAuthenticatedUser::class, $this->operator) === false) { @@ -1434,4 +1641,13 @@ public function listForUser(string $username, string $direction, string $type, s return $this->operator[Operator\Repos\ListForUser::class]->call($username, $direction, $type, $sort, $perPage, $page); } + + public function listForUserListing(string $username, string $direction, string $type, string $sort, int $perPage, int $page): Schema\MinimalRepository + { + if (array_key_exists(Operator\Repos\ListForUserListing::class, $this->operator) === false) { + $this->operator[Operator\Repos\ListForUserListing::class] = new Operator\Repos\ListForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Repos()); + } + + return $this->operator[Operator\Repos\ListForUserListing::class]->call($username, $direction, $type, $sort, $perPage, $page); + } } diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListBranchesListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListBranchesListing.php new file mode 100644 index 00000000000..645e91c30e2 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListBranchesListing.php @@ -0,0 +1,96 @@ +owner = $owner; + $this->repo = $repo; + $this->protected = $protected; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{protected}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->protected, $this->perPage, $this->page], self::PATH . '?protected={protected}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\ShortBranch { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ShortBranch::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\ShortBranch::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCacheInfoListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCacheInfoListing.php new file mode 100644 index 00000000000..420cae7c238 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCacheInfoListing.php @@ -0,0 +1,101 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Status information for cache replicas + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Operations\Repos\ListCacheInfo\Response\ApplicationJson\Ok { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\Repos\ListCacheInfo\Response\ApplicationJson\Ok::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Operations\Repos\ListCacheInfo\Response\ApplicationJson\Ok::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCollaboratorsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCollaboratorsListing.php new file mode 100644 index 00000000000..f2f5c908b42 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCollaboratorsListing.php @@ -0,0 +1,96 @@ +owner = $owner; + $this->repo = $repo; + $this->affiliation = $affiliation; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{affiliation}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->affiliation, $this->perPage, $this->page], self::PATH . '?affiliation={affiliation}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Collaborator { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Collaborator::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Collaborator::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommentsForCommitListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommentsForCommitListing.php new file mode 100644 index 00000000000..b8606c096fb --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommentsForCommitListing.php @@ -0,0 +1,87 @@ +owner = $owner; + $this->repo = $repo; + $this->commitSha = $commitSha; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{commit_sha}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->commitSha, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CommitComment { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CommitComment::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\CommitComment::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommitCommentsForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommitCommentsForRepoListing.php new file mode 100644 index 00000000000..0f2041844bc --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommitCommentsForRepoListing.php @@ -0,0 +1,84 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CommitComment { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CommitComment::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\CommitComment::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommitStatusesForRefListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommitStatusesForRefListing.php new file mode 100644 index 00000000000..ef55749da9f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommitStatusesForRefListing.php @@ -0,0 +1,95 @@ +owner = $owner; + $this->repo = $repo; + $this->ref = $ref; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{ref}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->ref, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|Schema\BasicError */ + public function createResponse(ResponseInterface $response): Observable|Schema\BasicError + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Status { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Status::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Status::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Moved permanently + **/ + + case 301: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\BasicError::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommitsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommitsListing.php new file mode 100644 index 00000000000..1e74c2801cc --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListCommitsListing.php @@ -0,0 +1,148 @@ +owner = $owner; + $this->repo = $repo; + $this->sha = $sha; + $this->path = $path; + $this->author = $author; + $this->committer = $committer; + $this->since = $since; + $this->until = $until; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{sha}', '{path}', '{author}', '{committer}', '{since}', '{until}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->sha, $this->path, $this->author, $this->committer, $this->since, $this->until, $this->perPage, $this->page], self::PATH . '?sha={sha}&path={path}&author={author}&committer={committer}&since={since}&until={until}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Commit { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Commit::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Commit::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Internal Error + **/ + + case 500: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Bad Request + **/ + + case 400: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(400, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Conflict + **/ + + case 409: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(409, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + case 'application/scim+json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Bad Request + **/ + case 400: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ScimError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ScimError(400, $this->hydrator->hydrateObject(Schema\ScimError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListContributorsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListContributorsListing.php new file mode 100644 index 00000000000..5d3f9ba4cb1 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListContributorsListing.php @@ -0,0 +1,112 @@ +owner = $owner; + $this->repo = $repo; + $this->anon = $anon; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{anon}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->anon, $this->perPage, $this->page], self::PATH . '?anon={anon}&per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * if repository contains content + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Contributor { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Contributor::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Contributor::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Response if repository is empty + **/ + case 204: + return ['code' => 204]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListDeployKeysListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListDeployKeysListing.php new file mode 100644 index 00000000000..34b453527f7 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListDeployKeysListing.php @@ -0,0 +1,84 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\DeployKey { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\DeployKey::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\DeployKey::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListDeploymentStatusesListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListDeploymentStatusesListing.php new file mode 100644 index 00000000000..b49aef0745c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListDeploymentStatusesListing.php @@ -0,0 +1,96 @@ +owner = $owner; + $this->repo = $repo; + $this->deploymentId = $deploymentId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{deployment_id}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->deploymentId, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\DeploymentStatus { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\DeploymentStatus::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\DeploymentStatus::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListDeploymentsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListDeploymentsListing.php new file mode 100644 index 00000000000..09f4b81dadd --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListDeploymentsListing.php @@ -0,0 +1,96 @@ +owner = $owner; + $this->repo = $repo; + $this->sha = $sha; + $this->ref = $ref; + $this->task = $task; + $this->environment = $environment; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{sha}', '{ref}', '{task}', '{environment}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->sha, $this->ref, $this->task, $this->environment, $this->perPage, $this->page], self::PATH . '?sha={sha}&ref={ref}&task={task}&environment={environment}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Deployment { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Deployment::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Deployment::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForAuthenticatedUserListing.php new file mode 100644 index 00000000000..51e6567d032 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForAuthenticatedUserListing.php @@ -0,0 +1,135 @@ +direction = $direction; + $this->since = $since; + $this->before = $before; + $this->visibility = $visibility; + $this->affiliation = $affiliation; + $this->type = $type; + $this->sort = $sort; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{direction}', '{since}', '{before}', '{visibility}', '{affiliation}', '{type}', '{sort}', '{per_page}', '{page}'], [$this->direction, $this->since, $this->before, $this->visibility, $this->affiliation, $this->type, $this->sort, $this->perPage, $this->page], self::PATH . '?direction={direction}&since={since}&before={before}&visibility={visibility}&affiliation={affiliation}&type={type}&sort={sort}&per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Repository { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Repository::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Repository::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForOrgListing.php new file mode 100644 index 00000000000..799814f6dcf --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForOrgListing.php @@ -0,0 +1,90 @@ +org = $org; + $this->type = $type; + $this->direction = $direction; + $this->sort = $sort; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{type}', '{direction}', '{sort}', '{per_page}', '{page}'], [$this->org, $this->type, $this->direction, $this->sort, $this->perPage, $this->page], self::PATH . '?type={type}&direction={direction}&sort={sort}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\MinimalRepository { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\MinimalRepository::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\MinimalRepository::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForUserListing.php new file mode 100644 index 00000000000..70be74d5b45 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForUserListing.php @@ -0,0 +1,90 @@ +username = $username; + $this->direction = $direction; + $this->type = $type; + $this->sort = $sort; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{username}', '{direction}', '{type}', '{sort}', '{per_page}', '{page}'], [$this->username, $this->direction, $this->type, $this->sort, $this->perPage, $this->page], self::PATH . '?direction={direction}&type={type}&sort={sort}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\MinimalRepository { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\MinimalRepository::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\MinimalRepository::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForksListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForksListing.php new file mode 100644 index 00000000000..2ec88bd89aa --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListForksListing.php @@ -0,0 +1,109 @@ +owner = $owner; + $this->repo = $repo; + $this->sort = $sort; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{sort}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->sort, $this->perPage, $this->page], self::PATH . '?sort={sort}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\MinimalRepository { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\MinimalRepository::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\MinimalRepository::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Bad Request + **/ + + case 400: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(400, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + case 'application/scim+json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Bad Request + **/ + case 400: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ScimError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ScimError(400, $this->hydrator->hydrateObject(Schema\ScimError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListInvitationsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListInvitationsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..ba9693353d7 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListInvitationsForAuthenticatedUserListing.php @@ -0,0 +1,111 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}'], [$this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\RepositoryInvitation { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryInvitation::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RepositoryInvitation::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListInvitationsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListInvitationsListing.php new file mode 100644 index 00000000000..868dc4ab93d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListInvitationsListing.php @@ -0,0 +1,84 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\RepositoryInvitation { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryInvitation::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\RepositoryInvitation::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListPagesBuildsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListPagesBuildsListing.php new file mode 100644 index 00000000000..245a8c0043c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListPagesBuildsListing.php @@ -0,0 +1,84 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\PageBuild { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\PageBuild::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\PageBuild::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListPullRequestsAssociatedWithCommitListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListPullRequestsAssociatedWithCommitListing.php new file mode 100644 index 00000000000..097cda2dcf4 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListPullRequestsAssociatedWithCommitListing.php @@ -0,0 +1,87 @@ +owner = $owner; + $this->repo = $repo; + $this->commitSha = $commitSha; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{commit_sha}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->commitSha, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\PullRequestSimple { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\PullRequestSimple::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\PullRequestSimple::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListReleaseAssetsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListReleaseAssetsListing.php new file mode 100644 index 00000000000..d21afe67a4d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListReleaseAssetsListing.php @@ -0,0 +1,87 @@ +owner = $owner; + $this->repo = $repo; + $this->releaseId = $releaseId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{release_id}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->releaseId, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\ReleaseAsset { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ReleaseAsset::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\ReleaseAsset::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListReleasesListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListReleasesListing.php new file mode 100644 index 00000000000..a9244fe9752 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListReleasesListing.php @@ -0,0 +1,93 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Release { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Release::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Release::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListTagsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListTagsListing.php new file mode 100644 index 00000000000..834476f1e18 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListTagsListing.php @@ -0,0 +1,84 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Tag { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Tag::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Tag::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListTeamsListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListTeamsListing.php new file mode 100644 index 00000000000..ba01d17de58 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListTeamsListing.php @@ -0,0 +1,93 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Team { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Team::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Team::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListWebhooksListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListWebhooksListing.php new file mode 100644 index 00000000000..3c2d143d19b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Repos/ListWebhooksListing.php @@ -0,0 +1,93 @@ +owner = $owner; + $this->repo = $repo; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Hook { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Hook::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Hook::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/SecretScanning.php b/clients/GitHubEnterprise-3.4/src/Operation/SecretScanning.php index 2bb38f430e5..060dcaeb85c 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/SecretScanning.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/SecretScanning.php @@ -39,6 +39,15 @@ public function listAlertsForOrg(string $org, string $state, string $secretType, return $this->operator[Operator\SecretScanning\ListAlertsForOrg::class]->call($org, $state, $secretType, $resolution, $page, $perPage); } + public function listAlertsForOrgListing(string $org, string $state, string $secretType, string $resolution, int $page, int $perPage): Schema\OrganizationSecretScanningAlert + { + if (array_key_exists(Operator\SecretScanning\ListAlertsForOrgListing::class, $this->operator) === false) { + $this->operator[Operator\SecretScanning\ListAlertsForOrgListing::class] = new Operator\SecretScanning\ListAlertsForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀SecretScanning🌀Alerts()); + } + + return $this->operator[Operator\SecretScanning\ListAlertsForOrgListing::class]->call($org, $state, $secretType, $resolution, $page, $perPage); + } + public function listAlertsForRepo(string $owner, string $repo, string $state, string $secretType, string $resolution, int $page, int $perPage): Schema\SecretScanningAlert { if (array_key_exists(Operator\SecretScanning\ListAlertsForRepo::class, $this->operator) === false) { @@ -48,6 +57,15 @@ public function listAlertsForRepo(string $owner, string $repo, string $state, st return $this->operator[Operator\SecretScanning\ListAlertsForRepo::class]->call($owner, $repo, $state, $secretType, $resolution, $page, $perPage); } + public function listAlertsForRepoListing(string $owner, string $repo, string $state, string $secretType, string $resolution, int $page, int $perPage): Schema\SecretScanningAlert + { + if (array_key_exists(Operator\SecretScanning\ListAlertsForRepoListing::class, $this->operator) === false) { + $this->operator[Operator\SecretScanning\ListAlertsForRepoListing::class] = new Operator\SecretScanning\ListAlertsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀SecretScanning🌀Alerts()); + } + + return $this->operator[Operator\SecretScanning\ListAlertsForRepoListing::class]->call($owner, $repo, $state, $secretType, $resolution, $page, $perPage); + } + public function getAlert(string $owner, string $repo, int $alertNumber): Schema\SecretScanningAlert { if (array_key_exists(Operator\SecretScanning\GetAlert::class, $this->operator) === false) { @@ -74,4 +92,13 @@ public function listLocationsForAlert(string $owner, string $repo, int $alertNum return $this->operator[Operator\SecretScanning\ListLocationsForAlert::class]->call($owner, $repo, $alertNumber, $page, $perPage); } + + public function listLocationsForAlertListing(string $owner, string $repo, int $alertNumber, int $page, int $perPage): Schema\SecretScanningLocation + { + if (array_key_exists(Operator\SecretScanning\ListLocationsForAlertListing::class, $this->operator) === false) { + $this->operator[Operator\SecretScanning\ListLocationsForAlertListing::class] = new Operator\SecretScanning\ListLocationsForAlertListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀SecretScanning🌀Alerts🌀AlertNumber🌀Locations()); + } + + return $this->operator[Operator\SecretScanning\ListLocationsForAlertListing::class]->call($owner, $repo, $alertNumber, $page, $perPage); + } } diff --git a/clients/GitHubEnterprise-3.4/src/Operation/SecretScanning/ListAlertsForOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operation/SecretScanning/ListAlertsForOrgListing.php new file mode 100644 index 00000000000..1683ddff428 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/SecretScanning/ListAlertsForOrgListing.php @@ -0,0 +1,109 @@ +org = $org; + $this->state = $state; + $this->secretType = $secretType; + $this->resolution = $resolution; + $this->page = $page; + $this->perPage = $perPage; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{state}', '{secret_type}', '{resolution}', '{page}', '{per_page}'], [$this->org, $this->state, $this->secretType, $this->resolution, $this->page, $this->perPage], self::PATH . '?state={state}&secret_type={secret_type}&resolution={resolution}&page={page}&per_page={per_page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\OrganizationSecretScanningAlert { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\OrganizationSecretScanningAlert::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\OrganizationSecretScanningAlert::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Service unavailable + **/ + + case 503: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable(503, $this->hydrator->hydrateObject(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/SecretScanning/ListAlertsForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operation/SecretScanning/ListAlertsForRepoListing.php new file mode 100644 index 00000000000..15a73982647 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/SecretScanning/ListAlertsForRepoListing.php @@ -0,0 +1,112 @@ +owner = $owner; + $this->repo = $repo; + $this->state = $state; + $this->secretType = $secretType; + $this->resolution = $resolution; + $this->page = $page; + $this->perPage = $perPage; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{state}', '{secret_type}', '{resolution}', '{page}', '{per_page}'], [$this->owner, $this->repo, $this->state, $this->secretType, $this->resolution, $this->page, $this->perPage], self::PATH . '?state={state}&secret_type={secret_type}&resolution={resolution}&page={page}&per_page={per_page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SecretScanningAlert { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SecretScanningAlert::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SecretScanningAlert::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Service unavailable + **/ + + case 503: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable(503, $this->hydrator->hydrateObject(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Repository is public or secret scanning is disabled for the repository + **/ + case 404: + return ['code' => 404]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/SecretScanning/ListLocationsForAlertListing.php b/clients/GitHubEnterprise-3.4/src/Operation/SecretScanning/ListLocationsForAlertListing.php new file mode 100644 index 00000000000..74644848349 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/SecretScanning/ListLocationsForAlertListing.php @@ -0,0 +1,104 @@ +owner = $owner; + $this->repo = $repo; + $this->alertNumber = $alertNumber; + $this->page = $page; + $this->perPage = $perPage; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{alert_number}', '{page}', '{per_page}'], [$this->owner, $this->repo, $this->alertNumber, $this->page, $this->perPage], self::PATH . '?page={page}&per_page={per_page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SecretScanningLocation { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SecretScanningLocation::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SecretScanningLocation::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Service unavailable + **/ + + case 503: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable(503, $this->hydrator->hydrateObject(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Repository is public, or secret scanning is disabled for the repository, or the resource is not found + **/ + case 404: + return ['code' => 404]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Teams.php b/clients/GitHubEnterprise-3.4/src/Operation/Teams.php index 255aca08dcb..4edb29138a2 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/Teams.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/Teams.php @@ -31,6 +31,15 @@ public function list(string $org, int $perPage, int $page): Schema\Team return $this->operator[Operator\Teams\List_::class]->call($org, $perPage, $page); } + public function listListing(string $org, int $perPage, int $page): Schema\Team + { + if (array_key_exists(Operator\Teams\ListListing::class, $this->operator) === false) { + $this->operator[Operator\Teams\ListListing::class] = new Operator\Teams\ListListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams()); + } + + return $this->operator[Operator\Teams\ListListing::class]->call($org, $perPage, $page); + } + public function create(string $org, array $params): Schema\TeamFull { if (array_key_exists(Operator\Teams\Create::class, $this->operator) === false) { @@ -76,6 +85,15 @@ public function listDiscussionsInOrg(string $org, string $teamSlug, string $pinn return $this->operator[Operator\Teams\ListDiscussionsInOrg::class]->call($org, $teamSlug, $pinned, $direction, $perPage, $page); } + public function listDiscussionsInOrgListing(string $org, string $teamSlug, string $pinned, string $direction, int $perPage, int $page): Schema\TeamDiscussion + { + if (array_key_exists(Operator\Teams\ListDiscussionsInOrgListing::class, $this->operator) === false) { + $this->operator[Operator\Teams\ListDiscussionsInOrgListing::class] = new Operator\Teams\ListDiscussionsInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Discussions()); + } + + return $this->operator[Operator\Teams\ListDiscussionsInOrgListing::class]->call($org, $teamSlug, $pinned, $direction, $perPage, $page); + } + public function createDiscussionInOrg(string $org, string $teamSlug, array $params): Schema\TeamDiscussion { if (array_key_exists(Operator\Teams\CreateDiscussionInOrg::class, $this->operator) === false) { @@ -121,6 +139,15 @@ public function listDiscussionCommentsInOrg(string $org, string $teamSlug, int $ return $this->operator[Operator\Teams\ListDiscussionCommentsInOrg::class]->call($org, $teamSlug, $discussionNumber, $direction, $perPage, $page); } + public function listDiscussionCommentsInOrgListing(string $org, string $teamSlug, int $discussionNumber, string $direction, int $perPage, int $page): Schema\TeamDiscussionComment + { + if (array_key_exists(Operator\Teams\ListDiscussionCommentsInOrgListing::class, $this->operator) === false) { + $this->operator[Operator\Teams\ListDiscussionCommentsInOrgListing::class] = new Operator\Teams\ListDiscussionCommentsInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Discussions🌀DiscussionNumber🌀Comments()); + } + + return $this->operator[Operator\Teams\ListDiscussionCommentsInOrgListing::class]->call($org, $teamSlug, $discussionNumber, $direction, $perPage, $page); + } + public function createDiscussionCommentInOrg(string $org, string $teamSlug, int $discussionNumber, array $params): Schema\TeamDiscussionComment { if (array_key_exists(Operator\Teams\CreateDiscussionCommentInOrg::class, $this->operator) === false) { @@ -166,6 +193,15 @@ public function listMembersInOrg(string $org, string $teamSlug, string $role, in return $this->operator[Operator\Teams\ListMembersInOrg::class]->call($org, $teamSlug, $role, $perPage, $page); } + public function listMembersInOrgListing(string $org, string $teamSlug, string $role, int $perPage, int $page): Schema\SimpleUser + { + if (array_key_exists(Operator\Teams\ListMembersInOrgListing::class, $this->operator) === false) { + $this->operator[Operator\Teams\ListMembersInOrgListing::class] = new Operator\Teams\ListMembersInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Members()); + } + + return $this->operator[Operator\Teams\ListMembersInOrgListing::class]->call($org, $teamSlug, $role, $perPage, $page); + } + public function getMembershipForUserInOrg(string $org, string $teamSlug, string $username): Schema\TeamMembership { if (array_key_exists(Operator\Teams\GetMembershipForUserInOrg::class, $this->operator) === false) { @@ -202,6 +238,15 @@ public function listProjectsInOrg(string $org, string $teamSlug, int $perPage, i return $this->operator[Operator\Teams\ListProjectsInOrg::class]->call($org, $teamSlug, $perPage, $page); } + public function listProjectsInOrgListing(string $org, string $teamSlug, int $perPage, int $page): Schema\TeamProject + { + if (array_key_exists(Operator\Teams\ListProjectsInOrgListing::class, $this->operator) === false) { + $this->operator[Operator\Teams\ListProjectsInOrgListing::class] = new Operator\Teams\ListProjectsInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Projects()); + } + + return $this->operator[Operator\Teams\ListProjectsInOrgListing::class]->call($org, $teamSlug, $perPage, $page); + } + public function checkPermissionsForProjectInOrg(string $org, string $teamSlug, int $projectId): Schema\TeamProject { if (array_key_exists(Operator\Teams\CheckPermissionsForProjectInOrg::class, $this->operator) === false) { @@ -238,6 +283,15 @@ public function listReposInOrg(string $org, string $teamSlug, int $perPage, int return $this->operator[Operator\Teams\ListReposInOrg::class]->call($org, $teamSlug, $perPage, $page); } + public function listReposInOrgListing(string $org, string $teamSlug, int $perPage, int $page): Schema\MinimalRepository + { + if (array_key_exists(Operator\Teams\ListReposInOrgListing::class, $this->operator) === false) { + $this->operator[Operator\Teams\ListReposInOrgListing::class] = new Operator\Teams\ListReposInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Repos()); + } + + return $this->operator[Operator\Teams\ListReposInOrgListing::class]->call($org, $teamSlug, $perPage, $page); + } + public function checkPermissionsForRepoInOrg(string $org, string $teamSlug, string $owner, string $repo): Schema\TeamRepository { if (array_key_exists(Operator\Teams\CheckPermissionsForRepoInOrg::class, $this->operator) === false) { @@ -274,6 +328,15 @@ public function listChildInOrg(string $org, string $teamSlug, int $perPage, int return $this->operator[Operator\Teams\ListChildInOrg::class]->call($org, $teamSlug, $perPage, $page); } + public function listChildInOrgListing(string $org, string $teamSlug, int $perPage, int $page): Schema\Team + { + if (array_key_exists(Operator\Teams\ListChildInOrgListing::class, $this->operator) === false) { + $this->operator[Operator\Teams\ListChildInOrgListing::class] = new Operator\Teams\ListChildInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Teams()); + } + + return $this->operator[Operator\Teams\ListChildInOrgListing::class]->call($org, $teamSlug, $perPage, $page); + } + public function getLegacy(int $teamId): Schema\TeamFull { if (array_key_exists(Operator\Teams\GetLegacy::class, $this->operator) === false) { @@ -310,6 +373,15 @@ public function listDiscussionsLegacy(int $teamId, string $direction, int $perPa return $this->operator[Operator\Teams\ListDiscussionsLegacy::class]->call($teamId, $direction, $perPage, $page); } + public function listDiscussionsLegacyListing(int $teamId, string $direction, int $perPage, int $page): Schema\TeamDiscussion + { + if (array_key_exists(Operator\Teams\ListDiscussionsLegacyListing::class, $this->operator) === false) { + $this->operator[Operator\Teams\ListDiscussionsLegacyListing::class] = new Operator\Teams\ListDiscussionsLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Discussions()); + } + + return $this->operator[Operator\Teams\ListDiscussionsLegacyListing::class]->call($teamId, $direction, $perPage, $page); + } + public function createDiscussionLegacy(int $teamId, array $params): Schema\TeamDiscussion { if (array_key_exists(Operator\Teams\CreateDiscussionLegacy::class, $this->operator) === false) { @@ -355,6 +427,15 @@ public function listDiscussionCommentsLegacy(int $teamId, int $discussionNumber, return $this->operator[Operator\Teams\ListDiscussionCommentsLegacy::class]->call($teamId, $discussionNumber, $direction, $perPage, $page); } + public function listDiscussionCommentsLegacyListing(int $teamId, int $discussionNumber, string $direction, int $perPage, int $page): Schema\TeamDiscussionComment + { + if (array_key_exists(Operator\Teams\ListDiscussionCommentsLegacyListing::class, $this->operator) === false) { + $this->operator[Operator\Teams\ListDiscussionCommentsLegacyListing::class] = new Operator\Teams\ListDiscussionCommentsLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Discussions🌀DiscussionNumber🌀Comments()); + } + + return $this->operator[Operator\Teams\ListDiscussionCommentsLegacyListing::class]->call($teamId, $discussionNumber, $direction, $perPage, $page); + } + public function createDiscussionCommentLegacy(int $teamId, int $discussionNumber, array $params): Schema\TeamDiscussionComment { if (array_key_exists(Operator\Teams\CreateDiscussionCommentLegacy::class, $this->operator) === false) { @@ -400,6 +481,15 @@ public function listMembersLegacy(int $teamId, string $role, int $perPage, int $ return $this->operator[Operator\Teams\ListMembersLegacy::class]->call($teamId, $role, $perPage, $page); } + public function listMembersLegacyListing(int $teamId, string $role, int $perPage, int $page): Schema\SimpleUser + { + if (array_key_exists(Operator\Teams\ListMembersLegacyListing::class, $this->operator) === false) { + $this->operator[Operator\Teams\ListMembersLegacyListing::class] = new Operator\Teams\ListMembersLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Members()); + } + + return $this->operator[Operator\Teams\ListMembersLegacyListing::class]->call($teamId, $role, $perPage, $page); + } + public function getMemberLegacy(int $teamId, string $username): ResponseInterface { if (array_key_exists(Operator\Teams\GetMemberLegacy::class, $this->operator) === false) { @@ -463,6 +553,15 @@ public function listProjectsLegacy(int $teamId, int $perPage, int $page): Schema return $this->operator[Operator\Teams\ListProjectsLegacy::class]->call($teamId, $perPage, $page); } + public function listProjectsLegacyListing(int $teamId, int $perPage, int $page): Schema\TeamProject + { + if (array_key_exists(Operator\Teams\ListProjectsLegacyListing::class, $this->operator) === false) { + $this->operator[Operator\Teams\ListProjectsLegacyListing::class] = new Operator\Teams\ListProjectsLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Projects()); + } + + return $this->operator[Operator\Teams\ListProjectsLegacyListing::class]->call($teamId, $perPage, $page); + } + public function checkPermissionsForProjectLegacy(int $teamId, int $projectId): Schema\TeamProject { if (array_key_exists(Operator\Teams\CheckPermissionsForProjectLegacy::class, $this->operator) === false) { @@ -499,6 +598,15 @@ public function listReposLegacy(int $teamId, int $perPage, int $page): Schema\Mi return $this->operator[Operator\Teams\ListReposLegacy::class]->call($teamId, $perPage, $page); } + public function listReposLegacyListing(int $teamId, int $perPage, int $page): Schema\MinimalRepository + { + if (array_key_exists(Operator\Teams\ListReposLegacyListing::class, $this->operator) === false) { + $this->operator[Operator\Teams\ListReposLegacyListing::class] = new Operator\Teams\ListReposLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Repos()); + } + + return $this->operator[Operator\Teams\ListReposLegacyListing::class]->call($teamId, $perPage, $page); + } + public function checkPermissionsForRepoLegacy(int $teamId, string $owner, string $repo): Schema\TeamRepository { if (array_key_exists(Operator\Teams\CheckPermissionsForRepoLegacy::class, $this->operator) === false) { @@ -535,6 +643,15 @@ public function listChildLegacy(int $teamId, int $perPage, int $page): Schema\Te return $this->operator[Operator\Teams\ListChildLegacy::class]->call($teamId, $perPage, $page); } + public function listChildLegacyListing(int $teamId, int $perPage, int $page): Schema\Team + { + if (array_key_exists(Operator\Teams\ListChildLegacyListing::class, $this->operator) === false) { + $this->operator[Operator\Teams\ListChildLegacyListing::class] = new Operator\Teams\ListChildLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Teams()); + } + + return $this->operator[Operator\Teams\ListChildLegacyListing::class]->call($teamId, $perPage, $page); + } + public function listForAuthenticatedUser(int $perPage, int $page): Schema\TeamFull { if (array_key_exists(Operator\Teams\ListForAuthenticatedUser::class, $this->operator) === false) { @@ -543,4 +660,13 @@ public function listForAuthenticatedUser(int $perPage, int $page): Schema\TeamFu return $this->operator[Operator\Teams\ListForAuthenticatedUser::class]->call($perPage, $page); } + + public function listForAuthenticatedUserListing(int $perPage, int $page): Schema\TeamFull + { + if (array_key_exists(Operator\Teams\ListForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Teams\ListForAuthenticatedUserListing::class] = new Operator\Teams\ListForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Teams()); + } + + return $this->operator[Operator\Teams\ListForAuthenticatedUserListing::class]->call($perPage, $page); + } } diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListChildInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListChildInOrgListing.php new file mode 100644 index 00000000000..b8dd9935774 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListChildInOrgListing.php @@ -0,0 +1,84 @@ +org = $org; + $this->teamSlug = $teamSlug; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{team_slug}', '{per_page}', '{page}'], [$this->org, $this->teamSlug, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * if child teams exist + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Team { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Team::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Team::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListChildLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListChildLegacyListing.php new file mode 100644 index 00000000000..2763eb391d7 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListChildLegacyListing.php @@ -0,0 +1,106 @@ +teamId = $teamId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{team_id}', '{per_page}', '{page}'], [$this->teamId, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * if child teams exist + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Team { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Team::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Team::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionCommentsInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionCommentsInOrgListing.php new file mode 100644 index 00000000000..d22579415db --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionCommentsInOrgListing.php @@ -0,0 +1,90 @@ +org = $org; + $this->teamSlug = $teamSlug; + $this->discussionNumber = $discussionNumber; + $this->direction = $direction; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{team_slug}', '{discussion_number}', '{direction}', '{per_page}', '{page}'], [$this->org, $this->teamSlug, $this->discussionNumber, $this->direction, $this->perPage, $this->page], self::PATH . '?direction={direction}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\TeamDiscussionComment { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\TeamDiscussionComment::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\TeamDiscussionComment::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionCommentsLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionCommentsLegacyListing.php new file mode 100644 index 00000000000..3fc06dfdb09 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionCommentsLegacyListing.php @@ -0,0 +1,87 @@ +teamId = $teamId; + $this->discussionNumber = $discussionNumber; + $this->direction = $direction; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{team_id}', '{discussion_number}', '{direction}', '{per_page}', '{page}'], [$this->teamId, $this->discussionNumber, $this->direction, $this->perPage, $this->page], self::PATH . '?direction={direction}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\TeamDiscussionComment { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\TeamDiscussionComment::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\TeamDiscussionComment::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionsInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionsInOrgListing.php new file mode 100644 index 00000000000..fd1613f970a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionsInOrgListing.php @@ -0,0 +1,90 @@ +org = $org; + $this->teamSlug = $teamSlug; + $this->pinned = $pinned; + $this->direction = $direction; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{team_slug}', '{pinned}', '{direction}', '{per_page}', '{page}'], [$this->org, $this->teamSlug, $this->pinned, $this->direction, $this->perPage, $this->page], self::PATH . '?pinned={pinned}&direction={direction}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\TeamDiscussion { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\TeamDiscussion::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\TeamDiscussion::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionsLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionsLegacyListing.php new file mode 100644 index 00000000000..bae8d1dfa52 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListDiscussionsLegacyListing.php @@ -0,0 +1,84 @@ +teamId = $teamId; + $this->direction = $direction; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{team_id}', '{direction}', '{per_page}', '{page}'], [$this->teamId, $this->direction, $this->perPage, $this->page], self::PATH . '?direction={direction}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\TeamDiscussion { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\TeamDiscussion::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\TeamDiscussion::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListForAuthenticatedUserListing.php new file mode 100644 index 00000000000..e66c98896da --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListForAuthenticatedUserListing.php @@ -0,0 +1,103 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}'], [$this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\TeamFull { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\TeamFull::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\TeamFull::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListListing.php new file mode 100644 index 00000000000..50b115e0676 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListListing.php @@ -0,0 +1,90 @@ +org = $org; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{per_page}', '{page}'], [$this->org, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Team { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Team::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Team::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListMembersInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListMembersInOrgListing.php new file mode 100644 index 00000000000..e36054d3719 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListMembersInOrgListing.php @@ -0,0 +1,87 @@ +org = $org; + $this->teamSlug = $teamSlug; + $this->role = $role; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{team_slug}', '{role}', '{per_page}', '{page}'], [$this->org, $this->teamSlug, $this->role, $this->perPage, $this->page], self::PATH . '?role={role}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SimpleUser { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SimpleUser::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SimpleUser::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListMembersLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListMembersLegacyListing.php new file mode 100644 index 00000000000..2a1b44743d1 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListMembersLegacyListing.php @@ -0,0 +1,93 @@ +teamId = $teamId; + $this->role = $role; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{team_id}', '{role}', '{per_page}', '{page}'], [$this->teamId, $this->role, $this->perPage, $this->page], self::PATH . '?role={role}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SimpleUser { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SimpleUser::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SimpleUser::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListProjectsInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListProjectsInOrgListing.php new file mode 100644 index 00000000000..458132d3d5c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListProjectsInOrgListing.php @@ -0,0 +1,84 @@ +org = $org; + $this->teamSlug = $teamSlug; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{team_slug}', '{per_page}', '{page}'], [$this->org, $this->teamSlug, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\TeamProject { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\TeamProject::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\TeamProject::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListProjectsLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListProjectsLegacyListing.php new file mode 100644 index 00000000000..f26919100e8 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListProjectsLegacyListing.php @@ -0,0 +1,90 @@ +teamId = $teamId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{team_id}', '{per_page}', '{page}'], [$this->teamId, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\TeamProject { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\TeamProject::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\TeamProject::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListReposInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListReposInOrgListing.php new file mode 100644 index 00000000000..d84599f7556 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListReposInOrgListing.php @@ -0,0 +1,84 @@ +org = $org; + $this->teamSlug = $teamSlug; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{org}', '{team_slug}', '{per_page}', '{page}'], [$this->org, $this->teamSlug, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\MinimalRepository { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\MinimalRepository::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\MinimalRepository::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListReposLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListReposLegacyListing.php new file mode 100644 index 00000000000..bbe24f3205a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Teams/ListReposLegacyListing.php @@ -0,0 +1,90 @@ +teamId = $teamId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{team_id}', '{per_page}', '{page}'], [$this->teamId, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\MinimalRepository { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\MinimalRepository::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\MinimalRepository::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Users.php b/clients/GitHubEnterprise-3.4/src/Operation/Users.php index a3606488066..75edc9036ea 100644 --- a/clients/GitHubEnterprise-3.4/src/Operation/Users.php +++ b/clients/GitHubEnterprise-3.4/src/Operation/Users.php @@ -49,6 +49,15 @@ public function listEmailsForAuthenticatedUser(int $perPage, int $page): Schema\ return $this->operator[Operator\Users\ListEmailsForAuthenticatedUser::class]->call($perPage, $page); } + public function listEmailsForAuthenticatedUserListing(int $perPage, int $page): Schema\Email + { + if (array_key_exists(Operator\Users\ListEmailsForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Users\ListEmailsForAuthenticatedUserListing::class] = new Operator\Users\ListEmailsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Emails()); + } + + return $this->operator[Operator\Users\ListEmailsForAuthenticatedUserListing::class]->call($perPage, $page); + } + public function addEmailForAuthenticatedUser(array $params): Schema\Email { if (array_key_exists(Operator\Users\AddEmailForAuthenticatedUser::class, $this->operator) === false) { @@ -76,6 +85,15 @@ public function listFollowersForAuthenticatedUser(int $perPage, int $page): Sche return $this->operator[Operator\Users\ListFollowersForAuthenticatedUser::class]->call($perPage, $page); } + public function listFollowersForAuthenticatedUserListing(int $perPage, int $page): Schema\SimpleUser + { + if (array_key_exists(Operator\Users\ListFollowersForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Users\ListFollowersForAuthenticatedUserListing::class] = new Operator\Users\ListFollowersForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Followers()); + } + + return $this->operator[Operator\Users\ListFollowersForAuthenticatedUserListing::class]->call($perPage, $page); + } + public function listFollowedByAuthenticatedUser(int $perPage, int $page): Schema\SimpleUser { if (array_key_exists(Operator\Users\ListFollowedByAuthenticatedUser::class, $this->operator) === false) { @@ -85,6 +103,15 @@ public function listFollowedByAuthenticatedUser(int $perPage, int $page): Schema return $this->operator[Operator\Users\ListFollowedByAuthenticatedUser::class]->call($perPage, $page); } + public function listFollowedByAuthenticatedUserListing(int $perPage, int $page): Schema\SimpleUser + { + if (array_key_exists(Operator\Users\ListFollowedByAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Users\ListFollowedByAuthenticatedUserListing::class] = new Operator\Users\ListFollowedByAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Following()); + } + + return $this->operator[Operator\Users\ListFollowedByAuthenticatedUserListing::class]->call($perPage, $page); + } + public function checkPersonIsFollowedByAuthenticated(string $username): ResponseInterface { if (array_key_exists(Operator\Users\CheckPersonIsFollowedByAuthenticated::class, $this->operator) === false) { @@ -121,6 +148,15 @@ public function listGpgKeysForAuthenticatedUser(int $perPage, int $page): Schema return $this->operator[Operator\Users\ListGpgKeysForAuthenticatedUser::class]->call($perPage, $page); } + public function listGpgKeysForAuthenticatedUserListing(int $perPage, int $page): Schema\GpgKey + { + if (array_key_exists(Operator\Users\ListGpgKeysForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Users\ListGpgKeysForAuthenticatedUserListing::class] = new Operator\Users\ListGpgKeysForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀GpgKeys()); + } + + return $this->operator[Operator\Users\ListGpgKeysForAuthenticatedUserListing::class]->call($perPage, $page); + } + public function createGpgKeyForAuthenticatedUser(array $params): Schema\GpgKey { if (array_key_exists(Operator\Users\CreateGpgKeyForAuthenticatedUser::class, $this->operator) === false) { @@ -157,6 +193,15 @@ public function listPublicSshKeysForAuthenticatedUser(int $perPage, int $page): return $this->operator[Operator\Users\ListPublicSshKeysForAuthenticatedUser::class]->call($perPage, $page); } + public function listPublicSshKeysForAuthenticatedUserListing(int $perPage, int $page): Schema\Key + { + if (array_key_exists(Operator\Users\ListPublicSshKeysForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Users\ListPublicSshKeysForAuthenticatedUserListing::class] = new Operator\Users\ListPublicSshKeysForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀Keys()); + } + + return $this->operator[Operator\Users\ListPublicSshKeysForAuthenticatedUserListing::class]->call($perPage, $page); + } + public function createPublicSshKeyForAuthenticatedUser(array $params): Schema\Key { if (array_key_exists(Operator\Users\CreatePublicSshKeyForAuthenticatedUser::class, $this->operator) === false) { @@ -193,6 +238,15 @@ public function listPublicEmailsForAuthenticatedUser(int $perPage, int $page): S return $this->operator[Operator\Users\ListPublicEmailsForAuthenticatedUser::class]->call($perPage, $page); } + public function listPublicEmailsForAuthenticatedUserListing(int $perPage, int $page): Schema\Email + { + if (array_key_exists(Operator\Users\ListPublicEmailsForAuthenticatedUserListing::class, $this->operator) === false) { + $this->operator[Operator\Users\ListPublicEmailsForAuthenticatedUserListing::class] = new Operator\Users\ListPublicEmailsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀User🌀PublicEmails()); + } + + return $this->operator[Operator\Users\ListPublicEmailsForAuthenticatedUserListing::class]->call($perPage, $page); + } + public function list(int $since, int $perPage): Schema\SimpleUser { if (array_key_exists(Operator\Users\List_::class, $this->operator) === false) { @@ -220,6 +274,15 @@ public function listFollowersForUser(string $username, int $perPage, int $page): return $this->operator[Operator\Users\ListFollowersForUser::class]->call($username, $perPage, $page); } + public function listFollowersForUserListing(string $username, int $perPage, int $page): Schema\SimpleUser + { + if (array_key_exists(Operator\Users\ListFollowersForUserListing::class, $this->operator) === false) { + $this->operator[Operator\Users\ListFollowersForUserListing::class] = new Operator\Users\ListFollowersForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Followers()); + } + + return $this->operator[Operator\Users\ListFollowersForUserListing::class]->call($username, $perPage, $page); + } + public function listFollowingForUser(string $username, int $perPage, int $page): Schema\SimpleUser { if (array_key_exists(Operator\Users\ListFollowingForUser::class, $this->operator) === false) { @@ -229,6 +292,15 @@ public function listFollowingForUser(string $username, int $perPage, int $page): return $this->operator[Operator\Users\ListFollowingForUser::class]->call($username, $perPage, $page); } + public function listFollowingForUserListing(string $username, int $perPage, int $page): Schema\SimpleUser + { + if (array_key_exists(Operator\Users\ListFollowingForUserListing::class, $this->operator) === false) { + $this->operator[Operator\Users\ListFollowingForUserListing::class] = new Operator\Users\ListFollowingForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Following()); + } + + return $this->operator[Operator\Users\ListFollowingForUserListing::class]->call($username, $perPage, $page); + } + public function checkFollowingForUser(string $username, string $targetUser): ResponseInterface { if (array_key_exists(Operator\Users\CheckFollowingForUser::class, $this->operator) === false) { @@ -247,6 +319,15 @@ public function listGpgKeysForUser(string $username, int $perPage, int $page): S return $this->operator[Operator\Users\ListGpgKeysForUser::class]->call($username, $perPage, $page); } + public function listGpgKeysForUserListing(string $username, int $perPage, int $page): Schema\GpgKey + { + if (array_key_exists(Operator\Users\ListGpgKeysForUserListing::class, $this->operator) === false) { + $this->operator[Operator\Users\ListGpgKeysForUserListing::class] = new Operator\Users\ListGpgKeysForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀GpgKeys()); + } + + return $this->operator[Operator\Users\ListGpgKeysForUserListing::class]->call($username, $perPage, $page); + } + public function getContextForUser(string $username, string $subjectType, string $subjectId): Schema\Hovercard { if (array_key_exists(Operator\Users\GetContextForUser::class, $this->operator) === false) { @@ -264,4 +345,13 @@ public function listPublicKeysForUser(string $username, int $perPage, int $page) return $this->operator[Operator\Users\ListPublicKeysForUser::class]->call($username, $perPage, $page); } + + public function listPublicKeysForUserListing(string $username, int $perPage, int $page): Schema\KeySimple + { + if (array_key_exists(Operator\Users\ListPublicKeysForUserListing::class, $this->operator) === false) { + $this->operator[Operator\Users\ListPublicKeysForUserListing::class] = new Operator\Users\ListPublicKeysForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Keys()); + } + + return $this->operator[Operator\Users\ListPublicKeysForUserListing::class]->call($username, $perPage, $page); + } } diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Users/ListEmailsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListEmailsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..b637e33ff1e --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListEmailsForAuthenticatedUserListing.php @@ -0,0 +1,111 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}'], [$this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Email { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Email::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Email::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowedByAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowedByAuthenticatedUserListing.php new file mode 100644 index 00000000000..c302d498d4d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowedByAuthenticatedUserListing.php @@ -0,0 +1,103 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}'], [$this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SimpleUser { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SimpleUser::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SimpleUser::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowersForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowersForAuthenticatedUserListing.php new file mode 100644 index 00000000000..231b737627e --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowersForAuthenticatedUserListing.php @@ -0,0 +1,103 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}'], [$this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SimpleUser { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SimpleUser::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SimpleUser::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowersForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowersForUserListing.php new file mode 100644 index 00000000000..f12841e6183 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowersForUserListing.php @@ -0,0 +1,81 @@ +username = $username; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{username}', '{per_page}', '{page}'], [$this->username, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SimpleUser { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SimpleUser::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SimpleUser::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowingForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowingForUserListing.php new file mode 100644 index 00000000000..ae1270a2c60 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListFollowingForUserListing.php @@ -0,0 +1,81 @@ +username = $username; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{username}', '{per_page}', '{page}'], [$this->username, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SimpleUser { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SimpleUser::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SimpleUser::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Users/ListGpgKeysForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListGpgKeysForAuthenticatedUserListing.php new file mode 100644 index 00000000000..940339b7b5a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListGpgKeysForAuthenticatedUserListing.php @@ -0,0 +1,111 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}'], [$this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\GpgKey { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\GpgKey::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\GpgKey::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Users/ListGpgKeysForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListGpgKeysForUserListing.php new file mode 100644 index 00000000000..7efe40b9b8e --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListGpgKeysForUserListing.php @@ -0,0 +1,81 @@ +username = $username; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{username}', '{per_page}', '{page}'], [$this->username, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\GpgKey { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\GpgKey::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\GpgKey::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Users/ListPublicEmailsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListPublicEmailsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..909fee17ee3 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListPublicEmailsForAuthenticatedUserListing.php @@ -0,0 +1,111 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}'], [$this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Email { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Email::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Email::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Users/ListPublicKeysForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListPublicKeysForUserListing.php new file mode 100644 index 00000000000..960ce6b07c3 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListPublicKeysForUserListing.php @@ -0,0 +1,81 @@ +username = $username; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{username}', '{per_page}', '{page}'], [$this->username, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\KeySimple { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\KeySimple::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\KeySimple::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operation/Users/ListPublicSshKeysForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListPublicSshKeysForAuthenticatedUserListing.php new file mode 100644 index 00000000000..e3dd7b71670 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operation/Users/ListPublicSshKeysForAuthenticatedUserListing.php @@ -0,0 +1,111 @@ +perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request(self::METHOD, str_replace(['{per_page}', '{page}'], [$this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}')); + } + + /** @return Observable|array{code: int} */ + public function createResponse(ResponseInterface $response): Observable|array + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Key { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Key::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Key::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Requires authentication + **/ + + case 401: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Not modified + **/ + case 304: + return ['code' => 304]; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Actions/GetPendingDeploymentsForRun.php b/clients/GitHubEnterprise-3.4/src/Operator/Actions/GetPendingDeploymentsForRun.php index 9965362c8c1..a28537c6be5 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Actions/GetPendingDeploymentsForRun.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Actions/GetPendingDeploymentsForRun.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $runId): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Actions\GetPendingDeploymentsForRun($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $runId); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Actions/GetReviewsForRun.php b/clients/GitHubEnterprise-3.4/src/Operator/Actions/GetReviewsForRun.php index c0a803af8d2..acb4a8132e9 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Actions/GetReviewsForRun.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Actions/GetReviewsForRun.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $runId): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Actions\GetReviewsForRun($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $runId); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Actions/ListRunnerApplicationsForOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/Actions/ListRunnerApplicationsForOrg.php index 0465060c983..8e9248d41fd 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Actions/ListRunnerApplicationsForOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Actions/ListRunnerApplicationsForOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Actions\ListRunnerApplicationsForOrg($this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Actions/ListRunnerApplicationsForRepo.php b/clients/GitHubEnterprise-3.4/src/Operator/Actions/ListRunnerApplicationsForRepo.php index 8a3b4231cdf..0f60cc78bd2 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Actions/ListRunnerApplicationsForRepo.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Actions/ListRunnerApplicationsForRepo.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Actions\ListRunnerApplicationsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Actions/ReviewPendingDeploymentsForRun.php b/clients/GitHubEnterprise-3.4/src/Operator/Actions/ReviewPendingDeploymentsForRun.php index 07ce60f8da2..fb8f2a110bf 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Actions/ReviewPendingDeploymentsForRun.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Actions/ReviewPendingDeploymentsForRun.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $runId, array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Actions\ReviewPendingDeploymentsForRun($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $runId); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListEventsForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListEventsForAuthenticatedUser.php index cab4943debc..f0d4d1c5d4c 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListEventsForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListEventsForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $username, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListEventsForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListEventsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListEventsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..19e9b06512b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListEventsForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $username, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListEventsForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListNotificationsForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListNotificationsForAuthenticatedUser.php index 3d9e48f572a..b78f067f646 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListNotificationsForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListNotificationsForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $since, string $before, bool $all = false, bool $participating = false, int $page = 1, int $perPage = 50): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListNotificationsForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $since, $before, $all, $participating, $page, $perPage); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListNotificationsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListNotificationsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..60c6e624709 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListNotificationsForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $since, string $before, bool $all = false, bool $participating = false, int $page = 1, int $perPage = 50): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListNotificationsForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $since, $before, $all, $participating, $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|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListOrgEventsForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListOrgEventsForAuthenticatedUser.php index 61d01e9a0fd..2c3c1adfd0b 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListOrgEventsForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListOrgEventsForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $username, string $org, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListOrgEventsForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $username, $org, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListOrgEventsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListOrgEventsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..b23acdb8633 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListOrgEventsForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $username, string $org, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListOrgEventsForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $username, $org, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEvents.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEvents.php index 9c6d1aa1624..36bfc0492ff 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEvents.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEvents.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListPublicEvents($this->responseSchemaValidator, $this->hydrator, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForRepoNetwork.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForRepoNetwork.php index 892947cb3d9..1529d80801b 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForRepoNetwork.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForRepoNetwork.php @@ -27,7 +27,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | Schema\BasicError | array{code: int}) */ + /** @return (Observable | Schema\BasicError | array{code: int}) */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable|BasicError { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListPublicEventsForRepoNetwork($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForRepoNetworkListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForRepoNetworkListing.php new file mode 100644 index 00000000000..2efa410297f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForRepoNetworkListing.php @@ -0,0 +1,44 @@ + | Schema\BasicError | array{code: int}) */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable|BasicError + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListPublicEventsForRepoNetworkListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|BasicError|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForUser.php index 4249e2fa6b7..485582fc9cb 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $username, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListPublicEventsForUser($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForUserListing.php new file mode 100644 index 00000000000..02b8e2597ca --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsForUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $username, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListPublicEventsForUserListing($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsListing.php new file mode 100644 index 00000000000..fd63c7416f3 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicEventsListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListPublicEventsListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicOrgEvents.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicOrgEvents.php index 50e03e8efea..0710bb656de 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicOrgEvents.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicOrgEvents.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListPublicOrgEvents($this->responseSchemaValidator, $this->hydrator, $org, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicOrgEventsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicOrgEventsListing.php new file mode 100644 index 00000000000..391ce537c21 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListPublicOrgEventsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListPublicOrgEventsListing($this->responseSchemaValidator, $this->hydrator, $org, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedEventsForUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedEventsForUser.php index 494034df8af..d9406565266 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedEventsForUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedEventsForUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $username, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListReceivedEventsForUser($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedEventsForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedEventsForUserListing.php new file mode 100644 index 00000000000..655d5ca923c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedEventsForUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $username, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListReceivedEventsForUserListing($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedPublicEventsForUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedPublicEventsForUser.php index 3cd7e7ddd1f..6a8020f8d9c 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedPublicEventsForUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedPublicEventsForUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $username, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListReceivedPublicEventsForUser($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedPublicEventsForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedPublicEventsForUserListing.php new file mode 100644 index 00000000000..45c98b2e69e --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReceivedPublicEventsForUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $username, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListReceivedPublicEventsForUserListing($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoEvents.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoEvents.php index 08541ec482e..bd26e479ff2 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoEvents.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoEvents.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListRepoEvents($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoEventsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoEventsListing.php new file mode 100644 index 00000000000..686d6c61031 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoEventsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListRepoEventsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoNotificationsForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoNotificationsForAuthenticatedUser.php index 2a01e3f0a14..847d996c7de 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoNotificationsForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoNotificationsForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $since, string $before, bool $all = false, bool $participating = false, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListRepoNotificationsForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $since, $before, $all, $participating, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoNotificationsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoNotificationsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..11795e8ed43 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListRepoNotificationsForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, string $since, string $before, bool $all = false, bool $participating = false, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListRepoNotificationsForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $since, $before, $all, $participating, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposStarredByAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposStarredByAuthenticatedUser.php index 5ff14a8577e..785364cddb6 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposStarredByAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposStarredByAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListReposStarredByAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $sort, $direction, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposStarredByAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposStarredByAuthenticatedUserListing.php new file mode 100644 index 00000000000..479d9fd5770 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposStarredByAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListReposStarredByAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $sort, $direction, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposStarredByUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposStarredByUser.php index d57b38f72f9..81212992c91 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposStarredByUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposStarredByUser.php @@ -5,7 +5,6 @@ namespace ApiClients\Client\GitHubEnterprise\Operator\Activity; use ApiClients\Client\GitHubEnterprise\Hydrator; -use ApiClients\Client\GitHubEnterprise\Schema; use ApiClients\Client\GitHubEnterprise\Schema\Repository; use ApiClients\Client\GitHubEnterprise\Schema\StarredRepository; use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface; @@ -28,7 +27,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (Schema\StarredRepository | Schema\Repository) */ + /** @return */ public function call(string $username, string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): StarredRepository|Repository|array { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListReposStarredByUser($this->responseSchemaValidator, $this->hydrator, $username, $sort, $direction, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposWatchedByUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposWatchedByUser.php index f500d356051..71a5ee4b4fb 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposWatchedByUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposWatchedByUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $username, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListReposWatchedByUser($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposWatchedByUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposWatchedByUserListing.php new file mode 100644 index 00000000000..0296c8de6b1 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListReposWatchedByUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $username, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListReposWatchedByUserListing($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListStargazersForRepo.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListStargazersForRepo.php index 3565f7c4f0b..b349b66d202 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListStargazersForRepo.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListStargazersForRepo.php @@ -5,7 +5,6 @@ namespace ApiClients\Client\GitHubEnterprise\Operator\Activity; use ApiClients\Client\GitHubEnterprise\Hydrator; -use ApiClients\Client\GitHubEnterprise\Schema; use ApiClients\Client\GitHubEnterprise\Schema\SimpleUser; use ApiClients\Client\GitHubEnterprise\Schema\Stargazer; use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface; @@ -28,7 +27,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (Schema\SimpleUser | Schema\Stargazer) */ + /** @return */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): SimpleUser|Stargazer|array { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListStargazersForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchedReposForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchedReposForAuthenticatedUser.php index 363de56e8aa..3ae3e5e3312 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchedReposForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchedReposForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListWatchedReposForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchedReposForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchedReposForAuthenticatedUserListing.php new file mode 100644 index 00000000000..3a8acaaa575 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchedReposForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListWatchedReposForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchersForRepo.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchersForRepo.php index 16fb893a284..0fbaa655427 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchersForRepo.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchersForRepo.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListWatchersForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchersForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchersForRepoListing.php new file mode 100644 index 00000000000..a1313933e11 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Activity/ListWatchersForRepoListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Activity\ListWatchersForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallationRequestsForAuthenticatedApp.php b/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallationRequestsForAuthenticatedApp.php index 8db5c7601b1..656b63691da 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallationRequestsForAuthenticatedApp.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallationRequestsForAuthenticatedApp.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Apps\ListInstallationRequestsForAuthenticatedApp($this->responseSchemaValidator, $this->hydrator, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallationRequestsForAuthenticatedAppListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallationRequestsForAuthenticatedAppListing.php new file mode 100644 index 00000000000..8314767f5a7 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallationRequestsForAuthenticatedAppListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Apps\ListInstallationRequestsForAuthenticatedAppListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallations.php b/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallations.php index 05d6013cca9..c09f0c5b039 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallations.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallations.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $since, string $outdated, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Apps\ListInstallations($this->responseSchemaValidator, $this->hydrator, $since, $outdated, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallationsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallationsListing.php new file mode 100644 index 00000000000..d70245853de --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListInstallationsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $since, string $outdated, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Apps\ListInstallationsListing($this->responseSchemaValidator, $this->hydrator, $since, $outdated, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListWebhookDeliveries.php b/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListWebhookDeliveries.php index d3944d10904..e432d6bdda1 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListWebhookDeliveries.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Apps/ListWebhookDeliveries.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $cursor, bool $redelivery, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Apps\ListWebhookDeliveries($this->responseSchemaValidator, $this->hydrator, $cursor, $redelivery, $perPage); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Checks/ListAnnotations.php b/clients/GitHubEnterprise-3.4/src/Operator/Checks/ListAnnotations.php index fbd87a2b80b..a8f2807579b 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Checks/ListAnnotations.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Checks/ListAnnotations.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $checkRunId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Checks\ListAnnotations($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $checkRunId, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Checks/ListAnnotationsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Checks/ListAnnotationsListing.php new file mode 100644 index 00000000000..1566f8fcb02 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Checks/ListAnnotationsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $checkRunId, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Checks\ListAnnotationsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $checkRunId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertInstances.php b/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertInstances.php index 5473d8c7744..1f6076d27ac 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertInstances.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertInstances.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $alertNumber, string $ref, int $page = 1, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\CodeScanning\ListAlertInstances($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $alertNumber, $ref, $page, $perPage); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertInstancesListing.php b/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertInstancesListing.php new file mode 100644 index 00000000000..1afd4e966a7 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertInstancesListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $alertNumber, string $ref, int $page = 1, int $perPage = 30): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\CodeScanning\ListAlertInstancesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $alertNumber, $ref, $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|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertsForRepo.php b/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertsForRepo.php index 3d3d7f20f6b..e53c089b49e 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertsForRepo.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertsForRepo.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\CodeScanning\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $state, $page, $perPage, $direction, $sort); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertsForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertsForRepoListing.php new file mode 100644 index 00000000000..2c189704d0d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListAlertsForRepoListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $state, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\CodeScanning\ListAlertsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $state, $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|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListRecentAnalyses.php b/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListRecentAnalyses.php index 7aed1f3b03c..41eb104e6b6 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListRecentAnalyses.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListRecentAnalyses.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page = 1, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\CodeScanning\ListRecentAnalyses($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $sarifId, $page, $perPage); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListRecentAnalysesListing.php b/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListRecentAnalysesListing.php new file mode 100644 index 00000000000..c0f01dd0dec --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/CodeScanning/ListRecentAnalysesListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, string $sarifId, int $page = 1, int $perPage = 30): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\CodeScanning\ListRecentAnalysesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $sarifId, $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|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/CodesOfConduct/GetAllCodesOfConduct.php b/clients/GitHubEnterprise-3.4/src/Operator/CodesOfConduct/GetAllCodesOfConduct.php index cef0cca34f2..998200390a9 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/CodesOfConduct/GetAllCodesOfConduct.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/CodesOfConduct/GetAllCodesOfConduct.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\CodesOfConduct\GetAllCodesOfConduct($this->responseSchemaValidator, $this->hydrator); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/AddAuthorizedSshKey.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/AddAuthorizedSshKey.php index b1d19382e5e..c16bcbb051e 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/AddAuthorizedSshKey.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/AddAuthorizedSshKey.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\AddAuthorizedSshKey($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/GetAllAuthorizedSshKeys.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/GetAllAuthorizedSshKeys.php index ba079fecc55..c4a48eae5b6 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/GetAllAuthorizedSshKeys.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/GetAllAuthorizedSshKeys.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\GetAllAuthorizedSshKeys($this->responseSchemaValidator, $this->hydrator); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/GetAuditLog.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/GetAuditLog.php index 61ad66287f9..803de65c7c6 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/GetAuditLog.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/GetAuditLog.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $enterprise, string $phrase, string $include, string $after, string $before, string $order, int $page = 1, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\GetAuditLog($this->responseSchemaValidator, $this->hydrator, $enterprise, $phrase, $include, $after, $before, $order, $page, $perPage); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/GetAuditLogListing.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/GetAuditLogListing.php new file mode 100644 index 00000000000..d1b3ca932d2 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/GetAuditLogListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $enterprise, string $phrase, string $include, string $after, string $before, string $order, int $page = 1, int $perPage = 30): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\GetAuditLogListing($this->responseSchemaValidator, $this->hydrator, $enterprise, $phrase, $include, $after, $before, $order, $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|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListGlobalWebhooks.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListGlobalWebhooks.php index 3503955ccf6..4c089c4e7f4 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListGlobalWebhooks.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListGlobalWebhooks.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\ListGlobalWebhooks($this->responseSchemaValidator, $this->hydrator, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListGlobalWebhooksListing.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListGlobalWebhooksListing.php new file mode 100644 index 00000000000..bf81d3bcd58 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListGlobalWebhooksListing.php @@ -0,0 +1,43 @@ + */ + public function call(int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\ListGlobalWebhooksListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPersonalAccessTokens.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPersonalAccessTokens.php index 81733d7b587..41780421467 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPersonalAccessTokens.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPersonalAccessTokens.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\ListPersonalAccessTokens($this->responseSchemaValidator, $this->hydrator, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPersonalAccessTokensListing.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPersonalAccessTokensListing.php new file mode 100644 index 00000000000..0b5b94344fe --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPersonalAccessTokensListing.php @@ -0,0 +1,43 @@ + */ + public function call(int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\ListPersonalAccessTokensListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveEnvironments.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveEnvironments.php index bb48bd2431b..676ef4dc257 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveEnvironments.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveEnvironments.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $perPage = 30, int $page = 1, string $direction = 'desc', string $sort = 'created'): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\ListPreReceiveEnvironments($this->responseSchemaValidator, $this->hydrator, $perPage, $page, $direction, $sort); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveEnvironmentsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveEnvironmentsListing.php new file mode 100644 index 00000000000..b01ecde1887 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveEnvironmentsListing.php @@ -0,0 +1,43 @@ + */ + public function call(int $perPage = 30, int $page = 1, string $direction = 'desc', string $sort = 'created'): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\ListPreReceiveEnvironmentsListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page, $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|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooks.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooks.php index 25dc091c4a6..cbb33c1e880 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooks.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooks.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $perPage = 30, int $page = 1, string $direction = 'desc', string $sort = 'created'): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\ListPreReceiveHooks($this->responseSchemaValidator, $this->hydrator, $perPage, $page, $direction, $sort); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForOrg.php index 80e3f3224c2..add41e1a496 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, int $perPage = 30, int $page = 1, string $direction = 'desc', string $sort = 'created'): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\ListPreReceiveHooksForOrg($this->responseSchemaValidator, $this->hydrator, $org, $perPage, $page, $direction, $sort); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForOrgListing.php new file mode 100644 index 00000000000..76f0ab07772 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForOrgListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, int $perPage = 30, int $page = 1, string $direction = 'desc', string $sort = 'created'): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\ListPreReceiveHooksForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $perPage, $page, $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|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForRepo.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForRepo.php index 4a2115ef689..89e7750e4c6 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForRepo.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForRepo.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1, string $direction = 'desc', string $sort = 'created'): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\ListPreReceiveHooksForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page, $direction, $sort); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForRepoListing.php new file mode 100644 index 00000000000..80b6ae77ccd --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksForRepoListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1, string $direction = 'desc', string $sort = 'created'): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\ListPreReceiveHooksForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page, $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|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksListing.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksListing.php new file mode 100644 index 00000000000..4d9b701c4bd --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPreReceiveHooksListing.php @@ -0,0 +1,43 @@ + */ + public function call(int $perPage = 30, int $page = 1, string $direction = 'desc', string $sort = 'created'): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\ListPreReceiveHooksListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page, $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|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPublicKeys.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPublicKeys.php index 2c29757e840..e44d88faa7b 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPublicKeys.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPublicKeys.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $since, int $perPage = 30, int $page = 1, string $direction = 'desc', string $sort = 'created'): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\ListPublicKeys($this->responseSchemaValidator, $this->hydrator, $since, $perPage, $page, $direction, $sort); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPublicKeysListing.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPublicKeysListing.php new file mode 100644 index 00000000000..040a293f296 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListPublicKeysListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $since, int $perPage = 30, int $page = 1, string $direction = 'desc', string $sort = 'created'): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\ListPublicKeysListing($this->responseSchemaValidator, $this->hydrator, $since, $perPage, $page, $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|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListRunnerApplicationsForEnterprise.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListRunnerApplicationsForEnterprise.php index df821d750b5..c68b2bf2dc4 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListRunnerApplicationsForEnterprise.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/ListRunnerApplicationsForEnterprise.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $enterprise): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\ListRunnerApplicationsForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/RemoveAuthorizedSshKey.php b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/RemoveAuthorizedSshKey.php index 8aaccf06e09..13db78fa005 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/RemoveAuthorizedSshKey.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/EnterpriseAdmin/RemoveAuthorizedSshKey.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\EnterpriseAdmin\RemoveAuthorizedSshKey($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListComments.php b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListComments.php index a79459cd391..6d235635d47 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListComments.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListComments.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $gistId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Gists\ListComments($this->responseSchemaValidator, $this->hydrator, $gistId, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListCommentsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListCommentsListing.php new file mode 100644 index 00000000000..3a7f176cf56 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListCommentsListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $gistId, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Gists\ListCommentsListing($this->responseSchemaValidator, $this->hydrator, $gistId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListCommits.php b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListCommits.php index 86dc3b676e8..a63f9d4741c 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListCommits.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListCommits.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $gistId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Gists\ListCommits($this->responseSchemaValidator, $this->hydrator, $gistId, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListCommitsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListCommitsListing.php new file mode 100644 index 00000000000..d7b1ea2de63 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListCommitsListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $gistId, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Gists\ListCommitsListing($this->responseSchemaValidator, $this->hydrator, $gistId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForUser.php index cac08b21f19..9c392e886ea 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $username, string $since, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Gists\ListForUser($this->responseSchemaValidator, $this->hydrator, $username, $since, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForUserListing.php new file mode 100644 index 00000000000..2684b4c0dc6 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $username, string $since, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Gists\ListForUserListing($this->responseSchemaValidator, $this->hydrator, $username, $since, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForks.php b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForks.php index dec484dcaed..72cc10da7bf 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForks.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForks.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $gistId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Gists\ListForks($this->responseSchemaValidator, $this->hydrator, $gistId, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForksListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForksListing.php new file mode 100644 index 00000000000..4d284e7be31 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListForksListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $gistId, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Gists\ListForksListing($this->responseSchemaValidator, $this->hydrator, $gistId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListListing.php new file mode 100644 index 00000000000..036e01872de --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $since, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Gists\ListListing($this->responseSchemaValidator, $this->hydrator, $since, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListPublic.php b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListPublic.php index ef764040215..edbc8cecfae 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListPublic.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListPublic.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $since, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Gists\ListPublic($this->responseSchemaValidator, $this->hydrator, $since, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListPublicListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListPublicListing.php new file mode 100644 index 00000000000..f2c9fcbdddc --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListPublicListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $since, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Gists\ListPublicListing($this->responseSchemaValidator, $this->hydrator, $since, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListStarred.php b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListStarred.php index e319212529c..5a7cef8a497 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListStarred.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListStarred.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $since, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Gists\ListStarred($this->responseSchemaValidator, $this->hydrator, $since, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListStarredListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListStarredListing.php new file mode 100644 index 00000000000..0d458e99ead --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Gists/ListStarredListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $since, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Gists\ListStarredListing($this->responseSchemaValidator, $this->hydrator, $since, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Gists/List_.php b/clients/GitHubEnterprise-3.4/src/Operator/Gists/List_.php index 90fc802b2d8..e8e4037c4f7 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Gists/List_.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Gists/List_.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $since, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Gists\List_($this->responseSchemaValidator, $this->hydrator, $since, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Git/ListMatchingRefs.php b/clients/GitHubEnterprise-3.4/src/Operator/Git/ListMatchingRefs.php index 890c662cfe5..c2deb6ad5fb 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Git/ListMatchingRefs.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Git/ListMatchingRefs.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $ref): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Git\ListMatchingRefs($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $ref); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Gitignore/GetAllTemplates.php b/clients/GitHubEnterprise-3.4/src/Operator/Gitignore/GetAllTemplates.php index 87994a111f2..07646592bb8 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Gitignore/GetAllTemplates.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Gitignore/GetAllTemplates.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Gitignore\GetAllTemplates($this->responseSchemaValidator, $this->hydrator); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/AddLabels.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/AddLabels.php index b676494d0b4..2799c7aa84c 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/AddLabels.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/AddLabels.php @@ -27,7 +27,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | Schema\BasicError) */ + /** @return (Observable | Schema\BasicError) */ public function call(string $owner, string $repo, int $issueNumber, array $params): iterable|BasicError { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\AddLabels($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListAssignees.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListAssignees.php index 51a51ef6242..d7571c8dbb7 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListAssignees.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListAssignees.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListAssignees($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListAssigneesListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListAssigneesListing.php new file mode 100644 index 00000000000..a9bd65ff17b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListAssigneesListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListAssigneesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListComments.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListComments.php index 293e8468937..0314654ab36 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListComments.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListComments.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $issueNumber, string $since, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListComments($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $since, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListCommentsForRepo.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListCommentsForRepo.php index 32c8b0e7c23..c9250a67422 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListCommentsForRepo.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListCommentsForRepo.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $direction, string $since, string $sort = 'created', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListCommentsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $direction, $since, $sort, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListCommentsForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListCommentsForRepoListing.php new file mode 100644 index 00000000000..335d71f2b63 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListCommentsForRepoListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, string $direction, string $since, string $sort = 'created', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListCommentsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $direction, $since, $sort, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListCommentsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListCommentsListing.php new file mode 100644 index 00000000000..38992b08bf2 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListCommentsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $issueNumber, string $since, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListCommentsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $since, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEvents.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEvents.php index 3141751e218..cc0454545e2 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEvents.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEvents.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\AssignedIssueEvent | Schema\UnassignedIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent)> */ + /** @return Observable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\AssignedIssueEvent | Schema\UnassignedIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent)> */ public function call(string $owner, string $repo, int $issueNumber, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListEvents($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForRepo.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForRepo.php index b56dd457371..3c7f90d49e9 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForRepo.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForRepo.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListEventsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForRepoListing.php new file mode 100644 index 00000000000..a77b60e4e6c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForRepoListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListEventsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForTimeline.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForTimeline.php index b0d3d7f7fca..e54a097ef00 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForTimeline.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForTimeline.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent | Schema\TimelineCommentEvent | Schema\TimelineCrossReferencedEvent | Schema\TimelineCommittedEvent | Schema\TimelineReviewedEvent | Schema\TimelineLineCommentedEvent | Schema\TimelineCommitCommentedEvent | Schema\TimelineAssignedIssueEvent | Schema\TimelineUnassignedIssueEvent | Schema\StateChangeIssueEvent)> */ + /** @return Observable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent | Schema\TimelineCommentEvent | Schema\TimelineCrossReferencedEvent | Schema\TimelineCommittedEvent | Schema\TimelineReviewedEvent | Schema\TimelineLineCommentedEvent | Schema\TimelineCommitCommentedEvent | Schema\TimelineAssignedIssueEvent | Schema\TimelineUnassignedIssueEvent | Schema\StateChangeIssueEvent)> */ public function call(string $owner, string $repo, int $issueNumber, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListEventsForTimeline($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForTimelineListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForTimelineListing.php new file mode 100644 index 00000000000..15b101f0252 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsForTimelineListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $issueNumber, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListEventsForTimelineListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsListing.php new file mode 100644 index 00000000000..fbebb4e52fc --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListEventsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $issueNumber, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListEventsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForAuthenticatedUser.php index e446c275e9f..dcb9d416013 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForAuthenticatedUserListing.php new file mode 100644 index 00000000000..147310c02e7 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForOrg.php index fb4ad5b04c5..d0dc5922e1f 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListForOrg($this->responseSchemaValidator, $this->hydrator, $org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForOrgListing.php new file mode 100644 index 00000000000..196cdff3d66 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForOrgListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, string $labels, string $since, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $labels, $since, $filter, $state, $sort, $direction, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForRepo.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForRepo.php index 91365ef3085..95c87913d23 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForRepo.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForRepo.php @@ -27,7 +27,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | Schema\BasicError) */ + /** @return (Observable | Schema\BasicError) */ public function call(string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForRepoListing.php new file mode 100644 index 00000000000..9a15a4c5990 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListForRepoListing.php @@ -0,0 +1,44 @@ + | Schema\BasicError) */ + public function call(string $owner, string $repo, string $milestone, string $assignee, string $creator, string $mentioned, string $labels, string $since, string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable|BasicError + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestone, $assignee, $creator, $mentioned, $labels, $since, $state, $sort, $direction, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|BasicError|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForMilestone.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForMilestone.php index 7c1ce65d758..50bfd0ab0e5 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForMilestone.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForMilestone.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $milestoneNumber, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListLabelsForMilestone($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestoneNumber, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForMilestoneListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForMilestoneListing.php new file mode 100644 index 00000000000..237a9855c14 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForMilestoneListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $milestoneNumber, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListLabelsForMilestoneListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $milestoneNumber, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForRepo.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForRepo.php index 9133fc052ba..de3c41885b3 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForRepo.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForRepo.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListLabelsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForRepoListing.php new file mode 100644 index 00000000000..b29c865d58f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsForRepoListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListLabelsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsOnIssue.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsOnIssue.php index de0b857473b..905949d2886 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsOnIssue.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsOnIssue.php @@ -27,7 +27,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | Schema\BasicError) */ + /** @return (Observable | Schema\BasicError) */ public function call(string $owner, string $repo, int $issueNumber, int $perPage = 30, int $page = 1): iterable|BasicError { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListLabelsOnIssue($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsOnIssueListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsOnIssueListing.php new file mode 100644 index 00000000000..b731329b597 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListLabelsOnIssueListing.php @@ -0,0 +1,44 @@ + | Schema\BasicError) */ + public function call(string $owner, string $repo, int $issueNumber, int $perPage = 30, int $page = 1): iterable|BasicError + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListLabelsOnIssueListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|BasicError|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListListing.php new file mode 100644 index 00000000000..6e4d215b73f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $labels, string $since, bool $collab, bool $orgs, bool $owned, bool $pulls, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListListing($this->responseSchemaValidator, $this->hydrator, $labels, $since, $collab, $orgs, $owned, $pulls, $filter, $state, $sort, $direction, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListMilestones.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListMilestones.php index c34d8f1d0a2..72c951e263f 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListMilestones.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListMilestones.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $state = 'open', string $sort = 'due_on', string $direction = 'asc', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListMilestones($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $sort, $direction, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListMilestonesListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListMilestonesListing.php new file mode 100644 index 00000000000..8c1d062cc74 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/ListMilestonesListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, string $state = 'open', string $sort = 'due_on', string $direction = 'asc', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\ListMilestonesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $sort, $direction, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/List_.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/List_.php index 2270e3c5799..f9509028841 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/List_.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/List_.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $labels, string $since, bool $collab, bool $orgs, bool $owned, bool $pulls, string $filter = 'assigned', string $state = 'open', string $sort = 'created', string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\List_($this->responseSchemaValidator, $this->hydrator, $labels, $since, $collab, $orgs, $owned, $pulls, $filter, $state, $sort, $direction, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/RemoveLabel.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/RemoveLabel.php index 08ee23c2480..5c0867dcef0 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/RemoveLabel.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/RemoveLabel.php @@ -27,7 +27,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | Schema\BasicError) */ + /** @return (Observable | Schema\BasicError) */ public function call(string $owner, string $repo, int $issueNumber, string $name): iterable|BasicError { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\RemoveLabel($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $name); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Issues/SetLabels.php b/clients/GitHubEnterprise-3.4/src/Operator/Issues/SetLabels.php index 43b173ae8c2..9378c3407c1 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Issues/SetLabels.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Issues/SetLabels.php @@ -27,7 +27,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | Schema\BasicError) */ + /** @return (Observable | Schema\BasicError) */ public function call(string $owner, string $repo, int $issueNumber, array $params): iterable|BasicError { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Issues\SetLabels($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Licenses/GetAllCommonlyUsed.php b/clients/GitHubEnterprise-3.4/src/Operator/Licenses/GetAllCommonlyUsed.php index f5ade1f5e3d..60871fed35e 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Licenses/GetAllCommonlyUsed.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Licenses/GetAllCommonlyUsed.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(bool $featured, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Licenses\GetAllCommonlyUsed($this->responseSchemaValidator, $this->hydrator, $featured, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Licenses/GetAllCommonlyUsedListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Licenses/GetAllCommonlyUsedListing.php new file mode 100644 index 00000000000..4302fe0c713 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Licenses/GetAllCommonlyUsedListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(bool $featured, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Licenses\GetAllCommonlyUsedListing($this->responseSchemaValidator, $this->hydrator, $featured, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForAuthenticatedUser.php index b8e6380563c..af6001f5154 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Migrations\ListForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForAuthenticatedUserListing.php new file mode 100644 index 00000000000..d9ea16825c2 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Migrations\ListForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForOrg.php index 4fe0496fe25..e3914bc911c 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, array $exclude, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Migrations\ListForOrg($this->responseSchemaValidator, $this->hydrator, $org, $exclude, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForOrgListing.php new file mode 100644 index 00000000000..ef2ca11d8b6 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListForOrgListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, array $exclude, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Migrations\ListForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $exclude, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForAuthenticatedUser.php index 5a27e9d8c30..a3d33317962 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $migrationId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Migrations\ListReposForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $migrationId, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForAuthenticatedUserListing.php new file mode 100644 index 00000000000..660e6767e78 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(int $migrationId, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Migrations\ListReposForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $migrationId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForOrg.php index b53b222a6c5..7798156e577 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, int $migrationId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Migrations\ListReposForOrg($this->responseSchemaValidator, $this->hydrator, $org, $migrationId, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForOrgListing.php new file mode 100644 index 00000000000..1819cb93308 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Migrations/ListReposForOrgListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, int $migrationId, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Migrations\ListReposForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $migrationId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListAuthorizations.php b/clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListAuthorizations.php index 20e60cc75c1..c3cfff974df 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListAuthorizations.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListAuthorizations.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $clientId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\OauthAuthorizations\ListAuthorizations($this->responseSchemaValidator, $this->hydrator, $clientId, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListAuthorizationsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListAuthorizationsListing.php new file mode 100644 index 00000000000..52b0f400e7b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListAuthorizationsListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $clientId, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\OauthAuthorizations\ListAuthorizationsListing($this->responseSchemaValidator, $this->hydrator, $clientId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListGrants.php b/clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListGrants.php index c71d3d24a5f..fd6e0a3cc2a 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListGrants.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListGrants.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $clientId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\OauthAuthorizations\ListGrants($this->responseSchemaValidator, $this->hydrator, $clientId, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListGrantsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListGrantsListing.php new file mode 100644 index 00000000000..bd9236ef298 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/OauthAuthorizations/ListGrantsListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $clientId, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\OauthAuthorizations\ListGrantsListing($this->responseSchemaValidator, $this->hydrator, $clientId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/GetAuditLog.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/GetAuditLog.php index d865cf37f22..3bb62c6eb54 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/GetAuditLog.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/GetAuditLog.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $phrase, string $include, string $after, string $before, string $order, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\GetAuditLog($this->responseSchemaValidator, $this->hydrator, $org, $phrase, $include, $after, $before, $order, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/GetAuditLogListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/GetAuditLogListing.php new file mode 100644 index 00000000000..eda901b7321 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/GetAuditLogListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, string $phrase, string $include, string $after, string $before, string $order, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\GetAuditLogListing($this->responseSchemaValidator, $this->hydrator, $org, $phrase, $include, $after, $before, $order, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForAuthenticatedUser.php index 6aa6a683c1f..87d46ae85e9 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\ListForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForAuthenticatedUserListing.php new file mode 100644 index 00000000000..d523282054c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\ListForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForUser.php index 1fc13436ae1..e6f4aac5907 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $username, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\ListForUser($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForUserListing.php new file mode 100644 index 00000000000..42f6b7edc24 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListForUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $username, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\ListForUserListing($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembers.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembers.php index c8ab92095e9..46eda0dbbc5 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembers.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembers.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $filter = 'all', string $role = 'all', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\ListMembers($this->responseSchemaValidator, $this->hydrator, $org, $filter, $role, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembersListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembersListing.php new file mode 100644 index 00000000000..facf66ce562 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembersListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, string $filter = 'all', string $role = 'all', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\ListMembersListing($this->responseSchemaValidator, $this->hydrator, $org, $filter, $role, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembershipsForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembershipsForAuthenticatedUser.php index 0983e1e4163..5bc1d6c94e8 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembershipsForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembershipsForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $state, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\ListMembershipsForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $state, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembershipsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembershipsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..fae6e01c722 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListMembershipsForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $state, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\ListMembershipsForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $state, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListOutsideCollaborators.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListOutsideCollaborators.php index 033a0a0220b..9bdf623a5b5 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListOutsideCollaborators.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListOutsideCollaborators.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $filter = 'all', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\ListOutsideCollaborators($this->responseSchemaValidator, $this->hydrator, $org, $filter, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListOutsideCollaboratorsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListOutsideCollaboratorsListing.php new file mode 100644 index 00000000000..9a646f72d0d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListOutsideCollaboratorsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, string $filter = 'all', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\ListOutsideCollaboratorsListing($this->responseSchemaValidator, $this->hydrator, $org, $filter, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListPublicMembers.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListPublicMembers.php index 3e31a1203dc..d28da80ffc5 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListPublicMembers.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListPublicMembers.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\ListPublicMembers($this->responseSchemaValidator, $this->hydrator, $org, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListPublicMembersListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListPublicMembersListing.php new file mode 100644 index 00000000000..d89022d7603 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListPublicMembersListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\ListPublicMembersListing($this->responseSchemaValidator, $this->hydrator, $org, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListWebhookDeliveries.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListWebhookDeliveries.php index 0c276b9113b..44e23134d7c 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListWebhookDeliveries.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListWebhookDeliveries.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, int $hookId, string $cursor, bool $redelivery, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\ListWebhookDeliveries($this->responseSchemaValidator, $this->hydrator, $org, $hookId, $cursor, $redelivery, $perPage); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListWebhooks.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListWebhooks.php index 29acc287df9..348682bf56b 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListWebhooks.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListWebhooks.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\ListWebhooks($this->responseSchemaValidator, $this->hydrator, $org, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListWebhooksListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListWebhooksListing.php new file mode 100644 index 00000000000..0dcb33e3302 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/ListWebhooksListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\ListWebhooksListing($this->responseSchemaValidator, $this->hydrator, $org, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/List_.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/List_.php index 59a0d04dea5..2ad07a78ef8 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/List_.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/List_.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $since, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\List_($this->responseSchemaValidator, $this->hydrator, $since, $perPage); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/Update.php b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/Update.php index 0e8fc8c8b5a..cd067d39851 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Orgs/Update.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Orgs/Update.php @@ -5,7 +5,6 @@ namespace ApiClients\Client\GitHubEnterprise\Operator\Orgs; use ApiClients\Client\GitHubEnterprise\Hydrator; -use ApiClients\Client\GitHubEnterprise\Schema; use ApiClients\Client\GitHubEnterprise\Schema\OrganizationFull; use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface; use League\OpenAPIValidation\Schema\SchemaValidator; @@ -27,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Schema\OrganizationFull */ + /** @return */ public function call(string $org, array $params): OrganizationFull|array { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Orgs\Update($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCards.php b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCards.php index a0c84b99d58..998dfa0e6be 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCards.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCards.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $columnId, string $archivedState = 'not_archived', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Projects\ListCards($this->responseSchemaValidator, $this->hydrator, $columnId, $archivedState, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCardsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCardsListing.php new file mode 100644 index 00000000000..ecf03231987 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCardsListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $columnId, string $archivedState = 'not_archived', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Projects\ListCardsListing($this->responseSchemaValidator, $this->hydrator, $columnId, $archivedState, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCollaborators.php b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCollaborators.php index 110294fdfe4..bd342488acb 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCollaborators.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCollaborators.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $projectId, string $affiliation = 'all', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Projects\ListCollaborators($this->responseSchemaValidator, $this->hydrator, $projectId, $affiliation, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCollaboratorsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCollaboratorsListing.php new file mode 100644 index 00000000000..10c229d5599 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListCollaboratorsListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $projectId, string $affiliation = 'all', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Projects\ListCollaboratorsListing($this->responseSchemaValidator, $this->hydrator, $projectId, $affiliation, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListColumns.php b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListColumns.php index 9441311c1df..5bc0790918b 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListColumns.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListColumns.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $projectId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Projects\ListColumns($this->responseSchemaValidator, $this->hydrator, $projectId, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListColumnsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListColumnsListing.php new file mode 100644 index 00000000000..ffedcf79f48 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListColumnsListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $projectId, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Projects\ListColumnsListing($this->responseSchemaValidator, $this->hydrator, $projectId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForOrg.php index 209bb1986dc..a0fae85d72f 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $state = 'open', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Projects\ListForOrg($this->responseSchemaValidator, $this->hydrator, $org, $state, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForOrgListing.php new file mode 100644 index 00000000000..daa4e0c5a7f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForOrgListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, string $state = 'open', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Projects\ListForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $state, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForRepo.php b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForRepo.php index 2c4fc42c1e1..abca3580ec3 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForRepo.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForRepo.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $state = 'open', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Projects\ListForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForRepoListing.php new file mode 100644 index 00000000000..792f6e8463d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForRepoListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, string $state = 'open', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Projects\ListForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForUser.php index 21aef0b6489..a1aafcf149c 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $username, string $state = 'open', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Projects\ListForUser($this->responseSchemaValidator, $this->hydrator, $username, $state, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForUserListing.php new file mode 100644 index 00000000000..7446f369536 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Projects/ListForUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $username, string $state = 'open', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Projects\ListForUserListing($this->responseSchemaValidator, $this->hydrator, $username, $state, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommentsForReview.php b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommentsForReview.php index a0ab8fc93d1..be1d8dc3748 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommentsForReview.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommentsForReview.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $pullNumber, int $reviewId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Pulls\ListCommentsForReview($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $pullNumber, $reviewId, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommentsForReviewListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommentsForReviewListing.php new file mode 100644 index 00000000000..5a7bc81e7ef --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommentsForReviewListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $pullNumber, int $reviewId, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Pulls\ListCommentsForReviewListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $pullNumber, $reviewId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommits.php b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommits.php index 24176bbba3d..b3a6299cb54 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommits.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommits.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $pullNumber, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Pulls\ListCommits($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $pullNumber, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommitsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommitsListing.php new file mode 100644 index 00000000000..47c48c11424 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListCommitsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $pullNumber, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Pulls\ListCommitsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $pullNumber, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListFiles.php b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListFiles.php index f792453dab4..32ba0815eb1 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListFiles.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListFiles.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $pullNumber, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Pulls\ListFiles($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $pullNumber, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListFilesListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListFilesListing.php new file mode 100644 index 00000000000..8144a7c7ccc --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListFilesListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $pullNumber, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Pulls\ListFilesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $pullNumber, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListListing.php new file mode 100644 index 00000000000..eb251eeaf01 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $owner, string $repo, string $head, string $base, string $direction, string $state = 'open', string $sort = 'created', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Pulls\ListListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $head, $base, $direction, $state, $sort, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewComments.php b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewComments.php index 1d66956a3f9..f662f17ff13 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewComments.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewComments.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $pullNumber, string $direction, string $since, string $sort = 'created', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Pulls\ListReviewComments($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $pullNumber, $direction, $since, $sort, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewCommentsForRepo.php b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewCommentsForRepo.php index 80567b1b64d..96e2db6bf5b 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewCommentsForRepo.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewCommentsForRepo.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $sort, string $direction, string $since, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Pulls\ListReviewCommentsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $sort, $direction, $since, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewCommentsForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewCommentsForRepoListing.php new file mode 100644 index 00000000000..1662dc6284a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewCommentsForRepoListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, string $sort, string $direction, string $since, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Pulls\ListReviewCommentsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $sort, $direction, $since, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewCommentsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewCommentsListing.php new file mode 100644 index 00000000000..bcf7dfd3b4b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewCommentsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $pullNumber, string $direction, string $since, string $sort = 'created', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Pulls\ListReviewCommentsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $pullNumber, $direction, $since, $sort, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviews.php b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviews.php index a20744ff73c..338fac04f0e 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviews.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviews.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $pullNumber, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Pulls\ListReviews($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $pullNumber, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewsListing.php new file mode 100644 index 00000000000..b52f23585aa --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/ListReviewsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $pullNumber, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Pulls\ListReviewsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $pullNumber, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/List_.php b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/List_.php index a1327700048..7d6e430eb35 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Pulls/List_.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Pulls/List_.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $owner, string $repo, string $head, string $base, string $direction, string $state = 'open', string $sort = 'created', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Pulls\List_($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $head, $base, $direction, $state, $sort, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForCommitComment.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForCommitComment.php index 964e9201acb..676f3d0f944 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForCommitComment.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForCommitComment.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $commentId, string $content, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForCommitComment($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $commentId, $content, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForCommitCommentListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForCommitCommentListing.php new file mode 100644 index 00000000000..bf886ec4fd3 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForCommitCommentListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $commentId, string $content, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForCommitCommentListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $commentId, $content, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssue.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssue.php index eee95741efa..56a6dd523d2 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssue.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssue.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $issueNumber, string $content, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForIssue($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $content, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssueComment.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssueComment.php index 3e6e9df5a21..46f1d8aafa0 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssueComment.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssueComment.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $commentId, string $content, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForIssueComment($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $commentId, $content, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssueCommentListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssueCommentListing.php new file mode 100644 index 00000000000..67623ede6fd --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssueCommentListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $commentId, string $content, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForIssueCommentListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $commentId, $content, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssueListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssueListing.php new file mode 100644 index 00000000000..016c5b7e00c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForIssueListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $issueNumber, string $content, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForIssueListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $content, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForPullRequestReviewComment.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForPullRequestReviewComment.php index f8f04470b19..f23b385f494 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForPullRequestReviewComment.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForPullRequestReviewComment.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $commentId, string $content, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForPullRequestReviewComment($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $commentId, $content, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForPullRequestReviewCommentListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForPullRequestReviewCommentListing.php new file mode 100644 index 00000000000..346e4c4488c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForPullRequestReviewCommentListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $commentId, string $content, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForPullRequestReviewCommentListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $commentId, $content, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForRelease.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForRelease.php index b6688d5a428..d0f9607294d 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForRelease.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForRelease.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $releaseId, string $content, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForRelease($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $releaseId, $content, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForReleaseListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForReleaseListing.php new file mode 100644 index 00000000000..b46bdc625d1 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForReleaseListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $releaseId, string $content, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForReleaseListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $releaseId, $content, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentInOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentInOrg.php index de8701c9472..369aea84cfc 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentInOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentInOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $teamSlug, int $discussionNumber, int $commentNumber, string $content, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForTeamDiscussionCommentInOrg($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $discussionNumber, $commentNumber, $content, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentInOrgListing.php new file mode 100644 index 00000000000..4dc6f19f132 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentInOrgListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, string $teamSlug, int $discussionNumber, int $commentNumber, string $content, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForTeamDiscussionCommentInOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $discussionNumber, $commentNumber, $content, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentLegacy.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentLegacy.php index 931d0f1bf38..598f7666b64 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentLegacy.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentLegacy.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $teamId, int $discussionNumber, int $commentNumber, string $content, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForTeamDiscussionCommentLegacy($this->responseSchemaValidator, $this->hydrator, $teamId, $discussionNumber, $commentNumber, $content, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentLegacyListing.php new file mode 100644 index 00000000000..8bf7c9038a8 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionCommentLegacyListing.php @@ -0,0 +1,43 @@ + */ + public function call(int $teamId, int $discussionNumber, int $commentNumber, string $content, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForTeamDiscussionCommentLegacyListing($this->responseSchemaValidator, $this->hydrator, $teamId, $discussionNumber, $commentNumber, $content, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionInOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionInOrg.php index 9d3a90a7c29..6da5c9d267d 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionInOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionInOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $teamSlug, int $discussionNumber, string $content, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForTeamDiscussionInOrg($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $discussionNumber, $content, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionInOrgListing.php new file mode 100644 index 00000000000..c7a6c8ddab1 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionInOrgListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, string $teamSlug, int $discussionNumber, string $content, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForTeamDiscussionInOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $discussionNumber, $content, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionLegacy.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionLegacy.php index 1d21a0e20f2..fe314c15fcc 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionLegacy.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionLegacy.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $teamId, int $discussionNumber, string $content, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForTeamDiscussionLegacy($this->responseSchemaValidator, $this->hydrator, $teamId, $discussionNumber, $content, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionLegacyListing.php new file mode 100644 index 00000000000..b9fb743fb64 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Reactions/ListForTeamDiscussionLegacyListing.php @@ -0,0 +1,43 @@ + */ + public function call(int $teamId, int $discussionNumber, string $content, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Reactions\ListForTeamDiscussionLegacyListing($this->responseSchemaValidator, $this->hydrator, $teamId, $discussionNumber, $content, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddAppAccessRestrictions.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddAppAccessRestrictions.php index 9a0bdc1a2f7..05d13db8ae7 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddAppAccessRestrictions.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddAppAccessRestrictions.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\AddAppAccessRestrictions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddStatusCheckContexts.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddStatusCheckContexts.php index d51dcbfa0c8..e2c592c252f 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddStatusCheckContexts.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddStatusCheckContexts.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\AddStatusCheckContexts($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddTeamAccessRestrictions.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddTeamAccessRestrictions.php index b03cee176f3..521f1411c23 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddTeamAccessRestrictions.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddTeamAccessRestrictions.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\AddTeamAccessRestrictions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddUserAccessRestrictions.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddUserAccessRestrictions.php index a5c135f9af8..7be2800c6b1 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddUserAccessRestrictions.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/AddUserAccessRestrictions.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\AddUserAccessRestrictions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetAllStatusCheckContexts.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetAllStatusCheckContexts.php index 9dfa6cf290c..58de41c206a 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetAllStatusCheckContexts.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetAllStatusCheckContexts.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\GetAllStatusCheckContexts($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetAppsWithAccessToProtectedBranch.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetAppsWithAccessToProtectedBranch.php index 8fb1b845fc7..882c9a47cb7 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetAppsWithAccessToProtectedBranch.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetAppsWithAccessToProtectedBranch.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\GetAppsWithAccessToProtectedBranch($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetCodeFrequencyStats.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetCodeFrequencyStats.php index e7e43c574e0..564785d911f 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetCodeFrequencyStats.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetCodeFrequencyStats.php @@ -27,7 +27,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) */ + /** @return (Observable | Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) */ public function call(string $owner, string $repo): iterable|Json { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\GetCodeFrequencyStats($this->responseSchemaValidator, $this->hydrator, $owner, $repo); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetCommitActivityStats.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetCommitActivityStats.php index cbb0b9085a1..bc92585d539 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetCommitActivityStats.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetCommitActivityStats.php @@ -27,7 +27,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) */ + /** @return (Observable | Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) */ public function call(string $owner, string $repo): iterable|Json { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\GetCommitActivityStats($this->responseSchemaValidator, $this->hydrator, $owner, $repo); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetContributorsStats.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetContributorsStats.php index 65c018f9f66..62bd3fd5b24 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetContributorsStats.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetContributorsStats.php @@ -27,7 +27,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) */ + /** @return (Observable | Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) */ public function call(string $owner, string $repo): iterable|Json { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\GetContributorsStats($this->responseSchemaValidator, $this->hydrator, $owner, $repo); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetPunchCardStats.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetPunchCardStats.php index 7dce5ddb13a..5355e17508b 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetPunchCardStats.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetPunchCardStats.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $owner, string $repo): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\GetPunchCardStats($this->responseSchemaValidator, $this->hydrator, $owner, $repo); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetTeamsWithAccessToProtectedBranch.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetTeamsWithAccessToProtectedBranch.php index 04639726a43..2a4b9bab73e 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetTeamsWithAccessToProtectedBranch.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetTeamsWithAccessToProtectedBranch.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\GetTeamsWithAccessToProtectedBranch($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetUsersWithAccessToProtectedBranch.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetUsersWithAccessToProtectedBranch.php index 829c6ad8208..b5b2940a422 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetUsersWithAccessToProtectedBranch.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/GetUsersWithAccessToProtectedBranch.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\GetUsersWithAccessToProtectedBranch($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListAutolinks.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListAutolinks.php index 01e1286a31e..8e884483bd4 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListAutolinks.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListAutolinks.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListAutolinks($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListBranches.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListBranches.php index b307fffbd7c..b02e16d5734 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListBranches.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListBranches.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, bool $protected, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListBranches($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $protected, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListBranchesForHeadCommit.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListBranchesForHeadCommit.php index 454b6e896aa..6b4b4410e48 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListBranchesForHeadCommit.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListBranchesForHeadCommit.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $commitSha): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListBranchesForHeadCommit($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $commitSha); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListBranchesListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListBranchesListing.php new file mode 100644 index 00000000000..baffe5077c9 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListBranchesListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, bool $protected, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListBranchesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $protected, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCacheInfo.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCacheInfo.php index c582e781ce5..105f14ed6fe 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCacheInfo.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCacheInfo.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListCacheInfo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCacheInfoListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCacheInfoListing.php new file mode 100644 index 00000000000..f5fa360e4f5 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCacheInfoListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListCacheInfoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCollaborators.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCollaborators.php index 3ceda384e7b..159679ba73b 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCollaborators.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCollaborators.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $affiliation = 'all', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListCollaborators($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $affiliation, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCollaboratorsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCollaboratorsListing.php new file mode 100644 index 00000000000..95e248c297f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCollaboratorsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, string $affiliation = 'all', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListCollaboratorsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $affiliation, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommentsForCommit.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommentsForCommit.php index ab124f8fd0e..1a68bfc793d 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommentsForCommit.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommentsForCommit.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $commitSha, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListCommentsForCommit($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $commitSha, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommentsForCommitListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommentsForCommitListing.php new file mode 100644 index 00000000000..1f9c5efb031 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommentsForCommitListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, string $commitSha, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListCommentsForCommitListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $commitSha, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitCommentsForRepo.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitCommentsForRepo.php index 92d9e1acfdc..edf3fa4e76f 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitCommentsForRepo.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitCommentsForRepo.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListCommitCommentsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitCommentsForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitCommentsForRepoListing.php new file mode 100644 index 00000000000..c5bef2cffca --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitCommentsForRepoListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListCommitCommentsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitStatusesForRef.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitStatusesForRef.php index bfe25c40020..5313f0d1732 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitStatusesForRef.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitStatusesForRef.php @@ -27,7 +27,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | Schema\BasicError) */ + /** @return (Observable | Schema\BasicError) */ public function call(string $owner, string $repo, string $ref, int $perPage = 30, int $page = 1): iterable|BasicError { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListCommitStatusesForRef($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $ref, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitStatusesForRefListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitStatusesForRefListing.php new file mode 100644 index 00000000000..f3bbf249de3 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitStatusesForRefListing.php @@ -0,0 +1,44 @@ + | Schema\BasicError) */ + public function call(string $owner, string $repo, string $ref, int $perPage = 30, int $page = 1): iterable|BasicError + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListCommitStatusesForRefListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $ref, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|BasicError|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommits.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommits.php index c41736a78e2..521b45a2b50 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommits.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommits.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $sha, string $path, string $author, string $committer, string $since, string $until, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListCommits($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $sha, $path, $author, $committer, $since, $until, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitsListing.php new file mode 100644 index 00000000000..96affb86c96 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListCommitsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, string $sha, string $path, string $author, string $committer, string $since, string $until, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListCommitsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $sha, $path, $author, $committer, $since, $until, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListContributors.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListContributors.php index 93f90b05722..9d29be0fd4f 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListContributors.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListContributors.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $owner, string $repo, string $anon, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListContributors($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $anon, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListContributorsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListContributorsListing.php new file mode 100644 index 00000000000..7f2a9369527 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListContributorsListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $owner, string $repo, string $anon, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListContributorsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $anon, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeployKeys.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeployKeys.php index 322630689df..9e87cd0f51a 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeployKeys.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeployKeys.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListDeployKeys($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeployKeysListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeployKeysListing.php new file mode 100644 index 00000000000..4e7bea00397 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeployKeysListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListDeployKeysListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeploymentStatuses.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeploymentStatuses.php index 32e44aa62fb..7e75690068e 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeploymentStatuses.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeploymentStatuses.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $deploymentId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListDeploymentStatuses($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $deploymentId, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeploymentStatusesListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeploymentStatusesListing.php new file mode 100644 index 00000000000..1ab135610fd --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeploymentStatusesListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $deploymentId, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListDeploymentStatusesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $deploymentId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeployments.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeployments.php index 99f273598fb..727cbfca130 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeployments.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeployments.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $sha = 'none', string $ref = 'none', string $task = 'none', string|null $environment = 'none', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListDeployments($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $sha, $ref, $task, $environment, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeploymentsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeploymentsListing.php new file mode 100644 index 00000000000..6e22a4dff02 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListDeploymentsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, string $sha = 'none', string $ref = 'none', string $task = 'none', string|null $environment = 'none', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListDeploymentsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $sha, $ref, $task, $environment, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForAuthenticatedUser.php index d7b0bdd793c..55c969c9c19 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $direction, string $since, string $before, string $visibility = 'all', string $affiliation = 'owner,collaborator,organization_member', string $type = 'all', string $sort = 'full_name', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $direction, $since, $before, $visibility, $affiliation, $type, $sort, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForAuthenticatedUserListing.php new file mode 100644 index 00000000000..6af5343f20a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $direction, string $since, string $before, string $visibility = 'all', string $affiliation = 'owner,collaborator,organization_member', string $type = 'all', string $sort = 'full_name', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $direction, $since, $before, $visibility, $affiliation, $type, $sort, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForOrg.php index 7ada6ed1c35..7bb47bf75aa 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $type, string $direction, string $sort = 'created', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListForOrg($this->responseSchemaValidator, $this->hydrator, $org, $type, $direction, $sort, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForOrgListing.php new file mode 100644 index 00000000000..3c4dbe67831 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForOrgListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, string $type, string $direction, string $sort = 'created', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $type, $direction, $sort, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForUser.php index d57cb553d88..5ecdb144b05 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $username, string $direction, string $type = 'owner', string $sort = 'full_name', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListForUser($this->responseSchemaValidator, $this->hydrator, $username, $direction, $type, $sort, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForUserListing.php new file mode 100644 index 00000000000..5f7efa879a5 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $username, string $direction, string $type = 'owner', string $sort = 'full_name', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListForUserListing($this->responseSchemaValidator, $this->hydrator, $username, $direction, $type, $sort, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForks.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForks.php index d8ae49979b7..cecba0178f0 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForks.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForks.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $sort = 'newest', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListForks($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $sort, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForksListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForksListing.php new file mode 100644 index 00000000000..ea075825667 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListForksListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, string $sort = 'newest', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListForksListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $sort, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitations.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitations.php index 1f65570100c..df1696d5bd9 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitations.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitations.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListInvitations($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitationsForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitationsForAuthenticatedUser.php index 1870256ca97..e163ac9ad5e 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitationsForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitationsForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListInvitationsForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitationsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitationsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..3da190f7ffa --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitationsForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListInvitationsForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitationsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitationsListing.php new file mode 100644 index 00000000000..87f043e4cb3 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListInvitationsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListInvitationsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPagesBuilds.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPagesBuilds.php index ff9cda2eecf..1af336caf6d 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPagesBuilds.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPagesBuilds.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListPagesBuilds($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPagesBuildsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPagesBuildsListing.php new file mode 100644 index 00000000000..0968ec2be75 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPagesBuildsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListPagesBuildsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPublic.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPublic.php index 3dd54ef58e6..bc1dc57d70b 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPublic.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPublic.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $since, string $visibility = 'public'): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListPublic($this->responseSchemaValidator, $this->hydrator, $since, $visibility); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPullRequestsAssociatedWithCommit.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPullRequestsAssociatedWithCommit.php index 8206bcb339b..c8e3d3e21be 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPullRequestsAssociatedWithCommit.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPullRequestsAssociatedWithCommit.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $commitSha, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListPullRequestsAssociatedWithCommit($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $commitSha, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPullRequestsAssociatedWithCommitListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPullRequestsAssociatedWithCommitListing.php new file mode 100644 index 00000000000..a4d938d370a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListPullRequestsAssociatedWithCommitListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, string $commitSha, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListPullRequestsAssociatedWithCommitListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $commitSha, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleaseAssets.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleaseAssets.php index 51bd94fbb84..4273bca5e14 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleaseAssets.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleaseAssets.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $releaseId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListReleaseAssets($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $releaseId, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleaseAssetsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleaseAssetsListing.php new file mode 100644 index 00000000000..2a164d5ca3a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleaseAssetsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $releaseId, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListReleaseAssetsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $releaseId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleases.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleases.php index 85ac34c364d..8b91dd8b495 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleases.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleases.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListReleases($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleasesListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleasesListing.php new file mode 100644 index 00000000000..d7faa445edd --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListReleasesListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListReleasesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTags.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTags.php index 8326821badc..6351219b452 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTags.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTags.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListTags($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTagsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTagsListing.php new file mode 100644 index 00000000000..1954f49e7de --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTagsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListTagsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTeams.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTeams.php index 4213d708eed..209f2fa8580 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTeams.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTeams.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListTeams($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTeamsListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTeamsListing.php new file mode 100644 index 00000000000..3e6689a7ed2 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListTeamsListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListTeamsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListWebhookDeliveries.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListWebhookDeliveries.php index 4692e39d99a..51a1b1307f8 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListWebhookDeliveries.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListWebhookDeliveries.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $hookId, string $cursor, bool $redelivery, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListWebhookDeliveries($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $hookId, $cursor, $redelivery, $perPage); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListWebhooks.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListWebhooks.php index 00d36cefe6d..b18c864a03c 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListWebhooks.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListWebhooks.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListWebhooks($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListWebhooksListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListWebhooksListing.php new file mode 100644 index 00000000000..357d9b30d76 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/ListWebhooksListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\ListWebhooksListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveAppAccessRestrictions.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveAppAccessRestrictions.php index 261a2747031..157a8f7e8ef 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveAppAccessRestrictions.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveAppAccessRestrictions.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\RemoveAppAccessRestrictions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveStatusCheckContexts.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveStatusCheckContexts.php index 4dee2a0ee51..1ba8ddb3697 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveStatusCheckContexts.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveStatusCheckContexts.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\RemoveStatusCheckContexts($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveTeamAccessRestrictions.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveTeamAccessRestrictions.php index 42e3df8eb76..152befcd4f9 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveTeamAccessRestrictions.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveTeamAccessRestrictions.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\RemoveTeamAccessRestrictions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveUserAccessRestrictions.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveUserAccessRestrictions.php index 1b80d4603fa..e00ff5740cd 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveUserAccessRestrictions.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/RemoveUserAccessRestrictions.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\RemoveUserAccessRestrictions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetAppAccessRestrictions.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetAppAccessRestrictions.php index f36b02529d6..7103ea53f4f 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetAppAccessRestrictions.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetAppAccessRestrictions.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\SetAppAccessRestrictions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetStatusCheckContexts.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetStatusCheckContexts.php index d54d0f80920..708a737455e 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetStatusCheckContexts.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetStatusCheckContexts.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\SetStatusCheckContexts($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetTeamAccessRestrictions.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetTeamAccessRestrictions.php index b340f944c0b..e70caf52e97 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetTeamAccessRestrictions.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetTeamAccessRestrictions.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\SetTeamAccessRestrictions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetUserAccessRestrictions.php b/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetUserAccessRestrictions.php index c6248533c5a..ae1d1307661 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetUserAccessRestrictions.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Repos/SetUserAccessRestrictions.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $branch, array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Repos\SetUserAccessRestrictions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $branch); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForEnterprise.php b/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForEnterprise.php index 6418661b829..a4097b6ecfd 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForEnterprise.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForEnterprise.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $enterprise, string $state, string $secretType, string $resolution, string $before, string $after, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\SecretScanning\ListAlertsForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise, $state, $secretType, $resolution, $before, $after, $perPage); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForOrg.php index 389f68e9b41..77f5228ecb4 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $state, string $secretType, string $resolution, int $page = 1, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\SecretScanning\ListAlertsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $state, $secretType, $resolution, $page, $perPage); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForOrgListing.php new file mode 100644 index 00000000000..f8d79f3c17e --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForOrgListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, string $state, string $secretType, string $resolution, int $page = 1, int $perPage = 30): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\SecretScanning\ListAlertsForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $state, $secretType, $resolution, $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|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForRepo.php b/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForRepo.php index 38120340796..5ed63d3b8f5 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForRepo.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForRepo.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $owner, string $repo, string $state, string $secretType, string $resolution, int $page = 1, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\SecretScanning\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $secretType, $resolution, $page, $perPage); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForRepoListing.php b/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForRepoListing.php new file mode 100644 index 00000000000..144aa84685b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListAlertsForRepoListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $owner, string $repo, string $state, string $secretType, string $resolution, int $page = 1, int $perPage = 30): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\SecretScanning\ListAlertsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $secretType, $resolution, $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|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListLocationsForAlert.php b/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListLocationsForAlert.php index 90ee526cb6a..40b87fc0e95 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListLocationsForAlert.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListLocationsForAlert.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(string $owner, string $repo, int $alertNumber, int $page = 1, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\SecretScanning\ListLocationsForAlert($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $alertNumber, $page, $perPage); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListLocationsForAlertListing.php b/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListLocationsForAlertListing.php new file mode 100644 index 00000000000..62c42a6443b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/SecretScanning/ListLocationsForAlertListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(string $owner, string $repo, int $alertNumber, int $page = 1, int $perPage = 30): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\SecretScanning\ListLocationsForAlertListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $alertNumber, $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|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildInOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildInOrg.php index 7bb53f17e3c..e21c5b20b22 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildInOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildInOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $teamSlug, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListChildInOrg($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildInOrgListing.php new file mode 100644 index 00000000000..8579b3d76e8 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildInOrgListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, string $teamSlug, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListChildInOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildLegacy.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildLegacy.php index e6078c90f2e..6b4986367ac 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildLegacy.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildLegacy.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $teamId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListChildLegacy($this->responseSchemaValidator, $this->hydrator, $teamId, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildLegacyListing.php new file mode 100644 index 00000000000..467dc41aeb2 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListChildLegacyListing.php @@ -0,0 +1,43 @@ + */ + public function call(int $teamId, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListChildLegacyListing($this->responseSchemaValidator, $this->hydrator, $teamId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsInOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsInOrg.php index fa55943d350..5792475f6df 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsInOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsInOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $teamSlug, int $discussionNumber, string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListDiscussionCommentsInOrg($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $discussionNumber, $direction, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsInOrgListing.php new file mode 100644 index 00000000000..0dfd289bd96 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsInOrgListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, string $teamSlug, int $discussionNumber, string $direction = 'desc', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListDiscussionCommentsInOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $discussionNumber, $direction, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsLegacy.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsLegacy.php index b71932de325..b2fb5681c9d 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsLegacy.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsLegacy.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $teamId, int $discussionNumber, string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListDiscussionCommentsLegacy($this->responseSchemaValidator, $this->hydrator, $teamId, $discussionNumber, $direction, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsLegacyListing.php new file mode 100644 index 00000000000..08e26c7ea20 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionCommentsLegacyListing.php @@ -0,0 +1,43 @@ + */ + public function call(int $teamId, int $discussionNumber, string $direction = 'desc', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListDiscussionCommentsLegacyListing($this->responseSchemaValidator, $this->hydrator, $teamId, $discussionNumber, $direction, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsInOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsInOrg.php index 04845e96802..0a9e67bb385 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsInOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsInOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $teamSlug, string $pinned, string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListDiscussionsInOrg($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $pinned, $direction, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsInOrgListing.php new file mode 100644 index 00000000000..3f4f2e84e9a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsInOrgListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, string $teamSlug, string $pinned, string $direction = 'desc', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListDiscussionsInOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $pinned, $direction, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsLegacy.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsLegacy.php index 58f7fa195b8..8e964549236 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsLegacy.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsLegacy.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $teamId, string $direction = 'desc', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListDiscussionsLegacy($this->responseSchemaValidator, $this->hydrator, $teamId, $direction, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsLegacyListing.php new file mode 100644 index 00000000000..990f3fc9252 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListDiscussionsLegacyListing.php @@ -0,0 +1,43 @@ + */ + public function call(int $teamId, string $direction = 'desc', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListDiscussionsLegacyListing($this->responseSchemaValidator, $this->hydrator, $teamId, $direction, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListForAuthenticatedUser.php index a786566de67..afaa69f7f06 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListForAuthenticatedUserListing.php new file mode 100644 index 00000000000..a23c8b17438 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListListing.php new file mode 100644 index 00000000000..f2acbad0ebd --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListListing($this->responseSchemaValidator, $this->hydrator, $org, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersInOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersInOrg.php index 34a4b623fa3..80f1f73fb82 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersInOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersInOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $teamSlug, string $role = 'all', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListMembersInOrg($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $role, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersInOrgListing.php new file mode 100644 index 00000000000..09ec8c00418 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersInOrgListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, string $teamSlug, string $role = 'all', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListMembersInOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $role, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersLegacy.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersLegacy.php index 8e2e8c00523..b0aa7b6451e 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersLegacy.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersLegacy.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $teamId, string $role = 'all', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListMembersLegacy($this->responseSchemaValidator, $this->hydrator, $teamId, $role, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersLegacyListing.php new file mode 100644 index 00000000000..d2e1ff20c3b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListMembersLegacyListing.php @@ -0,0 +1,43 @@ + */ + public function call(int $teamId, string $role = 'all', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListMembersLegacyListing($this->responseSchemaValidator, $this->hydrator, $teamId, $role, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsInOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsInOrg.php index 5929f6bfd3b..93084290838 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsInOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsInOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $teamSlug, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListProjectsInOrg($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsInOrgListing.php new file mode 100644 index 00000000000..07330d8422a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsInOrgListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, string $teamSlug, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListProjectsInOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsLegacy.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsLegacy.php index 8e53a532baa..4513fd62344 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsLegacy.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsLegacy.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $teamId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListProjectsLegacy($this->responseSchemaValidator, $this->hydrator, $teamId, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsLegacyListing.php new file mode 100644 index 00000000000..134bf677f5f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListProjectsLegacyListing.php @@ -0,0 +1,43 @@ + */ + public function call(int $teamId, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListProjectsLegacyListing($this->responseSchemaValidator, $this->hydrator, $teamId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposInOrg.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposInOrg.php index 8818082ad08..89f843c5a7b 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposInOrg.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposInOrg.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $teamSlug, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListReposInOrg($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposInOrgListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposInOrgListing.php new file mode 100644 index 00000000000..246b0a18c28 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposInOrgListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $org, string $teamSlug, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListReposInOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposLegacy.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposLegacy.php index a8fe6a2878c..90a76f04fbc 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposLegacy.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposLegacy.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(int $teamId, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListReposLegacy($this->responseSchemaValidator, $this->hydrator, $teamId, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposLegacyListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposLegacyListing.php new file mode 100644 index 00000000000..0585798a5c6 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/ListReposLegacyListing.php @@ -0,0 +1,43 @@ + */ + public function call(int $teamId, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\ListReposLegacyListing($this->responseSchemaValidator, $this->hydrator, $teamId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Teams/List_.php b/clients/GitHubEnterprise-3.4/src/Operator/Teams/List_.php index ac307626517..4af2f2ae88b 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Teams/List_.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Teams/List_.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Teams\List_($this->responseSchemaValidator, $this->hydrator, $org, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/AddEmailForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/AddEmailForAuthenticatedUser.php index 28faa1fcbb0..2123840ea60 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Users/AddEmailForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/AddEmailForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(array $params): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\AddEmailForAuthenticatedUser($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/GetByUsername.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/GetByUsername.php index 482f2514d2a..8e97f2a0540 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Users/GetByUsername.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/GetByUsername.php @@ -5,7 +5,6 @@ namespace ApiClients\Client\GitHubEnterprise\Operator\Users; use ApiClients\Client\GitHubEnterprise\Hydrator; -use ApiClients\Client\GitHubEnterprise\Schema; use ApiClients\Client\GitHubEnterprise\Schema\PrivateUser; use ApiClients\Client\GitHubEnterprise\Schema\PublicUser; use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface; @@ -28,7 +27,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (Schema\PrivateUser | Schema\PublicUser) */ + /** @return */ public function call(string $username): PrivateUser|PublicUser|array { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\GetByUsername($this->responseSchemaValidator, $this->hydrator, $username); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListEmailsForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListEmailsForAuthenticatedUser.php index 771afe8ca3f..e09fc890a70 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListEmailsForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListEmailsForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListEmailsForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListEmailsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListEmailsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..128ca915d74 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListEmailsForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListEmailsForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowedByAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowedByAuthenticatedUser.php index 8996f2674a7..9b75a948f26 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowedByAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowedByAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListFollowedByAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowedByAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowedByAuthenticatedUserListing.php new file mode 100644 index 00000000000..81683b7f7fd --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowedByAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListFollowedByAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForAuthenticatedUser.php index 3320a77812a..3c03f8178f1 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListFollowersForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForAuthenticatedUserListing.php new file mode 100644 index 00000000000..93f4edcb482 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListFollowersForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForUser.php index cd358e8721e..fa20350e90e 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $username, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListFollowersForUser($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForUserListing.php new file mode 100644 index 00000000000..262ae96fee7 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowersForUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $username, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListFollowersForUserListing($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowingForUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowingForUser.php index 7978785238f..6d7c0f66ee4 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowingForUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowingForUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $username, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListFollowingForUser($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowingForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowingForUserListing.php new file mode 100644 index 00000000000..557b4ce1187 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListFollowingForUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $username, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListFollowingForUserListing($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForAuthenticatedUser.php index 72d63399d4f..929a8319fed 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListGpgKeysForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForAuthenticatedUserListing.php new file mode 100644 index 00000000000..e45c628b795 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListGpgKeysForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForUser.php index 888974cee22..14162ab8d27 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $username, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListGpgKeysForUser($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForUserListing.php new file mode 100644 index 00000000000..c116873f9a3 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListGpgKeysForUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $username, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListGpgKeysForUserListing($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicEmailsForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicEmailsForAuthenticatedUser.php index 4fdee43ea1a..64bc8ef8a55 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicEmailsForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicEmailsForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListPublicEmailsForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicEmailsForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicEmailsForAuthenticatedUserListing.php new file mode 100644 index 00000000000..1fa3fa64eaa --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicEmailsForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListPublicEmailsForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicKeysForUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicKeysForUser.php index 0b69b97fac7..4b5e9824791 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicKeysForUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicKeysForUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $username, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListPublicKeysForUser($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicKeysForUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicKeysForUserListing.php new file mode 100644 index 00000000000..801df399423 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicKeysForUserListing.php @@ -0,0 +1,43 @@ + */ + public function call(string $username, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListPublicKeysForUserListing($this->responseSchemaValidator, $this->hydrator, $username, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicSshKeysForAuthenticatedUser.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicSshKeysForAuthenticatedUser.php index 3764ad4af55..1a2e308c606 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicSshKeysForAuthenticatedUser.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicSshKeysForAuthenticatedUser.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListPublicSshKeysForAuthenticatedUser($this->responseSchemaValidator, $this->hydrator, $perPage, $page); diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicSshKeysForAuthenticatedUserListing.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicSshKeysForAuthenticatedUserListing.php new file mode 100644 index 00000000000..1a4c997afb3 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/ListPublicSshKeysForAuthenticatedUserListing.php @@ -0,0 +1,43 @@ + | array{code: int}) */ + public function call(int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\ListPublicSshKeysForAuthenticatedUserListing($this->responseSchemaValidator, $this->hydrator, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|array { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Operator/Users/List_.php b/clients/GitHubEnterprise-3.4/src/Operator/Users/List_.php index d181c2f1e58..b6530a18cc7 100644 --- a/clients/GitHubEnterprise-3.4/src/Operator/Users/List_.php +++ b/clients/GitHubEnterprise-3.4/src/Operator/Users/List_.php @@ -26,7 +26,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function call(int $since, int $perPage = 30): iterable { $operation = new \ApiClients\Client\GitHubEnterprise\Operation\Users\List_($this->responseSchemaValidator, $this->hydrator, $since, $perPage); diff --git a/clients/GitHubEnterprise-3.4/src/Router/Delete/Eight.php b/clients/GitHubEnterprise-3.4/src/Router/Delete/Eight.php index 7eba376f227..0717ca28122 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Delete/Eight.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Delete/Eight.php @@ -25,7 +25,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return array{code: int}||(iterable|Schema\BasicError) */ + /** @return array{code: int}||(Observable|Schema\BasicError) */ public function call(string $call, array $params, array $pathChunks): Ok|Json|iterable|BasicError|PullRequestReview { $matched = false; @@ -43,7 +43,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->removeOrgAccessToSelfHostedRunnerGroupInEnterprise($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->RemoveOrgAccessToSelfHostedRunnerGroupInEnterprise($params); } } } elseif ($pathChunks[6] === 'runners') { @@ -54,7 +54,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->removeSelfHostedRunnerFromGroupForEnterprise($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->RemoveSelfHostedRunnerFromGroupForEnterprise($params); } } } @@ -69,7 +69,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->removeCustomLabelFromSelfHostedRunnerForEnterprise($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->RemoveCustomLabelFromSelfHostedRunnerForEnterprise($params); } } } @@ -90,7 +90,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->removeRepoAccessToSelfHostedRunnerGroupInOrg($params); + return $this->router[Router\Delete\Actions::class]->RemoveRepoAccessToSelfHostedRunnerGroupInOrg($params); } } } elseif ($pathChunks[6] === 'runners') { @@ -101,7 +101,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->removeSelfHostedRunnerFromGroupForOrg($params); + return $this->router[Router\Delete\Actions::class]->RemoveSelfHostedRunnerFromGroupForOrg($params); } } } @@ -116,7 +116,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->removeCustomLabelFromSelfHostedRunnerForOrg($params); + return $this->router[Router\Delete\Actions::class]->RemoveCustomLabelFromSelfHostedRunnerForOrg($params); } } } @@ -131,7 +131,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->removeSelectedRepoFromOrgSecret($params); + return $this->router[Router\Delete\Actions::class]->RemoveSelectedRepoFromOrgSecret($params); } } } @@ -148,7 +148,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Dependabot::class] = new Router\Delete\Dependabot($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Dependabot::class]->removeSelectedRepoFromOrgSecret($params); + return $this->router[Router\Delete\Dependabot::class]->RemoveSelectedRepoFromOrgSecret($params); } } } @@ -165,7 +165,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Migrations::class] = new Router\Delete\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Migrations::class]->unlockRepoForOrg($params); + return $this->router[Router\Delete\Migrations::class]->UnlockRepoForOrg($params); } } } @@ -182,7 +182,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Teams::class] = new Router\Delete\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Teams::class]->removeRepoInOrg($params); + return $this->router[Router\Delete\Teams::class]->RemoveRepoInOrg($params); } } } @@ -203,7 +203,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->removeAllCustomLabelsFromSelfHostedRunnerForRepo($params); + return $this->router[Router\Delete\Actions::class]->RemoveAllCustomLabelsFromSelfHostedRunnerForRepo($params); } } } @@ -216,7 +216,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->deleteWorkflowRunLogs($params); + return $this->router[Router\Delete\Actions::class]->DeleteWorkflowRunLogs($params); } } } @@ -231,7 +231,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deleteAdminBranchProtection($params); + return $this->router[Router\Delete\Repos::class]->DeleteAdminBranchProtection($params); } } elseif ($pathChunks[7] === 'required_pull_request_reviews') { if ($call === 'DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews') { @@ -240,7 +240,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deletePullRequestReviewProtection($params); + return $this->router[Router\Delete\Repos::class]->DeletePullRequestReviewProtection($params); } } elseif ($pathChunks[7] === 'required_signatures') { if ($call === 'DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures') { @@ -249,7 +249,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deleteCommitSignatureProtection($params); + return $this->router[Router\Delete\Repos::class]->DeleteCommitSignatureProtection($params); } } elseif ($pathChunks[7] === 'required_status_checks') { if ($call === 'DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks') { @@ -258,7 +258,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->removeStatusCheckProtection($params); + return $this->router[Router\Delete\Repos::class]->RemoveStatusCheckProtection($params); } } elseif ($pathChunks[7] === 'restrictions') { if ($call === 'DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions') { @@ -267,7 +267,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deleteAccessRestrictions($params); + return $this->router[Router\Delete\Repos::class]->DeleteAccessRestrictions($params); } } } @@ -282,7 +282,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Reactions::class] = new Router\Delete\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Reactions::class]->deleteForCommitComment($params); + return $this->router[Router\Delete\Reactions::class]->DeleteForCommitComment($params); } } } @@ -297,7 +297,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deleteDeploymentBranchPolicy($params); + return $this->router[Router\Delete\Repos::class]->DeleteDeploymentBranchPolicy($params); } } } @@ -312,7 +312,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Issues::class] = new Router\Delete\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Issues::class]->removeLabel($params); + return $this->router[Router\Delete\Issues::class]->RemoveLabel($params); } } } elseif ($pathChunks[6] === 'reactions') { @@ -323,7 +323,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Reactions::class] = new Router\Delete\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Reactions::class]->deleteForIssue($params); + return $this->router[Router\Delete\Reactions::class]->DeleteForIssue($params); } } } @@ -338,7 +338,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Pulls::class] = new Router\Delete\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Pulls::class]->deletePendingReview($params); + return $this->router[Router\Delete\Pulls::class]->DeletePendingReview($params); } } } @@ -353,7 +353,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|it $this->router[Router\Delete\Reactions::class] = new Router\Delete\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Reactions::class]->deleteForRelease($params); + return $this->router[Router\Delete\Reactions::class]->DeleteForRelease($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Delete/Eleven.php b/clients/GitHubEnterprise-3.4/src/Router/Delete/Eleven.php index e57cec02a93..18cb850f61d 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Delete/Eleven.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Delete/Eleven.php @@ -42,7 +42,7 @@ public function call(string $call, array $params, array $pathChunks): array $this->router[Router\Delete\Reactions::class] = new Router\Delete\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Reactions::class]->deleteForTeamDiscussionComment($params); + return $this->router[Router\Delete\Reactions::class]->DeleteForTeamDiscussionComment($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Delete/EnterpriseAdmin.php b/clients/GitHubEnterprise-3.4/src/Router/Delete/EnterpriseAdmin.php index 77154cb0787..2f5b748868e 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Delete/EnterpriseAdmin.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Delete/EnterpriseAdmin.php @@ -203,7 +203,7 @@ public function removePreReceiveHookEnforcementForOrg(array $params): OrgPreRece return $operator->call($arguments['org'], $arguments['pre_receive_hook_id']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function removeAuthorizedSshKey(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Delete/Five.php b/clients/GitHubEnterprise-3.4/src/Router/Delete/Five.php index 8374a8a42ec..7aae0b66bee 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Delete/Five.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Delete/Five.php @@ -22,7 +22,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return array{code: int}||(iterable|array{code: int}) */ + /** @return array{code: int}||(Observable|array{code: int}) */ public function call(string $call, array $params, array $pathChunks): OrgPreReceiveHook|iterable { $matched = false; @@ -37,7 +37,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->deleteImpersonationOAuthToken($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->DeleteImpersonationOAuthToken($params); } } } @@ -52,7 +52,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Apps::class] = new Router\Delete\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Apps::class]->unsuspendInstallation($params); + return $this->router[Router\Delete\Apps::class]->UnsuspendInstallation($params); } } } @@ -67,7 +67,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Gists::class] = new Router\Delete\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Gists::class]->deleteComment($params); + return $this->router[Router\Delete\Gists::class]->DeleteComment($params); } } } @@ -82,7 +82,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Activity::class] = new Router\Delete\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Activity::class]->deleteThreadSubscription($params); + return $this->router[Router\Delete\Activity::class]->DeleteThreadSubscription($params); } } } @@ -97,7 +97,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Orgs::class] = new Router\Delete\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Orgs::class]->deleteWebhook($params); + return $this->router[Router\Delete\Orgs::class]->DeleteWebhook($params); } } } elseif ($pathChunks[3] === 'members') { @@ -108,7 +108,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Orgs::class] = new Router\Delete\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Orgs::class]->removeMember($params); + return $this->router[Router\Delete\Orgs::class]->RemoveMember($params); } } } elseif ($pathChunks[3] === 'memberships') { @@ -119,7 +119,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Orgs::class] = new Router\Delete\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Orgs::class]->removeMembershipForUser($params); + return $this->router[Router\Delete\Orgs::class]->RemoveMembershipForUser($params); } } } elseif ($pathChunks[3] === 'outside_collaborators') { @@ -130,7 +130,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Orgs::class] = new Router\Delete\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Orgs::class]->removeOutsideCollaborator($params); + return $this->router[Router\Delete\Orgs::class]->RemoveOutsideCollaborator($params); } } } elseif ($pathChunks[3] === 'pre-receive-hooks') { @@ -141,7 +141,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->removePreReceiveHookEnforcementForOrg($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->RemovePreReceiveHookEnforcementForOrg($params); } } } elseif ($pathChunks[3] === 'public_members') { @@ -152,7 +152,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Orgs::class] = new Router\Delete\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Orgs::class]->removePublicMembershipForAuthenticatedUser($params); + return $this->router[Router\Delete\Orgs::class]->RemovePublicMembershipForAuthenticatedUser($params); } } } elseif ($pathChunks[3] === 'teams') { @@ -163,7 +163,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Teams::class] = new Router\Delete\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Teams::class]->deleteInOrg($params); + return $this->router[Router\Delete\Teams::class]->DeleteInOrg($params); } } } @@ -178,7 +178,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Projects::class] = new Router\Delete\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Projects::class]->deleteCard($params); + return $this->router[Router\Delete\Projects::class]->DeleteCard($params); } } } @@ -191,7 +191,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Projects::class] = new Router\Delete\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Projects::class]->removeCollaborator($params); + return $this->router[Router\Delete\Projects::class]->RemoveCollaborator($params); } } } @@ -206,7 +206,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->disableLfsForRepo($params); + return $this->router[Router\Delete\Repos::class]->DisableLfsForRepo($params); } } elseif ($pathChunks[4] === 'pages') { if ($call === 'DELETE /repos/{owner}/{repo}/pages') { @@ -215,7 +215,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deletePagesSite($params); + return $this->router[Router\Delete\Repos::class]->DeletePagesSite($params); } } elseif ($pathChunks[4] === 'subscription') { if ($call === 'DELETE /repos/{owner}/{repo}/subscription') { @@ -224,7 +224,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Activity::class] = new Router\Delete\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Activity::class]->deleteRepoSubscription($params); + return $this->router[Router\Delete\Activity::class]->DeleteRepoSubscription($params); } } } @@ -239,7 +239,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->removeAuthorizedSshKey($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->RemoveAuthorizedSshKey($params); } } } @@ -254,7 +254,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Teams::class] = new Router\Delete\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Teams::class]->deleteDiscussionLegacy($params); + return $this->router[Router\Delete\Teams::class]->DeleteDiscussionLegacy($params); } } } elseif ($pathChunks[3] === 'members') { @@ -265,7 +265,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Teams::class] = new Router\Delete\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Teams::class]->removeMemberLegacy($params); + return $this->router[Router\Delete\Teams::class]->RemoveMemberLegacy($params); } } } elseif ($pathChunks[3] === 'memberships') { @@ -276,7 +276,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Teams::class] = new Router\Delete\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Teams::class]->removeMembershipForUserLegacy($params); + return $this->router[Router\Delete\Teams::class]->RemoveMembershipForUserLegacy($params); } } } elseif ($pathChunks[3] === 'projects') { @@ -287,7 +287,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Teams::class] = new Router\Delete\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Teams::class]->removeProjectLegacy($params); + return $this->router[Router\Delete\Teams::class]->RemoveProjectLegacy($params); } } } @@ -302,7 +302,7 @@ public function call(string $call, array $params, array $pathChunks): OrgPreRece $this->router[Router\Delete\Activity::class] = new Router\Delete\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Activity::class]->unstarRepoForAuthenticatedUser($params); + return $this->router[Router\Delete\Activity::class]->UnstarRepoForAuthenticatedUser($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Delete/Four.php b/clients/GitHubEnterprise-3.4/src/Router/Delete/Four.php index 063730a8e5e..668b910fd90 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Delete/Four.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Delete/Four.php @@ -37,7 +37,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->deleteGlobalWebhook($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->DeleteGlobalWebhook($params); } } } elseif ($pathChunks[2] === 'keys') { @@ -48,7 +48,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->deletePublicKey($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->DeletePublicKey($params); } } } elseif ($pathChunks[2] === 'pre-receive-environments') { @@ -59,7 +59,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->deletePreReceiveEnvironment($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->DeletePreReceiveEnvironment($params); } } } elseif ($pathChunks[2] === 'pre-receive-hooks') { @@ -70,7 +70,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->deletePreReceiveHook($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->DeletePreReceiveHook($params); } } } elseif ($pathChunks[2] === 'tokens') { @@ -81,7 +81,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->deletePersonalAccessToken($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->DeletePersonalAccessToken($params); } } } elseif ($pathChunks[2] === 'users') { @@ -92,7 +92,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->deleteUser($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->DeleteUser($params); } } } @@ -105,7 +105,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\Apps::class] = new Router\Delete\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Apps::class]->deleteInstallation($params); + return $this->router[Router\Delete\Apps::class]->DeleteInstallation($params); } } } @@ -118,7 +118,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\OauthAuthorizations::class] = new Router\Delete\OauthAuthorizations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\OauthAuthorizations::class]->deleteGrant($params); + return $this->router[Router\Delete\OauthAuthorizations::class]->DeleteGrant($params); } } } elseif ($pathChunks[2] === '{client_id}') { @@ -129,7 +129,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\Apps::class] = new Router\Delete\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Apps::class]->deleteAuthorization($params); + return $this->router[Router\Delete\Apps::class]->DeleteAuthorization($params); } } elseif ($pathChunks[3] === 'token') { if ($call === 'DELETE /applications/{client_id}/token') { @@ -138,7 +138,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\Apps::class] = new Router\Delete\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Apps::class]->deleteToken($params); + return $this->router[Router\Delete\Apps::class]->DeleteToken($params); } } } @@ -151,7 +151,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\Gists::class] = new Router\Delete\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Gists::class]->unstar($params); + return $this->router[Router\Delete\Gists::class]->Unstar($params); } } } @@ -164,7 +164,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\Projects::class] = new Router\Delete\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Projects::class]->deleteColumn($params); + return $this->router[Router\Delete\Projects::class]->DeleteColumn($params); } } } @@ -177,7 +177,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->delete($params); + return $this->router[Router\Delete\Repos::class]->Delete($params); } } } @@ -190,7 +190,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\Users::class] = new Router\Delete\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Users::class]->unfollow($params); + return $this->router[Router\Delete\Users::class]->Unfollow($params); } } } elseif ($pathChunks[2] === 'gpg_keys') { @@ -201,7 +201,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\Users::class] = new Router\Delete\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Users::class]->deleteGpgKeyForAuthenticatedUser($params); + return $this->router[Router\Delete\Users::class]->DeleteGpgKeyForAuthenticatedUser($params); } } } elseif ($pathChunks[2] === 'keys') { @@ -212,7 +212,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\Users::class] = new Router\Delete\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Users::class]->deletePublicSshKeyForAuthenticatedUser($params); + return $this->router[Router\Delete\Users::class]->DeletePublicSshKeyForAuthenticatedUser($params); } } } elseif ($pathChunks[2] === 'repository_invitations') { @@ -223,7 +223,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->declineInvitationForAuthenticatedUser($params); + return $this->router[Router\Delete\Repos::class]->DeclineInvitationForAuthenticatedUser($params); } } } @@ -236,7 +236,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->demoteSiteAdministrator($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->DemoteSiteAdministrator($params); } } elseif ($pathChunks[3] === 'suspended') { if ($call === 'DELETE /users/{username}/suspended') { @@ -245,7 +245,7 @@ public function call(string $call, array $params, array $pathChunks): BasicError $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->unsuspendUser($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->UnsuspendUser($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Delete/Issues.php b/clients/GitHubEnterprise-3.4/src/Router/Delete/Issues.php index c44f47c62a8..d4e3a37e6ba 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Delete/Issues.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Delete/Issues.php @@ -211,7 +211,7 @@ public function deleteMilestone(array $params): array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone_number']); } - /** @return (iterable | Schema\BasicError) */ + /** @return (Observable | Schema\BasicError) */ public function removeLabel(array $params): iterable|BasicError { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Delete/Nine.php b/clients/GitHubEnterprise-3.4/src/Router/Delete/Nine.php index e64fb39b5d4..8977e099476 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Delete/Nine.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Delete/Nine.php @@ -22,7 +22,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return array{code: int}||iterable|iterable|iterable|iterable */ + /** @return array{code: int}||Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): Ok|iterable { $matched = false; @@ -41,7 +41,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|iterabl $this->router[Router\Delete\Teams::class] = new Router\Delete\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Teams::class]->deleteDiscussionCommentInOrg($params); + return $this->router[Router\Delete\Teams::class]->DeleteDiscussionCommentInOrg($params); } } } elseif ($pathChunks[7] === 'reactions') { @@ -52,7 +52,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|iterabl $this->router[Router\Delete\Reactions::class] = new Router\Delete\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Reactions::class]->deleteForTeamDiscussion($params); + return $this->router[Router\Delete\Reactions::class]->DeleteForTeamDiscussion($params); } } } @@ -75,7 +75,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|iterabl $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->removeCustomLabelFromSelfHostedRunnerForRepo($params); + return $this->router[Router\Delete\Actions::class]->RemoveCustomLabelFromSelfHostedRunnerForRepo($params); } } } @@ -92,7 +92,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|iterabl $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->removeStatusCheckContexts($params); + return $this->router[Router\Delete\Repos::class]->RemoveStatusCheckContexts($params); } } } elseif ($pathChunks[7] === 'restrictions') { @@ -103,7 +103,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|iterabl $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->removeAppAccessRestrictions($params); + return $this->router[Router\Delete\Repos::class]->RemoveAppAccessRestrictions($params); } } elseif ($pathChunks[8] === 'teams') { if ($call === 'DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams') { @@ -112,7 +112,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|iterabl $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->removeTeamAccessRestrictions($params); + return $this->router[Router\Delete\Repos::class]->RemoveTeamAccessRestrictions($params); } } elseif ($pathChunks[8] === 'users') { if ($call === 'DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users') { @@ -121,7 +121,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|iterabl $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->removeUserAccessRestrictions($params); + return $this->router[Router\Delete\Repos::class]->RemoveUserAccessRestrictions($params); } } } @@ -138,7 +138,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|iterabl $this->router[Router\Delete\Reactions::class] = new Router\Delete\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Reactions::class]->deleteForIssueComment($params); + return $this->router[Router\Delete\Reactions::class]->DeleteForIssueComment($params); } } } @@ -155,7 +155,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|iterabl $this->router[Router\Delete\Reactions::class] = new Router\Delete\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Reactions::class]->deleteForPullRequestComment($params); + return $this->router[Router\Delete\Reactions::class]->DeleteForPullRequestComment($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Delete/Repos.php b/clients/GitHubEnterprise-3.4/src/Router/Delete/Repos.php index 9c5f394f3d1..6ad17b13a26 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Delete/Repos.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Delete/Repos.php @@ -671,7 +671,7 @@ public function deleteDeploymentBranchPolicy(array $params): array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['environment_name'], $arguments['branch_policy_id']); } - /** @return iterable */ + /** @return Observable */ public function removeStatusCheckContexts(array $params): iterable { $matched = true; @@ -703,7 +703,7 @@ public function removeStatusCheckContexts(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch'], $params); } - /** @return iterable */ + /** @return Observable */ public function removeAppAccessRestrictions(array $params): iterable { $matched = true; @@ -735,7 +735,7 @@ public function removeAppAccessRestrictions(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch'], $params); } - /** @return iterable */ + /** @return Observable */ public function removeTeamAccessRestrictions(array $params): iterable { $matched = true; @@ -767,7 +767,7 @@ public function removeTeamAccessRestrictions(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch'], $params); } - /** @return iterable */ + /** @return Observable */ public function removeUserAccessRestrictions(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Delete/Seven.php b/clients/GitHubEnterprise-3.4/src/Router/Delete/Seven.php index d6da890c8cd..a4d87aaa088 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Delete/Seven.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Delete/Seven.php @@ -43,7 +43,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->disableSelectedOrganizationGithubActionsEnterprise($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->DisableSelectedOrganizationGithubActionsEnterprise($params); } } } @@ -56,7 +56,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->removeAllCustomLabelsFromSelfHostedRunnerForEnterprise($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise($params); } } } @@ -75,7 +75,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->disableSelectedRepositoryGithubActionsOrganization($params); + return $this->router[Router\Delete\Actions::class]->DisableSelectedRepositoryGithubActionsOrganization($params); } } } @@ -88,7 +88,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->removeAllCustomLabelsFromSelfHostedRunnerForOrg($params); + return $this->router[Router\Delete\Actions::class]->RemoveAllCustomLabelsFromSelfHostedRunnerForOrg($params); } } } @@ -103,7 +103,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Teams::class] = new Router\Delete\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Teams::class]->deleteDiscussionInOrg($params); + return $this->router[Router\Delete\Teams::class]->DeleteDiscussionInOrg($params); } } } elseif ($pathChunks[5] === 'memberships') { @@ -114,7 +114,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Teams::class] = new Router\Delete\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Teams::class]->removeMembershipForUserInOrg($params); + return $this->router[Router\Delete\Teams::class]->RemoveMembershipForUserInOrg($params); } } } elseif ($pathChunks[5] === 'projects') { @@ -125,7 +125,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Teams::class] = new Router\Delete\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Teams::class]->removeProjectInOrg($params); + return $this->router[Router\Delete\Teams::class]->RemoveProjectInOrg($params); } } } @@ -144,7 +144,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->deleteArtifact($params); + return $this->router[Router\Delete\Actions::class]->DeleteArtifact($params); } } } elseif ($pathChunks[5] === 'runners') { @@ -155,7 +155,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->deleteSelfHostedRunnerFromRepo($params); + return $this->router[Router\Delete\Actions::class]->DeleteSelfHostedRunnerFromRepo($params); } } } elseif ($pathChunks[5] === 'runs') { @@ -166,7 +166,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->deleteWorkflowRun($params); + return $this->router[Router\Delete\Actions::class]->DeleteWorkflowRun($params); } } } elseif ($pathChunks[5] === 'secrets') { @@ -177,7 +177,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->deleteRepoSecret($params); + return $this->router[Router\Delete\Actions::class]->DeleteRepoSecret($params); } } } @@ -190,7 +190,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deleteBranchProtection($params); + return $this->router[Router\Delete\Repos::class]->DeleteBranchProtection($params); } } } @@ -203,7 +203,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\CodeScanning::class] = new Router\Delete\CodeScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\CodeScanning::class]->deleteAnalysis($params); + return $this->router[Router\Delete\CodeScanning::class]->DeleteAnalysis($params); } } } @@ -216,7 +216,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Dependabot::class] = new Router\Delete\Dependabot($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Dependabot::class]->deleteRepoSecret($params); + return $this->router[Router\Delete\Dependabot::class]->DeleteRepoSecret($params); } } } @@ -229,7 +229,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Git::class] = new Router\Delete\Git($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Git::class]->deleteRef($params); + return $this->router[Router\Delete\Git::class]->DeleteRef($params); } } } @@ -242,7 +242,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Issues::class] = new Router\Delete\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Issues::class]->deleteComment($params); + return $this->router[Router\Delete\Issues::class]->DeleteComment($params); } } } elseif ($pathChunks[5] === '{issue_number}') { @@ -253,7 +253,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Issues::class] = new Router\Delete\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Issues::class]->removeAssignees($params); + return $this->router[Router\Delete\Issues::class]->RemoveAssignees($params); } } elseif ($pathChunks[6] === 'labels') { if ($call === 'DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels') { @@ -262,7 +262,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Issues::class] = new Router\Delete\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Issues::class]->removeAllLabels($params); + return $this->router[Router\Delete\Issues::class]->RemoveAllLabels($params); } } elseif ($pathChunks[6] === 'lock') { if ($call === 'DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock') { @@ -271,7 +271,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Issues::class] = new Router\Delete\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Issues::class]->unlock($params); + return $this->router[Router\Delete\Issues::class]->Unlock($params); } } } @@ -284,7 +284,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Pulls::class] = new Router\Delete\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Pulls::class]->deleteReviewComment($params); + return $this->router[Router\Delete\Pulls::class]->DeleteReviewComment($params); } } } elseif ($pathChunks[5] === '{pull_number}') { @@ -295,7 +295,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Pulls::class] = new Router\Delete\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Pulls::class]->removeRequestedReviewers($params); + return $this->router[Router\Delete\Pulls::class]->RemoveRequestedReviewers($params); } } } @@ -308,7 +308,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deleteReleaseAsset($params); + return $this->router[Router\Delete\Repos::class]->DeleteReleaseAsset($params); } } } @@ -327,7 +327,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->deleteEnvironmentSecret($params); + return $this->router[Router\Delete\Actions::class]->DeleteEnvironmentSecret($params); } } } @@ -346,7 +346,7 @@ public function call(string $call, array $params, array $pathChunks): Json|\ApiC $this->router[Router\Delete\Teams::class] = new Router\Delete\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Teams::class]->deleteDiscussionCommentLegacy($params); + return $this->router[Router\Delete\Teams::class]->DeleteDiscussionCommentLegacy($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Delete/Six.php b/clients/GitHubEnterprise-3.4/src/Router/Delete/Six.php index a7365067e9c..9dc196dfbe3 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Delete/Six.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Delete/Six.php @@ -39,7 +39,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->deleteSelfHostedRunnerGroupFromEnterprise($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->DeleteSelfHostedRunnerGroupFromEnterprise($params); } } } elseif ($pathChunks[4] === 'runners') { @@ -50,7 +50,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->deleteSelfHostedRunnerFromEnterprise($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->DeleteSelfHostedRunnerFromEnterprise($params); } } } @@ -67,7 +67,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->deleteSelfHostedRunnerGroupFromOrg($params); + return $this->router[Router\Delete\Actions::class]->DeleteSelfHostedRunnerGroupFromOrg($params); } } } elseif ($pathChunks[4] === 'runners') { @@ -78,7 +78,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->deleteSelfHostedRunnerFromOrg($params); + return $this->router[Router\Delete\Actions::class]->DeleteSelfHostedRunnerFromOrg($params); } } } elseif ($pathChunks[4] === 'secrets') { @@ -89,7 +89,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Actions::class] = new Router\Delete\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Actions::class]->deleteOrgSecret($params); + return $this->router[Router\Delete\Actions::class]->DeleteOrgSecret($params); } } } @@ -102,7 +102,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Dependabot::class] = new Router\Delete\Dependabot($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Dependabot::class]->deleteOrgSecret($params); + return $this->router[Router\Delete\Dependabot::class]->DeleteOrgSecret($params); } } } @@ -115,7 +115,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Migrations::class] = new Router\Delete\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Migrations::class]->deleteArchiveForOrg($params); + return $this->router[Router\Delete\Migrations::class]->DeleteArchiveForOrg($params); } } } @@ -132,7 +132,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deleteAutolink($params); + return $this->router[Router\Delete\Repos::class]->DeleteAutolink($params); } } } elseif ($pathChunks[4] === 'collaborators') { @@ -143,7 +143,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->removeCollaborator($params); + return $this->router[Router\Delete\Repos::class]->RemoveCollaborator($params); } } } elseif ($pathChunks[4] === 'comments') { @@ -154,7 +154,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deleteCommitComment($params); + return $this->router[Router\Delete\Repos::class]->DeleteCommitComment($params); } } } elseif ($pathChunks[4] === 'contents') { @@ -165,7 +165,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deleteFile($params); + return $this->router[Router\Delete\Repos::class]->DeleteFile($params); } } } elseif ($pathChunks[4] === 'deployments') { @@ -176,7 +176,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deleteDeployment($params); + return $this->router[Router\Delete\Repos::class]->DeleteDeployment($params); } } } elseif ($pathChunks[4] === 'environments') { @@ -187,7 +187,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deleteAnEnvironment($params); + return $this->router[Router\Delete\Repos::class]->DeleteAnEnvironment($params); } } } elseif ($pathChunks[4] === 'hooks') { @@ -198,7 +198,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deleteWebhook($params); + return $this->router[Router\Delete\Repos::class]->DeleteWebhook($params); } } } elseif ($pathChunks[4] === 'invitations') { @@ -209,7 +209,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deleteInvitation($params); + return $this->router[Router\Delete\Repos::class]->DeleteInvitation($params); } } } elseif ($pathChunks[4] === 'keys') { @@ -220,7 +220,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deleteDeployKey($params); + return $this->router[Router\Delete\Repos::class]->DeleteDeployKey($params); } } } elseif ($pathChunks[4] === 'labels') { @@ -231,7 +231,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Issues::class] = new Router\Delete\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Issues::class]->deleteLabel($params); + return $this->router[Router\Delete\Issues::class]->DeleteLabel($params); } } } elseif ($pathChunks[4] === 'milestones') { @@ -242,7 +242,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Issues::class] = new Router\Delete\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Issues::class]->deleteMilestone($params); + return $this->router[Router\Delete\Issues::class]->DeleteMilestone($params); } } } elseif ($pathChunks[4] === 'pre-receive-hooks') { @@ -253,7 +253,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->removePreReceiveHookEnforcementForRepo($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->RemovePreReceiveHookEnforcementForRepo($params); } } } elseif ($pathChunks[4] === 'releases') { @@ -264,7 +264,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Repos::class] = new Router\Delete\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Repos::class]->deleteRelease($params); + return $this->router[Router\Delete\Repos::class]->DeleteRelease($params); } } } @@ -281,7 +281,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Teams::class] = new Router\Delete\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Teams::class]->removeRepoLegacy($params); + return $this->router[Router\Delete\Teams::class]->RemoveRepoLegacy($params); } } } @@ -298,7 +298,7 @@ public function call(string $call, array $params, array $pathChunks): FileCommit $this->router[Router\Delete\Apps::class] = new Router\Delete\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Apps::class]->removeRepoFromInstallationForAuthenticatedUser($params); + return $this->router[Router\Delete\Apps::class]->RemoveRepoFromInstallationForAuthenticatedUser($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Delete/Three.php b/clients/GitHubEnterprise-3.4/src/Router/Delete/Three.php index f09b40bbc5b..f885410f4bc 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Delete/Three.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Delete/Three.php @@ -34,7 +34,7 @@ public function call(string $call, array $params, array $pathChunks): array $this->router[Router\Delete\OauthAuthorizations::class] = new Router\Delete\OauthAuthorizations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\OauthAuthorizations::class]->deleteAuthorization($params); + return $this->router[Router\Delete\OauthAuthorizations::class]->DeleteAuthorization($params); } } } elseif ($pathChunks[1] === 'enterprise') { @@ -45,7 +45,7 @@ public function call(string $call, array $params, array $pathChunks): array $this->router[Router\Delete\EnterpriseAdmin::class] = new Router\Delete\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\EnterpriseAdmin::class]->removeAnnouncement($params); + return $this->router[Router\Delete\EnterpriseAdmin::class]->RemoveAnnouncement($params); } } } elseif ($pathChunks[1] === 'gists') { @@ -56,7 +56,7 @@ public function call(string $call, array $params, array $pathChunks): array $this->router[Router\Delete\Gists::class] = new Router\Delete\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Gists::class]->delete($params); + return $this->router[Router\Delete\Gists::class]->Delete($params); } } } elseif ($pathChunks[1] === 'installation') { @@ -67,7 +67,7 @@ public function call(string $call, array $params, array $pathChunks): array $this->router[Router\Delete\Apps::class] = new Router\Delete\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Apps::class]->revokeInstallationAccessToken($params); + return $this->router[Router\Delete\Apps::class]->RevokeInstallationAccessToken($params); } } } elseif ($pathChunks[1] === 'projects') { @@ -78,7 +78,7 @@ public function call(string $call, array $params, array $pathChunks): array $this->router[Router\Delete\Projects::class] = new Router\Delete\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Projects::class]->delete($params); + return $this->router[Router\Delete\Projects::class]->Delete($params); } } } elseif ($pathChunks[1] === 'reactions') { @@ -89,7 +89,7 @@ public function call(string $call, array $params, array $pathChunks): array $this->router[Router\Delete\Reactions::class] = new Router\Delete\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Reactions::class]->deleteLegacy($params); + return $this->router[Router\Delete\Reactions::class]->DeleteLegacy($params); } } } elseif ($pathChunks[1] === 'teams') { @@ -100,7 +100,7 @@ public function call(string $call, array $params, array $pathChunks): array $this->router[Router\Delete\Teams::class] = new Router\Delete\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Teams::class]->deleteLegacy($params); + return $this->router[Router\Delete\Teams::class]->DeleteLegacy($params); } } } elseif ($pathChunks[1] === 'user') { @@ -111,7 +111,7 @@ public function call(string $call, array $params, array $pathChunks): array $this->router[Router\Delete\Users::class] = new Router\Delete\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Delete\Users::class]->deleteEmailForAuthenticatedUser($params); + return $this->router[Router\Delete\Users::class]->DeleteEmailForAuthenticatedUser($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Actions.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Actions.php index 454cfbf75cb..1e04a772928 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Actions.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Actions.php @@ -117,7 +117,7 @@ public function getSelfHostedRunnerGroupForOrg(array $params): RunnerGroupsOrg|a return $operator->call($arguments['org'], $arguments['runner_group_id']); } - /** @return iterable */ + /** @return Observable */ public function listRunnerApplicationsForOrg(array $params): iterable { $matched = true; @@ -845,7 +845,7 @@ public function getAllowedActionsRepository(array $params): SelectedActions|arra return $operator->call($arguments['owner'], $arguments['repo']); } - /** @return iterable */ + /** @return Observable */ public function listRunnerApplicationsForRepo(array $params): iterable { $matched = true; @@ -1187,7 +1187,7 @@ public function listLabelsForSelfHostedRunnerForRepo(array $params): \ApiClients return $operator->call($arguments['owner'], $arguments['repo'], $arguments['runner_id']); } - /** @return iterable */ + /** @return Observable */ public function getReviewsForRun(array $params): iterable { $matched = true; @@ -1341,7 +1341,7 @@ public function downloadWorkflowRunLogs(array $params): array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['run_id']); } - /** @return iterable */ + /** @return Observable */ public function getPendingDeploymentsForRun(array $params): iterable { $matched = true; @@ -1452,98 +1452,4 @@ public function listWorkflowRuns(array $params): \ApiClients\Client\GitHubEnterp return $operator->call($arguments['owner'], $arguments['repo'], $arguments['workflow_id'], $arguments['actor'], $arguments['branch'], $arguments['event'], $arguments['status'], $arguments['created'], $arguments['per_page'], $arguments['page'], $arguments['exclude_pull_requests']); } - - /** @return Observable */ - public function downloadArtifactStreaming(array $params): iterable - { - $matched = true; - $arguments = []; - if (array_key_exists('owner', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: owner'); - } - - $arguments['owner'] = $params['owner']; - unset($params['owner']); - if (array_key_exists('repo', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: repo'); - } - - $arguments['repo'] = $params['repo']; - unset($params['repo']); - if (array_key_exists('artifact_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: artifact_id'); - } - - $arguments['artifact_id'] = $params['artifact_id']; - unset($params['artifact_id']); - if (array_key_exists('archive_format', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: archive_format'); - } - - $arguments['archive_format'] = $params['archive_format']; - unset($params['archive_format']); - if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Actions\Artifacts\ArtifactId\ArchiveFormat::class, $this->hydrator) === false) { - $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Actions\Artifacts\ArtifactId\ArchiveFormat::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Actions🌀Artifacts🌀ArtifactId🌀ArchiveFormat(); - } - - $operator = new Operator\Actions\DownloadArtifactStreaming($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Actions\Artifacts\ArtifactId\ArchiveFormat::class]); - - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['artifact_id'], $arguments['archive_format']); - } - - /** @return Observable */ - public function downloadJobLogsForWorkflowRunStreaming(array $params): iterable - { - $matched = true; - $arguments = []; - if (array_key_exists('owner', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: owner'); - } - - $arguments['owner'] = $params['owner']; - unset($params['owner']); - if (array_key_exists('repo', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: repo'); - } - - $arguments['repo'] = $params['repo']; - unset($params['repo']); - if (array_key_exists('job_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: job_id'); - } - - $arguments['job_id'] = $params['job_id']; - unset($params['job_id']); - $operator = new Operator\Actions\DownloadJobLogsForWorkflowRunStreaming($this->browser, $this->authentication); - - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['job_id']); - } - - /** @return Observable */ - public function downloadWorkflowRunLogsStreaming(array $params): iterable - { - $matched = true; - $arguments = []; - if (array_key_exists('owner', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: owner'); - } - - $arguments['owner'] = $params['owner']; - unset($params['owner']); - if (array_key_exists('repo', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: repo'); - } - - $arguments['repo'] = $params['repo']; - unset($params['repo']); - if (array_key_exists('run_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: run_id'); - } - - $arguments['run_id'] = $params['run_id']; - unset($params['run_id']); - $operator = new Operator\Actions\DownloadWorkflowRunLogsStreaming($this->browser, $this->authentication); - - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['run_id']); - } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Activity.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Activity.php index 4b800984d38..3f0d576ac3e 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Activity.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Activity.php @@ -34,7 +34,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listReposStarredByAuthenticatedUser(array $params): iterable { $matched = true; @@ -72,7 +72,7 @@ public function listReposStarredByAuthenticatedUser(array $params): iterable return $operator->call($arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listWatchedReposForAuthenticatedUser(array $params): iterable { $matched = true; @@ -118,7 +118,7 @@ public function getThread(array $params): Thread|array return $operator->call($arguments['thread_id']); } - /** @return iterable */ + /** @return Observable */ public function listPublicOrgEvents(array $params): iterable { $matched = true; @@ -150,7 +150,7 @@ public function listPublicOrgEvents(array $params): iterable return $operator->call($arguments['org'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listEventsForAuthenticatedUser(array $params): iterable { $matched = true; @@ -182,7 +182,7 @@ public function listEventsForAuthenticatedUser(array $params): iterable return $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listReceivedEventsForUser(array $params): iterable { $matched = true; @@ -214,7 +214,7 @@ public function listReceivedEventsForUser(array $params): iterable return $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); } - /** @return (Schema\StarredRepository | Schema\Repository) */ + /** @return */ public function listReposStarredByUser(array $params): StarredRepository|Repository|array { $matched = true; @@ -258,7 +258,7 @@ public function listReposStarredByUser(array $params): StarredRepository|Reposit return $operator->call($arguments['username'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listReposWatchedByUser(array $params): iterable { $matched = true; @@ -290,7 +290,7 @@ public function listReposWatchedByUser(array $params): iterable return $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listOrgEventsForAuthenticatedUser(array $params): iterable { $matched = true; @@ -328,7 +328,7 @@ public function listOrgEventsForAuthenticatedUser(array $params): iterable return $operator->call($arguments['username'], $arguments['org'], $arguments['per_page'], $arguments['page']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listPublicEvents(array $params): iterable { $matched = true; @@ -367,7 +367,7 @@ public function getFeeds(array $params): Feed|array return $operator->call(); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listNotificationsForAuthenticatedUser(array $params): iterable { $matched = true; @@ -417,7 +417,7 @@ public function listNotificationsForAuthenticatedUser(array $params): iterable return $operator->call($arguments['since'], $arguments['before'], $arguments['all'], $arguments['participating'], $arguments['page'], $arguments['per_page']); } - /** @return (iterable | Schema\BasicError | array{code: int}) */ + /** @return (Observable | Schema\BasicError | array{code: int}) */ public function listPublicEventsForRepoNetwork(array $params): iterable|BasicError { $matched = true; @@ -475,7 +475,7 @@ public function getThreadSubscriptionForAuthenticatedUser(array $params): Thread return $operator->call($arguments['thread_id']); } - /** @return iterable */ + /** @return Observable */ public function listRepoEvents(array $params): iterable { $matched = true; @@ -513,7 +513,7 @@ public function listRepoEvents(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listRepoNotificationsForAuthenticatedUser(array $params): iterable { $matched = true; @@ -575,7 +575,7 @@ public function listRepoNotificationsForAuthenticatedUser(array $params): iterab return $operator->call($arguments['owner'], $arguments['repo'], $arguments['since'], $arguments['before'], $arguments['all'], $arguments['participating'], $arguments['per_page'], $arguments['page']); } - /** @return (Schema\SimpleUser | Schema\Stargazer) */ + /** @return */ public function listStargazersForRepo(array $params): SimpleUser|Stargazer|array { $matched = true; @@ -613,7 +613,7 @@ public function listStargazersForRepo(array $params): SimpleUser|Stargazer|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listWatchersForRepo(array $params): iterable { $matched = true; @@ -703,7 +703,7 @@ public function checkRepoIsStarredByAuthenticatedUser(array $params): array return $operator->call($arguments['owner'], $arguments['repo']); } - /** @return iterable */ + /** @return Observable */ public function listPublicEventsForUser(array $params): iterable { $matched = true; @@ -735,7 +735,7 @@ public function listPublicEventsForUser(array $params): iterable return $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listReceivedPublicEventsForUser(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Apps.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Apps.php index 5af9f482788..0d7b0b2c920 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Apps.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Apps.php @@ -32,7 +32,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listInstallationRequestsForAuthenticatedApp(array $params): iterable { $matched = true; @@ -58,7 +58,7 @@ public function listInstallationRequestsForAuthenticatedApp(array $params): iter return $operator->call($arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listInstallations(array $params): iterable { $matched = true; @@ -181,7 +181,7 @@ public function getWebhookConfigForApp(array $params): WebhookConfig|array return $operator->call(); } - /** @return iterable */ + /** @return Observable */ public function listWebhookDeliveries(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Checks.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Checks.php index f773379593d..3c38351717a 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Checks.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Checks.php @@ -93,7 +93,7 @@ public function getSuite(array $params): CheckSuite|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['check_suite_id']); } - /** @return iterable */ + /** @return Observable */ public function listAnnotations(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/CodeScanning.php b/clients/GitHubEnterprise-3.4/src/Router/Get/CodeScanning.php index d46c217f204..481c8f34829 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/CodeScanning.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/CodeScanning.php @@ -28,7 +28,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listAlertsForRepo(array $params): iterable { $matched = true; @@ -102,7 +102,7 @@ public function listAlertsForRepo(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['state'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); } - /** @return iterable */ + /** @return Observable */ public function listRecentAnalyses(array $params): iterable { $matched = true; @@ -260,7 +260,7 @@ public function getSarif(array $params): CodeScanningSarifsStatus|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['sarif_id']); } - /** @return iterable */ + /** @return Observable */ public function listAlertInstances(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/CodesOfConduct.php b/clients/GitHubEnterprise-3.4/src/Router/Get/CodesOfConduct.php index 473912cdc6d..d2f6995724f 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/CodesOfConduct.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/CodesOfConduct.php @@ -46,7 +46,7 @@ public function getConductCode(array $params): CodeOfConduct|array return $operator->call($arguments['key']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function getAllCodesOfConduct(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Eight.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Eight.php index 13b15e453f1..27741535ec2 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Eight.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Eight.php @@ -32,7 +32,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable|iterable|(Schema\TeamRepository|array{code: int})|array{code: int, location: string}||iterable|iterable|iterable|array{code: int}|(iterable */ + /** @return Observable|Observable|(Schema\TeamRepository|array{code: int})|array{code: int, location: string}||Observable|Observable|Observable|array{code: int}|(Observable */ public function call(string $call, array $params, array $pathChunks): iterable|TeamRepository|Ok|Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|ProtectedBranchAdminEnforced|ProtectedBranchPullRequestReview|StatusCheckPolicy|BranchRestrictionPolicy|DeploymentStatus|DeploymentBranchPolicy|HookDelivery|PullRequestReview { $matched = false; @@ -50,7 +50,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->listDiscussionCommentsInOrg($params); + return $this->router[Router\Get\Teams::class]->ListDiscussionCommentsInOrg($params); } } elseif ($pathChunks[7] === 'reactions') { if ($call === 'GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions') { @@ -59,7 +59,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Reactions::class] = new Router\Get\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Reactions::class]->listForTeamDiscussionInOrg($params); + return $this->router[Router\Get\Reactions::class]->ListForTeamDiscussionInOrg($params); } } } @@ -72,7 +72,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->checkPermissionsForRepoInOrg($params); + return $this->router[Router\Get\Teams::class]->CheckPermissionsForRepoInOrg($params); } } } @@ -93,7 +93,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->downloadArtifact($params); + return $this->router[Router\Get\Actions::class]->DownloadArtifact($params); } } } @@ -106,7 +106,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->downloadJobLogsForWorkflowRun($params); + return $this->router[Router\Get\Actions::class]->DownloadJobLogsForWorkflowRun($params); } } } @@ -119,7 +119,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listLabelsForSelfHostedRunnerForRepo($params); + return $this->router[Router\Get\Actions::class]->ListLabelsForSelfHostedRunnerForRepo($params); } } } @@ -132,7 +132,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getReviewsForRun($params); + return $this->router[Router\Get\Actions::class]->GetReviewsForRun($params); } } elseif ($pathChunks[7] === 'artifacts') { if ($call === 'GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts') { @@ -141,7 +141,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listWorkflowRunArtifacts($params); + return $this->router[Router\Get\Actions::class]->ListWorkflowRunArtifacts($params); } } elseif ($pathChunks[7] === 'jobs') { if ($call === 'GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs') { @@ -150,7 +150,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listJobsForWorkflowRun($params); + return $this->router[Router\Get\Actions::class]->ListJobsForWorkflowRun($params); } } elseif ($pathChunks[7] === 'logs') { if ($call === 'GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs') { @@ -159,7 +159,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->downloadWorkflowRunLogs($params); + return $this->router[Router\Get\Actions::class]->DownloadWorkflowRunLogs($params); } } elseif ($pathChunks[7] === 'pending_deployments') { if ($call === 'GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments') { @@ -168,7 +168,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getPendingDeploymentsForRun($params); + return $this->router[Router\Get\Actions::class]->GetPendingDeploymentsForRun($params); } } } @@ -181,7 +181,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listWorkflowRuns($params); + return $this->router[Router\Get\Actions::class]->ListWorkflowRuns($params); } } } @@ -196,7 +196,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getAdminBranchProtection($params); + return $this->router[Router\Get\Repos::class]->GetAdminBranchProtection($params); } } elseif ($pathChunks[7] === 'required_pull_request_reviews') { if ($call === 'GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews') { @@ -205,7 +205,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getPullRequestReviewProtection($params); + return $this->router[Router\Get\Repos::class]->GetPullRequestReviewProtection($params); } } elseif ($pathChunks[7] === 'required_signatures') { if ($call === 'GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures') { @@ -214,7 +214,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getCommitSignatureProtection($params); + return $this->router[Router\Get\Repos::class]->GetCommitSignatureProtection($params); } } elseif ($pathChunks[7] === 'required_status_checks') { if ($call === 'GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks') { @@ -223,7 +223,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getStatusChecksProtection($params); + return $this->router[Router\Get\Repos::class]->GetStatusChecksProtection($params); } } elseif ($pathChunks[7] === 'restrictions') { if ($call === 'GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions') { @@ -232,7 +232,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getAccessRestrictions($params); + return $this->router[Router\Get\Repos::class]->GetAccessRestrictions($params); } } } @@ -247,7 +247,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\CodeScanning::class] = new Router\Get\CodeScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\CodeScanning::class]->listAlertInstances($params); + return $this->router[Router\Get\CodeScanning::class]->ListAlertInstances($params); } } } @@ -262,7 +262,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getDeploymentStatus($params); + return $this->router[Router\Get\Repos::class]->GetDeploymentStatus($params); } } } @@ -277,7 +277,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getDeploymentBranchPolicy($params); + return $this->router[Router\Get\Repos::class]->GetDeploymentBranchPolicy($params); } } } @@ -292,7 +292,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getWebhookDelivery($params); + return $this->router[Router\Get\Repos::class]->GetWebhookDelivery($params); } } } @@ -307,7 +307,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Reactions::class] = new Router\Get\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Reactions::class]->listForIssueComment($params); + return $this->router[Router\Get\Reactions::class]->ListForIssueComment($params); } } } @@ -320,7 +320,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->checkUserCanBeAssignedToIssue($params); + return $this->router[Router\Get\Issues::class]->CheckUserCanBeAssignedToIssue($params); } } } @@ -335,7 +335,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Reactions::class] = new Router\Get\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Reactions::class]->listForPullRequestReviewComment($params); + return $this->router[Router\Get\Reactions::class]->ListForPullRequestReviewComment($params); } } } @@ -348,7 +348,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Pulls::class] = new Router\Get\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Pulls::class]->getReview($params); + return $this->router[Router\Get\Pulls::class]->GetReview($params); } } } @@ -363,7 +363,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\SecretScanning::class] = new Router\Get\SecretScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\SecretScanning::class]->listLocationsForAlert($params); + return $this->router[Router\Get\SecretScanning::class]->ListLocationsForAlert($params); } } } @@ -384,7 +384,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|T $this->router[Router\Get\Reactions::class] = new Router\Get\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Reactions::class]->listForTeamDiscussionCommentLegacy($params); + return $this->router[Router\Get\Reactions::class]->ListForTeamDiscussionCommentLegacy($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/EnterpriseAdmin.php b/clients/GitHubEnterprise-3.4/src/Router/Get/EnterpriseAdmin.php index ed189cf22ac..e2135991a41 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/EnterpriseAdmin.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/EnterpriseAdmin.php @@ -53,7 +53,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable */ + /** @return Observable */ public function listGlobalWebhooks(array $params): iterable { $matched = true; @@ -79,7 +79,7 @@ public function listGlobalWebhooks(array $params): iterable return $operator->call($arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listPublicKeys(array $params): iterable { $matched = true; @@ -123,7 +123,7 @@ public function listPublicKeys(array $params): iterable return $operator->call($arguments['since'], $arguments['per_page'], $arguments['page'], $arguments['direction'], $arguments['sort']); } - /** @return iterable */ + /** @return Observable */ public function listPreReceiveEnvironments(array $params): iterable { $matched = true; @@ -161,7 +161,7 @@ public function listPreReceiveEnvironments(array $params): iterable return $operator->call($arguments['per_page'], $arguments['page'], $arguments['direction'], $arguments['sort']); } - /** @return iterable */ + /** @return Observable */ public function listPreReceiveHooks(array $params): iterable { $matched = true; @@ -199,7 +199,7 @@ public function listPreReceiveHooks(array $params): iterable return $operator->call($arguments['per_page'], $arguments['page'], $arguments['direction'], $arguments['sort']); } - /** @return iterable */ + /** @return Observable */ public function listPersonalAccessTokens(array $params): iterable { $matched = true; @@ -454,7 +454,7 @@ public function getUserStats(array $params): EnterpriseUserOverview|array return $operator->call(); } - /** @return iterable */ + /** @return Observable */ public function getAuditLog(array $params): iterable { $matched = true; @@ -516,7 +516,7 @@ public function getAuditLog(array $params): iterable return $operator->call($arguments['enterprise'], $arguments['phrase'], $arguments['include'], $arguments['after'], $arguments['before'], $arguments['order'], $arguments['page'], $arguments['per_page']); } - /** @return iterable */ + /** @return Observable */ public function listPreReceiveHooksForOrg(array $params): iterable { $matched = true; @@ -697,7 +697,7 @@ public function getSelfHostedRunnerGroupForEnterprise(array $params): RunnerGrou return $operator->call($arguments['enterprise'], $arguments['runner_group_id']); } - /** @return iterable */ + /** @return Observable */ public function listRunnerApplicationsForEnterprise(array $params): iterable { $matched = true; @@ -885,7 +885,7 @@ public function getPreReceiveHookForOrg(array $params): OrgPreReceiveHook|array return $operator->call($arguments['org'], $arguments['pre_receive_hook_id']); } - /** @return iterable */ + /** @return Observable */ public function listPreReceiveHooksForRepo(array $params): iterable { $matched = true; @@ -935,7 +935,7 @@ public function listPreReceiveHooksForRepo(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page'], $arguments['direction'], $arguments['sort']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function getAllAuthorizedSshKeys(array $params): iterable { $matched = true; @@ -1049,24 +1049,4 @@ public function listLabelsForSelfHostedRunnerForEnterprise(array $params): \ApiC return $operator->call($arguments['enterprise'], $arguments['runner_id']); } - - /** @return */ - public function getDownloadStatusForPreReceiveEnvironmentStreaming(array $params): PreReceiveEnvironmentDownloadStatus|array - { - $matched = true; - $arguments = []; - if (array_key_exists('pre_receive_environment_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: pre_receive_environment_id'); - } - - $arguments['pre_receive_environment_id'] = $params['pre_receive_environment_id']; - unset($params['pre_receive_environment_id']); - if (array_key_exists(Hydrator\Operation\Admin\PreReceiveEnvironments\PreReceiveEnvironmentId\Downloads\Latest::class, $this->hydrator) === false) { - $this->hydrator[Hydrator\Operation\Admin\PreReceiveEnvironments\PreReceiveEnvironmentId\Downloads\Latest::class] = $this->hydrators->getObjectMapperOperation🌀Admin🌀PreReceiveEnvironments🌀PreReceiveEnvironmentId🌀Downloads🌀Latest(); - } - - $operator = new Operator\EnterpriseAdmin\GetDownloadStatusForPreReceiveEnvironmentStreaming($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Admin\PreReceiveEnvironments\PreReceiveEnvironmentId\Downloads\Latest::class]); - - return $operator->call($arguments['pre_receive_environment_id']); - } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Five.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Five.php index 7a562d5b0c1..4dd7a2ea77c 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Five.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Five.php @@ -46,7 +46,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return |iterable|(Schema\GistComment|array{code: int})|(iterable|Schema\BasicError|(Schema\ThreadSubscription|(array{code: int}|array{code: int, location: string})|array{code: int}|(Schema\ProjectCard|(iterable|iterable|iterable|iterable|iterable|iterable|iterable|(iterable|iterable|iterable|iterable|iterable|iterable|(iterable|Schema\BasicError)|iterable|iterable|iterable|iterable|iterable|iterable|(iterable|iterable|(Schema\SimpleUser|Schema\Stargazer)|(Schema\RepositorySubscription|iterable|iterable|(iterable|(Schema\TeamProject|(Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok */ + /** @return |Observable|(Schema\GistComment|array{code: int})|(Observable|Schema\BasicError|(Schema\ThreadSubscription|(array{code: int}|array{code: int, location: string})|array{code: int}|(Schema\ProjectCard|(Observable|Observable|Observable|Observable|Observable|Observable|Observable|(Observable|Observable|Observable|Observable|Observable|Observable|(Observable|Schema\BasicError)|Observable|Observable|Observable|Observable|Observable|Observable|(Observable|Observable|(Schema\RepositorySubscription|Observable|Observable|(Observable|(Schema\TeamProject|(Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok */ public function call(string $call, array $params, array $pathChunks): HookDelivery|ActionsEnterprisePermissions|Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|iterable|GistComment|BasicError|ThreadSubscription|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|OrgHook|OrgMembership|Migration|OrgPreReceiveHook|TeamFull|ProjectCard|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Installation|Language|LicenseContent|Page|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok { $matched = false; @@ -61,7 +61,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Apps::class] = new Router\Get\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Apps::class]->getWebhookDelivery($params); + return $this->router[Router\Get\Apps::class]->GetWebhookDelivery($params); } } } @@ -76,7 +76,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getGithubActionsPermissionsEnterprise($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetGithubActionsPermissionsEnterprise($params); } } elseif ($pathChunks[4] === 'runner-groups') { if ($call === 'GET /enterprises/{enterprise}/actions/runner-groups') { @@ -85,7 +85,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->listSelfHostedRunnerGroupsForEnterprise($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->ListSelfHostedRunnerGroupsForEnterprise($params); } } elseif ($pathChunks[4] === 'runners') { if ($call === 'GET /enterprises/{enterprise}/actions/runners') { @@ -94,7 +94,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->listSelfHostedRunnersForEnterprise($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->ListSelfHostedRunnersForEnterprise($params); } } } elseif ($pathChunks[3] === 'secret-scanning') { @@ -105,7 +105,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\SecretScanning::class] = new Router\Get\SecretScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\SecretScanning::class]->listAlertsForEnterprise($params); + return $this->router[Router\Get\SecretScanning::class]->ListAlertsForEnterprise($params); } } } @@ -120,7 +120,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Gists::class] = new Router\Get\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Gists::class]->getComment($params); + return $this->router[Router\Get\Gists::class]->GetComment($params); } } } @@ -135,7 +135,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listPublicEventsForRepoNetwork($params); + return $this->router[Router\Get\Activity::class]->ListPublicEventsForRepoNetwork($params); } } } @@ -150,7 +150,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->getThreadSubscriptionForAuthenticatedUser($params); + return $this->router[Router\Get\Activity::class]->GetThreadSubscriptionForAuthenticatedUser($params); } } } @@ -165,7 +165,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getGithubActionsPermissionsOrganization($params); + return $this->router[Router\Get\Actions::class]->GetGithubActionsPermissionsOrganization($params); } } elseif ($pathChunks[4] === 'runner-groups') { if ($call === 'GET /orgs/{org}/actions/runner-groups') { @@ -174,7 +174,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listSelfHostedRunnerGroupsForOrg($params); + return $this->router[Router\Get\Actions::class]->ListSelfHostedRunnerGroupsForOrg($params); } } elseif ($pathChunks[4] === 'runners') { if ($call === 'GET /orgs/{org}/actions/runners') { @@ -183,7 +183,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listSelfHostedRunnersForOrg($params); + return $this->router[Router\Get\Actions::class]->ListSelfHostedRunnersForOrg($params); } } elseif ($pathChunks[4] === 'secrets') { if ($call === 'GET /orgs/{org}/actions/secrets') { @@ -192,7 +192,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listOrgSecrets($params); + return $this->router[Router\Get\Actions::class]->ListOrgSecrets($params); } } } elseif ($pathChunks[3] === 'dependabot') { @@ -203,7 +203,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Dependabot::class] = new Router\Get\Dependabot($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Dependabot::class]->listOrgSecrets($params); + return $this->router[Router\Get\Dependabot::class]->ListOrgSecrets($params); } } } elseif ($pathChunks[3] === 'hooks') { @@ -214,7 +214,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->getWebhook($params); + return $this->router[Router\Get\Orgs::class]->GetWebhook($params); } } } elseif ($pathChunks[3] === 'members') { @@ -225,7 +225,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->checkMembershipForUser($params); + return $this->router[Router\Get\Orgs::class]->CheckMembershipForUser($params); } } } elseif ($pathChunks[3] === 'memberships') { @@ -236,7 +236,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->getMembershipForUser($params); + return $this->router[Router\Get\Orgs::class]->GetMembershipForUser($params); } } } elseif ($pathChunks[3] === 'migrations') { @@ -247,7 +247,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Migrations::class] = new Router\Get\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Migrations::class]->getStatusForOrg($params); + return $this->router[Router\Get\Migrations::class]->GetStatusForOrg($params); } } } elseif ($pathChunks[3] === 'pre-receive-hooks') { @@ -258,7 +258,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getPreReceiveHookForOrg($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetPreReceiveHookForOrg($params); } } } elseif ($pathChunks[3] === 'public_members') { @@ -269,7 +269,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->checkPublicMembershipForUser($params); + return $this->router[Router\Get\Orgs::class]->CheckPublicMembershipForUser($params); } } } elseif ($pathChunks[3] === 'secret-scanning') { @@ -280,7 +280,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\SecretScanning::class] = new Router\Get\SecretScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\SecretScanning::class]->listAlertsForOrg($params); + return $this->router[Router\Get\SecretScanning::class]->ListAlertsForOrg($params); } } } elseif ($pathChunks[3] === 'teams') { @@ -291,7 +291,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->getByName($params); + return $this->router[Router\Get\Teams::class]->GetByName($params); } } } @@ -306,7 +306,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Projects::class] = new Router\Get\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Projects::class]->getCard($params); + return $this->router[Router\Get\Projects::class]->GetCard($params); } } } elseif ($pathChunks[3] === '{column_id}') { @@ -317,7 +317,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Projects::class] = new Router\Get\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Projects::class]->listCards($params); + return $this->router[Router\Get\Projects::class]->ListCards($params); } } } @@ -332,7 +332,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->listAssignees($params); + return $this->router[Router\Get\Issues::class]->ListAssignees($params); } } elseif ($pathChunks[4] === 'autolinks') { if ($call === 'GET /repos/{owner}/{repo}/autolinks') { @@ -341,7 +341,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listAutolinks($params); + return $this->router[Router\Get\Repos::class]->ListAutolinks($params); } } elseif ($pathChunks[4] === 'branches') { if ($call === 'GET /repos/{owner}/{repo}/branches') { @@ -350,7 +350,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listBranches($params); + return $this->router[Router\Get\Repos::class]->ListBranches($params); } } elseif ($pathChunks[4] === 'collaborators') { if ($call === 'GET /repos/{owner}/{repo}/collaborators') { @@ -359,7 +359,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listCollaborators($params); + return $this->router[Router\Get\Repos::class]->ListCollaborators($params); } } elseif ($pathChunks[4] === 'comments') { if ($call === 'GET /repos/{owner}/{repo}/comments') { @@ -368,7 +368,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listCommitCommentsForRepo($params); + return $this->router[Router\Get\Repos::class]->ListCommitCommentsForRepo($params); } } elseif ($pathChunks[4] === 'commits') { if ($call === 'GET /repos/{owner}/{repo}/commits') { @@ -377,7 +377,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listCommits($params); + return $this->router[Router\Get\Repos::class]->ListCommits($params); } } elseif ($pathChunks[4] === 'contributors') { if ($call === 'GET /repos/{owner}/{repo}/contributors') { @@ -386,7 +386,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listContributors($params); + return $this->router[Router\Get\Repos::class]->ListContributors($params); } } elseif ($pathChunks[4] === 'deployments') { if ($call === 'GET /repos/{owner}/{repo}/deployments') { @@ -395,7 +395,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listDeployments($params); + return $this->router[Router\Get\Repos::class]->ListDeployments($params); } } elseif ($pathChunks[4] === 'environments') { if ($call === 'GET /repos/{owner}/{repo}/environments') { @@ -404,7 +404,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getAllEnvironments($params); + return $this->router[Router\Get\Repos::class]->GetAllEnvironments($params); } } elseif ($pathChunks[4] === 'events') { if ($call === 'GET /repos/{owner}/{repo}/events') { @@ -413,7 +413,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listRepoEvents($params); + return $this->router[Router\Get\Activity::class]->ListRepoEvents($params); } } elseif ($pathChunks[4] === 'forks') { if ($call === 'GET /repos/{owner}/{repo}/forks') { @@ -422,7 +422,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listForks($params); + return $this->router[Router\Get\Repos::class]->ListForks($params); } } elseif ($pathChunks[4] === 'hooks') { if ($call === 'GET /repos/{owner}/{repo}/hooks') { @@ -431,7 +431,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listWebhooks($params); + return $this->router[Router\Get\Repos::class]->ListWebhooks($params); } } elseif ($pathChunks[4] === 'installation') { if ($call === 'GET /repos/{owner}/{repo}/installation') { @@ -440,7 +440,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Apps::class] = new Router\Get\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Apps::class]->getRepoInstallation($params); + return $this->router[Router\Get\Apps::class]->GetRepoInstallation($params); } } elseif ($pathChunks[4] === 'invitations') { if ($call === 'GET /repos/{owner}/{repo}/invitations') { @@ -449,7 +449,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listInvitations($params); + return $this->router[Router\Get\Repos::class]->ListInvitations($params); } } elseif ($pathChunks[4] === 'issues') { if ($call === 'GET /repos/{owner}/{repo}/issues') { @@ -458,7 +458,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->listForRepo($params); + return $this->router[Router\Get\Issues::class]->ListForRepo($params); } } elseif ($pathChunks[4] === 'keys') { if ($call === 'GET /repos/{owner}/{repo}/keys') { @@ -467,7 +467,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listDeployKeys($params); + return $this->router[Router\Get\Repos::class]->ListDeployKeys($params); } } elseif ($pathChunks[4] === 'labels') { if ($call === 'GET /repos/{owner}/{repo}/labels') { @@ -476,7 +476,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->listLabelsForRepo($params); + return $this->router[Router\Get\Issues::class]->ListLabelsForRepo($params); } } elseif ($pathChunks[4] === 'languages') { if ($call === 'GET /repos/{owner}/{repo}/languages') { @@ -485,7 +485,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listLanguages($params); + return $this->router[Router\Get\Repos::class]->ListLanguages($params); } } elseif ($pathChunks[4] === 'license') { if ($call === 'GET /repos/{owner}/{repo}/license') { @@ -494,7 +494,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Licenses::class] = new Router\Get\Licenses($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Licenses::class]->getForRepo($params); + return $this->router[Router\Get\Licenses::class]->GetForRepo($params); } } elseif ($pathChunks[4] === 'milestones') { if ($call === 'GET /repos/{owner}/{repo}/milestones') { @@ -503,7 +503,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->listMilestones($params); + return $this->router[Router\Get\Issues::class]->ListMilestones($params); } } elseif ($pathChunks[4] === 'notifications') { if ($call === 'GET /repos/{owner}/{repo}/notifications') { @@ -512,7 +512,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listRepoNotificationsForAuthenticatedUser($params); + return $this->router[Router\Get\Activity::class]->ListRepoNotificationsForAuthenticatedUser($params); } } elseif ($pathChunks[4] === 'pages') { if ($call === 'GET /repos/{owner}/{repo}/pages') { @@ -521,7 +521,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getPages($params); + return $this->router[Router\Get\Repos::class]->GetPages($params); } } elseif ($pathChunks[4] === 'pre-receive-hooks') { if ($call === 'GET /repos/{owner}/{repo}/pre-receive-hooks') { @@ -530,7 +530,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->listPreReceiveHooksForRepo($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->ListPreReceiveHooksForRepo($params); } } elseif ($pathChunks[4] === 'projects') { if ($call === 'GET /repos/{owner}/{repo}/projects') { @@ -539,7 +539,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Projects::class] = new Router\Get\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Projects::class]->listForRepo($params); + return $this->router[Router\Get\Projects::class]->ListForRepo($params); } } elseif ($pathChunks[4] === 'pulls') { if ($call === 'GET /repos/{owner}/{repo}/pulls') { @@ -548,7 +548,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Pulls::class] = new Router\Get\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Pulls::class]->list_($params); + return $this->router[Router\Get\Pulls::class]->List($params); } } elseif ($pathChunks[4] === 'readme') { if ($call === 'GET /repos/{owner}/{repo}/readme') { @@ -557,7 +557,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getReadme($params); + return $this->router[Router\Get\Repos::class]->GetReadme($params); } } elseif ($pathChunks[4] === 'releases') { if ($call === 'GET /repos/{owner}/{repo}/releases') { @@ -566,7 +566,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listReleases($params); + return $this->router[Router\Get\Repos::class]->ListReleases($params); } } elseif ($pathChunks[4] === 'stargazers') { if ($call === 'GET /repos/{owner}/{repo}/stargazers') { @@ -575,7 +575,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listStargazersForRepo($params); + return $this->router[Router\Get\Activity::class]->ListStargazersForRepo($params); } } elseif ($pathChunks[4] === 'subscribers') { if ($call === 'GET /repos/{owner}/{repo}/subscribers') { @@ -584,7 +584,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listWatchersForRepo($params); + return $this->router[Router\Get\Activity::class]->ListWatchersForRepo($params); } } elseif ($pathChunks[4] === 'subscription') { if ($call === 'GET /repos/{owner}/{repo}/subscription') { @@ -593,7 +593,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->getRepoSubscription($params); + return $this->router[Router\Get\Activity::class]->GetRepoSubscription($params); } } elseif ($pathChunks[4] === 'tags') { if ($call === 'GET /repos/{owner}/{repo}/tags') { @@ -602,7 +602,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listTags($params); + return $this->router[Router\Get\Repos::class]->ListTags($params); } } elseif ($pathChunks[4] === 'teams') { if ($call === 'GET /repos/{owner}/{repo}/teams') { @@ -611,7 +611,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listTeams($params); + return $this->router[Router\Get\Repos::class]->ListTeams($params); } } elseif ($pathChunks[4] === 'topics') { if ($call === 'GET /repos/{owner}/{repo}/topics') { @@ -620,7 +620,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getAllTopics($params); + return $this->router[Router\Get\Repos::class]->GetAllTopics($params); } } } @@ -635,7 +635,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getAllAuthorizedSshKeys($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetAllAuthorizedSshKeys($params); } } } @@ -650,7 +650,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->getDiscussionLegacy($params); + return $this->router[Router\Get\Teams::class]->GetDiscussionLegacy($params); } } } elseif ($pathChunks[3] === 'members') { @@ -661,7 +661,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->getMemberLegacy($params); + return $this->router[Router\Get\Teams::class]->GetMemberLegacy($params); } } } elseif ($pathChunks[3] === 'memberships') { @@ -672,7 +672,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->getMembershipForUserLegacy($params); + return $this->router[Router\Get\Teams::class]->GetMembershipForUserLegacy($params); } } } elseif ($pathChunks[3] === 'projects') { @@ -683,7 +683,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->checkPermissionsForProjectLegacy($params); + return $this->router[Router\Get\Teams::class]->CheckPermissionsForProjectLegacy($params); } } } @@ -698,7 +698,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Apps::class] = new Router\Get\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Apps::class]->listInstallationReposForAuthenticatedUser($params); + return $this->router[Router\Get\Apps::class]->ListInstallationReposForAuthenticatedUser($params); } } } @@ -711,7 +711,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->getMembershipForAuthenticatedUser($params); + return $this->router[Router\Get\Orgs::class]->GetMembershipForAuthenticatedUser($params); } } } @@ -724,7 +724,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Migrations::class] = new Router\Get\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Migrations::class]->getArchiveForAuthenticatedUser($params); + return $this->router[Router\Get\Migrations::class]->GetArchiveForAuthenticatedUser($params); } } elseif ($pathChunks[4] === 'repositories') { if ($call === 'GET /user/migrations/{migration_id}/repositories') { @@ -733,7 +733,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Migrations::class] = new Router\Get\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Migrations::class]->listReposForAuthenticatedUser($params); + return $this->router[Router\Get\Migrations::class]->ListReposForAuthenticatedUser($params); } } } @@ -746,7 +746,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->checkRepoIsStarredByAuthenticatedUser($params); + return $this->router[Router\Get\Activity::class]->CheckRepoIsStarredByAuthenticatedUser($params); } } } @@ -761,7 +761,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listPublicEventsForUser($params); + return $this->router[Router\Get\Activity::class]->ListPublicEventsForUser($params); } } } elseif ($pathChunks[3] === 'following') { @@ -772,7 +772,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->checkFollowingForUser($params); + return $this->router[Router\Get\Users::class]->CheckFollowingForUser($params); } } } elseif ($pathChunks[3] === 'received_events') { @@ -783,7 +783,7 @@ public function call(string $call, array $params, array $pathChunks): HookDelive $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listReceivedPublicEventsForUser($params); + return $this->router[Router\Get\Activity::class]->ListReceivedPublicEventsForUser($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Four.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Four.php index a21c9d0f337..b1b5a81120c 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Four.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Four.php @@ -54,7 +54,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return |iterable|(Schema\ApplicationGrant|array{code: int})|iterable|(iterable|(iterable|(iterable|array{code: int}|(Schema\GitignoreTemplate|(Schema\Thread|iterable|iterable|iterable|iterable|iterable|iterable|iterable|iterable|iterable|(Schema\ProjectColumn|(iterable|(iterable|(Schema\ConfigurationStatus|(Schema\MaintenanceStatus|(Schema\EnterpriseSettings|iterable|iterable|(Schema\GpgKey|(Schema\Key|(iterable|iterable|iterable|iterable|iterable|(Schema\StarredRepository|Schema\Repository) */ + /** @return |Observable|(Schema\ApplicationGrant|array{code: int})|Observable|(Observable|(Observable|(Observable|array{code: int}|(Schema\GitignoreTemplate|(Schema\Thread|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|(Schema\ProjectColumn|(Observable|(Observable|(Schema\ConfigurationStatus|(Schema\MaintenanceStatus|(Schema\EnterpriseSettings|Observable|Observable|(Schema\GpgKey|(Schema\Key|(Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): GlobalHook|PreReceiveEnvironment|PreReceiveHook|WebhookConfig|iterable|Installation|ApplicationGrant|LicenseInfo|EnterpriseOverview|EnterpriseCommentOverview|EnterpriseGistOverview|EnterpriseHookOverview|EnterpriseIssueOverview|EnterpriseMilestoneOverview|EnterpriseOrganizationOverview|EnterprisePageOverview|EnterprisePullRequestOverview|EnterpriseRepositoryOverview|EnterpriseUserOverview|GistSimple|GitignoreTemplate|Thread|Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|ProjectColumn|FullRepository|BasicError|ConfigurationStatus|MaintenanceStatus|EnterpriseSettings|GpgKey|Key|Hovercard|StarredRepository|Repository { $matched = false; @@ -68,7 +68,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getGlobalWebhook($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetGlobalWebhook($params); } } } elseif ($pathChunks[2] === 'pre-receive-environments') { @@ -79,7 +79,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getPreReceiveEnvironment($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetPreReceiveEnvironment($params); } } } elseif ($pathChunks[2] === 'pre-receive-hooks') { @@ -90,7 +90,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getPreReceiveHook($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetPreReceiveHook($params); } } } @@ -103,7 +103,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Apps::class] = new Router\Get\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Apps::class]->getWebhookConfigForApp($params); + return $this->router[Router\Get\Apps::class]->GetWebhookConfigForApp($params); } } elseif ($pathChunks[3] === 'deliveries') { if ($call === 'GET /app/hook/deliveries') { @@ -112,7 +112,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Apps::class] = new Router\Get\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Apps::class]->listWebhookDeliveries($params); + return $this->router[Router\Get\Apps::class]->ListWebhookDeliveries($params); } } } elseif ($pathChunks[2] === 'installations') { @@ -123,7 +123,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Apps::class] = new Router\Get\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Apps::class]->getInstallation($params); + return $this->router[Router\Get\Apps::class]->GetInstallation($params); } } } @@ -136,7 +136,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\OauthAuthorizations::class] = new Router\Get\OauthAuthorizations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\OauthAuthorizations::class]->getGrant($params); + return $this->router[Router\Get\OauthAuthorizations::class]->GetGrant($params); } } } @@ -149,7 +149,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getLicenseInformation($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetLicenseInformation($params); } } } elseif ($pathChunks[2] === 'stats') { @@ -160,7 +160,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getAllStats($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetAllStats($params); } } elseif ($pathChunks[3] === 'comments') { if ($call === 'GET /enterprise/stats/comments') { @@ -169,7 +169,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getCommentStats($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetCommentStats($params); } } elseif ($pathChunks[3] === 'gists') { if ($call === 'GET /enterprise/stats/gists') { @@ -178,7 +178,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getGistStats($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetGistStats($params); } } elseif ($pathChunks[3] === 'hooks') { if ($call === 'GET /enterprise/stats/hooks') { @@ -187,7 +187,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getHooksStats($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetHooksStats($params); } } elseif ($pathChunks[3] === 'issues') { if ($call === 'GET /enterprise/stats/issues') { @@ -196,7 +196,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getIssueStats($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetIssueStats($params); } } elseif ($pathChunks[3] === 'milestones') { if ($call === 'GET /enterprise/stats/milestones') { @@ -205,7 +205,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getMilestoneStats($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetMilestoneStats($params); } } elseif ($pathChunks[3] === 'orgs') { if ($call === 'GET /enterprise/stats/orgs') { @@ -214,7 +214,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getOrgStats($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetOrgStats($params); } } elseif ($pathChunks[3] === 'pages') { if ($call === 'GET /enterprise/stats/pages') { @@ -223,7 +223,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getPagesStats($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetPagesStats($params); } } elseif ($pathChunks[3] === 'pulls') { if ($call === 'GET /enterprise/stats/pulls') { @@ -232,7 +232,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getPullRequestStats($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetPullRequestStats($params); } } elseif ($pathChunks[3] === 'repos') { if ($call === 'GET /enterprise/stats/repos') { @@ -241,7 +241,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getRepoStats($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetRepoStats($params); } } elseif ($pathChunks[3] === 'users') { if ($call === 'GET /enterprise/stats/users') { @@ -250,7 +250,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getUserStats($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetUserStats($params); } } } @@ -263,7 +263,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getAuditLog($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetAuditLog($params); } } } @@ -276,7 +276,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Gists::class] = new Router\Get\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Gists::class]->listComments($params); + return $this->router[Router\Get\Gists::class]->ListComments($params); } } elseif ($pathChunks[3] === 'commits') { if ($call === 'GET /gists/{gist_id}/commits') { @@ -285,7 +285,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Gists::class] = new Router\Get\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Gists::class]->listCommits($params); + return $this->router[Router\Get\Gists::class]->ListCommits($params); } } elseif ($pathChunks[3] === 'forks') { if ($call === 'GET /gists/{gist_id}/forks') { @@ -294,7 +294,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Gists::class] = new Router\Get\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Gists::class]->listForks($params); + return $this->router[Router\Get\Gists::class]->ListForks($params); } } elseif ($pathChunks[3] === 'star') { if ($call === 'GET /gists/{gist_id}/star') { @@ -303,7 +303,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Gists::class] = new Router\Get\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Gists::class]->checkIsStarred($params); + return $this->router[Router\Get\Gists::class]->CheckIsStarred($params); } } elseif ($pathChunks[3] === '{sha}') { if ($call === 'GET /gists/{gist_id}/{sha}') { @@ -312,7 +312,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Gists::class] = new Router\Get\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Gists::class]->getRevision($params); + return $this->router[Router\Get\Gists::class]->GetRevision($params); } } } @@ -325,7 +325,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Gitignore::class] = new Router\Get\Gitignore($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Gitignore::class]->getTemplate($params); + return $this->router[Router\Get\Gitignore::class]->GetTemplate($params); } } } @@ -338,7 +338,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->getThread($params); + return $this->router[Router\Get\Activity::class]->GetThread($params); } } } @@ -351,7 +351,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->listCustomRoles($params); + return $this->router[Router\Get\Orgs::class]->ListCustomRoles($params); } } } @@ -364,7 +364,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->getAuditLog($params); + return $this->router[Router\Get\Orgs::class]->GetAuditLog($params); } } elseif ($pathChunks[3] === 'events') { if ($call === 'GET /orgs/{org}/events') { @@ -373,7 +373,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listPublicOrgEvents($params); + return $this->router[Router\Get\Activity::class]->ListPublicOrgEvents($params); } } elseif ($pathChunks[3] === 'hooks') { if ($call === 'GET /orgs/{org}/hooks') { @@ -382,7 +382,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->listWebhooks($params); + return $this->router[Router\Get\Orgs::class]->ListWebhooks($params); } } elseif ($pathChunks[3] === 'installation') { if ($call === 'GET /orgs/{org}/installation') { @@ -391,7 +391,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Apps::class] = new Router\Get\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Apps::class]->getOrgInstallation($params); + return $this->router[Router\Get\Apps::class]->GetOrgInstallation($params); } } elseif ($pathChunks[3] === 'installations') { if ($call === 'GET /orgs/{org}/installations') { @@ -400,7 +400,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->listAppInstallations($params); + return $this->router[Router\Get\Orgs::class]->ListAppInstallations($params); } } elseif ($pathChunks[3] === 'issues') { if ($call === 'GET /orgs/{org}/issues') { @@ -409,7 +409,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->listForOrg($params); + return $this->router[Router\Get\Issues::class]->ListForOrg($params); } } elseif ($pathChunks[3] === 'members') { if ($call === 'GET /orgs/{org}/members') { @@ -418,7 +418,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->listMembers($params); + return $this->router[Router\Get\Orgs::class]->ListMembers($params); } } elseif ($pathChunks[3] === 'migrations') { if ($call === 'GET /orgs/{org}/migrations') { @@ -427,7 +427,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Migrations::class] = new Router\Get\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Migrations::class]->listForOrg($params); + return $this->router[Router\Get\Migrations::class]->ListForOrg($params); } } elseif ($pathChunks[3] === 'outside_collaborators') { if ($call === 'GET /orgs/{org}/outside_collaborators') { @@ -436,7 +436,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->listOutsideCollaborators($params); + return $this->router[Router\Get\Orgs::class]->ListOutsideCollaborators($params); } } elseif ($pathChunks[3] === 'pre-receive-hooks') { if ($call === 'GET /orgs/{org}/pre-receive-hooks') { @@ -445,7 +445,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->listPreReceiveHooksForOrg($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->ListPreReceiveHooksForOrg($params); } } elseif ($pathChunks[3] === 'projects') { if ($call === 'GET /orgs/{org}/projects') { @@ -454,7 +454,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Projects::class] = new Router\Get\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Projects::class]->listForOrg($params); + return $this->router[Router\Get\Projects::class]->ListForOrg($params); } } elseif ($pathChunks[3] === 'public_members') { if ($call === 'GET /orgs/{org}/public_members') { @@ -463,7 +463,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->listPublicMembers($params); + return $this->router[Router\Get\Orgs::class]->ListPublicMembers($params); } } elseif ($pathChunks[3] === 'repos') { if ($call === 'GET /orgs/{org}/repos') { @@ -472,7 +472,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listForOrg($params); + return $this->router[Router\Get\Repos::class]->ListForOrg($params); } } elseif ($pathChunks[3] === 'teams') { if ($call === 'GET /orgs/{org}/teams') { @@ -481,7 +481,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->list_($params); + return $this->router[Router\Get\Teams::class]->List($params); } } } @@ -494,7 +494,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Projects::class] = new Router\Get\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Projects::class]->getColumn($params); + return $this->router[Router\Get\Projects::class]->GetColumn($params); } } } elseif ($pathChunks[2] === '{project_id}') { @@ -505,7 +505,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Projects::class] = new Router\Get\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Projects::class]->listCollaborators($params); + return $this->router[Router\Get\Projects::class]->ListCollaborators($params); } } elseif ($pathChunks[3] === 'columns') { if ($call === 'GET /projects/{project_id}/columns') { @@ -514,7 +514,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Projects::class] = new Router\Get\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Projects::class]->listColumns($params); + return $this->router[Router\Get\Projects::class]->ListColumns($params); } } } @@ -527,7 +527,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->get($params); + return $this->router[Router\Get\Repos::class]->Get($params); } } } @@ -540,7 +540,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getConfigurationStatus($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetConfigurationStatus($params); } } elseif ($pathChunks[3] === 'maintenance') { if ($call === 'GET /setup/api/maintenance') { @@ -549,7 +549,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getMaintenanceStatus($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetMaintenanceStatus($params); } } elseif ($pathChunks[3] === 'settings') { if ($call === 'GET /setup/api/settings') { @@ -558,7 +558,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getSettings($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetSettings($params); } } } @@ -571,7 +571,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->listDiscussionsLegacy($params); + return $this->router[Router\Get\Teams::class]->ListDiscussionsLegacy($params); } } elseif ($pathChunks[3] === 'members') { if ($call === 'GET /teams/{team_id}/members') { @@ -580,7 +580,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->listMembersLegacy($params); + return $this->router[Router\Get\Teams::class]->ListMembersLegacy($params); } } elseif ($pathChunks[3] === 'projects') { if ($call === 'GET /teams/{team_id}/projects') { @@ -589,7 +589,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->listProjectsLegacy($params); + return $this->router[Router\Get\Teams::class]->ListProjectsLegacy($params); } } elseif ($pathChunks[3] === 'repos') { if ($call === 'GET /teams/{team_id}/repos') { @@ -598,7 +598,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->listReposLegacy($params); + return $this->router[Router\Get\Teams::class]->ListReposLegacy($params); } } elseif ($pathChunks[3] === 'teams') { if ($call === 'GET /teams/{team_id}/teams') { @@ -607,7 +607,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->listChildLegacy($params); + return $this->router[Router\Get\Teams::class]->ListChildLegacy($params); } } } @@ -620,7 +620,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->checkPersonIsFollowedByAuthenticated($params); + return $this->router[Router\Get\Users::class]->CheckPersonIsFollowedByAuthenticated($params); } } } elseif ($pathChunks[2] === 'gpg_keys') { @@ -631,7 +631,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->getGpgKeyForAuthenticatedUser($params); + return $this->router[Router\Get\Users::class]->GetGpgKeyForAuthenticatedUser($params); } } } elseif ($pathChunks[2] === 'keys') { @@ -642,7 +642,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->getPublicSshKeyForAuthenticatedUser($params); + return $this->router[Router\Get\Users::class]->GetPublicSshKeyForAuthenticatedUser($params); } } } elseif ($pathChunks[2] === 'memberships') { @@ -653,7 +653,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->listMembershipsForAuthenticatedUser($params); + return $this->router[Router\Get\Orgs::class]->ListMembershipsForAuthenticatedUser($params); } } } @@ -666,7 +666,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listEventsForAuthenticatedUser($params); + return $this->router[Router\Get\Activity::class]->ListEventsForAuthenticatedUser($params); } } elseif ($pathChunks[3] === 'followers') { if ($call === 'GET /users/{username}/followers') { @@ -675,7 +675,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->listFollowersForUser($params); + return $this->router[Router\Get\Users::class]->ListFollowersForUser($params); } } elseif ($pathChunks[3] === 'following') { if ($call === 'GET /users/{username}/following') { @@ -684,7 +684,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->listFollowingForUser($params); + return $this->router[Router\Get\Users::class]->ListFollowingForUser($params); } } elseif ($pathChunks[3] === 'gists') { if ($call === 'GET /users/{username}/gists') { @@ -693,7 +693,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Gists::class] = new Router\Get\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Gists::class]->listForUser($params); + return $this->router[Router\Get\Gists::class]->ListForUser($params); } } elseif ($pathChunks[3] === 'gpg_keys') { if ($call === 'GET /users/{username}/gpg_keys') { @@ -702,7 +702,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->listGpgKeysForUser($params); + return $this->router[Router\Get\Users::class]->ListGpgKeysForUser($params); } } elseif ($pathChunks[3] === 'hovercard') { if ($call === 'GET /users/{username}/hovercard') { @@ -711,7 +711,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->getContextForUser($params); + return $this->router[Router\Get\Users::class]->GetContextForUser($params); } } elseif ($pathChunks[3] === 'installation') { if ($call === 'GET /users/{username}/installation') { @@ -720,7 +720,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Apps::class] = new Router\Get\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Apps::class]->getUserInstallation($params); + return $this->router[Router\Get\Apps::class]->GetUserInstallation($params); } } elseif ($pathChunks[3] === 'keys') { if ($call === 'GET /users/{username}/keys') { @@ -729,7 +729,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->listPublicKeysForUser($params); + return $this->router[Router\Get\Users::class]->ListPublicKeysForUser($params); } } elseif ($pathChunks[3] === 'orgs') { if ($call === 'GET /users/{username}/orgs') { @@ -738,7 +738,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->listForUser($params); + return $this->router[Router\Get\Orgs::class]->ListForUser($params); } } elseif ($pathChunks[3] === 'projects') { if ($call === 'GET /users/{username}/projects') { @@ -747,7 +747,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Projects::class] = new Router\Get\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Projects::class]->listForUser($params); + return $this->router[Router\Get\Projects::class]->ListForUser($params); } } elseif ($pathChunks[3] === 'received_events') { if ($call === 'GET /users/{username}/received_events') { @@ -756,7 +756,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listReceivedEventsForUser($params); + return $this->router[Router\Get\Activity::class]->ListReceivedEventsForUser($params); } } elseif ($pathChunks[3] === 'repos') { if ($call === 'GET /users/{username}/repos') { @@ -765,7 +765,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listForUser($params); + return $this->router[Router\Get\Repos::class]->ListForUser($params); } } elseif ($pathChunks[3] === 'starred') { if ($call === 'GET /users/{username}/starred') { @@ -774,7 +774,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listReposStarredByUser($params); + return $this->router[Router\Get\Activity::class]->ListReposStarredByUser($params); } } elseif ($pathChunks[3] === 'subscriptions') { if ($call === 'GET /users/{username}/subscriptions') { @@ -783,7 +783,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listReposWatchedByUser($params); + return $this->router[Router\Get\Activity::class]->ListReposWatchedByUser($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Gists.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Gists.php index 9d4164c0608..13a1e14263a 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Gists.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Gists.php @@ -27,7 +27,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listPublic(array $params): iterable { $matched = true; @@ -59,7 +59,7 @@ public function listPublic(array $params): iterable return $operator->call($arguments['since'], $arguments['per_page'], $arguments['page']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listStarred(array $params): iterable { $matched = true; @@ -111,7 +111,7 @@ public function get(array $params): GistSimple|array return $operator->call($arguments['gist_id']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listComments(array $params): iterable { $matched = true; @@ -143,7 +143,7 @@ public function listComments(array $params): iterable return $operator->call($arguments['gist_id'], $arguments['per_page'], $arguments['page']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listCommits(array $params): iterable { $matched = true; @@ -175,7 +175,7 @@ public function listCommits(array $params): iterable return $operator->call($arguments['gist_id'], $arguments['per_page'], $arguments['page']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listForks(array $params): iterable { $matched = true; @@ -253,7 +253,7 @@ public function getRevision(array $params): GistSimple|array return $operator->call($arguments['gist_id'], $arguments['sha']); } - /** @return iterable */ + /** @return Observable */ public function listForUser(array $params): iterable { $matched = true; @@ -291,8 +291,8 @@ public function listForUser(array $params): iterable return $operator->call($arguments['username'], $arguments['since'], $arguments['per_page'], $arguments['page']); } - /** @return (iterable | array{code: int}) */ - public function list_(array $params): iterable + /** @return (Observable | array{code: int}) */ + public function list(array $params): iterable { $matched = true; $arguments = []; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Git.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Git.php index 8adf1db59d2..b5d665843a9 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Git.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Git.php @@ -94,7 +94,7 @@ public function getCommit(array $params): GitCommit|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['commit_sha']); } - /** @return iterable */ + /** @return Observable */ public function listMatchingRefs(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Gitignore.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Gitignore.php index 912e93644e7..1c2c03c4268 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Gitignore.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Gitignore.php @@ -26,7 +26,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function getAllTemplates(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Issues.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Issues.php index 59a1fc0ccd3..75b337302f1 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Issues.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Issues.php @@ -31,7 +31,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listForAuthenticatedUser(array $params): iterable { $matched = true; @@ -93,7 +93,7 @@ public function listForAuthenticatedUser(array $params): iterable return $operator->call($arguments['labels'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForOrg(array $params): iterable { $matched = true; @@ -193,7 +193,7 @@ public function checkUserCanBeAssigned(array $params): array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['assignee']); } - /** @return iterable */ + /** @return Observable */ public function listCommentsForRepo(array $params): iterable { $matched = true; @@ -249,7 +249,7 @@ public function listCommentsForRepo(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['direction'], $arguments['since'], $arguments['sort'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listEventsForRepo(array $params): iterable { $matched = true; @@ -383,8 +383,8 @@ public function getMilestone(array $params): Milestone|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone_number']); } - /** @return (iterable | array{code: int}) */ - public function list_(array $params): iterable + /** @return (Observable | array{code: int}) */ + public function list(array $params): iterable { $matched = true; $arguments = []; @@ -469,7 +469,7 @@ public function list_(array $params): iterable return $operator->call($arguments['labels'], $arguments['since'], $arguments['collab'], $arguments['orgs'], $arguments['owned'], $arguments['pulls'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listAssignees(array $params): iterable { $matched = true; @@ -507,7 +507,7 @@ public function listAssignees(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return (iterable | Schema\BasicError) */ + /** @return (Observable | Schema\BasicError) */ public function listForRepo(array $params): iterable|BasicError { $matched = true; @@ -599,7 +599,7 @@ public function listForRepo(array $params): iterable|BasicError return $operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone'], $arguments['assignee'], $arguments['creator'], $arguments['mentioned'], $arguments['labels'], $arguments['since'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listLabelsForRepo(array $params): iterable { $matched = true; @@ -637,7 +637,7 @@ public function listLabelsForRepo(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listMilestones(array $params): iterable { $matched = true; @@ -757,7 +757,7 @@ public function getEvent(array $params): IssueEvent|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['event_id']); } - /** @return iterable */ + /** @return Observable */ public function listComments(array $params): iterable { $matched = true; @@ -807,7 +807,7 @@ public function listComments(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['since'], $arguments['per_page'], $arguments['page']); } - /** @return iterable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\AssignedIssueEvent | Schema\UnassignedIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent)> */ + /** @return Observable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\AssignedIssueEvent | Schema\UnassignedIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent)> */ public function listEvents(array $params): iterable { $matched = true; @@ -851,7 +851,7 @@ public function listEvents(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page']); } - /** @return (iterable | Schema\BasicError) */ + /** @return (Observable | Schema\BasicError) */ public function listLabelsOnIssue(array $params): iterable|BasicError { $matched = true; @@ -895,7 +895,7 @@ public function listLabelsOnIssue(array $params): iterable|BasicError return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page']); } - /** @return iterable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent | Schema\TimelineCommentEvent | Schema\TimelineCrossReferencedEvent | Schema\TimelineCommittedEvent | Schema\TimelineReviewedEvent | Schema\TimelineLineCommentedEvent | Schema\TimelineCommitCommentedEvent | Schema\TimelineAssignedIssueEvent | Schema\TimelineUnassignedIssueEvent | Schema\StateChangeIssueEvent)> */ + /** @return Observable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent | Schema\TimelineCommentEvent | Schema\TimelineCrossReferencedEvent | Schema\TimelineCommittedEvent | Schema\TimelineReviewedEvent | Schema\TimelineLineCommentedEvent | Schema\TimelineCommitCommentedEvent | Schema\TimelineAssignedIssueEvent | Schema\TimelineUnassignedIssueEvent | Schema\StateChangeIssueEvent)> */ public function listEventsForTimeline(array $params): iterable { $matched = true; @@ -939,7 +939,7 @@ public function listEventsForTimeline(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listLabelsForMilestone(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Licenses.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Licenses.php index c32c6cca608..49a780aa743 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Licenses.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Licenses.php @@ -47,7 +47,7 @@ public function get(array $params): License|array return $operator->call($arguments['license']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function getAllCommonlyUsed(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Migrations.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Migrations.php index 06f96a5202e..12fd6371930 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Migrations.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Migrations.php @@ -26,7 +26,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listForAuthenticatedUser(array $params): iterable { $matched = true; @@ -52,7 +52,7 @@ public function listForAuthenticatedUser(array $params): iterable return $operator->call($arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForOrg(array $params): iterable { $matched = true; @@ -116,7 +116,7 @@ public function downloadArchiveForOrg(array $params): array return $operator->call($arguments['org'], $arguments['migration_id']); } - /** @return iterable */ + /** @return Observable */ public function listReposForOrg(array $params): iterable { $matched = true; @@ -206,7 +206,7 @@ public function getArchiveForAuthenticatedUser(array $params): array return $operator->call($arguments['migration_id']); } - /** @return iterable */ + /** @return Observable */ public function listReposForAuthenticatedUser(array $params): iterable { $matched = true; @@ -237,30 +237,4 @@ public function listReposForAuthenticatedUser(array $params): iterable return $operator->call($arguments['migration_id'], $arguments['per_page'], $arguments['page']); } - - /** @return Observable */ - public function downloadArchiveForOrgStreaming(array $params): iterable - { - $matched = true; - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - if (array_key_exists('migration_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: migration_id'); - } - - $arguments['migration_id'] = $params['migration_id']; - unset($params['migration_id']); - if (array_key_exists(Hydrator\Operation\Orgs\Org\Migrations\MigrationId\Archive::class, $this->hydrator) === false) { - $this->hydrator[Hydrator\Operation\Orgs\Org\Migrations\MigrationId\Archive::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Migrations🌀MigrationId🌀Archive(); - } - - $operator = new Operator\Migrations\DownloadArchiveForOrgStreaming($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Migrations\MigrationId\Archive::class]); - - return $operator->call($arguments['org'], $arguments['migration_id']); - } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Nine.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Nine.php index f3f9383ab3b..367eeec9d39 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Nine.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Nine.php @@ -22,7 +22,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return |iterable|iterable|iterable|iterable|iterable */ + /** @return |Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): TeamDiscussionComment|iterable { $matched = false; @@ -41,7 +41,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->getDiscussionCommentInOrg($params); + return $this->router[Router\Get\Teams::class]->GetDiscussionCommentInOrg($params); } } } @@ -64,7 +64,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getAllStatusCheckContexts($params); + return $this->router[Router\Get\Repos::class]->GetAllStatusCheckContexts($params); } } } elseif ($pathChunks[7] === 'restrictions') { @@ -75,7 +75,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getAppsWithAccessToProtectedBranch($params); + return $this->router[Router\Get\Repos::class]->GetAppsWithAccessToProtectedBranch($params); } } elseif ($pathChunks[8] === 'teams') { if ($call === 'GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams') { @@ -84,7 +84,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getTeamsWithAccessToProtectedBranch($params); + return $this->router[Router\Get\Repos::class]->GetTeamsWithAccessToProtectedBranch($params); } } elseif ($pathChunks[8] === 'users') { if ($call === 'GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users') { @@ -93,7 +93,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getUsersWithAccessToProtectedBranch($params); + return $this->router[Router\Get\Repos::class]->GetUsersWithAccessToProtectedBranch($params); } } } @@ -110,7 +110,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Get\Pulls::class] = new Router\Get\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Pulls::class]->listCommentsForReview($params); + return $this->router[Router\Get\Pulls::class]->ListCommentsForReview($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/OauthAuthorizations.php b/clients/GitHubEnterprise-3.4/src/Router/Get/OauthAuthorizations.php index 1396fee7d5d..03e400f818f 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/OauthAuthorizations.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/OauthAuthorizations.php @@ -27,7 +27,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listGrants(array $params): iterable { $matched = true; @@ -99,7 +99,7 @@ public function getGrant(array $params): ApplicationGrant|array return $operator->call($arguments['grant_id']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listAuthorizations(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/One.php b/clients/GitHubEnterprise-3.4/src/Router/Get/One.php index 4b0e2048265..d0a103c930a 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/One.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/One.php @@ -32,7 +32,7 @@ public function call(string $call, array $params, array $pathChunks): Root|array $this->router[Router\Get\Meta::class] = new Router\Get\Meta($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Meta::class]->root($params); + return $this->router[Router\Get\Meta::class]->Root($params); } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Orgs.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Orgs.php index f9f497cf881..244edc3df88 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Orgs.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Orgs.php @@ -51,7 +51,7 @@ public function get(array $params): OrganizationFull|array return $operator->call($arguments['org']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listForAuthenticatedUser(array $params): iterable { $matched = true; @@ -97,7 +97,7 @@ public function listCustomRoles(array $params): Ok|array return $operator->call($arguments['organization_id']); } - /** @return iterable */ + /** @return Observable */ public function getAuditLog(array $params): iterable { $matched = true; @@ -159,7 +159,7 @@ public function getAuditLog(array $params): iterable return $operator->call($arguments['org'], $arguments['phrase'], $arguments['include'], $arguments['after'], $arguments['before'], $arguments['order'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listWebhooks(array $params): iterable { $matched = true; @@ -223,7 +223,7 @@ public function listAppInstallations(array $params): \ApiClients\Client\GitHubEn return $operator->call($arguments['org'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listMembers(array $params): iterable { $matched = true; @@ -267,7 +267,7 @@ public function listMembers(array $params): iterable return $operator->call($arguments['org'], $arguments['filter'], $arguments['role'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listOutsideCollaborators(array $params): iterable { $matched = true; @@ -305,7 +305,7 @@ public function listOutsideCollaborators(array $params): iterable return $operator->call($arguments['org'], $arguments['filter'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listPublicMembers(array $params): iterable { $matched = true; @@ -337,7 +337,7 @@ public function listPublicMembers(array $params): iterable return $operator->call($arguments['org'], $arguments['per_page'], $arguments['page']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listMembershipsForAuthenticatedUser(array $params): iterable { $matched = true; @@ -369,7 +369,7 @@ public function listMembershipsForAuthenticatedUser(array $params): iterable return $operator->call($arguments['state'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForUser(array $params): iterable { $matched = true; @@ -427,7 +427,7 @@ public function getWebhookConfigForOrg(array $params): WebhookConfig|array return $operator->call($arguments['org'], $arguments['hook_id']); } - /** @return iterable */ + /** @return Observable */ public function listWebhookDeliveries(array $params): iterable { $matched = true; @@ -471,8 +471,8 @@ public function listWebhookDeliveries(array $params): iterable return $operator->call($arguments['org'], $arguments['hook_id'], $arguments['cursor'], $arguments['redelivery'], $arguments['per_page']); } - /** @return (iterable | array{code: int}) */ - public function list_(array $params): iterable + /** @return (Observable | array{code: int}) */ + public function list(array $params): iterable { $matched = true; $arguments = []; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Projects.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Projects.php index 9e1fec5b042..6c857517d03 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Projects.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Projects.php @@ -49,7 +49,7 @@ public function get(array $params): Project|array return $operator->call($arguments['project_id']); } - /** @return iterable */ + /** @return Observable */ public function listForOrg(array $params): iterable { $matched = true; @@ -107,7 +107,7 @@ public function getColumn(array $params): ProjectColumn|array return $operator->call($arguments['column_id']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listCollaborators(array $params): iterable { $matched = true; @@ -145,7 +145,7 @@ public function listCollaborators(array $params): iterable return $operator->call($arguments['project_id'], $arguments['affiliation'], $arguments['per_page'], $arguments['page']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listColumns(array $params): iterable { $matched = true; @@ -177,7 +177,7 @@ public function listColumns(array $params): iterable return $operator->call($arguments['project_id'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForUser(array $params): iterable { $matched = true; @@ -261,7 +261,7 @@ public function getCard(array $params): ProjectCard|array return $operator->call($arguments['card_id']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listCards(array $params): iterable { $matched = true; @@ -299,7 +299,7 @@ public function listCards(array $params): iterable return $operator->call($arguments['column_id'], $arguments['archived_state'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForRepo(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Pulls.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Pulls.php index ef136860328..0cc05ff7b25 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Pulls.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Pulls.php @@ -29,7 +29,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable */ + /** @return Observable */ public function listReviewCommentsForRepo(array $params): iterable { $matched = true; @@ -117,8 +117,8 @@ public function get(array $params): PullRequest|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number']); } - /** @return (iterable | array{code: int}) */ - public function list_(array $params): iterable + /** @return (Observable | array{code: int}) */ + public function list(array $params): iterable { $matched = true; $arguments = []; @@ -217,7 +217,7 @@ public function getReviewComment(array $params): PullRequestReviewComment|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id']); } - /** @return iterable */ + /** @return Observable */ public function listReviewComments(array $params): iterable { $matched = true; @@ -279,7 +279,7 @@ public function listReviewComments(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number'], $arguments['direction'], $arguments['since'], $arguments['sort'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listCommits(array $params): iterable { $matched = true; @@ -323,7 +323,7 @@ public function listCommits(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listFiles(array $params): iterable { $matched = true; @@ -427,7 +427,7 @@ public function listRequestedReviewers(array $params): PullRequestReviewRequest| return $operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number']); } - /** @return iterable */ + /** @return Observable */ public function listReviews(array $params): iterable { $matched = true; @@ -509,7 +509,7 @@ public function getReview(array $params): PullRequestReview|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number'], $arguments['review_id']); } - /** @return iterable */ + /** @return Observable */ public function listCommentsForReview(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Reactions.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Reactions.php index 993aa1662bf..65758d89357 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Reactions.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Reactions.php @@ -25,7 +25,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable */ + /** @return Observable */ public function listForTeamDiscussionLegacy(array $params): iterable { $matched = true; @@ -69,7 +69,7 @@ public function listForTeamDiscussionLegacy(array $params): iterable return $operator->call($arguments['team_id'], $arguments['discussion_number'], $arguments['content'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForCommitComment(array $params): iterable { $matched = true; @@ -119,7 +119,7 @@ public function listForCommitComment(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id'], $arguments['content'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForIssue(array $params): iterable { $matched = true; @@ -169,7 +169,7 @@ public function listForIssue(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['content'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForRelease(array $params): iterable { $matched = true; @@ -219,7 +219,7 @@ public function listForRelease(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['release_id'], $arguments['content'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForTeamDiscussionInOrg(array $params): iterable { $matched = true; @@ -269,7 +269,7 @@ public function listForTeamDiscussionInOrg(array $params): iterable return $operator->call($arguments['org'], $arguments['team_slug'], $arguments['discussion_number'], $arguments['content'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForIssueComment(array $params): iterable { $matched = true; @@ -319,7 +319,7 @@ public function listForIssueComment(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id'], $arguments['content'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForPullRequestReviewComment(array $params): iterable { $matched = true; @@ -369,7 +369,7 @@ public function listForPullRequestReviewComment(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id'], $arguments['content'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForTeamDiscussionCommentLegacy(array $params): iterable { $matched = true; @@ -419,7 +419,7 @@ public function listForTeamDiscussionCommentLegacy(array $params): iterable return $operator->call($arguments['team_id'], $arguments['discussion_number'], $arguments['comment_number'], $arguments['content'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForTeamDiscussionCommentInOrg(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Repos.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Repos.php index 9ba07a48c62..85feed8c893 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Repos.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Repos.php @@ -60,7 +60,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listForAuthenticatedUser(array $params): iterable { $matched = true; @@ -128,7 +128,7 @@ public function listForAuthenticatedUser(array $params): iterable return $operator->call($arguments['direction'], $arguments['since'], $arguments['before'], $arguments['visibility'], $arguments['affiliation'], $arguments['type'], $arguments['sort'], $arguments['per_page'], $arguments['page']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listInvitationsForAuthenticatedUser(array $params): iterable { $matched = true; @@ -154,7 +154,7 @@ public function listInvitationsForAuthenticatedUser(array $params): iterable return $operator->call($arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForOrg(array $params): iterable { $matched = true; @@ -230,7 +230,7 @@ public function get(array $params): FullRepository|BasicError|array return $operator->call($arguments['owner'], $arguments['repo']); } - /** @return iterable */ + /** @return Observable */ public function listForUser(array $params): iterable { $matched = true; @@ -658,7 +658,7 @@ public function getDeployKey(array $params): DeployKey|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['key_id']); } - /** @return iterable */ + /** @return Observable */ public function listPagesBuilds(array $params): iterable { $matched = true; @@ -792,7 +792,7 @@ public function getRelease(array $params): Release|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['release_id']); } - /** @return iterable */ + /** @return Observable */ public function listCacheInfo(array $params): iterable { $matched = true; @@ -830,7 +830,7 @@ public function listCacheInfo(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return (iterable | Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) */ + /** @return (Observable | Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) */ public function getCodeFrequencyStats(array $params): iterable|Json { $matched = true; @@ -856,7 +856,7 @@ public function getCodeFrequencyStats(array $params): iterable|Json return $operator->call($arguments['owner'], $arguments['repo']); } - /** @return (iterable | Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) */ + /** @return (Observable | Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) */ public function getCommitActivityStats(array $params): iterable|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json { $matched = true; @@ -882,7 +882,7 @@ public function getCommitActivityStats(array $params): iterable|\ApiClients\Clie return $operator->call($arguments['owner'], $arguments['repo']); } - /** @return (iterable | Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) */ + /** @return (Observable | Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json | array{code: int}) */ public function getContributorsStats(array $params): iterable|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json { $matched = true; @@ -934,7 +934,7 @@ public function getParticipationStats(array $params): ParticipationStats|array return $operator->call($arguments['owner'], $arguments['repo']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function getPunchCardStats(array $params): iterable { $matched = true; @@ -1016,7 +1016,7 @@ public function downloadZipballArchive(array $params): array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['ref']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listPublic(array $params): iterable { $matched = true; @@ -1042,7 +1042,7 @@ public function listPublic(array $params): iterable return $operator->call($arguments['since'], $arguments['visibility']); } - /** @return iterable */ + /** @return Observable */ public function listAutolinks(array $params): iterable { $matched = true; @@ -1074,7 +1074,7 @@ public function listAutolinks(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listBranches(array $params): iterable { $matched = true; @@ -1118,7 +1118,7 @@ public function listBranches(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['protected'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listCollaborators(array $params): iterable { $matched = true; @@ -1162,7 +1162,7 @@ public function listCollaborators(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['affiliation'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listCommitCommentsForRepo(array $params): iterable { $matched = true; @@ -1200,7 +1200,7 @@ public function listCommitCommentsForRepo(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listCommits(array $params): iterable { $matched = true; @@ -1274,7 +1274,7 @@ public function listCommits(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['sha'], $arguments['path'], $arguments['author'], $arguments['committer'], $arguments['since'], $arguments['until'], $arguments['per_page'], $arguments['page']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listContributors(array $params): iterable { $matched = true; @@ -1318,7 +1318,7 @@ public function listContributors(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['anon'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listDeployments(array $params): iterable { $matched = true; @@ -1418,7 +1418,7 @@ public function getAllEnvironments(array $params): Ok|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listForks(array $params): iterable { $matched = true; @@ -1462,7 +1462,7 @@ public function listForks(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['sort'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listWebhooks(array $params): iterable { $matched = true; @@ -1500,7 +1500,7 @@ public function listWebhooks(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listInvitations(array $params): iterable { $matched = true; @@ -1538,7 +1538,7 @@ public function listInvitations(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listDeployKeys(array $params): iterable { $matched = true; @@ -1660,7 +1660,7 @@ public function getReadme(array $params): ContentFile|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['ref']); } - /** @return iterable */ + /** @return Observable */ public function listReleases(array $params): iterable { $matched = true; @@ -1698,7 +1698,7 @@ public function listReleases(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listTags(array $params): iterable { $matched = true; @@ -1736,7 +1736,7 @@ public function listTags(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listTeams(array $params): iterable { $matched = true; @@ -1876,7 +1876,7 @@ public function getCollaboratorPermissionLevel(array $params): RepositoryCollabo return $operator->call($arguments['owner'], $arguments['repo'], $arguments['username']); } - /** @return iterable */ + /** @return Observable */ public function listBranchesForHeadCommit(array $params): iterable { $matched = true; @@ -1908,7 +1908,7 @@ public function listBranchesForHeadCommit(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['commit_sha']); } - /** @return iterable */ + /** @return Observable */ public function listCommentsForCommit(array $params): iterable { $matched = true; @@ -1952,7 +1952,7 @@ public function listCommentsForCommit(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['commit_sha'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listPullRequestsAssociatedWithCommit(array $params): iterable { $matched = true; @@ -2040,7 +2040,7 @@ public function getCombinedStatusForRef(array $params): CombinedCommitStatus|arr return $operator->call($arguments['owner'], $arguments['repo'], $arguments['ref'], $arguments['per_page'], $arguments['page']); } - /** @return (iterable | Schema\BasicError) */ + /** @return (Observable | Schema\BasicError) */ public function listCommitStatusesForRef(array $params): iterable|BasicError { $matched = true; @@ -2084,7 +2084,7 @@ public function listCommitStatusesForRef(array $params): iterable|BasicError return $operator->call($arguments['owner'], $arguments['repo'], $arguments['ref'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listDeploymentStatuses(array $params): iterable { $matched = true; @@ -2204,7 +2204,7 @@ public function getWebhookConfigForRepo(array $params): WebhookConfig|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['hook_id']); } - /** @return iterable */ + /** @return Observable */ public function listWebhookDeliveries(array $params): iterable { $matched = true; @@ -2376,7 +2376,7 @@ public function getReleaseByTag(array $params): Release|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['tag']); } - /** @return iterable */ + /** @return Observable */ public function listReleaseAssets(array $params): iterable { $matched = true; @@ -2694,7 +2694,7 @@ public function getWebhookDelivery(array $params): HookDelivery|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['hook_id'], $arguments['delivery_id']); } - /** @return iterable */ + /** @return Observable */ public function getAllStatusCheckContexts(array $params): iterable { $matched = true; @@ -2726,7 +2726,7 @@ public function getAllStatusCheckContexts(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch']); } - /** @return iterable */ + /** @return Observable */ public function getAppsWithAccessToProtectedBranch(array $params): iterable { $matched = true; @@ -2758,7 +2758,7 @@ public function getAppsWithAccessToProtectedBranch(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch']); } - /** @return iterable */ + /** @return Observable */ public function getTeamsWithAccessToProtectedBranch(array $params): iterable { $matched = true; @@ -2790,7 +2790,7 @@ public function getTeamsWithAccessToProtectedBranch(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch']); } - /** @return iterable */ + /** @return Observable */ public function getUsersWithAccessToProtectedBranch(array $params): iterable { $matched = true; @@ -2821,60 +2821,4 @@ public function getUsersWithAccessToProtectedBranch(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch']); } - - /** @return Observable */ - public function downloadTarballArchiveStreaming(array $params): iterable - { - $matched = true; - $arguments = []; - if (array_key_exists('owner', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: owner'); - } - - $arguments['owner'] = $params['owner']; - unset($params['owner']); - if (array_key_exists('repo', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: repo'); - } - - $arguments['repo'] = $params['repo']; - unset($params['repo']); - if (array_key_exists('ref', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: ref'); - } - - $arguments['ref'] = $params['ref']; - unset($params['ref']); - $operator = new Operator\Repos\DownloadTarballArchiveStreaming($this->browser, $this->authentication); - - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['ref']); - } - - /** @return Observable */ - public function downloadZipballArchiveStreaming(array $params): iterable - { - $matched = true; - $arguments = []; - if (array_key_exists('owner', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: owner'); - } - - $arguments['owner'] = $params['owner']; - unset($params['owner']); - if (array_key_exists('repo', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: repo'); - } - - $arguments['repo'] = $params['repo']; - unset($params['repo']); - if (array_key_exists('ref', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: ref'); - } - - $arguments['ref'] = $params['ref']; - unset($params['ref']); - $operator = new Operator\Repos\DownloadZipballArchiveStreaming($this->browser, $this->authentication); - - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['ref']); - } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/SecretScanning.php b/clients/GitHubEnterprise-3.4/src/Router/Get/SecretScanning.php index 304a01de00c..57013c1792b 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/SecretScanning.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/SecretScanning.php @@ -26,7 +26,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listAlertsForRepo(array $params): iterable { $matched = true; @@ -82,7 +82,7 @@ public function listAlertsForRepo(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['state'], $arguments['secret_type'], $arguments['resolution'], $arguments['page'], $arguments['per_page']); } - /** @return iterable */ + /** @return Observable */ public function listAlertsForEnterprise(array $params): iterable { $matched = true; @@ -138,7 +138,7 @@ public function listAlertsForEnterprise(array $params): iterable return $operator->call($arguments['enterprise'], $arguments['state'], $arguments['secret_type'], $arguments['resolution'], $arguments['before'], $arguments['after'], $arguments['per_page']); } - /** @return iterable */ + /** @return Observable */ public function listAlertsForOrg(array $params): iterable { $matched = true; @@ -220,7 +220,7 @@ public function getAlert(array $params): SecretScanningAlert|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['alert_number']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listLocationsForAlert(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Seven.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Seven.php index 14fe79c7e59..277357e2b63 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Seven.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Seven.php @@ -59,7 +59,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return |(Schema\TeamMembership|array{code: int})|(Schema\TeamProject|iterable|iterable|(Schema\CodeScanningAlert|(Schema\CodeScanningSarifsStatus|iterable|iterable|iterable|iterable|(iterable|Schema\BasicError)|iterable|iterable|iterable|iterable|iterable<(Schema\LabeledIssueEvent|Schema\UnlabeledIssueEvent|Schema\AssignedIssueEvent|Schema\UnassignedIssueEvent|Schema\MilestonedIssueEvent|Schema\DemilestonedIssueEvent|Schema\RenamedIssueEvent|Schema\ReviewRequestedIssueEvent|Schema\ReviewRequestRemovedIssueEvent|Schema\ReviewDismissedIssueEvent|Schema\LockedIssueEvent|Schema\AddedToProjectIssueEvent|Schema\MovedColumnInProjectIssueEvent|Schema\RemovedFromProjectIssueEvent|Schema\ConvertedNoteToIssueIssueEvent)>|(iterable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent)>|iterable|iterable|iterable|iterable|array{code: int}|iterable|(Schema\ReleaseAsset|iterable|(Schema\SecretScanningAlert */ + /** @return |(Schema\TeamMembership|array{code: int})|(Schema\TeamProject|Observable|Observable|(Schema\CodeScanningAlert|(Schema\CodeScanningSarifsStatus|Observable|Observable|Observable|Observable|(Observable|Schema\BasicError)|Observable|Observable|Observable|Observable|Observable<(Schema\LabeledIssueEvent|Schema\UnlabeledIssueEvent|Schema\AssignedIssueEvent|Schema\UnassignedIssueEvent|Schema\MilestonedIssueEvent|Schema\DemilestonedIssueEvent|Schema\RenamedIssueEvent|Schema\ReviewRequestedIssueEvent|Schema\ReviewRequestRemovedIssueEvent|Schema\ReviewDismissedIssueEvent|Schema\LockedIssueEvent|Schema\AddedToProjectIssueEvent|Schema\MovedColumnInProjectIssueEvent|Schema\RemovedFromProjectIssueEvent|Schema\ConvertedNoteToIssueIssueEvent)>|(Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent)>|Observable|Observable|Observable|Observable|array{code: int}|Observable|(Schema\ReleaseAsset|Observable|(Schema\SecretScanningAlert */ public function call(string $call, array $params, array $pathChunks): Json|Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|TeamDiscussion|TeamMembership|TeamProject|Artifact|Job|SelectedActions|iterable|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|Workflow|BranchProtection|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|Blob|GitCommit|GitRef|GitTag|GitTree|WebhookConfig|IssueComment|IssueEvent|PageBuild|PullRequestReviewComment|PullRequestReviewRequest|ReleaseAsset|Release|SecretScanningAlert|TeamDiscussionComment { $matched = false; @@ -76,7 +76,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->listOrgAccessToSelfHostedRunnerGroupInEnterprise($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->ListOrgAccessToSelfHostedRunnerGroupInEnterprise($params); } } elseif ($pathChunks[6] === 'runners') { if ($call === 'GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners') { @@ -85,7 +85,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->listSelfHostedRunnersInGroupForEnterprise($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->ListSelfHostedRunnersInGroupForEnterprise($params); } } } @@ -98,7 +98,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->listLabelsForSelfHostedRunnerForEnterprise($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->ListLabelsForSelfHostedRunnerForEnterprise($params); } } } @@ -117,7 +117,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listRepoAccessToSelfHostedRunnerGroupInOrg($params); + return $this->router[Router\Get\Actions::class]->ListRepoAccessToSelfHostedRunnerGroupInOrg($params); } } elseif ($pathChunks[6] === 'runners') { if ($call === 'GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners') { @@ -126,7 +126,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listSelfHostedRunnersInGroupForOrg($params); + return $this->router[Router\Get\Actions::class]->ListSelfHostedRunnersInGroupForOrg($params); } } } @@ -139,7 +139,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listLabelsForSelfHostedRunnerForOrg($params); + return $this->router[Router\Get\Actions::class]->ListLabelsForSelfHostedRunnerForOrg($params); } } } @@ -152,7 +152,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listSelectedReposForOrgSecret($params); + return $this->router[Router\Get\Actions::class]->ListSelectedReposForOrgSecret($params); } } } @@ -167,7 +167,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Dependabot::class] = new Router\Get\Dependabot($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Dependabot::class]->listSelectedReposForOrgSecret($params); + return $this->router[Router\Get\Dependabot::class]->ListSelectedReposForOrgSecret($params); } } } @@ -182,7 +182,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->getWebhookDelivery($params); + return $this->router[Router\Get\Orgs::class]->GetWebhookDelivery($params); } } } @@ -197,7 +197,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->getDiscussionInOrg($params); + return $this->router[Router\Get\Teams::class]->GetDiscussionInOrg($params); } } } elseif ($pathChunks[5] === 'memberships') { @@ -208,7 +208,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->getMembershipForUserInOrg($params); + return $this->router[Router\Get\Teams::class]->GetMembershipForUserInOrg($params); } } } elseif ($pathChunks[5] === 'projects') { @@ -219,7 +219,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->checkPermissionsForProjectInOrg($params); + return $this->router[Router\Get\Teams::class]->CheckPermissionsForProjectInOrg($params); } } } @@ -238,7 +238,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getArtifact($params); + return $this->router[Router\Get\Actions::class]->GetArtifact($params); } } } elseif ($pathChunks[5] === 'jobs') { @@ -249,7 +249,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getJobForWorkflowRun($params); + return $this->router[Router\Get\Actions::class]->GetJobForWorkflowRun($params); } } } elseif ($pathChunks[5] === 'permissions') { @@ -260,7 +260,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getAllowedActionsRepository($params); + return $this->router[Router\Get\Actions::class]->GetAllowedActionsRepository($params); } } } elseif ($pathChunks[5] === 'runners') { @@ -271,7 +271,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listRunnerApplicationsForRepo($params); + return $this->router[Router\Get\Actions::class]->ListRunnerApplicationsForRepo($params); } } elseif ($pathChunks[6] === '{runner_id}') { if ($call === 'GET /repos/{owner}/{repo}/actions/runners/{runner_id}') { @@ -280,7 +280,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getSelfHostedRunnerForRepo($params); + return $this->router[Router\Get\Actions::class]->GetSelfHostedRunnerForRepo($params); } } } elseif ($pathChunks[5] === 'runs') { @@ -291,7 +291,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getWorkflowRun($params); + return $this->router[Router\Get\Actions::class]->GetWorkflowRun($params); } } } elseif ($pathChunks[5] === 'secrets') { @@ -302,7 +302,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getRepoPublicKey($params); + return $this->router[Router\Get\Actions::class]->GetRepoPublicKey($params); } } elseif ($pathChunks[6] === '{secret_name}') { if ($call === 'GET /repos/{owner}/{repo}/actions/secrets/{secret_name}') { @@ -311,7 +311,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getRepoSecret($params); + return $this->router[Router\Get\Actions::class]->GetRepoSecret($params); } } } elseif ($pathChunks[5] === 'workflows') { @@ -322,7 +322,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getWorkflow($params); + return $this->router[Router\Get\Actions::class]->GetWorkflow($params); } } } @@ -335,7 +335,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getBranchProtection($params); + return $this->router[Router\Get\Repos::class]->GetBranchProtection($params); } } } @@ -348,7 +348,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Checks::class] = new Router\Get\Checks($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Checks::class]->listAnnotations($params); + return $this->router[Router\Get\Checks::class]->ListAnnotations($params); } } } @@ -361,7 +361,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Checks::class] = new Router\Get\Checks($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Checks::class]->listForSuite($params); + return $this->router[Router\Get\Checks::class]->ListForSuite($params); } } } @@ -374,7 +374,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\CodeScanning::class] = new Router\Get\CodeScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\CodeScanning::class]->getAlert($params); + return $this->router[Router\Get\CodeScanning::class]->GetAlert($params); } } } elseif ($pathChunks[5] === 'analyses') { @@ -385,7 +385,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\CodeScanning::class] = new Router\Get\CodeScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\CodeScanning::class]->getAnalysis($params); + return $this->router[Router\Get\CodeScanning::class]->GetAnalysis($params); } } } elseif ($pathChunks[5] === 'sarifs') { @@ -396,7 +396,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\CodeScanning::class] = new Router\Get\CodeScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\CodeScanning::class]->getSarif($params); + return $this->router[Router\Get\CodeScanning::class]->GetSarif($params); } } } @@ -409,7 +409,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getCollaboratorPermissionLevel($params); + return $this->router[Router\Get\Repos::class]->GetCollaboratorPermissionLevel($params); } } } @@ -422,7 +422,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Reactions::class] = new Router\Get\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Reactions::class]->listForCommitComment($params); + return $this->router[Router\Get\Reactions::class]->ListForCommitComment($params); } } } @@ -435,7 +435,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listBranchesForHeadCommit($params); + return $this->router[Router\Get\Repos::class]->ListBranchesForHeadCommit($params); } } elseif ($pathChunks[6] === 'comments') { if ($call === 'GET /repos/{owner}/{repo}/commits/{commit_sha}/comments') { @@ -444,7 +444,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listCommentsForCommit($params); + return $this->router[Router\Get\Repos::class]->ListCommentsForCommit($params); } } elseif ($pathChunks[6] === 'pulls') { if ($call === 'GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls') { @@ -453,7 +453,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listPullRequestsAssociatedWithCommit($params); + return $this->router[Router\Get\Repos::class]->ListPullRequestsAssociatedWithCommit($params); } } } elseif ($pathChunks[5] === '{ref}') { @@ -464,7 +464,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Checks::class] = new Router\Get\Checks($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Checks::class]->listForRef($params); + return $this->router[Router\Get\Checks::class]->ListForRef($params); } } elseif ($pathChunks[6] === 'check-suites') { if ($call === 'GET /repos/{owner}/{repo}/commits/{ref}/check-suites') { @@ -473,7 +473,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Checks::class] = new Router\Get\Checks($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Checks::class]->listSuitesForRef($params); + return $this->router[Router\Get\Checks::class]->ListSuitesForRef($params); } } elseif ($pathChunks[6] === 'status') { if ($call === 'GET /repos/{owner}/{repo}/commits/{ref}/status') { @@ -482,7 +482,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getCombinedStatusForRef($params); + return $this->router[Router\Get\Repos::class]->GetCombinedStatusForRef($params); } } elseif ($pathChunks[6] === 'statuses') { if ($call === 'GET /repos/{owner}/{repo}/commits/{ref}/statuses') { @@ -491,7 +491,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listCommitStatusesForRef($params); + return $this->router[Router\Get\Repos::class]->ListCommitStatusesForRef($params); } } } @@ -504,7 +504,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Dependabot::class] = new Router\Get\Dependabot($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Dependabot::class]->getRepoPublicKey($params); + return $this->router[Router\Get\Dependabot::class]->GetRepoPublicKey($params); } } elseif ($pathChunks[6] === '{secret_name}') { if ($call === 'GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}') { @@ -513,7 +513,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Dependabot::class] = new Router\Get\Dependabot($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Dependabot::class]->getRepoSecret($params); + return $this->router[Router\Get\Dependabot::class]->GetRepoSecret($params); } } } @@ -526,7 +526,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listDeploymentStatuses($params); + return $this->router[Router\Get\Repos::class]->ListDeploymentStatuses($params); } } } @@ -539,7 +539,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listDeploymentBranchPolicies($params); + return $this->router[Router\Get\Repos::class]->ListDeploymentBranchPolicies($params); } } } @@ -552,7 +552,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Git::class] = new Router\Get\Git($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Git::class]->getBlob($params); + return $this->router[Router\Get\Git::class]->GetBlob($params); } } } elseif ($pathChunks[5] === 'commits') { @@ -563,7 +563,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Git::class] = new Router\Get\Git($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Git::class]->getCommit($params); + return $this->router[Router\Get\Git::class]->GetCommit($params); } } } elseif ($pathChunks[5] === 'matching-refs') { @@ -574,7 +574,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Git::class] = new Router\Get\Git($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Git::class]->listMatchingRefs($params); + return $this->router[Router\Get\Git::class]->ListMatchingRefs($params); } } } elseif ($pathChunks[5] === 'ref') { @@ -585,7 +585,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Git::class] = new Router\Get\Git($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Git::class]->getRef($params); + return $this->router[Router\Get\Git::class]->GetRef($params); } } } elseif ($pathChunks[5] === 'tags') { @@ -596,7 +596,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Git::class] = new Router\Get\Git($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Git::class]->getTag($params); + return $this->router[Router\Get\Git::class]->GetTag($params); } } } elseif ($pathChunks[5] === 'trees') { @@ -607,7 +607,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Git::class] = new Router\Get\Git($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Git::class]->getTree($params); + return $this->router[Router\Get\Git::class]->GetTree($params); } } } @@ -620,7 +620,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getWebhookConfigForRepo($params); + return $this->router[Router\Get\Repos::class]->GetWebhookConfigForRepo($params); } } elseif ($pathChunks[6] === 'deliveries') { if ($call === 'GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries') { @@ -629,7 +629,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listWebhookDeliveries($params); + return $this->router[Router\Get\Repos::class]->ListWebhookDeliveries($params); } } } @@ -642,7 +642,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->getComment($params); + return $this->router[Router\Get\Issues::class]->GetComment($params); } } } elseif ($pathChunks[5] === 'events') { @@ -653,7 +653,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->getEvent($params); + return $this->router[Router\Get\Issues::class]->GetEvent($params); } } } elseif ($pathChunks[5] === '{issue_number}') { @@ -664,7 +664,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->listComments($params); + return $this->router[Router\Get\Issues::class]->ListComments($params); } } elseif ($pathChunks[6] === 'events') { if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/events') { @@ -673,7 +673,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->listEvents($params); + return $this->router[Router\Get\Issues::class]->ListEvents($params); } } elseif ($pathChunks[6] === 'labels') { if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/labels') { @@ -682,7 +682,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->listLabelsOnIssue($params); + return $this->router[Router\Get\Issues::class]->ListLabelsOnIssue($params); } } elseif ($pathChunks[6] === 'reactions') { if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/reactions') { @@ -691,7 +691,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Reactions::class] = new Router\Get\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Reactions::class]->listForIssue($params); + return $this->router[Router\Get\Reactions::class]->ListForIssue($params); } } elseif ($pathChunks[6] === 'timeline') { if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/timeline') { @@ -700,7 +700,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->listEventsForTimeline($params); + return $this->router[Router\Get\Issues::class]->ListEventsForTimeline($params); } } } @@ -713,7 +713,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->listLabelsForMilestone($params); + return $this->router[Router\Get\Issues::class]->ListLabelsForMilestone($params); } } } @@ -726,7 +726,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getLatestPagesBuild($params); + return $this->router[Router\Get\Repos::class]->GetLatestPagesBuild($params); } } elseif ($pathChunks[6] === '{build_id}') { if ($call === 'GET /repos/{owner}/{repo}/pages/builds/{build_id}') { @@ -735,7 +735,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getPagesBuild($params); + return $this->router[Router\Get\Repos::class]->GetPagesBuild($params); } } } @@ -748,7 +748,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Pulls::class] = new Router\Get\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Pulls::class]->getReviewComment($params); + return $this->router[Router\Get\Pulls::class]->GetReviewComment($params); } } } elseif ($pathChunks[5] === '{pull_number}') { @@ -759,7 +759,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Pulls::class] = new Router\Get\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Pulls::class]->listReviewComments($params); + return $this->router[Router\Get\Pulls::class]->ListReviewComments($params); } } elseif ($pathChunks[6] === 'commits') { if ($call === 'GET /repos/{owner}/{repo}/pulls/{pull_number}/commits') { @@ -768,7 +768,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Pulls::class] = new Router\Get\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Pulls::class]->listCommits($params); + return $this->router[Router\Get\Pulls::class]->ListCommits($params); } } elseif ($pathChunks[6] === 'files') { if ($call === 'GET /repos/{owner}/{repo}/pulls/{pull_number}/files') { @@ -777,7 +777,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Pulls::class] = new Router\Get\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Pulls::class]->listFiles($params); + return $this->router[Router\Get\Pulls::class]->ListFiles($params); } } elseif ($pathChunks[6] === 'merge') { if ($call === 'GET /repos/{owner}/{repo}/pulls/{pull_number}/merge') { @@ -786,7 +786,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Pulls::class] = new Router\Get\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Pulls::class]->checkIfMerged($params); + return $this->router[Router\Get\Pulls::class]->CheckIfMerged($params); } } elseif ($pathChunks[6] === 'requested_reviewers') { if ($call === 'GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers') { @@ -795,7 +795,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Pulls::class] = new Router\Get\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Pulls::class]->listRequestedReviewers($params); + return $this->router[Router\Get\Pulls::class]->ListRequestedReviewers($params); } } elseif ($pathChunks[6] === 'reviews') { if ($call === 'GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews') { @@ -804,7 +804,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Pulls::class] = new Router\Get\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Pulls::class]->listReviews($params); + return $this->router[Router\Get\Pulls::class]->ListReviews($params); } } } @@ -817,7 +817,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getReleaseAsset($params); + return $this->router[Router\Get\Repos::class]->GetReleaseAsset($params); } } } elseif ($pathChunks[5] === 'tags') { @@ -828,7 +828,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getReleaseByTag($params); + return $this->router[Router\Get\Repos::class]->GetReleaseByTag($params); } } } elseif ($pathChunks[5] === '{release_id}') { @@ -839,7 +839,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listReleaseAssets($params); + return $this->router[Router\Get\Repos::class]->ListReleaseAssets($params); } } elseif ($pathChunks[6] === 'reactions') { if ($call === 'GET /repos/{owner}/{repo}/releases/{release_id}/reactions') { @@ -848,7 +848,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Reactions::class] = new Router\Get\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Reactions::class]->listForRelease($params); + return $this->router[Router\Get\Reactions::class]->ListForRelease($params); } } } @@ -861,7 +861,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\SecretScanning::class] = new Router\Get\SecretScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\SecretScanning::class]->getAlert($params); + return $this->router[Router\Get\SecretScanning::class]->GetAlert($params); } } } @@ -880,7 +880,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getEnvironmentPublicKey($params); + return $this->router[Router\Get\Actions::class]->GetEnvironmentPublicKey($params); } } elseif ($pathChunks[6] === '{secret_name}') { if ($call === 'GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}') { @@ -889,7 +889,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getEnvironmentSecret($params); + return $this->router[Router\Get\Actions::class]->GetEnvironmentSecret($params); } } } @@ -908,7 +908,7 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->getDiscussionCommentLegacy($params); + return $this->router[Router\Get\Teams::class]->GetDiscussionCommentLegacy($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Six.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Six.php index b2fdc34a022..d2ae2531f56 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Six.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Six.php @@ -60,7 +60,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return |iterable|iterable|array{code: int}|iterable|iterable|iterable|iterable|iterable|(Schema\ProjectCollaboratorPermission|array{code: int})|(iterable|iterable|(Schema\ContentDirectory|Schema\ContentFile|Schema\ContentSymlink|Schema\ContentSubmodule|iterable|iterable|(Schema\Issue|Schema\BasicError|iterable|iterable|(Schema\PullRequest|(Schema\Release|iterable|(iterable|(iterable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|(iterable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|(iterable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|array{code: int, location: string}|iterable|iterable|(Schema\TeamRepository|iterable */ + /** @return |Observable|Observable|array{code: int}|Observable|Observable|Observable|Observable|Observable|(Schema\ProjectCollaboratorPermission|array{code: int})|(Observable|Observable|(Schema\ContentDirectory|Schema\ContentFile|Schema\ContentSymlink|Schema\ContentSubmodule|Observable|Observable|(Schema\Issue|Schema\BasicError|Observable|Observable|(Schema\PullRequest|(Schema\Release|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|array{code: int, location: string}|Observable|Observable|(Schema\TeamRepository|Observable */ public function call(string $call, array $params, array $pathChunks): PreReceiveEnvironmentDownloadStatus|Ok|SelectedActions|RunnerGroupsEnterprise|iterable|Runner|AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CommitComment|Commit|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|RepositoryPreReceiveHook|PullRequest|Release|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|TeamRepository { $matched = false; @@ -76,7 +76,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getDownloadStatusForPreReceiveEnvironment($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetDownloadStatusForPreReceiveEnvironment($params); } } } @@ -93,7 +93,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->listSelectedOrganizationsEnabledGithubActionsEnterprise($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->ListSelectedOrganizationsEnabledGithubActionsEnterprise($params); } } elseif ($pathChunks[5] === 'selected-actions') { if ($call === 'GET /enterprises/{enterprise}/actions/permissions/selected-actions') { @@ -102,7 +102,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getAllowedActionsEnterprise($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetAllowedActionsEnterprise($params); } } } elseif ($pathChunks[4] === 'runner-groups') { @@ -113,7 +113,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getSelfHostedRunnerGroupForEnterprise($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetSelfHostedRunnerGroupForEnterprise($params); } } } elseif ($pathChunks[4] === 'runners') { @@ -124,7 +124,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->listRunnerApplicationsForEnterprise($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->ListRunnerApplicationsForEnterprise($params); } } elseif ($pathChunks[5] === '{runner_id}') { if ($call === 'GET /enterprises/{enterprise}/actions/runners/{runner_id}') { @@ -133,7 +133,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getSelfHostedRunnerForEnterprise($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetSelfHostedRunnerForEnterprise($params); } } } @@ -146,7 +146,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Billing::class] = new Router\Get\Billing($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Billing::class]->getGithubAdvancedSecurityBillingGhe($params); + return $this->router[Router\Get\Billing::class]->GetGithubAdvancedSecurityBillingGhe($params); } } } @@ -163,7 +163,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listSelectedRepositoriesEnabledGithubActionsOrganization($params); + return $this->router[Router\Get\Actions::class]->ListSelectedRepositoriesEnabledGithubActionsOrganization($params); } } elseif ($pathChunks[5] === 'selected-actions') { if ($call === 'GET /orgs/{org}/actions/permissions/selected-actions') { @@ -172,7 +172,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getAllowedActionsOrganization($params); + return $this->router[Router\Get\Actions::class]->GetAllowedActionsOrganization($params); } } } elseif ($pathChunks[4] === 'runner-groups') { @@ -183,7 +183,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getSelfHostedRunnerGroupForOrg($params); + return $this->router[Router\Get\Actions::class]->GetSelfHostedRunnerGroupForOrg($params); } } } elseif ($pathChunks[4] === 'runners') { @@ -194,7 +194,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listRunnerApplicationsForOrg($params); + return $this->router[Router\Get\Actions::class]->ListRunnerApplicationsForOrg($params); } } elseif ($pathChunks[5] === '{runner_id}') { if ($call === 'GET /orgs/{org}/actions/runners/{runner_id}') { @@ -203,7 +203,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getSelfHostedRunnerForOrg($params); + return $this->router[Router\Get\Actions::class]->GetSelfHostedRunnerForOrg($params); } } } elseif ($pathChunks[4] === 'secrets') { @@ -214,7 +214,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getOrgPublicKey($params); + return $this->router[Router\Get\Actions::class]->GetOrgPublicKey($params); } } elseif ($pathChunks[5] === '{secret_name}') { if ($call === 'GET /orgs/{org}/actions/secrets/{secret_name}') { @@ -223,7 +223,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getOrgSecret($params); + return $this->router[Router\Get\Actions::class]->GetOrgSecret($params); } } } @@ -236,7 +236,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Dependabot::class] = new Router\Get\Dependabot($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Dependabot::class]->getOrgPublicKey($params); + return $this->router[Router\Get\Dependabot::class]->GetOrgPublicKey($params); } } elseif ($pathChunks[5] === '{secret_name}') { if ($call === 'GET /orgs/{org}/dependabot/secrets/{secret_name}') { @@ -245,7 +245,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Dependabot::class] = new Router\Get\Dependabot($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Dependabot::class]->getOrgSecret($params); + return $this->router[Router\Get\Dependabot::class]->GetOrgSecret($params); } } } @@ -258,7 +258,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->getWebhookConfigForOrg($params); + return $this->router[Router\Get\Orgs::class]->GetWebhookConfigForOrg($params); } } elseif ($pathChunks[5] === 'deliveries') { if ($call === 'GET /orgs/{org}/hooks/{hook_id}/deliveries') { @@ -267,7 +267,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->listWebhookDeliveries($params); + return $this->router[Router\Get\Orgs::class]->ListWebhookDeliveries($params); } } } @@ -280,7 +280,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Migrations::class] = new Router\Get\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Migrations::class]->downloadArchiveForOrg($params); + return $this->router[Router\Get\Migrations::class]->DownloadArchiveForOrg($params); } } elseif ($pathChunks[5] === 'repositories') { if ($call === 'GET /orgs/{org}/migrations/{migration_id}/repositories') { @@ -289,7 +289,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Migrations::class] = new Router\Get\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Migrations::class]->listReposForOrg($params); + return $this->router[Router\Get\Migrations::class]->ListReposForOrg($params); } } } @@ -302,7 +302,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Billing::class] = new Router\Get\Billing($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Billing::class]->getGithubAdvancedSecurityBillingOrg($params); + return $this->router[Router\Get\Billing::class]->GetGithubAdvancedSecurityBillingOrg($params); } } } @@ -315,7 +315,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->listDiscussionsInOrg($params); + return $this->router[Router\Get\Teams::class]->ListDiscussionsInOrg($params); } } elseif ($pathChunks[5] === 'members') { if ($call === 'GET /orgs/{org}/teams/{team_slug}/members') { @@ -324,7 +324,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->listMembersInOrg($params); + return $this->router[Router\Get\Teams::class]->ListMembersInOrg($params); } } elseif ($pathChunks[5] === 'projects') { if ($call === 'GET /orgs/{org}/teams/{team_slug}/projects') { @@ -333,7 +333,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->listProjectsInOrg($params); + return $this->router[Router\Get\Teams::class]->ListProjectsInOrg($params); } } elseif ($pathChunks[5] === 'repos') { if ($call === 'GET /orgs/{org}/teams/{team_slug}/repos') { @@ -342,7 +342,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->listReposInOrg($params); + return $this->router[Router\Get\Teams::class]->ListReposInOrg($params); } } elseif ($pathChunks[5] === 'teams') { if ($call === 'GET /orgs/{org}/teams/{team_slug}/teams') { @@ -351,7 +351,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->listChildInOrg($params); + return $this->router[Router\Get\Teams::class]->ListChildInOrg($params); } } } @@ -368,7 +368,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Projects::class] = new Router\Get\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Projects::class]->getPermissionForUser($params); + return $this->router[Router\Get\Projects::class]->GetPermissionForUser($params); } } } @@ -385,7 +385,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listArtifactsForRepo($params); + return $this->router[Router\Get\Actions::class]->ListArtifactsForRepo($params); } } elseif ($pathChunks[5] === 'permissions') { if ($call === 'GET /repos/{owner}/{repo}/actions/permissions') { @@ -394,7 +394,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->getGithubActionsPermissionsRepository($params); + return $this->router[Router\Get\Actions::class]->GetGithubActionsPermissionsRepository($params); } } elseif ($pathChunks[5] === 'runners') { if ($call === 'GET /repos/{owner}/{repo}/actions/runners') { @@ -403,7 +403,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listSelfHostedRunnersForRepo($params); + return $this->router[Router\Get\Actions::class]->ListSelfHostedRunnersForRepo($params); } } elseif ($pathChunks[5] === 'runs') { if ($call === 'GET /repos/{owner}/{repo}/actions/runs') { @@ -412,7 +412,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listWorkflowRunsForRepo($params); + return $this->router[Router\Get\Actions::class]->ListWorkflowRunsForRepo($params); } } elseif ($pathChunks[5] === 'secrets') { if ($call === 'GET /repos/{owner}/{repo}/actions/secrets') { @@ -421,7 +421,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listRepoSecrets($params); + return $this->router[Router\Get\Actions::class]->ListRepoSecrets($params); } } elseif ($pathChunks[5] === 'workflows') { if ($call === 'GET /repos/{owner}/{repo}/actions/workflows') { @@ -430,7 +430,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listRepoWorkflows($params); + return $this->router[Router\Get\Actions::class]->ListRepoWorkflows($params); } } } elseif ($pathChunks[4] === 'assignees') { @@ -441,7 +441,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->checkUserCanBeAssigned($params); + return $this->router[Router\Get\Issues::class]->CheckUserCanBeAssigned($params); } } } elseif ($pathChunks[4] === 'autolinks') { @@ -452,7 +452,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getAutolink($params); + return $this->router[Router\Get\Repos::class]->GetAutolink($params); } } } elseif ($pathChunks[4] === 'branches') { @@ -463,7 +463,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getBranch($params); + return $this->router[Router\Get\Repos::class]->GetBranch($params); } } } elseif ($pathChunks[4] === 'check-runs') { @@ -474,7 +474,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Checks::class] = new Router\Get\Checks($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Checks::class]->get($params); + return $this->router[Router\Get\Checks::class]->Get($params); } } } elseif ($pathChunks[4] === 'check-suites') { @@ -485,7 +485,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Checks::class] = new Router\Get\Checks($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Checks::class]->getSuite($params); + return $this->router[Router\Get\Checks::class]->GetSuite($params); } } } elseif ($pathChunks[4] === 'code-scanning') { @@ -496,7 +496,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\CodeScanning::class] = new Router\Get\CodeScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\CodeScanning::class]->listAlertsForRepo($params); + return $this->router[Router\Get\CodeScanning::class]->ListAlertsForRepo($params); } } elseif ($pathChunks[5] === 'analyses') { if ($call === 'GET /repos/{owner}/{repo}/code-scanning/analyses') { @@ -505,7 +505,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\CodeScanning::class] = new Router\Get\CodeScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\CodeScanning::class]->listRecentAnalyses($params); + return $this->router[Router\Get\CodeScanning::class]->ListRecentAnalyses($params); } } } elseif ($pathChunks[4] === 'collaborators') { @@ -516,7 +516,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->checkCollaborator($params); + return $this->router[Router\Get\Repos::class]->CheckCollaborator($params); } } } elseif ($pathChunks[4] === 'comments') { @@ -527,7 +527,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getCommitComment($params); + return $this->router[Router\Get\Repos::class]->GetCommitComment($params); } } } elseif ($pathChunks[4] === 'commits') { @@ -538,7 +538,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getCommit($params); + return $this->router[Router\Get\Repos::class]->GetCommit($params); } } } elseif ($pathChunks[4] === 'compare') { @@ -549,7 +549,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->compareCommits($params); + return $this->router[Router\Get\Repos::class]->CompareCommits($params); } } } elseif ($pathChunks[4] === 'contents') { @@ -560,7 +560,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getContent($params); + return $this->router[Router\Get\Repos::class]->GetContent($params); } } } elseif ($pathChunks[4] === 'dependabot') { @@ -571,7 +571,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Dependabot::class] = new Router\Get\Dependabot($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Dependabot::class]->listRepoSecrets($params); + return $this->router[Router\Get\Dependabot::class]->ListRepoSecrets($params); } } } elseif ($pathChunks[4] === 'deployments') { @@ -582,7 +582,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getDeployment($params); + return $this->router[Router\Get\Repos::class]->GetDeployment($params); } } } elseif ($pathChunks[4] === 'environments') { @@ -593,7 +593,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getEnvironment($params); + return $this->router[Router\Get\Repos::class]->GetEnvironment($params); } } } elseif ($pathChunks[4] === 'hooks') { @@ -604,7 +604,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getWebhook($params); + return $this->router[Router\Get\Repos::class]->GetWebhook($params); } } } elseif ($pathChunks[4] === 'issues') { @@ -615,7 +615,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->listCommentsForRepo($params); + return $this->router[Router\Get\Issues::class]->ListCommentsForRepo($params); } } elseif ($pathChunks[5] === 'events') { if ($call === 'GET /repos/{owner}/{repo}/issues/events') { @@ -624,7 +624,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->listEventsForRepo($params); + return $this->router[Router\Get\Issues::class]->ListEventsForRepo($params); } } elseif ($pathChunks[5] === '{issue_number}') { if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}') { @@ -633,7 +633,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->get($params); + return $this->router[Router\Get\Issues::class]->Get($params); } } } elseif ($pathChunks[4] === 'keys') { @@ -644,7 +644,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getDeployKey($params); + return $this->router[Router\Get\Repos::class]->GetDeployKey($params); } } } elseif ($pathChunks[4] === 'labels') { @@ -655,7 +655,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->getLabel($params); + return $this->router[Router\Get\Issues::class]->GetLabel($params); } } } elseif ($pathChunks[4] === 'milestones') { @@ -666,7 +666,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->getMilestone($params); + return $this->router[Router\Get\Issues::class]->GetMilestone($params); } } } elseif ($pathChunks[4] === 'pages') { @@ -677,7 +677,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listPagesBuilds($params); + return $this->router[Router\Get\Repos::class]->ListPagesBuilds($params); } } } elseif ($pathChunks[4] === 'pre-receive-hooks') { @@ -688,7 +688,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getPreReceiveHookForRepo($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetPreReceiveHookForRepo($params); } } } elseif ($pathChunks[4] === 'pulls') { @@ -699,7 +699,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Pulls::class] = new Router\Get\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Pulls::class]->listReviewCommentsForRepo($params); + return $this->router[Router\Get\Pulls::class]->ListReviewCommentsForRepo($params); } } elseif ($pathChunks[5] === '{pull_number}') { if ($call === 'GET /repos/{owner}/{repo}/pulls/{pull_number}') { @@ -708,7 +708,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Pulls::class] = new Router\Get\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Pulls::class]->get($params); + return $this->router[Router\Get\Pulls::class]->Get($params); } } } elseif ($pathChunks[4] === 'readme') { @@ -719,7 +719,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getReadmeInDirectory($params); + return $this->router[Router\Get\Repos::class]->GetReadmeInDirectory($params); } } } elseif ($pathChunks[4] === 'releases') { @@ -730,7 +730,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getLatestRelease($params); + return $this->router[Router\Get\Repos::class]->GetLatestRelease($params); } } elseif ($pathChunks[5] === '{release_id}') { if ($call === 'GET /repos/{owner}/{repo}/releases/{release_id}') { @@ -739,7 +739,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getRelease($params); + return $this->router[Router\Get\Repos::class]->GetRelease($params); } } } elseif ($pathChunks[4] === 'replicas') { @@ -750,7 +750,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listCacheInfo($params); + return $this->router[Router\Get\Repos::class]->ListCacheInfo($params); } } } elseif ($pathChunks[4] === 'secret-scanning') { @@ -761,7 +761,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\SecretScanning::class] = new Router\Get\SecretScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\SecretScanning::class]->listAlertsForRepo($params); + return $this->router[Router\Get\SecretScanning::class]->ListAlertsForRepo($params); } } } elseif ($pathChunks[4] === 'stats') { @@ -772,7 +772,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getCodeFrequencyStats($params); + return $this->router[Router\Get\Repos::class]->GetCodeFrequencyStats($params); } } elseif ($pathChunks[5] === 'commit_activity') { if ($call === 'GET /repos/{owner}/{repo}/stats/commit_activity') { @@ -781,7 +781,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getCommitActivityStats($params); + return $this->router[Router\Get\Repos::class]->GetCommitActivityStats($params); } } elseif ($pathChunks[5] === 'contributors') { if ($call === 'GET /repos/{owner}/{repo}/stats/contributors') { @@ -790,7 +790,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getContributorsStats($params); + return $this->router[Router\Get\Repos::class]->GetContributorsStats($params); } } elseif ($pathChunks[5] === 'participation') { if ($call === 'GET /repos/{owner}/{repo}/stats/participation') { @@ -799,7 +799,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getParticipationStats($params); + return $this->router[Router\Get\Repos::class]->GetParticipationStats($params); } } elseif ($pathChunks[5] === 'punch_card') { if ($call === 'GET /repos/{owner}/{repo}/stats/punch_card') { @@ -808,7 +808,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->getPunchCardStats($params); + return $this->router[Router\Get\Repos::class]->GetPunchCardStats($params); } } } elseif ($pathChunks[4] === 'tarball') { @@ -819,7 +819,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->downloadTarballArchive($params); + return $this->router[Router\Get\Repos::class]->DownloadTarballArchive($params); } } } elseif ($pathChunks[4] === 'zipball') { @@ -830,7 +830,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->downloadZipballArchive($params); + return $this->router[Router\Get\Repos::class]->DownloadZipballArchive($params); } } } @@ -847,7 +847,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->listEnvironmentSecrets($params); + return $this->router[Router\Get\Actions::class]->ListEnvironmentSecrets($params); } } } @@ -864,7 +864,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->listDiscussionCommentsLegacy($params); + return $this->router[Router\Get\Teams::class]->ListDiscussionCommentsLegacy($params); } } elseif ($pathChunks[5] === 'reactions') { if ($call === 'GET /teams/{team_id}/discussions/{discussion_number}/reactions') { @@ -873,7 +873,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Reactions::class] = new Router\Get\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Reactions::class]->listForTeamDiscussionLegacy($params); + return $this->router[Router\Get\Reactions::class]->ListForTeamDiscussionLegacy($params); } } } @@ -886,7 +886,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->checkPermissionsForRepoLegacy($params); + return $this->router[Router\Get\Teams::class]->CheckPermissionsForRepoLegacy($params); } } } @@ -903,7 +903,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listOrgEventsForAuthenticatedUser($params); + return $this->router[Router\Get\Activity::class]->ListOrgEventsForAuthenticatedUser($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Teams.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Teams.php index 2680331ffb8..332467b1fc9 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Teams.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Teams.php @@ -51,7 +51,7 @@ public function getLegacy(array $params): TeamFull|array return $operator->call($arguments['team_id']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listForAuthenticatedUser(array $params): iterable { $matched = true; @@ -77,8 +77,8 @@ public function listForAuthenticatedUser(array $params): iterable return $operator->call($arguments['per_page'], $arguments['page']); } - /** @return iterable */ - public function list_(array $params): iterable + /** @return Observable */ + public function list(array $params): iterable { $matched = true; $arguments = []; @@ -109,7 +109,7 @@ public function list_(array $params): iterable return $operator->call($arguments['org'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listDiscussionsLegacy(array $params): iterable { $matched = true; @@ -147,7 +147,7 @@ public function listDiscussionsLegacy(array $params): iterable return $operator->call($arguments['team_id'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listMembersLegacy(array $params): iterable { $matched = true; @@ -185,7 +185,7 @@ public function listMembersLegacy(array $params): iterable return $operator->call($arguments['team_id'], $arguments['role'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listProjectsLegacy(array $params): iterable { $matched = true; @@ -217,7 +217,7 @@ public function listProjectsLegacy(array $params): iterable return $operator->call($arguments['team_id'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listReposLegacy(array $params): iterable { $matched = true; @@ -249,7 +249,7 @@ public function listReposLegacy(array $params): iterable return $operator->call($arguments['team_id'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listChildLegacy(array $params): iterable { $matched = true; @@ -281,7 +281,7 @@ public function listChildLegacy(array $params): iterable return $operator->call($arguments['team_id'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listDiscussionsInOrg(array $params): iterable { $matched = true; @@ -331,7 +331,7 @@ public function listDiscussionsInOrg(array $params): iterable return $operator->call($arguments['org'], $arguments['team_slug'], $arguments['pinned'], $arguments['direction'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listMembersInOrg(array $params): iterable { $matched = true; @@ -375,7 +375,7 @@ public function listMembersInOrg(array $params): iterable return $operator->call($arguments['org'], $arguments['team_slug'], $arguments['role'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listProjectsInOrg(array $params): iterable { $matched = true; @@ -413,7 +413,7 @@ public function listProjectsInOrg(array $params): iterable return $operator->call($arguments['org'], $arguments['team_slug'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listReposInOrg(array $params): iterable { $matched = true; @@ -451,7 +451,7 @@ public function listReposInOrg(array $params): iterable return $operator->call($arguments['org'], $arguments['team_slug'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listChildInOrg(array $params): iterable { $matched = true; @@ -489,7 +489,7 @@ public function listChildInOrg(array $params): iterable return $operator->call($arguments['org'], $arguments['team_slug'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listDiscussionCommentsLegacy(array $params): iterable { $matched = true; @@ -819,7 +819,7 @@ public function getDiscussionCommentLegacy(array $params): TeamDiscussionComment return $operator->call($arguments['team_id'], $arguments['discussion_number'], $arguments['comment_number']); } - /** @return iterable */ + /** @return Observable */ public function listDiscussionCommentsInOrg(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Ten.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Ten.php index 020b2093157..f5df7a00e55 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Ten.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Ten.php @@ -22,7 +22,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable */ + /** @return Observable */ public function call(string $call, array $params, array $pathChunks): iterable { $matched = false; @@ -42,7 +42,7 @@ public function call(string $call, array $params, array $pathChunks): iterable $this->router[Router\Get\Reactions::class] = new Router\Get\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Reactions::class]->listForTeamDiscussionCommentInOrg($params); + return $this->router[Router\Get\Reactions::class]->ListForTeamDiscussionCommentInOrg($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Three.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Three.php index 8e077f5d516..11035970124 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Three.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Three.php @@ -34,7 +34,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable|iterable|iterable|iterable|iterable|(iterable|array{code: int})|iterable|(iterable||(Schema\Authorization|(Schema\CodeOfConduct|(iterable|(Schema\GistSimple|(iterable|(Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|(Schema\License|(Schema\Project|(Schema\Operations\Search\Code\Response\ApplicationJson\Ok|(Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|(Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|(Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|(Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|(Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|(Schema\Operations\Search\Users\Response\ApplicationJson\Ok|(iterable|(iterable|(iterable|(Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|(iterable|(iterable|(iterable|(iterable|(iterable|(iterable|(iterable|(iterable|(Schema\PrivateUser|Schema\PublicUser) */ + /** @return Observable|Observable|Observable|Observable|Observable|(Observable|array{code: int})|Observable|(Observable||(Schema\Authorization|(Schema\CodeOfConduct|(Observable|(Schema\GistSimple|(Observable|(Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|(Schema\License|(Schema\Project|(Schema\Operations\Search\Code\Response\ApplicationJson\Ok|(Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|(Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|(Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|(Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|(Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|(Schema\Operations\Search\Users\Response\ApplicationJson\Ok|(Observable|(Observable|(Observable|(Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|(Observable|(Observable|(Observable|(Observable|(Observable|(Observable|(Observable|(Observable */ public function call(string $call, array $params, array $pathChunks): iterable|Integration|Authorization|CodeOfConduct|Announcement|GistSimple|Ok|License|OrganizationFull|Project|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|TeamFull|Json|PrivateUser|PublicUser { $matched = false; @@ -47,7 +47,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->listGlobalWebhooks($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->ListGlobalWebhooks($params); } } elseif ($pathChunks[2] === 'keys') { if ($call === 'GET /admin/keys') { @@ -56,7 +56,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->listPublicKeys($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->ListPublicKeys($params); } } elseif ($pathChunks[2] === 'pre-receive-environments') { if ($call === 'GET /admin/pre-receive-environments') { @@ -65,7 +65,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->listPreReceiveEnvironments($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->ListPreReceiveEnvironments($params); } } elseif ($pathChunks[2] === 'pre-receive-hooks') { if ($call === 'GET /admin/pre-receive-hooks') { @@ -74,7 +74,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->listPreReceiveHooks($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->ListPreReceiveHooks($params); } } elseif ($pathChunks[2] === 'tokens') { if ($call === 'GET /admin/tokens') { @@ -83,7 +83,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->listPersonalAccessTokens($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->ListPersonalAccessTokens($params); } } } elseif ($pathChunks[1] === 'app') { @@ -94,7 +94,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Apps::class] = new Router\Get\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Apps::class]->listInstallationRequestsForAuthenticatedApp($params); + return $this->router[Router\Get\Apps::class]->ListInstallationRequestsForAuthenticatedApp($params); } } elseif ($pathChunks[2] === 'installations') { if ($call === 'GET /app/installations') { @@ -103,7 +103,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Apps::class] = new Router\Get\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Apps::class]->listInstallations($params); + return $this->router[Router\Get\Apps::class]->ListInstallations($params); } } } elseif ($pathChunks[1] === 'applications') { @@ -114,7 +114,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\OauthAuthorizations::class] = new Router\Get\OauthAuthorizations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\OauthAuthorizations::class]->listGrants($params); + return $this->router[Router\Get\OauthAuthorizations::class]->ListGrants($params); } } } elseif ($pathChunks[1] === 'apps') { @@ -125,7 +125,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Apps::class] = new Router\Get\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Apps::class]->getBySlug($params); + return $this->router[Router\Get\Apps::class]->GetBySlug($params); } } } elseif ($pathChunks[1] === 'authorizations') { @@ -136,7 +136,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\OauthAuthorizations::class] = new Router\Get\OauthAuthorizations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\OauthAuthorizations::class]->getAuthorization($params); + return $this->router[Router\Get\OauthAuthorizations::class]->GetAuthorization($params); } } } elseif ($pathChunks[1] === 'codes_of_conduct') { @@ -147,7 +147,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\CodesOfConduct::class] = new Router\Get\CodesOfConduct($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\CodesOfConduct::class]->getConductCode($params); + return $this->router[Router\Get\CodesOfConduct::class]->GetConductCode($params); } } } elseif ($pathChunks[1] === 'enterprise') { @@ -158,7 +158,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getAnnouncement($params); + return $this->router[Router\Get\EnterpriseAdmin::class]->GetAnnouncement($params); } } } elseif ($pathChunks[1] === 'gists') { @@ -169,7 +169,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Gists::class] = new Router\Get\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Gists::class]->listPublic($params); + return $this->router[Router\Get\Gists::class]->ListPublic($params); } } elseif ($pathChunks[2] === 'starred') { if ($call === 'GET /gists/starred') { @@ -178,7 +178,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Gists::class] = new Router\Get\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Gists::class]->listStarred($params); + return $this->router[Router\Get\Gists::class]->ListStarred($params); } } elseif ($pathChunks[2] === '{gist_id}') { if ($call === 'GET /gists/{gist_id}') { @@ -187,7 +187,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Gists::class] = new Router\Get\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Gists::class]->get($params); + return $this->router[Router\Get\Gists::class]->Get($params); } } } elseif ($pathChunks[1] === 'gitignore') { @@ -198,7 +198,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Gitignore::class] = new Router\Get\Gitignore($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Gitignore::class]->getAllTemplates($params); + return $this->router[Router\Get\Gitignore::class]->GetAllTemplates($params); } } } elseif ($pathChunks[1] === 'installation') { @@ -209,7 +209,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Apps::class] = new Router\Get\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Apps::class]->listReposAccessibleToInstallation($params); + return $this->router[Router\Get\Apps::class]->ListReposAccessibleToInstallation($params); } } } elseif ($pathChunks[1] === 'licenses') { @@ -220,7 +220,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Licenses::class] = new Router\Get\Licenses($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Licenses::class]->get($params); + return $this->router[Router\Get\Licenses::class]->Get($params); } } } elseif ($pathChunks[1] === 'orgs') { @@ -231,7 +231,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->get($params); + return $this->router[Router\Get\Orgs::class]->Get($params); } } } elseif ($pathChunks[1] === 'projects') { @@ -242,7 +242,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Projects::class] = new Router\Get\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Projects::class]->get($params); + return $this->router[Router\Get\Projects::class]->Get($params); } } } elseif ($pathChunks[1] === 'search') { @@ -253,7 +253,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Search::class] = new Router\Get\Search($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Search::class]->code($params); + return $this->router[Router\Get\Search::class]->Code($params); } } elseif ($pathChunks[2] === 'commits') { if ($call === 'GET /search/commits') { @@ -262,7 +262,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Search::class] = new Router\Get\Search($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Search::class]->commits($params); + return $this->router[Router\Get\Search::class]->Commits($params); } } elseif ($pathChunks[2] === 'issues') { if ($call === 'GET /search/issues') { @@ -271,7 +271,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Search::class] = new Router\Get\Search($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Search::class]->issuesAndPullRequests($params); + return $this->router[Router\Get\Search::class]->IssuesAndPullRequests($params); } } elseif ($pathChunks[2] === 'labels') { if ($call === 'GET /search/labels') { @@ -280,7 +280,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Search::class] = new Router\Get\Search($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Search::class]->labels($params); + return $this->router[Router\Get\Search::class]->Labels($params); } } elseif ($pathChunks[2] === 'repositories') { if ($call === 'GET /search/repositories') { @@ -289,7 +289,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Search::class] = new Router\Get\Search($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Search::class]->repos($params); + return $this->router[Router\Get\Search::class]->Repos($params); } } elseif ($pathChunks[2] === 'topics') { if ($call === 'GET /search/topics') { @@ -298,7 +298,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Search::class] = new Router\Get\Search($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Search::class]->topics($params); + return $this->router[Router\Get\Search::class]->Topics($params); } } elseif ($pathChunks[2] === 'users') { if ($call === 'GET /search/users') { @@ -307,7 +307,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Search::class] = new Router\Get\Search($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Search::class]->users($params); + return $this->router[Router\Get\Search::class]->Users($params); } } } elseif ($pathChunks[1] === 'teams') { @@ -318,7 +318,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->getLegacy($params); + return $this->router[Router\Get\Teams::class]->GetLegacy($params); } } } elseif ($pathChunks[1] === 'user') { @@ -329,7 +329,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->listEmailsForAuthenticatedUser($params); + return $this->router[Router\Get\Users::class]->ListEmailsForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'followers') { if ($call === 'GET /user/followers') { @@ -338,7 +338,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->listFollowersForAuthenticatedUser($params); + return $this->router[Router\Get\Users::class]->ListFollowersForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'following') { if ($call === 'GET /user/following') { @@ -347,7 +347,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->listFollowedByAuthenticatedUser($params); + return $this->router[Router\Get\Users::class]->ListFollowedByAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'gpg_keys') { if ($call === 'GET /user/gpg_keys') { @@ -356,7 +356,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->listGpgKeysForAuthenticatedUser($params); + return $this->router[Router\Get\Users::class]->ListGpgKeysForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'installations') { if ($call === 'GET /user/installations') { @@ -365,7 +365,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Apps::class] = new Router\Get\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Apps::class]->listInstallationsForAuthenticatedUser($params); + return $this->router[Router\Get\Apps::class]->ListInstallationsForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'issues') { if ($call === 'GET /user/issues') { @@ -374,7 +374,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->listForAuthenticatedUser($params); + return $this->router[Router\Get\Issues::class]->ListForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'keys') { if ($call === 'GET /user/keys') { @@ -383,7 +383,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->listPublicSshKeysForAuthenticatedUser($params); + return $this->router[Router\Get\Users::class]->ListPublicSshKeysForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'migrations') { if ($call === 'GET /user/migrations') { @@ -392,7 +392,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Migrations::class] = new Router\Get\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Migrations::class]->listForAuthenticatedUser($params); + return $this->router[Router\Get\Migrations::class]->ListForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'orgs') { if ($call === 'GET /user/orgs') { @@ -401,7 +401,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->listForAuthenticatedUser($params); + return $this->router[Router\Get\Orgs::class]->ListForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'public_emails') { if ($call === 'GET /user/public_emails') { @@ -410,7 +410,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->listPublicEmailsForAuthenticatedUser($params); + return $this->router[Router\Get\Users::class]->ListPublicEmailsForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'repos') { if ($call === 'GET /user/repos') { @@ -419,7 +419,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listForAuthenticatedUser($params); + return $this->router[Router\Get\Repos::class]->ListForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'repository_invitations') { if ($call === 'GET /user/repository_invitations') { @@ -428,7 +428,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listInvitationsForAuthenticatedUser($params); + return $this->router[Router\Get\Repos::class]->ListInvitationsForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'starred') { if ($call === 'GET /user/starred') { @@ -437,7 +437,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listReposStarredByAuthenticatedUser($params); + return $this->router[Router\Get\Activity::class]->ListReposStarredByAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'subscriptions') { if ($call === 'GET /user/subscriptions') { @@ -446,7 +446,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listWatchedReposForAuthenticatedUser($params); + return $this->router[Router\Get\Activity::class]->ListWatchedReposForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'teams') { if ($call === 'GET /user/teams') { @@ -455,7 +455,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Teams::class] = new Router\Get\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Teams::class]->listForAuthenticatedUser($params); + return $this->router[Router\Get\Teams::class]->ListForAuthenticatedUser($params); } } } elseif ($pathChunks[1] === 'users') { @@ -466,7 +466,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|I $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->getByUsername($params); + return $this->router[Router\Get\Users::class]->GetByUsername($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Two.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Two.php index c31b07d091a..a4efda93354 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Two.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Two.php @@ -29,7 +29,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return |(iterable|array{code: int})|(iterable|(Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok|(iterable|(iterable|(iterable|(iterable|(Schema\ApiOverview|(iterable|(iterable|(Schema\RateLimitOverview|(iterable|(Schema\PrivateUser|Schema\PublicUser|(iterable */ + /** @return |(Observable|array{code: int})|(Observable|(Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok|(Observable|(Observable|(Observable|(Observable|(Schema\ApiOverview|(Observable|(Observable|(Schema\RateLimitOverview|(Observable|(Schema\PrivateUser|Schema\PublicUser|(Observable */ public function call(string $call, array $params, array $pathChunks): Integration|iterable|Ok|Feed|ApiOverview|ResponseInterface|RateLimitOverview|PrivateUser|PublicUser|string { $matched = false; @@ -41,7 +41,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\Apps::class] = new Router\Get\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Apps::class]->getAuthenticated($params); + return $this->router[Router\Get\Apps::class]->GetAuthenticated($params); } } elseif ($pathChunks[1] === 'authorizations') { if ($call === 'GET /authorizations') { @@ -50,7 +50,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\OauthAuthorizations::class] = new Router\Get\OauthAuthorizations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\OauthAuthorizations::class]->listAuthorizations($params); + return $this->router[Router\Get\OauthAuthorizations::class]->ListAuthorizations($params); } } elseif ($pathChunks[1] === 'codes_of_conduct') { if ($call === 'GET /codes_of_conduct') { @@ -59,7 +59,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\CodesOfConduct::class] = new Router\Get\CodesOfConduct($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\CodesOfConduct::class]->getAllCodesOfConduct($params); + return $this->router[Router\Get\CodesOfConduct::class]->GetAllCodesOfConduct($params); } } elseif ($pathChunks[1] === 'emojis') { if ($call === 'GET /emojis') { @@ -68,7 +68,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\Emojis::class] = new Router\Get\Emojis($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Emojis::class]->get($params); + return $this->router[Router\Get\Emojis::class]->Get($params); } } elseif ($pathChunks[1] === 'events') { if ($call === 'GET /events') { @@ -77,7 +77,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listPublicEvents($params); + return $this->router[Router\Get\Activity::class]->ListPublicEvents($params); } } elseif ($pathChunks[1] === 'feeds') { if ($call === 'GET /feeds') { @@ -86,7 +86,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->getFeeds($params); + return $this->router[Router\Get\Activity::class]->GetFeeds($params); } } elseif ($pathChunks[1] === 'gists') { if ($call === 'GET /gists') { @@ -95,7 +95,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\Gists::class] = new Router\Get\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Gists::class]->list_($params); + return $this->router[Router\Get\Gists::class]->List($params); } } elseif ($pathChunks[1] === 'issues') { if ($call === 'GET /issues') { @@ -104,7 +104,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\Issues::class] = new Router\Get\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Issues::class]->list_($params); + return $this->router[Router\Get\Issues::class]->List($params); } } elseif ($pathChunks[1] === 'licenses') { if ($call === 'GET /licenses') { @@ -113,7 +113,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\Licenses::class] = new Router\Get\Licenses($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Licenses::class]->getAllCommonlyUsed($params); + return $this->router[Router\Get\Licenses::class]->GetAllCommonlyUsed($params); } } elseif ($pathChunks[1] === 'meta') { if ($call === 'GET /meta') { @@ -122,7 +122,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\Meta::class] = new Router\Get\Meta($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Meta::class]->get($params); + return $this->router[Router\Get\Meta::class]->Get($params); } } elseif ($pathChunks[1] === 'notifications') { if ($call === 'GET /notifications') { @@ -131,7 +131,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\Activity::class] = new Router\Get\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Activity::class]->listNotificationsForAuthenticatedUser($params); + return $this->router[Router\Get\Activity::class]->ListNotificationsForAuthenticatedUser($params); } } elseif ($pathChunks[1] === 'octocat') { if ($call === 'GET /octocat') { @@ -140,7 +140,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\Meta::class] = new Router\Get\Meta($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Meta::class]->getOctocat($params); + return $this->router[Router\Get\Meta::class]->GetOctocat($params); } } elseif ($pathChunks[1] === 'organizations') { if ($call === 'GET /organizations') { @@ -149,7 +149,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\Orgs::class] = new Router\Get\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Orgs::class]->list_($params); + return $this->router[Router\Get\Orgs::class]->List($params); } } elseif ($pathChunks[1] === 'rate_limit') { if ($call === 'GET /rate_limit') { @@ -158,7 +158,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\RateLimit::class] = new Router\Get\RateLimit($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\RateLimit::class]->get($params); + return $this->router[Router\Get\RateLimit::class]->Get($params); } } elseif ($pathChunks[1] === 'repositories') { if ($call === 'GET /repositories') { @@ -167,7 +167,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->listPublic($params); + return $this->router[Router\Get\Repos::class]->ListPublic($params); } } elseif ($pathChunks[1] === 'user') { if ($call === 'GET /user') { @@ -176,7 +176,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->getAuthenticated($params); + return $this->router[Router\Get\Users::class]->GetAuthenticated($params); } } elseif ($pathChunks[1] === 'users') { if ($call === 'GET /users') { @@ -185,7 +185,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\Users::class] = new Router\Get\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Users::class]->list_($params); + return $this->router[Router\Get\Users::class]->List($params); } } elseif ($pathChunks[1] === 'zen') { if ($call === 'GET /zen') { @@ -194,7 +194,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Get\Meta::class] = new Router\Get\Meta($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Meta::class]->getZen($params); + return $this->router[Router\Get\Meta::class]->GetZen($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Get/Users.php b/clients/GitHubEnterprise-3.4/src/Router/Get/Users.php index f24186aefd9..49ee5fb3262 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Get/Users.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Get/Users.php @@ -30,7 +30,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listEmailsForAuthenticatedUser(array $params): iterable { $matched = true; @@ -56,7 +56,7 @@ public function listEmailsForAuthenticatedUser(array $params): iterable return $operator->call($arguments['per_page'], $arguments['page']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listFollowersForAuthenticatedUser(array $params): iterable { $matched = true; @@ -82,7 +82,7 @@ public function listFollowersForAuthenticatedUser(array $params): iterable return $operator->call($arguments['per_page'], $arguments['page']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listFollowedByAuthenticatedUser(array $params): iterable { $matched = true; @@ -108,7 +108,7 @@ public function listFollowedByAuthenticatedUser(array $params): iterable return $operator->call($arguments['per_page'], $arguments['page']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listGpgKeysForAuthenticatedUser(array $params): iterable { $matched = true; @@ -134,7 +134,7 @@ public function listGpgKeysForAuthenticatedUser(array $params): iterable return $operator->call($arguments['per_page'], $arguments['page']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listPublicSshKeysForAuthenticatedUser(array $params): iterable { $matched = true; @@ -160,7 +160,7 @@ public function listPublicSshKeysForAuthenticatedUser(array $params): iterable return $operator->call($arguments['per_page'], $arguments['page']); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function listPublicEmailsForAuthenticatedUser(array $params): iterable { $matched = true; @@ -186,7 +186,7 @@ public function listPublicEmailsForAuthenticatedUser(array $params): iterable return $operator->call($arguments['per_page'], $arguments['page']); } - /** @return (Schema\PrivateUser | Schema\PublicUser) */ + /** @return */ public function getByUsername(array $params): PrivateUser|PublicUser|array { $matched = true; @@ -266,7 +266,7 @@ public function getPublicSshKeyForAuthenticatedUser(array $params): Key|array return $operator->call($arguments['key_id']); } - /** @return iterable */ + /** @return Observable */ public function listFollowersForUser(array $params): iterable { $matched = true; @@ -298,7 +298,7 @@ public function listFollowersForUser(array $params): iterable return $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listFollowingForUser(array $params): iterable { $matched = true; @@ -330,7 +330,7 @@ public function listFollowingForUser(array $params): iterable return $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function listGpgKeysForUser(array $params): iterable { $matched = true; @@ -394,7 +394,7 @@ public function getContextForUser(array $params): Hovercard|array return $operator->call($arguments['username'], $arguments['subject_type'], $arguments['subject_id']); } - /** @return iterable */ + /** @return Observable */ public function listPublicKeysForUser(array $params): iterable { $matched = true; @@ -439,8 +439,8 @@ public function getAuthenticated(array $params): PrivateUser|PublicUser|array return $operator->call(); } - /** @return (iterable | array{code: int}) */ - public function list_(array $params): iterable + /** @return (Observable | array{code: int}) */ + public function list(array $params): iterable { $matched = true; $arguments = []; diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Activity.php b/clients/GitHubEnterprise-3.4/src/Router/List/Activity.php new file mode 100644 index 00000000000..3fabf6e2b3a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Activity.php @@ -0,0 +1,665 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return (iterable | array{code: int}) */ + public function listReposStarredByAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\Starred::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\Starred::class] = $this->hydrators->getObjectMapperOperation🌀User🌀Starred(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Activity\ListReposStarredByAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\Starred::class]); + $items = $operator->call($arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listWatchedReposForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\Subscriptions::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\Subscriptions::class] = $this->hydrators->getObjectMapperOperation🌀User🌀Subscriptions(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Activity\ListWatchedReposForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\Subscriptions::class]); + $items = $operator->call($arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listPublicEventsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Events::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Events::class] = $this->hydrators->getObjectMapperOperation🌀Events(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Activity\ListPublicEventsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Events::class]); + $items = $operator->call($arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listNotificationsForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('before', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: before'); + } + + $arguments['before'] = $params['before']; + unset($params['before']); + if (array_key_exists('all', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: all'); + } + + $arguments['all'] = $params['all']; + unset($params['all']); + if (array_key_exists('participating', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: participating'); + } + + $arguments['participating'] = $params['participating']; + unset($params['participating']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists(Hydrator\Operation\Notifications::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Notifications::class] = $this->hydrators->getObjectMapperOperation🌀Notifications(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Activity\ListNotificationsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Notifications::class]); + $items = $operator->call($arguments['since'], $arguments['before'], $arguments['all'], $arguments['participating'], $arguments['page'], $arguments['per_page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listPublicOrgEventsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Events::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Events::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Events(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Activity\ListPublicOrgEventsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Events::class]); + $items = $operator->call($arguments['org'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listEventsForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); + } + + $arguments['username'] = $params['username']; + unset($params['username']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Users\Username\Events::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Users\Username\Events::class] = $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Events(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Activity\ListEventsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Users\Username\Events::class]); + $items = $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listReceivedEventsForUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); + } + + $arguments['username'] = $params['username']; + unset($params['username']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Users\Username\ReceivedEvents::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Users\Username\ReceivedEvents::class] = $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀ReceivedEvents(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Activity\ListReceivedEventsForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Users\Username\ReceivedEvents::class]); + $items = $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listReposWatchedByUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); + } + + $arguments['username'] = $params['username']; + unset($params['username']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Users\Username\Subscriptions::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Users\Username\Subscriptions::class] = $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Subscriptions(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Activity\ListReposWatchedByUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Users\Username\Subscriptions::class]); + $items = $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | Schema\BasicError | array{code: int}) */ + public function listPublicEventsForRepoNetworkListing(array $params): iterable|BasicError + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Networks\Owner\Repo\Events::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Networks\Owner\Repo\Events::class] = $this->hydrators->getObjectMapperOperation🌀Networks🌀Owner🌀Repo🌀Events(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Activity\ListPublicEventsForRepoNetworkListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Networks\Owner\Repo\Events::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listRepoEventsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Events::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Events::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Events(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Activity\ListRepoEventsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Events::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listRepoNotificationsForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('before', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: before'); + } + + $arguments['before'] = $params['before']; + unset($params['before']); + if (array_key_exists('all', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: all'); + } + + $arguments['all'] = $params['all']; + unset($params['all']); + if (array_key_exists('participating', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: participating'); + } + + $arguments['participating'] = $params['participating']; + unset($params['participating']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Notifications::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Notifications::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Notifications(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Activity\ListRepoNotificationsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Notifications::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['since'], $arguments['before'], $arguments['all'], $arguments['participating'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listWatchersForRepoListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Subscribers::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Subscribers::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Subscribers(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Activity\ListWatchersForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Subscribers::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listPublicEventsForUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); + } + + $arguments['username'] = $params['username']; + unset($params['username']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Users\Username\Events\Public_::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Users\Username\Events\Public_::class] = $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Events🌀Public_(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Activity\ListPublicEventsForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Users\Username\Events\Public_::class]); + $items = $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listReceivedPublicEventsForUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); + } + + $arguments['username'] = $params['username']; + unset($params['username']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Users\Username\ReceivedEvents\Public_::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Users\Username\ReceivedEvents\Public_::class] = $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀ReceivedEvents🌀Public_(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Activity\ListReceivedPublicEventsForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Users\Username\ReceivedEvents\Public_::class]); + $items = $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listOrgEventsForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); + } + + $arguments['username'] = $params['username']; + unset($params['username']); + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Users\Username\Events\Orgs\Org::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Users\Username\Events\Orgs\Org::class] = $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Events🌀Orgs🌀Org(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Activity\ListOrgEventsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Users\Username\Events\Orgs\Org::class]); + $items = $operator->call($arguments['username'], $arguments['org'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Apps.php b/clients/GitHubEnterprise-3.4/src/Router/List/Apps.php new file mode 100644 index 00000000000..786824727b8 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Apps.php @@ -0,0 +1,104 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return (iterable | array{code: int}) */ + public function listInstallationRequestsForAuthenticatedAppListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\App\InstallationRequests::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\App\InstallationRequests::class] = $this->hydrators->getObjectMapperOperation🌀App🌀InstallationRequests(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Apps\ListInstallationRequestsForAuthenticatedAppListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\App\InstallationRequests::class]); + $items = $operator->call($arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listInstallationsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('outdated', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: outdated'); + } + + $arguments['outdated'] = $params['outdated']; + unset($params['outdated']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\App\Installations::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\App\Installations::class] = $this->hydrators->getObjectMapperOperation🌀App🌀Installations(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Apps\ListInstallationsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\App\Installations::class]); + $items = $operator->call($arguments['since'], $arguments['outdated'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Checks.php b/clients/GitHubEnterprise-3.4/src/Router/List/Checks.php new file mode 100644 index 00000000000..bfb6d24925e --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Checks.php @@ -0,0 +1,78 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return iterable */ + public function listAnnotationsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('check_run_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: check_run_id'); + } + + $arguments['check_run_id'] = $params['check_run_id']; + unset($params['check_run_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\CheckRuns\CheckRunId\Annotations::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\CheckRuns\CheckRunId\Annotations::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CheckRuns🌀CheckRunId🌀Annotations(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Checks\ListAnnotationsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\CheckRuns\CheckRunId\Annotations::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['check_run_id'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/CodeScanning.php b/clients/GitHubEnterprise-3.4/src/Router/List/CodeScanning.php new file mode 100644 index 00000000000..3d1e581a169 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/CodeScanning.php @@ -0,0 +1,232 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return (iterable | array{code: int}) */ + public function listAlertsForRepoListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('tool_name', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: tool_name'); + } + + $arguments['tool_name'] = $params['tool_name']; + unset($params['tool_name']); + if (array_key_exists('tool_guid', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: tool_guid'); + } + + $arguments['tool_guid'] = $params['tool_guid']; + unset($params['tool_guid']); + if (array_key_exists('ref', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: ref'); + } + + $arguments['ref'] = $params['ref']; + unset($params['ref']); + if (array_key_exists('state', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: state'); + } + + $arguments['state'] = $params['state']; + unset($params['state']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Alerts(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\CodeScanning\ListAlertsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['state'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listRecentAnalysesListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('tool_name', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: tool_name'); + } + + $arguments['tool_name'] = $params['tool_name']; + unset($params['tool_name']); + if (array_key_exists('tool_guid', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: tool_guid'); + } + + $arguments['tool_guid'] = $params['tool_guid']; + unset($params['tool_guid']); + if (array_key_exists('ref', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: ref'); + } + + $arguments['ref'] = $params['ref']; + unset($params['ref']); + if (array_key_exists('sarif_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sarif_id'); + } + + $arguments['sarif_id'] = $params['sarif_id']; + unset($params['sarif_id']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Analyses::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Analyses::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Analyses(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\CodeScanning\ListRecentAnalysesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Analyses::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['sarif_id'], $arguments['page'], $arguments['per_page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listAlertInstancesListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('alert_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: alert_number'); + } + + $arguments['alert_number'] = $params['alert_number']; + unset($params['alert_number']); + if (array_key_exists('ref', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: ref'); + } + + $arguments['ref'] = $params['ref']; + unset($params['ref']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts\AlertNumber\Instances::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts\AlertNumber\Instances::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Alerts🌀AlertNumber🌀Instances(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\CodeScanning\ListAlertInstancesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts\AlertNumber\Instances::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['alert_number'], $arguments['ref'], $arguments['page'], $arguments['per_page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Eight.php b/clients/GitHubEnterprise-3.4/src/Router/List/Eight.php new file mode 100644 index 00000000000..08cced7c8d4 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Eight.php @@ -0,0 +1,154 @@ +|iterable|iterable|(iterable|array{code: int}) */ + public function call(string $call, array $params, array $pathChunks): iterable + { + $matched = false; + if ($pathChunks[0] === '') { + if ($pathChunks[1] === 'orgs') { + if ($pathChunks[2] === '{org}') { + if ($pathChunks[3] === 'teams') { + if ($pathChunks[4] === '{team_slug}') { + if ($pathChunks[5] === 'discussions') { + if ($pathChunks[6] === '{discussion_number}') { + if ($pathChunks[7] === 'comments') { + if ($call === 'LIST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments') { + $matched = true; + if (array_key_exists(Router\List\Teams::class, $this->router) === false) { + $this->router[Router\List\Teams::class] = new Router\List\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Teams::class]->ListDiscussionCommentsInOrgListing($params); + } + } elseif ($pathChunks[7] === 'reactions') { + if ($call === 'LIST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions') { + $matched = true; + if (array_key_exists(Router\List\Reactions::class, $this->router) === false) { + $this->router[Router\List\Reactions::class] = new Router\List\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Reactions::class]->ListForTeamDiscussionInOrgListing($params); + } + } + } + } + } + } + } + } elseif ($pathChunks[1] === 'repos') { + if ($pathChunks[2] === '{owner}') { + if ($pathChunks[3] === '{repo}') { + if ($pathChunks[4] === 'code-scanning') { + if ($pathChunks[5] === 'alerts') { + if ($pathChunks[6] === '{alert_number}') { + if ($pathChunks[7] === 'instances') { + if ($call === 'LIST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances') { + $matched = true; + if (array_key_exists(Router\List\CodeScanning::class, $this->router) === false) { + $this->router[Router\List\CodeScanning::class] = new Router\List\CodeScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\CodeScanning::class]->ListAlertInstancesListing($params); + } + } + } + } + } elseif ($pathChunks[4] === 'issues') { + if ($pathChunks[5] === 'comments') { + if ($pathChunks[6] === '{comment_id}') { + if ($pathChunks[7] === 'reactions') { + if ($call === 'LIST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions') { + $matched = true; + if (array_key_exists(Router\List\Reactions::class, $this->router) === false) { + $this->router[Router\List\Reactions::class] = new Router\List\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Reactions::class]->ListForIssueCommentListing($params); + } + } + } + } + } elseif ($pathChunks[4] === 'pulls') { + if ($pathChunks[5] === 'comments') { + if ($pathChunks[6] === '{comment_id}') { + if ($pathChunks[7] === 'reactions') { + if ($call === 'LIST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions') { + $matched = true; + if (array_key_exists(Router\List\Reactions::class, $this->router) === false) { + $this->router[Router\List\Reactions::class] = new Router\List\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Reactions::class]->ListForPullRequestReviewCommentListing($params); + } + } + } + } + } elseif ($pathChunks[4] === 'secret-scanning') { + if ($pathChunks[5] === 'alerts') { + if ($pathChunks[6] === '{alert_number}') { + if ($pathChunks[7] === 'locations') { + if ($call === 'LIST /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations') { + $matched = true; + if (array_key_exists(Router\List\SecretScanning::class, $this->router) === false) { + $this->router[Router\List\SecretScanning::class] = new Router\List\SecretScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\SecretScanning::class]->ListLocationsForAlertListing($params); + } + } + } + } + } + } + } + } elseif ($pathChunks[1] === 'teams') { + if ($pathChunks[2] === '{team_id}') { + if ($pathChunks[3] === 'discussions') { + if ($pathChunks[4] === '{discussion_number}') { + if ($pathChunks[5] === 'comments') { + if ($pathChunks[6] === '{comment_number}') { + if ($pathChunks[7] === 'reactions') { + if ($call === 'LIST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions') { + $matched = true; + if (array_key_exists(Router\List\Reactions::class, $this->router) === false) { + $this->router[Router\List\Reactions::class] = new Router\List\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Reactions::class]->ListForTeamDiscussionCommentLegacyListing($params); + } + } + } + } + } + } + } + } + } + + if ($matched === false) { + throw new InvalidArgumentException(); + } + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/EnterpriseAdmin.php b/clients/GitHubEnterprise-3.4/src/Router/List/EnterpriseAdmin.php new file mode 100644 index 00000000000..ef9b98245b1 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/EnterpriseAdmin.php @@ -0,0 +1,404 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return iterable */ + public function listGlobalWebhooksListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Admin\Hooks::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Admin\Hooks::class] = $this->hydrators->getObjectMapperOperation🌀Admin🌀Hooks(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\EnterpriseAdmin\ListGlobalWebhooksListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Admin\Hooks::class]); + $items = $operator->call($arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listPublicKeysListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists(Hydrator\Operation\Admin\Keys::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Admin\Keys::class] = $this->hydrators->getObjectMapperOperation🌀Admin🌀Keys(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\EnterpriseAdmin\ListPublicKeysListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Admin\Keys::class]); + $items = $operator->call($arguments['since'], $arguments['per_page'], $arguments['page'], $arguments['direction'], $arguments['sort']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listPreReceiveEnvironmentsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists(Hydrator\Operation\Admin\PreReceiveEnvironments::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Admin\PreReceiveEnvironments::class] = $this->hydrators->getObjectMapperOperation🌀Admin🌀PreReceiveEnvironments(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\EnterpriseAdmin\ListPreReceiveEnvironmentsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Admin\PreReceiveEnvironments::class]); + $items = $operator->call($arguments['per_page'], $arguments['page'], $arguments['direction'], $arguments['sort']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listPreReceiveHooksListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists(Hydrator\Operation\Admin\PreReceiveHooks::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Admin\PreReceiveHooks::class] = $this->hydrators->getObjectMapperOperation🌀Admin🌀PreReceiveHooks(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\EnterpriseAdmin\ListPreReceiveHooksListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Admin\PreReceiveHooks::class]); + $items = $operator->call($arguments['per_page'], $arguments['page'], $arguments['direction'], $arguments['sort']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listPersonalAccessTokensListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Admin\Tokens::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Admin\Tokens::class] = $this->hydrators->getObjectMapperOperation🌀Admin🌀Tokens(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\EnterpriseAdmin\ListPersonalAccessTokensListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Admin\Tokens::class]); + $items = $operator->call($arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function getAuditLogListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('enterprise', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: enterprise'); + } + + $arguments['enterprise'] = $params['enterprise']; + unset($params['enterprise']); + if (array_key_exists('phrase', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: phrase'); + } + + $arguments['phrase'] = $params['phrase']; + unset($params['phrase']); + if (array_key_exists('include', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: include'); + } + + $arguments['include'] = $params['include']; + unset($params['include']); + if (array_key_exists('after', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: after'); + } + + $arguments['after'] = $params['after']; + unset($params['after']); + if (array_key_exists('before', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: before'); + } + + $arguments['before'] = $params['before']; + unset($params['before']); + if (array_key_exists('order', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: order'); + } + + $arguments['order'] = $params['order']; + unset($params['order']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists(Hydrator\Operation\Enterprises\Enterprise\AuditLog::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Enterprises\Enterprise\AuditLog::class] = $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀AuditLog(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\EnterpriseAdmin\GetAuditLogListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Enterprises\Enterprise\AuditLog::class]); + $items = $operator->call($arguments['enterprise'], $arguments['phrase'], $arguments['include'], $arguments['after'], $arguments['before'], $arguments['order'], $arguments['page'], $arguments['per_page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listPreReceiveHooksForOrgListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\PreReceiveHooks::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\PreReceiveHooks::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀PreReceiveHooks(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\EnterpriseAdmin\ListPreReceiveHooksForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\PreReceiveHooks::class]); + $items = $operator->call($arguments['org'], $arguments['per_page'], $arguments['page'], $arguments['direction'], $arguments['sort']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listPreReceiveHooksForRepoListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\PreReceiveHooks::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\PreReceiveHooks::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀PreReceiveHooks(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\EnterpriseAdmin\ListPreReceiveHooksForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\PreReceiveHooks::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page'], $arguments['direction'], $arguments['sort']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Five.php b/clients/GitHubEnterprise-3.4/src/Router/List/Five.php new file mode 100644 index 00000000000..f32885e4140 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Five.php @@ -0,0 +1,336 @@ +|Schema\BasicError|array{code: int})|iterable|(iterable|iterable|iterable|iterable|iterable|iterable|(iterable|iterable|iterable|iterable|iterable|iterable|(iterable|Schema\BasicError)|iterable|iterable|iterable|iterable|iterable|iterable|(iterable|iterable|iterable|iterable */ + public function call(string $call, array $params, array $pathChunks): iterable|BasicError + { + $matched = false; + if ($pathChunks[0] === '') { + if ($pathChunks[1] === 'networks') { + if ($pathChunks[2] === '{owner}') { + if ($pathChunks[3] === '{repo}') { + if ($pathChunks[4] === 'events') { + if ($call === 'LIST /networks/{owner}/{repo}/events') { + $matched = true; + if (array_key_exists(Router\List\Activity::class, $this->router) === false) { + $this->router[Router\List\Activity::class] = new Router\List\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Activity::class]->ListPublicEventsForRepoNetworkListing($params); + } + } + } + } + } elseif ($pathChunks[1] === 'orgs') { + if ($pathChunks[2] === '{org}') { + if ($pathChunks[3] === 'secret-scanning') { + if ($pathChunks[4] === 'alerts') { + if ($call === 'LIST /orgs/{org}/secret-scanning/alerts') { + $matched = true; + if (array_key_exists(Router\List\SecretScanning::class, $this->router) === false) { + $this->router[Router\List\SecretScanning::class] = new Router\List\SecretScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\SecretScanning::class]->ListAlertsForOrgListing($params); + } + } + } + } + } elseif ($pathChunks[1] === 'projects') { + if ($pathChunks[2] === 'columns') { + if ($pathChunks[3] === '{column_id}') { + if ($pathChunks[4] === 'cards') { + if ($call === 'LIST /projects/columns/{column_id}/cards') { + $matched = true; + if (array_key_exists(Router\List\Projects::class, $this->router) === false) { + $this->router[Router\List\Projects::class] = new Router\List\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Projects::class]->ListCardsListing($params); + } + } + } + } + } elseif ($pathChunks[1] === 'repos') { + if ($pathChunks[2] === '{owner}') { + if ($pathChunks[3] === '{repo}') { + if ($pathChunks[4] === 'assignees') { + if ($call === 'LIST /repos/{owner}/{repo}/assignees') { + $matched = true; + if (array_key_exists(Router\List\Issues::class, $this->router) === false) { + $this->router[Router\List\Issues::class] = new Router\List\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Issues::class]->ListAssigneesListing($params); + } + } elseif ($pathChunks[4] === 'branches') { + if ($call === 'LIST /repos/{owner}/{repo}/branches') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListBranchesListing($params); + } + } elseif ($pathChunks[4] === 'collaborators') { + if ($call === 'LIST /repos/{owner}/{repo}/collaborators') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListCollaboratorsListing($params); + } + } elseif ($pathChunks[4] === 'comments') { + if ($call === 'LIST /repos/{owner}/{repo}/comments') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListCommitCommentsForRepoListing($params); + } + } elseif ($pathChunks[4] === 'commits') { + if ($call === 'LIST /repos/{owner}/{repo}/commits') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListCommitsListing($params); + } + } elseif ($pathChunks[4] === 'contributors') { + if ($call === 'LIST /repos/{owner}/{repo}/contributors') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListContributorsListing($params); + } + } elseif ($pathChunks[4] === 'deployments') { + if ($call === 'LIST /repos/{owner}/{repo}/deployments') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListDeploymentsListing($params); + } + } elseif ($pathChunks[4] === 'events') { + if ($call === 'LIST /repos/{owner}/{repo}/events') { + $matched = true; + if (array_key_exists(Router\List\Activity::class, $this->router) === false) { + $this->router[Router\List\Activity::class] = new Router\List\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Activity::class]->ListRepoEventsListing($params); + } + } elseif ($pathChunks[4] === 'forks') { + if ($call === 'LIST /repos/{owner}/{repo}/forks') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListForksListing($params); + } + } elseif ($pathChunks[4] === 'hooks') { + if ($call === 'LIST /repos/{owner}/{repo}/hooks') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListWebhooksListing($params); + } + } elseif ($pathChunks[4] === 'invitations') { + if ($call === 'LIST /repos/{owner}/{repo}/invitations') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListInvitationsListing($params); + } + } elseif ($pathChunks[4] === 'issues') { + if ($call === 'LIST /repos/{owner}/{repo}/issues') { + $matched = true; + if (array_key_exists(Router\List\Issues::class, $this->router) === false) { + $this->router[Router\List\Issues::class] = new Router\List\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Issues::class]->ListForRepoListing($params); + } + } elseif ($pathChunks[4] === 'keys') { + if ($call === 'LIST /repos/{owner}/{repo}/keys') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListDeployKeysListing($params); + } + } elseif ($pathChunks[4] === 'labels') { + if ($call === 'LIST /repos/{owner}/{repo}/labels') { + $matched = true; + if (array_key_exists(Router\List\Issues::class, $this->router) === false) { + $this->router[Router\List\Issues::class] = new Router\List\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Issues::class]->ListLabelsForRepoListing($params); + } + } elseif ($pathChunks[4] === 'milestones') { + if ($call === 'LIST /repos/{owner}/{repo}/milestones') { + $matched = true; + if (array_key_exists(Router\List\Issues::class, $this->router) === false) { + $this->router[Router\List\Issues::class] = new Router\List\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Issues::class]->ListMilestonesListing($params); + } + } elseif ($pathChunks[4] === 'notifications') { + if ($call === 'LIST /repos/{owner}/{repo}/notifications') { + $matched = true; + if (array_key_exists(Router\List\Activity::class, $this->router) === false) { + $this->router[Router\List\Activity::class] = new Router\List\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Activity::class]->ListRepoNotificationsForAuthenticatedUserListing($params); + } + } elseif ($pathChunks[4] === 'pre-receive-hooks') { + if ($call === 'LIST /repos/{owner}/{repo}/pre-receive-hooks') { + $matched = true; + if (array_key_exists(Router\List\EnterpriseAdmin::class, $this->router) === false) { + $this->router[Router\List\EnterpriseAdmin::class] = new Router\List\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\EnterpriseAdmin::class]->ListPreReceiveHooksForRepoListing($params); + } + } elseif ($pathChunks[4] === 'projects') { + if ($call === 'LIST /repos/{owner}/{repo}/projects') { + $matched = true; + if (array_key_exists(Router\List\Projects::class, $this->router) === false) { + $this->router[Router\List\Projects::class] = new Router\List\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Projects::class]->ListForRepoListing($params); + } + } elseif ($pathChunks[4] === 'pulls') { + if ($call === 'LIST /repos/{owner}/{repo}/pulls') { + $matched = true; + if (array_key_exists(Router\List\Pulls::class, $this->router) === false) { + $this->router[Router\List\Pulls::class] = new Router\List\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Pulls::class]->ListListing($params); + } + } elseif ($pathChunks[4] === 'releases') { + if ($call === 'LIST /repos/{owner}/{repo}/releases') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListReleasesListing($params); + } + } elseif ($pathChunks[4] === 'subscribers') { + if ($call === 'LIST /repos/{owner}/{repo}/subscribers') { + $matched = true; + if (array_key_exists(Router\List\Activity::class, $this->router) === false) { + $this->router[Router\List\Activity::class] = new Router\List\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Activity::class]->ListWatchersForRepoListing($params); + } + } elseif ($pathChunks[4] === 'tags') { + if ($call === 'LIST /repos/{owner}/{repo}/tags') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListTagsListing($params); + } + } elseif ($pathChunks[4] === 'teams') { + if ($call === 'LIST /repos/{owner}/{repo}/teams') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListTeamsListing($params); + } + } + } + } + } elseif ($pathChunks[1] === 'user') { + if ($pathChunks[2] === 'migrations') { + if ($pathChunks[3] === '{migration_id}') { + if ($pathChunks[4] === 'repositories') { + if ($call === 'LIST /user/migrations/{migration_id}/repositories') { + $matched = true; + if (array_key_exists(Router\List\Migrations::class, $this->router) === false) { + $this->router[Router\List\Migrations::class] = new Router\List\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Migrations::class]->ListReposForAuthenticatedUserListing($params); + } + } + } + } + } elseif ($pathChunks[1] === 'users') { + if ($pathChunks[2] === '{username}') { + if ($pathChunks[3] === 'events') { + if ($pathChunks[4] === 'public') { + if ($call === 'LIST /users/{username}/events/public') { + $matched = true; + if (array_key_exists(Router\List\Activity::class, $this->router) === false) { + $this->router[Router\List\Activity::class] = new Router\List\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Activity::class]->ListPublicEventsForUserListing($params); + } + } + } elseif ($pathChunks[3] === 'received_events') { + if ($pathChunks[4] === 'public') { + if ($call === 'LIST /users/{username}/received_events/public') { + $matched = true; + if (array_key_exists(Router\List\Activity::class, $this->router) === false) { + $this->router[Router\List\Activity::class] = new Router\List\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Activity::class]->ListReceivedPublicEventsForUserListing($params); + } + } + } + } + } + } + + if ($matched === false) { + throw new InvalidArgumentException(); + } + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Four.php b/clients/GitHubEnterprise-3.4/src/Router/List/Four.php new file mode 100644 index 00000000000..433682f9b13 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Four.php @@ -0,0 +1,379 @@ +|(iterable|array{code: int})|(iterable|(iterable|iterable|iterable|iterable|iterable|iterable|iterable|iterable|iterable|iterable|(iterable|(iterable|iterable|iterable|(iterable|iterable|iterable|iterable|iterable */ + public function call(string $call, array $params, array $pathChunks): iterable + { + $matched = false; + if ($pathChunks[0] === '') { + if ($pathChunks[1] === 'enterprises') { + if ($pathChunks[2] === '{enterprise}') { + if ($pathChunks[3] === 'audit-log') { + if ($call === 'LIST /enterprises/{enterprise}/audit-log') { + $matched = true; + if (array_key_exists(Router\List\EnterpriseAdmin::class, $this->router) === false) { + $this->router[Router\List\EnterpriseAdmin::class] = new Router\List\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\EnterpriseAdmin::class]->GetAuditLogListing($params); + } + } + } + } elseif ($pathChunks[1] === 'gists') { + if ($pathChunks[2] === '{gist_id}') { + if ($pathChunks[3] === 'comments') { + if ($call === 'LIST /gists/{gist_id}/comments') { + $matched = true; + if (array_key_exists(Router\List\Gists::class, $this->router) === false) { + $this->router[Router\List\Gists::class] = new Router\List\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Gists::class]->ListCommentsListing($params); + } + } elseif ($pathChunks[3] === 'commits') { + if ($call === 'LIST /gists/{gist_id}/commits') { + $matched = true; + if (array_key_exists(Router\List\Gists::class, $this->router) === false) { + $this->router[Router\List\Gists::class] = new Router\List\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Gists::class]->ListCommitsListing($params); + } + } elseif ($pathChunks[3] === 'forks') { + if ($call === 'LIST /gists/{gist_id}/forks') { + $matched = true; + if (array_key_exists(Router\List\Gists::class, $this->router) === false) { + $this->router[Router\List\Gists::class] = new Router\List\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Gists::class]->ListForksListing($params); + } + } + } + } elseif ($pathChunks[1] === 'orgs') { + if ($pathChunks[2] === '{org}') { + if ($pathChunks[3] === 'audit-log') { + if ($call === 'LIST /orgs/{org}/audit-log') { + $matched = true; + if (array_key_exists(Router\List\Orgs::class, $this->router) === false) { + $this->router[Router\List\Orgs::class] = new Router\List\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Orgs::class]->GetAuditLogListing($params); + } + } elseif ($pathChunks[3] === 'events') { + if ($call === 'LIST /orgs/{org}/events') { + $matched = true; + if (array_key_exists(Router\List\Activity::class, $this->router) === false) { + $this->router[Router\List\Activity::class] = new Router\List\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Activity::class]->ListPublicOrgEventsListing($params); + } + } elseif ($pathChunks[3] === 'hooks') { + if ($call === 'LIST /orgs/{org}/hooks') { + $matched = true; + if (array_key_exists(Router\List\Orgs::class, $this->router) === false) { + $this->router[Router\List\Orgs::class] = new Router\List\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Orgs::class]->ListWebhooksListing($params); + } + } elseif ($pathChunks[3] === 'issues') { + if ($call === 'LIST /orgs/{org}/issues') { + $matched = true; + if (array_key_exists(Router\List\Issues::class, $this->router) === false) { + $this->router[Router\List\Issues::class] = new Router\List\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Issues::class]->ListForOrgListing($params); + } + } elseif ($pathChunks[3] === 'members') { + if ($call === 'LIST /orgs/{org}/members') { + $matched = true; + if (array_key_exists(Router\List\Orgs::class, $this->router) === false) { + $this->router[Router\List\Orgs::class] = new Router\List\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Orgs::class]->ListMembersListing($params); + } + } elseif ($pathChunks[3] === 'migrations') { + if ($call === 'LIST /orgs/{org}/migrations') { + $matched = true; + if (array_key_exists(Router\List\Migrations::class, $this->router) === false) { + $this->router[Router\List\Migrations::class] = new Router\List\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Migrations::class]->ListForOrgListing($params); + } + } elseif ($pathChunks[3] === 'outside_collaborators') { + if ($call === 'LIST /orgs/{org}/outside_collaborators') { + $matched = true; + if (array_key_exists(Router\List\Orgs::class, $this->router) === false) { + $this->router[Router\List\Orgs::class] = new Router\List\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Orgs::class]->ListOutsideCollaboratorsListing($params); + } + } elseif ($pathChunks[3] === 'pre-receive-hooks') { + if ($call === 'LIST /orgs/{org}/pre-receive-hooks') { + $matched = true; + if (array_key_exists(Router\List\EnterpriseAdmin::class, $this->router) === false) { + $this->router[Router\List\EnterpriseAdmin::class] = new Router\List\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\EnterpriseAdmin::class]->ListPreReceiveHooksForOrgListing($params); + } + } elseif ($pathChunks[3] === 'projects') { + if ($call === 'LIST /orgs/{org}/projects') { + $matched = true; + if (array_key_exists(Router\List\Projects::class, $this->router) === false) { + $this->router[Router\List\Projects::class] = new Router\List\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Projects::class]->ListForOrgListing($params); + } + } elseif ($pathChunks[3] === 'public_members') { + if ($call === 'LIST /orgs/{org}/public_members') { + $matched = true; + if (array_key_exists(Router\List\Orgs::class, $this->router) === false) { + $this->router[Router\List\Orgs::class] = new Router\List\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Orgs::class]->ListPublicMembersListing($params); + } + } elseif ($pathChunks[3] === 'repos') { + if ($call === 'LIST /orgs/{org}/repos') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListForOrgListing($params); + } + } elseif ($pathChunks[3] === 'teams') { + if ($call === 'LIST /orgs/{org}/teams') { + $matched = true; + if (array_key_exists(Router\List\Teams::class, $this->router) === false) { + $this->router[Router\List\Teams::class] = new Router\List\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Teams::class]->ListListing($params); + } + } + } + } elseif ($pathChunks[1] === 'projects') { + if ($pathChunks[2] === '{project_id}') { + if ($pathChunks[3] === 'collaborators') { + if ($call === 'LIST /projects/{project_id}/collaborators') { + $matched = true; + if (array_key_exists(Router\List\Projects::class, $this->router) === false) { + $this->router[Router\List\Projects::class] = new Router\List\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Projects::class]->ListCollaboratorsListing($params); + } + } elseif ($pathChunks[3] === 'columns') { + if ($call === 'LIST /projects/{project_id}/columns') { + $matched = true; + if (array_key_exists(Router\List\Projects::class, $this->router) === false) { + $this->router[Router\List\Projects::class] = new Router\List\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Projects::class]->ListColumnsListing($params); + } + } + } + } elseif ($pathChunks[1] === 'teams') { + if ($pathChunks[2] === '{team_id}') { + if ($pathChunks[3] === 'discussions') { + if ($call === 'LIST /teams/{team_id}/discussions') { + $matched = true; + if (array_key_exists(Router\List\Teams::class, $this->router) === false) { + $this->router[Router\List\Teams::class] = new Router\List\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Teams::class]->ListDiscussionsLegacyListing($params); + } + } elseif ($pathChunks[3] === 'members') { + if ($call === 'LIST /teams/{team_id}/members') { + $matched = true; + if (array_key_exists(Router\List\Teams::class, $this->router) === false) { + $this->router[Router\List\Teams::class] = new Router\List\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Teams::class]->ListMembersLegacyListing($params); + } + } elseif ($pathChunks[3] === 'projects') { + if ($call === 'LIST /teams/{team_id}/projects') { + $matched = true; + if (array_key_exists(Router\List\Teams::class, $this->router) === false) { + $this->router[Router\List\Teams::class] = new Router\List\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Teams::class]->ListProjectsLegacyListing($params); + } + } elseif ($pathChunks[3] === 'repos') { + if ($call === 'LIST /teams/{team_id}/repos') { + $matched = true; + if (array_key_exists(Router\List\Teams::class, $this->router) === false) { + $this->router[Router\List\Teams::class] = new Router\List\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Teams::class]->ListReposLegacyListing($params); + } + } elseif ($pathChunks[3] === 'teams') { + if ($call === 'LIST /teams/{team_id}/teams') { + $matched = true; + if (array_key_exists(Router\List\Teams::class, $this->router) === false) { + $this->router[Router\List\Teams::class] = new Router\List\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Teams::class]->ListChildLegacyListing($params); + } + } + } + } elseif ($pathChunks[1] === 'user') { + if ($pathChunks[2] === 'memberships') { + if ($pathChunks[3] === 'orgs') { + if ($call === 'LIST /user/memberships/orgs') { + $matched = true; + if (array_key_exists(Router\List\Orgs::class, $this->router) === false) { + $this->router[Router\List\Orgs::class] = new Router\List\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Orgs::class]->ListMembershipsForAuthenticatedUserListing($params); + } + } + } + } elseif ($pathChunks[1] === 'users') { + if ($pathChunks[2] === '{username}') { + if ($pathChunks[3] === 'events') { + if ($call === 'LIST /users/{username}/events') { + $matched = true; + if (array_key_exists(Router\List\Activity::class, $this->router) === false) { + $this->router[Router\List\Activity::class] = new Router\List\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Activity::class]->ListEventsForAuthenticatedUserListing($params); + } + } elseif ($pathChunks[3] === 'followers') { + if ($call === 'LIST /users/{username}/followers') { + $matched = true; + if (array_key_exists(Router\List\Users::class, $this->router) === false) { + $this->router[Router\List\Users::class] = new Router\List\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Users::class]->ListFollowersForUserListing($params); + } + } elseif ($pathChunks[3] === 'following') { + if ($call === 'LIST /users/{username}/following') { + $matched = true; + if (array_key_exists(Router\List\Users::class, $this->router) === false) { + $this->router[Router\List\Users::class] = new Router\List\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Users::class]->ListFollowingForUserListing($params); + } + } elseif ($pathChunks[3] === 'gists') { + if ($call === 'LIST /users/{username}/gists') { + $matched = true; + if (array_key_exists(Router\List\Gists::class, $this->router) === false) { + $this->router[Router\List\Gists::class] = new Router\List\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Gists::class]->ListForUserListing($params); + } + } elseif ($pathChunks[3] === 'gpg_keys') { + if ($call === 'LIST /users/{username}/gpg_keys') { + $matched = true; + if (array_key_exists(Router\List\Users::class, $this->router) === false) { + $this->router[Router\List\Users::class] = new Router\List\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Users::class]->ListGpgKeysForUserListing($params); + } + } elseif ($pathChunks[3] === 'keys') { + if ($call === 'LIST /users/{username}/keys') { + $matched = true; + if (array_key_exists(Router\List\Users::class, $this->router) === false) { + $this->router[Router\List\Users::class] = new Router\List\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Users::class]->ListPublicKeysForUserListing($params); + } + } elseif ($pathChunks[3] === 'orgs') { + if ($call === 'LIST /users/{username}/orgs') { + $matched = true; + if (array_key_exists(Router\List\Orgs::class, $this->router) === false) { + $this->router[Router\List\Orgs::class] = new Router\List\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Orgs::class]->ListForUserListing($params); + } + } elseif ($pathChunks[3] === 'projects') { + if ($call === 'LIST /users/{username}/projects') { + $matched = true; + if (array_key_exists(Router\List\Projects::class, $this->router) === false) { + $this->router[Router\List\Projects::class] = new Router\List\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Projects::class]->ListForUserListing($params); + } + } elseif ($pathChunks[3] === 'received_events') { + if ($call === 'LIST /users/{username}/received_events') { + $matched = true; + if (array_key_exists(Router\List\Activity::class, $this->router) === false) { + $this->router[Router\List\Activity::class] = new Router\List\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Activity::class]->ListReceivedEventsForUserListing($params); + } + } elseif ($pathChunks[3] === 'repos') { + if ($call === 'LIST /users/{username}/repos') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListForUserListing($params); + } + } elseif ($pathChunks[3] === 'subscriptions') { + if ($call === 'LIST /users/{username}/subscriptions') { + $matched = true; + if (array_key_exists(Router\List\Activity::class, $this->router) === false) { + $this->router[Router\List\Activity::class] = new Router\List\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Activity::class]->ListReposWatchedByUserListing($params); + } + } + } + } + } + + if ($matched === false) { + throw new InvalidArgumentException(); + } + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Gists.php b/clients/GitHubEnterprise-3.4/src/Router/List/Gists.php new file mode 100644 index 00000000000..39553f06296 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Gists.php @@ -0,0 +1,300 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return (iterable | array{code: int}) */ + public function listPublicListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Gists\Public_::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Gists\Public_::class] = $this->hydrators->getObjectMapperOperation🌀Gists🌀Public_(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Gists\ListPublicListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Gists\Public_::class]); + $items = $operator->call($arguments['since'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listStarredListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Gists\Starred::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Gists\Starred::class] = $this->hydrators->getObjectMapperOperation🌀Gists🌀Starred(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Gists\ListStarredListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Gists\Starred::class]); + $items = $operator->call($arguments['since'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Gists::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Gists::class] = $this->hydrators->getObjectMapperOperation🌀Gists(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Gists\ListListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Gists::class]); + $items = $operator->call($arguments['since'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listCommentsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('gist_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: gist_id'); + } + + $arguments['gist_id'] = $params['gist_id']; + unset($params['gist_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Gists\GistId\Comments::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Gists\GistId\Comments::class] = $this->hydrators->getObjectMapperOperation🌀Gists🌀GistId🌀Comments(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Gists\ListCommentsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Gists\GistId\Comments::class]); + $items = $operator->call($arguments['gist_id'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listCommitsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('gist_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: gist_id'); + } + + $arguments['gist_id'] = $params['gist_id']; + unset($params['gist_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Gists\GistId\Commits::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Gists\GistId\Commits::class] = $this->hydrators->getObjectMapperOperation🌀Gists🌀GistId🌀Commits(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Gists\ListCommitsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Gists\GistId\Commits::class]); + $items = $operator->call($arguments['gist_id'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listForksListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('gist_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: gist_id'); + } + + $arguments['gist_id'] = $params['gist_id']; + unset($params['gist_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Gists\GistId\Forks::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Gists\GistId\Forks::class] = $this->hydrators->getObjectMapperOperation🌀Gists🌀GistId🌀Forks(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Gists\ListForksListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Gists\GistId\Forks::class]); + $items = $operator->call($arguments['gist_id'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); + } + + $arguments['username'] = $params['username']; + unset($params['username']); + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Users\Username\Gists::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Users\Username\Gists::class] = $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Gists(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Gists\ListForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Users\Username\Gists::class]); + $items = $operator->call($arguments['username'], $arguments['since'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Issues.php b/clients/GitHubEnterprise-3.4/src/Router/List/Issues.php new file mode 100644 index 00000000000..0ac99631e73 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Issues.php @@ -0,0 +1,873 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return (iterable | array{code: int}) */ + public function listForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('labels', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: labels'); + } + + $arguments['labels'] = $params['labels']; + unset($params['labels']); + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('filter', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: filter'); + } + + $arguments['filter'] = $params['filter']; + unset($params['filter']); + if (array_key_exists('state', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: state'); + } + + $arguments['state'] = $params['state']; + unset($params['state']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\Issues::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\Issues::class] = $this->hydrators->getObjectMapperOperation🌀User🌀Issues(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Issues\ListForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\Issues::class]); + $items = $operator->call($arguments['labels'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('labels', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: labels'); + } + + $arguments['labels'] = $params['labels']; + unset($params['labels']); + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('collab', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: collab'); + } + + $arguments['collab'] = $params['collab']; + unset($params['collab']); + if (array_key_exists('orgs', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: orgs'); + } + + $arguments['orgs'] = $params['orgs']; + unset($params['orgs']); + if (array_key_exists('owned', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owned'); + } + + $arguments['owned'] = $params['owned']; + unset($params['owned']); + if (array_key_exists('pulls', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pulls'); + } + + $arguments['pulls'] = $params['pulls']; + unset($params['pulls']); + if (array_key_exists('filter', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: filter'); + } + + $arguments['filter'] = $params['filter']; + unset($params['filter']); + if (array_key_exists('state', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: state'); + } + + $arguments['state'] = $params['state']; + unset($params['state']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Issues::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Issues::class] = $this->hydrators->getObjectMapperOperation🌀Issues(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Issues\ListListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Issues::class]); + $items = $operator->call($arguments['labels'], $arguments['since'], $arguments['collab'], $arguments['orgs'], $arguments['owned'], $arguments['pulls'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForOrgListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('labels', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: labels'); + } + + $arguments['labels'] = $params['labels']; + unset($params['labels']); + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('filter', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: filter'); + } + + $arguments['filter'] = $params['filter']; + unset($params['filter']); + if (array_key_exists('state', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: state'); + } + + $arguments['state'] = $params['state']; + unset($params['state']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Issues::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Issues::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Issues(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Issues\ListForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Issues::class]); + $items = $operator->call($arguments['org'], $arguments['labels'], $arguments['since'], $arguments['filter'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listAssigneesListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Assignees::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Assignees::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Assignees(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Issues\ListAssigneesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Assignees::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | Schema\BasicError) */ + public function listForRepoListing(array $params): iterable|BasicError + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('milestone', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: milestone'); + } + + $arguments['milestone'] = $params['milestone']; + unset($params['milestone']); + if (array_key_exists('assignee', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: assignee'); + } + + $arguments['assignee'] = $params['assignee']; + unset($params['assignee']); + if (array_key_exists('creator', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: creator'); + } + + $arguments['creator'] = $params['creator']; + unset($params['creator']); + if (array_key_exists('mentioned', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: mentioned'); + } + + $arguments['mentioned'] = $params['mentioned']; + unset($params['mentioned']); + if (array_key_exists('labels', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: labels'); + } + + $arguments['labels'] = $params['labels']; + unset($params['labels']); + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('state', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: state'); + } + + $arguments['state'] = $params['state']; + unset($params['state']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Issues::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Issues\ListForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone'], $arguments['assignee'], $arguments['creator'], $arguments['mentioned'], $arguments['labels'], $arguments['since'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listLabelsForRepoListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Labels::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Labels::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Labels(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Issues\ListLabelsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Labels::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listMilestonesListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('state', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: state'); + } + + $arguments['state'] = $params['state']; + unset($params['state']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Milestones::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Milestones::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Milestones(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Issues\ListMilestonesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Milestones::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['state'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listCommentsForRepoListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Issues\Comments::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\Comments::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Issues\ListCommentsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\Comments::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['direction'], $arguments['since'], $arguments['sort'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listEventsForRepoListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Issues\Events::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\Events::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Events(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Issues\ListEventsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\Events::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listCommentsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); + } + + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Comments::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Comments::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Comments(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Issues\ListCommentsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Comments::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['since'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\AssignedIssueEvent | Schema\UnassignedIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent)> */ + public function listEventsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); + } + + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Events::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Events::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Events(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Issues\ListEventsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Events::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | Schema\BasicError) */ + public function listLabelsOnIssueListing(array $params): iterable|BasicError + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); + } + + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Labels::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Labels::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Labels(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Issues\ListLabelsOnIssueListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Labels::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable<(Schema\LabeledIssueEvent | Schema\UnlabeledIssueEvent | Schema\MilestonedIssueEvent | Schema\DemilestonedIssueEvent | Schema\RenamedIssueEvent | Schema\ReviewRequestedIssueEvent | Schema\ReviewRequestRemovedIssueEvent | Schema\ReviewDismissedIssueEvent | Schema\LockedIssueEvent | Schema\AddedToProjectIssueEvent | Schema\MovedColumnInProjectIssueEvent | Schema\RemovedFromProjectIssueEvent | Schema\ConvertedNoteToIssueIssueEvent | Schema\TimelineCommentEvent | Schema\TimelineCrossReferencedEvent | Schema\TimelineCommittedEvent | Schema\TimelineReviewedEvent | Schema\TimelineLineCommentedEvent | Schema\TimelineCommitCommentedEvent | Schema\TimelineAssignedIssueEvent | Schema\TimelineUnassignedIssueEvent | Schema\StateChangeIssueEvent)> */ + public function listEventsForTimelineListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); + } + + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Timeline::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Timeline::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Timeline(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Issues\ListEventsForTimelineListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Timeline::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listLabelsForMilestoneListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('milestone_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: milestone_number'); + } + + $arguments['milestone_number'] = $params['milestone_number']; + unset($params['milestone_number']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Milestones\MilestoneNumber\Labels::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Milestones\MilestoneNumber\Labels::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Milestones🌀MilestoneNumber🌀Labels(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Issues\ListLabelsForMilestoneListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Milestones\MilestoneNumber\Labels::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['milestone_number'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Licenses.php b/clients/GitHubEnterprise-3.4/src/Router/List/Licenses.php new file mode 100644 index 00000000000..f7f10c1ab7a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Licenses.php @@ -0,0 +1,66 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return (iterable | array{code: int}) */ + public function getAllCommonlyUsedListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('featured', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: featured'); + } + + $arguments['featured'] = $params['featured']; + unset($params['featured']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Licenses::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Licenses::class] = $this->hydrators->getObjectMapperOperation🌀Licenses(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Licenses\GetAllCommonlyUsedListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Licenses::class]); + $items = $operator->call($arguments['featured'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Migrations.php b/clients/GitHubEnterprise-3.4/src/Router/List/Migrations.php new file mode 100644 index 00000000000..3daddc1792b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Migrations.php @@ -0,0 +1,186 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return (iterable | array{code: int}) */ + public function listForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\Migrations::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\Migrations::class] = $this->hydrators->getObjectMapperOperation🌀User🌀Migrations(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Migrations\ListForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\Migrations::class]); + $items = $operator->call($arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForOrgListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('exclude', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: exclude'); + } + + $arguments['exclude'] = $params['exclude']; + unset($params['exclude']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Migrations::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Migrations::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Migrations(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Migrations\ListForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Migrations::class]); + $items = $operator->call($arguments['org'], $arguments['exclude'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listReposForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('migration_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: migration_id'); + } + + $arguments['migration_id'] = $params['migration_id']; + unset($params['migration_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\Migrations\MigrationId\Repositories::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\Migrations\MigrationId\Repositories::class] = $this->hydrators->getObjectMapperOperation🌀User🌀Migrations🌀MigrationId🌀Repositories(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Migrations\ListReposForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\Migrations\MigrationId\Repositories::class]); + $items = $operator->call($arguments['migration_id'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listReposForOrgListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('migration_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: migration_id'); + } + + $arguments['migration_id'] = $params['migration_id']; + unset($params['migration_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Migrations\MigrationId\Repositories::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Migrations\MigrationId\Repositories::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Migrations🌀MigrationId🌀Repositories(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Migrations\ListReposForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Migrations\MigrationId\Repositories::class]); + $items = $operator->call($arguments['org'], $arguments['migration_id'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Nine.php b/clients/GitHubEnterprise-3.4/src/Router/List/Nine.php new file mode 100644 index 00000000000..8fb7f7ead3d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Nine.php @@ -0,0 +1,60 @@ + */ + public function call(string $call, array $params, array $pathChunks): iterable + { + $matched = false; + if ($pathChunks[0] === '') { + if ($pathChunks[1] === 'repos') { + if ($pathChunks[2] === '{owner}') { + if ($pathChunks[3] === '{repo}') { + if ($pathChunks[4] === 'pulls') { + if ($pathChunks[5] === '{pull_number}') { + if ($pathChunks[6] === 'reviews') { + if ($pathChunks[7] === '{review_id}') { + if ($pathChunks[8] === 'comments') { + if ($call === 'LIST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments') { + $matched = true; + if (array_key_exists(Router\List\Pulls::class, $this->router) === false) { + $this->router[Router\List\Pulls::class] = new Router\List\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Pulls::class]->ListCommentsForReviewListing($params); + } + } + } + } + } + } + } + } + } + } + + if ($matched === false) { + throw new InvalidArgumentException(); + } + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/OauthAuthorizations.php b/clients/GitHubEnterprise-3.4/src/Router/List/OauthAuthorizations.php new file mode 100644 index 00000000000..68720cd463c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/OauthAuthorizations.php @@ -0,0 +1,104 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return (iterable | array{code: int}) */ + public function listGrantsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('client_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: client_id'); + } + + $arguments['client_id'] = $params['client_id']; + unset($params['client_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Applications\Grants::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Applications\Grants::class] = $this->hydrators->getObjectMapperOperation🌀Applications🌀Grants(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\OauthAuthorizations\ListGrantsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Applications\Grants::class]); + $items = $operator->call($arguments['client_id'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listAuthorizationsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('client_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: client_id'); + } + + $arguments['client_id'] = $params['client_id']; + unset($params['client_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Authorizations::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Authorizations::class] = $this->hydrators->getObjectMapperOperation🌀Authorizations(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\OauthAuthorizations\ListAuthorizationsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Authorizations::class]); + $items = $operator->call($arguments['client_id'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Orgs.php b/clients/GitHubEnterprise-3.4/src/Router/List/Orgs.php new file mode 100644 index 00000000000..710778d3d4a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Orgs.php @@ -0,0 +1,374 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return (iterable | array{code: int}) */ + public function listForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\Orgs::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\Orgs::class] = $this->hydrators->getObjectMapperOperation🌀User🌀Orgs(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Orgs\ListForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\Orgs::class]); + $items = $operator->call($arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function getAuditLogListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('phrase', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: phrase'); + } + + $arguments['phrase'] = $params['phrase']; + unset($params['phrase']); + if (array_key_exists('include', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: include'); + } + + $arguments['include'] = $params['include']; + unset($params['include']); + if (array_key_exists('after', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: after'); + } + + $arguments['after'] = $params['after']; + unset($params['after']); + if (array_key_exists('before', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: before'); + } + + $arguments['before'] = $params['before']; + unset($params['before']); + if (array_key_exists('order', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: order'); + } + + $arguments['order'] = $params['order']; + unset($params['order']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\AuditLog::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\AuditLog::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀AuditLog(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Orgs\GetAuditLogListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\AuditLog::class]); + $items = $operator->call($arguments['org'], $arguments['phrase'], $arguments['include'], $arguments['after'], $arguments['before'], $arguments['order'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listWebhooksListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Hooks::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Hooks::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Hooks(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Orgs\ListWebhooksListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Hooks::class]); + $items = $operator->call($arguments['org'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listMembersListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('filter', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: filter'); + } + + $arguments['filter'] = $params['filter']; + unset($params['filter']); + if (array_key_exists('role', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: role'); + } + + $arguments['role'] = $params['role']; + unset($params['role']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Members::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Members::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Members(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Orgs\ListMembersListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Members::class]); + $items = $operator->call($arguments['org'], $arguments['filter'], $arguments['role'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listOutsideCollaboratorsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('filter', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: filter'); + } + + $arguments['filter'] = $params['filter']; + unset($params['filter']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\OutsideCollaborators::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\OutsideCollaborators::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀OutsideCollaborators(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Orgs\ListOutsideCollaboratorsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\OutsideCollaborators::class]); + $items = $operator->call($arguments['org'], $arguments['filter'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listPublicMembersListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\PublicMembers::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\PublicMembers::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀PublicMembers(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Orgs\ListPublicMembersListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\PublicMembers::class]); + $items = $operator->call($arguments['org'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listMembershipsForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('state', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: state'); + } + + $arguments['state'] = $params['state']; + unset($params['state']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\Memberships\Orgs::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\Memberships\Orgs::class] = $this->hydrators->getObjectMapperOperation🌀User🌀Memberships🌀Orgs(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Orgs\ListMembershipsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\Memberships\Orgs::class]); + $items = $operator->call($arguments['state'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); + } + + $arguments['username'] = $params['username']; + unset($params['username']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Users\Username\Orgs::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Users\Username\Orgs::class] = $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Orgs(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Orgs\ListForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Users\Username\Orgs::class]); + $items = $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Projects.php b/clients/GitHubEnterprise-3.4/src/Router/List/Projects.php new file mode 100644 index 00000000000..ffb1c3ac278 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Projects.php @@ -0,0 +1,292 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return iterable */ + public function listForOrgListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('state', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: state'); + } + + $arguments['state'] = $params['state']; + unset($params['state']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Projects::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Projects::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Projects(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Projects\ListForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Projects::class]); + $items = $operator->call($arguments['org'], $arguments['state'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listCollaboratorsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('project_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: project_id'); + } + + $arguments['project_id'] = $params['project_id']; + unset($params['project_id']); + if (array_key_exists('affiliation', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: affiliation'); + } + + $arguments['affiliation'] = $params['affiliation']; + unset($params['affiliation']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Projects\ProjectId\Collaborators::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Projects\ProjectId\Collaborators::class] = $this->hydrators->getObjectMapperOperation🌀Projects🌀ProjectId🌀Collaborators(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Projects\ListCollaboratorsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Projects\ProjectId\Collaborators::class]); + $items = $operator->call($arguments['project_id'], $arguments['affiliation'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listColumnsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('project_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: project_id'); + } + + $arguments['project_id'] = $params['project_id']; + unset($params['project_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Projects\ProjectId\Columns::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Projects\ProjectId\Columns::class] = $this->hydrators->getObjectMapperOperation🌀Projects🌀ProjectId🌀Columns(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Projects\ListColumnsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Projects\ProjectId\Columns::class]); + $items = $operator->call($arguments['project_id'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); + } + + $arguments['username'] = $params['username']; + unset($params['username']); + if (array_key_exists('state', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: state'); + } + + $arguments['state'] = $params['state']; + unset($params['state']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Users\Username\Projects::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Users\Username\Projects::class] = $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Projects(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Projects\ListForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Users\Username\Projects::class]); + $items = $operator->call($arguments['username'], $arguments['state'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listCardsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('column_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: column_id'); + } + + $arguments['column_id'] = $params['column_id']; + unset($params['column_id']); + if (array_key_exists('archived_state', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: archived_state'); + } + + $arguments['archived_state'] = $params['archived_state']; + unset($params['archived_state']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Projects\Columns\ColumnId\Cards::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Projects\Columns\ColumnId\Cards::class] = $this->hydrators->getObjectMapperOperation🌀Projects🌀Columns🌀ColumnId🌀Cards(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Projects\ListCardsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Projects\Columns\ColumnId\Cards::class]); + $items = $operator->call($arguments['column_id'], $arguments['archived_state'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForRepoListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('state', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: state'); + } + + $arguments['state'] = $params['state']; + unset($params['state']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Projects::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Projects::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Projects(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Projects\ListForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Projects::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['state'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Pulls.php b/clients/GitHubEnterprise-3.4/src/Router/List/Pulls.php new file mode 100644 index 00000000000..77707483d2c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Pulls.php @@ -0,0 +1,438 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return (iterable | array{code: int}) */ + public function listListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('head', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: head'); + } + + $arguments['head'] = $params['head']; + unset($params['head']); + if (array_key_exists('base', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: base'); + } + + $arguments['base'] = $params['base']; + unset($params['base']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('state', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: state'); + } + + $arguments['state'] = $params['state']; + unset($params['state']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Pulls::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Pulls\ListListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['head'], $arguments['base'], $arguments['direction'], $arguments['state'], $arguments['sort'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listReviewCommentsForRepoListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Pulls\Comments::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls\Comments::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀Comments(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Pulls\ListReviewCommentsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls\Comments::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['sort'], $arguments['direction'], $arguments['since'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listReviewCommentsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('pull_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pull_number'); + } + + $arguments['pull_number'] = $params['pull_number']; + unset($params['pull_number']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Pulls\PullNumber\Comments::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls\PullNumber\Comments::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Comments(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Pulls\ListReviewCommentsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls\PullNumber\Comments::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number'], $arguments['direction'], $arguments['since'], $arguments['sort'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listCommitsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('pull_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pull_number'); + } + + $arguments['pull_number'] = $params['pull_number']; + unset($params['pull_number']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Pulls\PullNumber\Commits::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls\PullNumber\Commits::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Commits(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Pulls\ListCommitsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls\PullNumber\Commits::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listFilesListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('pull_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pull_number'); + } + + $arguments['pull_number'] = $params['pull_number']; + unset($params['pull_number']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Pulls\PullNumber\Files::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls\PullNumber\Files::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Files(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Pulls\ListFilesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls\PullNumber\Files::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listReviewsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('pull_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pull_number'); + } + + $arguments['pull_number'] = $params['pull_number']; + unset($params['pull_number']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Pulls\PullNumber\Reviews::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls\PullNumber\Reviews::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Reviews(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Pulls\ListReviewsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls\PullNumber\Reviews::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listCommentsForReviewListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('pull_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pull_number'); + } + + $arguments['pull_number'] = $params['pull_number']; + unset($params['pull_number']); + if (array_key_exists('review_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: review_id'); + } + + $arguments['review_id'] = $params['review_id']; + unset($params['review_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Pulls\PullNumber\Reviews\ReviewId\Comments::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls\PullNumber\Reviews\ReviewId\Comments::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀PullNumber🌀Reviews🌀ReviewId🌀Comments(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Pulls\ListCommentsForReviewListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls\PullNumber\Reviews\ReviewId\Comments::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['pull_number'], $arguments['review_id'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Reactions.php b/clients/GitHubEnterprise-3.4/src/Router/List/Reactions.php new file mode 100644 index 00000000000..da9c8c8a041 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Reactions.php @@ -0,0 +1,532 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return iterable */ + public function listForTeamDiscussionLegacyListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('team_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_id'); + } + + $arguments['team_id'] = $params['team_id']; + unset($params['team_id']); + if (array_key_exists('discussion_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: discussion_number'); + } + + $arguments['discussion_number'] = $params['discussion_number']; + unset($params['discussion_number']); + if (array_key_exists('content', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: content'); + } + + $arguments['content'] = $params['content']; + unset($params['content']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Teams\TeamId\Discussions\DiscussionNumber\Reactions::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Teams\TeamId\Discussions\DiscussionNumber\Reactions::class] = $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Discussions🌀DiscussionNumber🌀Reactions(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Reactions\ListForTeamDiscussionLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Teams\TeamId\Discussions\DiscussionNumber\Reactions::class]); + $items = $operator->call($arguments['team_id'], $arguments['discussion_number'], $arguments['content'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForTeamDiscussionInOrgListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('team_slug', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_slug'); + } + + $arguments['team_slug'] = $params['team_slug']; + unset($params['team_slug']); + if (array_key_exists('discussion_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: discussion_number'); + } + + $arguments['discussion_number'] = $params['discussion_number']; + unset($params['discussion_number']); + if (array_key_exists('content', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: content'); + } + + $arguments['content'] = $params['content']; + unset($params['content']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Discussions\DiscussionNumber\Reactions::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Discussions\DiscussionNumber\Reactions::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Discussions🌀DiscussionNumber🌀Reactions(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Reactions\ListForTeamDiscussionInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Discussions\DiscussionNumber\Reactions::class]); + $items = $operator->call($arguments['org'], $arguments['team_slug'], $arguments['discussion_number'], $arguments['content'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForIssueCommentListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('comment_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: comment_id'); + } + + $arguments['comment_id'] = $params['comment_id']; + unset($params['comment_id']); + if (array_key_exists('content', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: content'); + } + + $arguments['content'] = $params['content']; + unset($params['content']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Issues\Comments\CommentId\Reactions::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\Comments\CommentId\Reactions::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments🌀CommentId🌀Reactions(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Reactions\ListForIssueCommentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\Comments\CommentId\Reactions::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id'], $arguments['content'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForPullRequestReviewCommentListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('comment_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: comment_id'); + } + + $arguments['comment_id'] = $params['comment_id']; + unset($params['comment_id']); + if (array_key_exists('content', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: content'); + } + + $arguments['content'] = $params['content']; + unset($params['content']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Pulls\Comments\CommentId\Reactions::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls\Comments\CommentId\Reactions::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pulls🌀Comments🌀CommentId🌀Reactions(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Reactions\ListForPullRequestReviewCommentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pulls\Comments\CommentId\Reactions::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id'], $arguments['content'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForTeamDiscussionCommentLegacyListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('team_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_id'); + } + + $arguments['team_id'] = $params['team_id']; + unset($params['team_id']); + if (array_key_exists('discussion_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: discussion_number'); + } + + $arguments['discussion_number'] = $params['discussion_number']; + unset($params['discussion_number']); + if (array_key_exists('comment_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: comment_number'); + } + + $arguments['comment_number'] = $params['comment_number']; + unset($params['comment_number']); + if (array_key_exists('content', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: content'); + } + + $arguments['content'] = $params['content']; + unset($params['content']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Teams\TeamId\Discussions\DiscussionNumber\Comments\CommentNumber\Reactions::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Teams\TeamId\Discussions\DiscussionNumber\Comments\CommentNumber\Reactions::class] = $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Discussions🌀DiscussionNumber🌀Comments🌀CommentNumber🌀Reactions(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Reactions\ListForTeamDiscussionCommentLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Teams\TeamId\Discussions\DiscussionNumber\Comments\CommentNumber\Reactions::class]); + $items = $operator->call($arguments['team_id'], $arguments['discussion_number'], $arguments['comment_number'], $arguments['content'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForTeamDiscussionCommentInOrgListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('team_slug', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_slug'); + } + + $arguments['team_slug'] = $params['team_slug']; + unset($params['team_slug']); + if (array_key_exists('discussion_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: discussion_number'); + } + + $arguments['discussion_number'] = $params['discussion_number']; + unset($params['discussion_number']); + if (array_key_exists('comment_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: comment_number'); + } + + $arguments['comment_number'] = $params['comment_number']; + unset($params['comment_number']); + if (array_key_exists('content', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: content'); + } + + $arguments['content'] = $params['content']; + unset($params['content']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Discussions\DiscussionNumber\Comments\CommentNumber\Reactions::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Discussions\DiscussionNumber\Comments\CommentNumber\Reactions::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Discussions🌀DiscussionNumber🌀Comments🌀CommentNumber🌀Reactions(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Reactions\ListForTeamDiscussionCommentInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Discussions\DiscussionNumber\Comments\CommentNumber\Reactions::class]); + $items = $operator->call($arguments['org'], $arguments['team_slug'], $arguments['discussion_number'], $arguments['comment_number'], $arguments['content'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForCommitCommentListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('comment_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: comment_id'); + } + + $arguments['comment_id'] = $params['comment_id']; + unset($params['comment_id']); + if (array_key_exists('content', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: content'); + } + + $arguments['content'] = $params['content']; + unset($params['content']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Comments\CommentId\Reactions::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Comments\CommentId\Reactions::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Comments🌀CommentId🌀Reactions(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Reactions\ListForCommitCommentListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Comments\CommentId\Reactions::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id'], $arguments['content'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForIssueListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); + } + + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + if (array_key_exists('content', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: content'); + } + + $arguments['content'] = $params['content']; + unset($params['content']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Reactions::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Reactions::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Reactions(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Reactions\ListForIssueListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Reactions::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['content'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForReleaseListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('release_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: release_id'); + } + + $arguments['release_id'] = $params['release_id']; + unset($params['release_id']); + if (array_key_exists('content', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: content'); + } + + $arguments['content'] = $params['content']; + unset($params['content']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Releases\ReleaseId\Reactions::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Releases\ReleaseId\Reactions::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Releases🌀ReleaseId🌀Reactions(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Reactions\ListForReleaseListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Releases\ReleaseId\Reactions::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['release_id'], $arguments['content'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Repos.php b/clients/GitHubEnterprise-3.4/src/Router/List/Repos.php new file mode 100644 index 00000000000..363d69a954d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Repos.php @@ -0,0 +1,1241 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return (iterable | array{code: int}) */ + public function listForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('before', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: before'); + } + + $arguments['before'] = $params['before']; + unset($params['before']); + if (array_key_exists('visibility', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: visibility'); + } + + $arguments['visibility'] = $params['visibility']; + unset($params['visibility']); + if (array_key_exists('affiliation', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: affiliation'); + } + + $arguments['affiliation'] = $params['affiliation']; + unset($params['affiliation']); + if (array_key_exists('type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: type'); + } + + $arguments['type'] = $params['type']; + unset($params['type']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\Repos::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\Repos::class] = $this->hydrators->getObjectMapperOperation🌀User🌀Repos(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\Repos::class]); + $items = $operator->call($arguments['direction'], $arguments['since'], $arguments['before'], $arguments['visibility'], $arguments['affiliation'], $arguments['type'], $arguments['sort'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listInvitationsForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\RepositoryInvitations::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\RepositoryInvitations::class] = $this->hydrators->getObjectMapperOperation🌀User🌀RepositoryInvitations(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListInvitationsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\RepositoryInvitations::class]); + $items = $operator->call($arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForOrgListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: type'); + } + + $arguments['type'] = $params['type']; + unset($params['type']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Repos::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Repos::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Repos(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Repos::class]); + $items = $operator->call($arguments['org'], $arguments['type'], $arguments['direction'], $arguments['sort'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); + } + + $arguments['username'] = $params['username']; + unset($params['username']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: type'); + } + + $arguments['type'] = $params['type']; + unset($params['type']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Users\Username\Repos::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Users\Username\Repos::class] = $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Repos(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Users\Username\Repos::class]); + $items = $operator->call($arguments['username'], $arguments['direction'], $arguments['type'], $arguments['sort'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listBranchesListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('protected', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: protected'); + } + + $arguments['protected'] = $params['protected']; + unset($params['protected']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Branches::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Branches::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Branches(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListBranchesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Branches::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['protected'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listCollaboratorsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('affiliation', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: affiliation'); + } + + $arguments['affiliation'] = $params['affiliation']; + unset($params['affiliation']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Collaborators::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Collaborators::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Collaborators(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListCollaboratorsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Collaborators::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['affiliation'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listCommitCommentsForRepoListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Comments::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Comments::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Comments(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListCommitCommentsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Comments::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listCommitsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('sha', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sha'); + } + + $arguments['sha'] = $params['sha']; + unset($params['sha']); + if (array_key_exists('path', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: path'); + } + + $arguments['path'] = $params['path']; + unset($params['path']); + if (array_key_exists('author', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: author'); + } + + $arguments['author'] = $params['author']; + unset($params['author']); + if (array_key_exists('committer', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: committer'); + } + + $arguments['committer'] = $params['committer']; + unset($params['committer']); + if (array_key_exists('since', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: since'); + } + + $arguments['since'] = $params['since']; + unset($params['since']); + if (array_key_exists('until', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: until'); + } + + $arguments['until'] = $params['until']; + unset($params['until']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Commits::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Commits::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Commits(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListCommitsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Commits::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['sha'], $arguments['path'], $arguments['author'], $arguments['committer'], $arguments['since'], $arguments['until'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listContributorsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('anon', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: anon'); + } + + $arguments['anon'] = $params['anon']; + unset($params['anon']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Contributors::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Contributors::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Contributors(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListContributorsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Contributors::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['anon'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listDeploymentsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('sha', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sha'); + } + + $arguments['sha'] = $params['sha']; + unset($params['sha']); + if (array_key_exists('ref', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: ref'); + } + + $arguments['ref'] = $params['ref']; + unset($params['ref']); + if (array_key_exists('task', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: task'); + } + + $arguments['task'] = $params['task']; + unset($params['task']); + if (array_key_exists('environment', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: environment'); + } + + $arguments['environment'] = $params['environment']; + unset($params['environment']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Deployments::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Deployments::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Deployments(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListDeploymentsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Deployments::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['sha'], $arguments['ref'], $arguments['task'], $arguments['environment'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listForksListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('sort', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: sort'); + } + + $arguments['sort'] = $params['sort']; + unset($params['sort']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Forks::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Forks::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Forks(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListForksListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Forks::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['sort'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listWebhooksListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Hooks::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Hooks::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Hooks(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListWebhooksListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Hooks::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listInvitationsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Invitations::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Invitations::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Invitations(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListInvitationsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Invitations::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listDeployKeysListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Keys::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Keys::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Keys(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListDeployKeysListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Keys::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listReleasesListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Releases::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Releases::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Releases(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListReleasesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Releases::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listTagsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Tags::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Tags::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Tags(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListTagsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Tags::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listTeamsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Teams::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Teams::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Teams(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListTeamsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Teams::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listPagesBuildsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Pages\Builds::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pages\Builds::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Pages🌀Builds(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListPagesBuildsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Pages\Builds::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listCacheInfoListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Replicas\Caches::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Replicas\Caches::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Replicas🌀Caches(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListCacheInfoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Replicas\Caches::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listCommentsForCommitListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('commit_sha', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: commit_sha'); + } + + $arguments['commit_sha'] = $params['commit_sha']; + unset($params['commit_sha']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Commits\CommitSha\Comments::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Commits\CommitSha\Comments::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Commits🌀CommitSha🌀Comments(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListCommentsForCommitListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Commits\CommitSha\Comments::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['commit_sha'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listPullRequestsAssociatedWithCommitListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('commit_sha', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: commit_sha'); + } + + $arguments['commit_sha'] = $params['commit_sha']; + unset($params['commit_sha']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Commits\CommitSha\Pulls::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Commits\CommitSha\Pulls::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Commits🌀CommitSha🌀Pulls(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListPullRequestsAssociatedWithCommitListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Commits\CommitSha\Pulls::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['commit_sha'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | Schema\BasicError) */ + public function listCommitStatusesForRefListing(array $params): iterable|BasicError + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('ref', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: ref'); + } + + $arguments['ref'] = $params['ref']; + unset($params['ref']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Commits\Ref\Statuses::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Commits\Ref\Statuses::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Commits🌀Ref🌀Statuses(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListCommitStatusesForRefListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Commits\Ref\Statuses::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['ref'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listDeploymentStatusesListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('deployment_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: deployment_id'); + } + + $arguments['deployment_id'] = $params['deployment_id']; + unset($params['deployment_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Deployments\DeploymentId\Statuses::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Deployments\DeploymentId\Statuses::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Deployments🌀DeploymentId🌀Statuses(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListDeploymentStatusesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Deployments\DeploymentId\Statuses::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['deployment_id'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listReleaseAssetsListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('release_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: release_id'); + } + + $arguments['release_id'] = $params['release_id']; + unset($params['release_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Releases\ReleaseId\Assets::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Releases\ReleaseId\Assets::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Releases🌀ReleaseId🌀Assets(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Repos\ListReleaseAssetsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Releases\ReleaseId\Assets::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['release_id'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/SecretScanning.php b/clients/GitHubEnterprise-3.4/src/Router/List/SecretScanning.php new file mode 100644 index 00000000000..f368bedb95e --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/SecretScanning.php @@ -0,0 +1,196 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return iterable */ + public function listAlertsForOrgListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('state', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: state'); + } + + $arguments['state'] = $params['state']; + unset($params['state']); + if (array_key_exists('secret_type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: secret_type'); + } + + $arguments['secret_type'] = $params['secret_type']; + unset($params['secret_type']); + if (array_key_exists('resolution', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: resolution'); + } + + $arguments['resolution'] = $params['resolution']; + unset($params['resolution']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\SecretScanning\Alerts::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\SecretScanning\Alerts::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀SecretScanning🌀Alerts(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\SecretScanning\ListAlertsForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\SecretScanning\Alerts::class]); + $items = $operator->call($arguments['org'], $arguments['state'], $arguments['secret_type'], $arguments['resolution'], $arguments['page'], $arguments['per_page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listAlertsForRepoListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('state', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: state'); + } + + $arguments['state'] = $params['state']; + unset($params['state']); + if (array_key_exists('secret_type', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: secret_type'); + } + + $arguments['secret_type'] = $params['secret_type']; + unset($params['secret_type']); + if (array_key_exists('resolution', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: resolution'); + } + + $arguments['resolution'] = $params['resolution']; + unset($params['resolution']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\SecretScanning\Alerts::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\SecretScanning\Alerts::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀SecretScanning🌀Alerts(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\SecretScanning\ListAlertsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\SecretScanning\Alerts::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['state'], $arguments['secret_type'], $arguments['resolution'], $arguments['page'], $arguments['per_page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listLocationsForAlertListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('alert_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: alert_number'); + } + + $arguments['alert_number'] = $params['alert_number']; + unset($params['alert_number']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\SecretScanning\Alerts\AlertNumber\Locations::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\SecretScanning\Alerts\AlertNumber\Locations::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀SecretScanning🌀Alerts🌀AlertNumber🌀Locations(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\SecretScanning\ListLocationsForAlertListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\SecretScanning\Alerts\AlertNumber\Locations::class]); + $items = $operator->call($arguments['owner'], $arguments['repo'], $arguments['alert_number'], $arguments['page'], $arguments['per_page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Seven.php b/clients/GitHubEnterprise-3.4/src/Router/List/Seven.php new file mode 100644 index 00000000000..2a275578680 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Seven.php @@ -0,0 +1,239 @@ +|iterable|iterable|iterable|(iterable|Schema\BasicError)|iterable|iterable|iterable<(Schema\LabeledIssueEvent|Schema\UnlabeledIssueEvent|Schema\AssignedIssueEvent|Schema\UnassignedIssueEvent|Schema\MilestonedIssueEvent|Schema\DemilestonedIssueEvent|Schema\RenamedIssueEvent|Schema\ReviewRequestedIssueEvent|Schema\ReviewRequestRemovedIssueEvent|Schema\ReviewDismissedIssueEvent|Schema\LockedIssueEvent|Schema\AddedToProjectIssueEvent|Schema\MovedColumnInProjectIssueEvent|Schema\RemovedFromProjectIssueEvent|Schema\ConvertedNoteToIssueIssueEvent)>|(iterable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent)>|iterable|iterable|iterable|iterable|iterable|iterable */ + public function call(string $call, array $params, array $pathChunks): iterable|BasicError + { + $matched = false; + if ($pathChunks[0] === '') { + if ($pathChunks[1] === 'repos') { + if ($pathChunks[2] === '{owner}') { + if ($pathChunks[3] === '{repo}') { + if ($pathChunks[4] === 'check-runs') { + if ($pathChunks[5] === '{check_run_id}') { + if ($pathChunks[6] === 'annotations') { + if ($call === 'LIST /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations') { + $matched = true; + if (array_key_exists(Router\List\Checks::class, $this->router) === false) { + $this->router[Router\List\Checks::class] = new Router\List\Checks($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Checks::class]->ListAnnotationsListing($params); + } + } + } + } elseif ($pathChunks[4] === 'comments') { + if ($pathChunks[5] === '{comment_id}') { + if ($pathChunks[6] === 'reactions') { + if ($call === 'LIST /repos/{owner}/{repo}/comments/{comment_id}/reactions') { + $matched = true; + if (array_key_exists(Router\List\Reactions::class, $this->router) === false) { + $this->router[Router\List\Reactions::class] = new Router\List\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Reactions::class]->ListForCommitCommentListing($params); + } + } + } + } elseif ($pathChunks[4] === 'commits') { + if ($pathChunks[5] === '{commit_sha}') { + if ($pathChunks[6] === 'comments') { + if ($call === 'LIST /repos/{owner}/{repo}/commits/{commit_sha}/comments') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListCommentsForCommitListing($params); + } + } elseif ($pathChunks[6] === 'pulls') { + if ($call === 'LIST /repos/{owner}/{repo}/commits/{commit_sha}/pulls') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListPullRequestsAssociatedWithCommitListing($params); + } + } + } elseif ($pathChunks[5] === '{ref}') { + if ($pathChunks[6] === 'statuses') { + if ($call === 'LIST /repos/{owner}/{repo}/commits/{ref}/statuses') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListCommitStatusesForRefListing($params); + } + } + } + } elseif ($pathChunks[4] === 'deployments') { + if ($pathChunks[5] === '{deployment_id}') { + if ($pathChunks[6] === 'statuses') { + if ($call === 'LIST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListDeploymentStatusesListing($params); + } + } + } + } elseif ($pathChunks[4] === 'issues') { + if ($pathChunks[5] === '{issue_number}') { + if ($pathChunks[6] === 'comments') { + if ($call === 'LIST /repos/{owner}/{repo}/issues/{issue_number}/comments') { + $matched = true; + if (array_key_exists(Router\List\Issues::class, $this->router) === false) { + $this->router[Router\List\Issues::class] = new Router\List\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Issues::class]->ListCommentsListing($params); + } + } elseif ($pathChunks[6] === 'events') { + if ($call === 'LIST /repos/{owner}/{repo}/issues/{issue_number}/events') { + $matched = true; + if (array_key_exists(Router\List\Issues::class, $this->router) === false) { + $this->router[Router\List\Issues::class] = new Router\List\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Issues::class]->ListEventsListing($params); + } + } elseif ($pathChunks[6] === 'labels') { + if ($call === 'LIST /repos/{owner}/{repo}/issues/{issue_number}/labels') { + $matched = true; + if (array_key_exists(Router\List\Issues::class, $this->router) === false) { + $this->router[Router\List\Issues::class] = new Router\List\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Issues::class]->ListLabelsOnIssueListing($params); + } + } elseif ($pathChunks[6] === 'reactions') { + if ($call === 'LIST /repos/{owner}/{repo}/issues/{issue_number}/reactions') { + $matched = true; + if (array_key_exists(Router\List\Reactions::class, $this->router) === false) { + $this->router[Router\List\Reactions::class] = new Router\List\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Reactions::class]->ListForIssueListing($params); + } + } elseif ($pathChunks[6] === 'timeline') { + if ($call === 'LIST /repos/{owner}/{repo}/issues/{issue_number}/timeline') { + $matched = true; + if (array_key_exists(Router\List\Issues::class, $this->router) === false) { + $this->router[Router\List\Issues::class] = new Router\List\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Issues::class]->ListEventsForTimelineListing($params); + } + } + } + } elseif ($pathChunks[4] === 'milestones') { + if ($pathChunks[5] === '{milestone_number}') { + if ($pathChunks[6] === 'labels') { + if ($call === 'LIST /repos/{owner}/{repo}/milestones/{milestone_number}/labels') { + $matched = true; + if (array_key_exists(Router\List\Issues::class, $this->router) === false) { + $this->router[Router\List\Issues::class] = new Router\List\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Issues::class]->ListLabelsForMilestoneListing($params); + } + } + } + } elseif ($pathChunks[4] === 'pulls') { + if ($pathChunks[5] === '{pull_number}') { + if ($pathChunks[6] === 'comments') { + if ($call === 'LIST /repos/{owner}/{repo}/pulls/{pull_number}/comments') { + $matched = true; + if (array_key_exists(Router\List\Pulls::class, $this->router) === false) { + $this->router[Router\List\Pulls::class] = new Router\List\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Pulls::class]->ListReviewCommentsListing($params); + } + } elseif ($pathChunks[6] === 'commits') { + if ($call === 'LIST /repos/{owner}/{repo}/pulls/{pull_number}/commits') { + $matched = true; + if (array_key_exists(Router\List\Pulls::class, $this->router) === false) { + $this->router[Router\List\Pulls::class] = new Router\List\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Pulls::class]->ListCommitsListing($params); + } + } elseif ($pathChunks[6] === 'files') { + if ($call === 'LIST /repos/{owner}/{repo}/pulls/{pull_number}/files') { + $matched = true; + if (array_key_exists(Router\List\Pulls::class, $this->router) === false) { + $this->router[Router\List\Pulls::class] = new Router\List\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Pulls::class]->ListFilesListing($params); + } + } elseif ($pathChunks[6] === 'reviews') { + if ($call === 'LIST /repos/{owner}/{repo}/pulls/{pull_number}/reviews') { + $matched = true; + if (array_key_exists(Router\List\Pulls::class, $this->router) === false) { + $this->router[Router\List\Pulls::class] = new Router\List\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Pulls::class]->ListReviewsListing($params); + } + } + } + } elseif ($pathChunks[4] === 'releases') { + if ($pathChunks[5] === '{release_id}') { + if ($pathChunks[6] === 'assets') { + if ($call === 'LIST /repos/{owner}/{repo}/releases/{release_id}/assets') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListReleaseAssetsListing($params); + } + } elseif ($pathChunks[6] === 'reactions') { + if ($call === 'LIST /repos/{owner}/{repo}/releases/{release_id}/reactions') { + $matched = true; + if (array_key_exists(Router\List\Reactions::class, $this->router) === false) { + $this->router[Router\List\Reactions::class] = new Router\List\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Reactions::class]->ListForReleaseListing($params); + } + } + } + } + } + } + } + } + + if ($matched === false) { + throw new InvalidArgumentException(); + } + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Six.php b/clients/GitHubEnterprise-3.4/src/Router/List/Six.php new file mode 100644 index 00000000000..e5865c18440 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Six.php @@ -0,0 +1,235 @@ +|iterable|iterable|iterable|iterable|(iterable|array{code: int})|iterable|iterable|iterable|iterable|iterable|iterable|(iterable|iterable|iterable|iterable */ + public function call(string $call, array $params, array $pathChunks): iterable + { + $matched = false; + if ($pathChunks[0] === '') { + if ($pathChunks[1] === 'orgs') { + if ($pathChunks[2] === '{org}') { + if ($pathChunks[3] === 'migrations') { + if ($pathChunks[4] === '{migration_id}') { + if ($pathChunks[5] === 'repositories') { + if ($call === 'LIST /orgs/{org}/migrations/{migration_id}/repositories') { + $matched = true; + if (array_key_exists(Router\List\Migrations::class, $this->router) === false) { + $this->router[Router\List\Migrations::class] = new Router\List\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Migrations::class]->ListReposForOrgListing($params); + } + } + } + } elseif ($pathChunks[3] === 'teams') { + if ($pathChunks[4] === '{team_slug}') { + if ($pathChunks[5] === 'discussions') { + if ($call === 'LIST /orgs/{org}/teams/{team_slug}/discussions') { + $matched = true; + if (array_key_exists(Router\List\Teams::class, $this->router) === false) { + $this->router[Router\List\Teams::class] = new Router\List\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Teams::class]->ListDiscussionsInOrgListing($params); + } + } elseif ($pathChunks[5] === 'members') { + if ($call === 'LIST /orgs/{org}/teams/{team_slug}/members') { + $matched = true; + if (array_key_exists(Router\List\Teams::class, $this->router) === false) { + $this->router[Router\List\Teams::class] = new Router\List\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Teams::class]->ListMembersInOrgListing($params); + } + } elseif ($pathChunks[5] === 'projects') { + if ($call === 'LIST /orgs/{org}/teams/{team_slug}/projects') { + $matched = true; + if (array_key_exists(Router\List\Teams::class, $this->router) === false) { + $this->router[Router\List\Teams::class] = new Router\List\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Teams::class]->ListProjectsInOrgListing($params); + } + } elseif ($pathChunks[5] === 'repos') { + if ($call === 'LIST /orgs/{org}/teams/{team_slug}/repos') { + $matched = true; + if (array_key_exists(Router\List\Teams::class, $this->router) === false) { + $this->router[Router\List\Teams::class] = new Router\List\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Teams::class]->ListReposInOrgListing($params); + } + } elseif ($pathChunks[5] === 'teams') { + if ($call === 'LIST /orgs/{org}/teams/{team_slug}/teams') { + $matched = true; + if (array_key_exists(Router\List\Teams::class, $this->router) === false) { + $this->router[Router\List\Teams::class] = new Router\List\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Teams::class]->ListChildInOrgListing($params); + } + } + } + } + } + } elseif ($pathChunks[1] === 'repos') { + if ($pathChunks[2] === '{owner}') { + if ($pathChunks[3] === '{repo}') { + if ($pathChunks[4] === 'code-scanning') { + if ($pathChunks[5] === 'alerts') { + if ($call === 'LIST /repos/{owner}/{repo}/code-scanning/alerts') { + $matched = true; + if (array_key_exists(Router\List\CodeScanning::class, $this->router) === false) { + $this->router[Router\List\CodeScanning::class] = new Router\List\CodeScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\CodeScanning::class]->ListAlertsForRepoListing($params); + } + } elseif ($pathChunks[5] === 'analyses') { + if ($call === 'LIST /repos/{owner}/{repo}/code-scanning/analyses') { + $matched = true; + if (array_key_exists(Router\List\CodeScanning::class, $this->router) === false) { + $this->router[Router\List\CodeScanning::class] = new Router\List\CodeScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\CodeScanning::class]->ListRecentAnalysesListing($params); + } + } + } elseif ($pathChunks[4] === 'issues') { + if ($pathChunks[5] === 'comments') { + if ($call === 'LIST /repos/{owner}/{repo}/issues/comments') { + $matched = true; + if (array_key_exists(Router\List\Issues::class, $this->router) === false) { + $this->router[Router\List\Issues::class] = new Router\List\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Issues::class]->ListCommentsForRepoListing($params); + } + } elseif ($pathChunks[5] === 'events') { + if ($call === 'LIST /repos/{owner}/{repo}/issues/events') { + $matched = true; + if (array_key_exists(Router\List\Issues::class, $this->router) === false) { + $this->router[Router\List\Issues::class] = new Router\List\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Issues::class]->ListEventsForRepoListing($params); + } + } + } elseif ($pathChunks[4] === 'pages') { + if ($pathChunks[5] === 'builds') { + if ($call === 'LIST /repos/{owner}/{repo}/pages/builds') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListPagesBuildsListing($params); + } + } + } elseif ($pathChunks[4] === 'pulls') { + if ($pathChunks[5] === 'comments') { + if ($call === 'LIST /repos/{owner}/{repo}/pulls/comments') { + $matched = true; + if (array_key_exists(Router\List\Pulls::class, $this->router) === false) { + $this->router[Router\List\Pulls::class] = new Router\List\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Pulls::class]->ListReviewCommentsForRepoListing($params); + } + } + } elseif ($pathChunks[4] === 'replicas') { + if ($pathChunks[5] === 'caches') { + if ($call === 'LIST /repos/{owner}/{repo}/replicas/caches') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListCacheInfoListing($params); + } + } + } elseif ($pathChunks[4] === 'secret-scanning') { + if ($pathChunks[5] === 'alerts') { + if ($call === 'LIST /repos/{owner}/{repo}/secret-scanning/alerts') { + $matched = true; + if (array_key_exists(Router\List\SecretScanning::class, $this->router) === false) { + $this->router[Router\List\SecretScanning::class] = new Router\List\SecretScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\SecretScanning::class]->ListAlertsForRepoListing($params); + } + } + } + } + } + } elseif ($pathChunks[1] === 'teams') { + if ($pathChunks[2] === '{team_id}') { + if ($pathChunks[3] === 'discussions') { + if ($pathChunks[4] === '{discussion_number}') { + if ($pathChunks[5] === 'comments') { + if ($call === 'LIST /teams/{team_id}/discussions/{discussion_number}/comments') { + $matched = true; + if (array_key_exists(Router\List\Teams::class, $this->router) === false) { + $this->router[Router\List\Teams::class] = new Router\List\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Teams::class]->ListDiscussionCommentsLegacyListing($params); + } + } elseif ($pathChunks[5] === 'reactions') { + if ($call === 'LIST /teams/{team_id}/discussions/{discussion_number}/reactions') { + $matched = true; + if (array_key_exists(Router\List\Reactions::class, $this->router) === false) { + $this->router[Router\List\Reactions::class] = new Router\List\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Reactions::class]->ListForTeamDiscussionLegacyListing($params); + } + } + } + } + } + } elseif ($pathChunks[1] === 'users') { + if ($pathChunks[2] === '{username}') { + if ($pathChunks[3] === 'events') { + if ($pathChunks[4] === 'orgs') { + if ($pathChunks[5] === '{org}') { + if ($call === 'LIST /users/{username}/events/orgs/{org}') { + $matched = true; + if (array_key_exists(Router\List\Activity::class, $this->router) === false) { + $this->router[Router\List\Activity::class] = new Router\List\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Activity::class]->ListOrgEventsForAuthenticatedUserListing($params); + } + } + } + } + } + } + } + + if ($matched === false) { + throw new InvalidArgumentException(); + } + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Teams.php b/clients/GitHubEnterprise-3.4/src/Router/List/Teams.php new file mode 100644 index 00000000000..20d12a62eef --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Teams.php @@ -0,0 +1,644 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return (iterable | array{code: int}) */ + public function listForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\Teams::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\Teams::class] = $this->hydrators->getObjectMapperOperation🌀User🌀Teams(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Teams\ListForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\Teams::class]); + $items = $operator->call($arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Teams::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Teams::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Teams\ListListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Teams::class]); + $items = $operator->call($arguments['org'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listDiscussionsLegacyListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('team_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_id'); + } + + $arguments['team_id'] = $params['team_id']; + unset($params['team_id']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Teams\TeamId\Discussions::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Teams\TeamId\Discussions::class] = $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Discussions(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Teams\ListDiscussionsLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Teams\TeamId\Discussions::class]); + $items = $operator->call($arguments['team_id'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listMembersLegacyListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('team_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_id'); + } + + $arguments['team_id'] = $params['team_id']; + unset($params['team_id']); + if (array_key_exists('role', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: role'); + } + + $arguments['role'] = $params['role']; + unset($params['role']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Teams\TeamId\Members::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Teams\TeamId\Members::class] = $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Members(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Teams\ListMembersLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Teams\TeamId\Members::class]); + $items = $operator->call($arguments['team_id'], $arguments['role'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listProjectsLegacyListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('team_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_id'); + } + + $arguments['team_id'] = $params['team_id']; + unset($params['team_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Teams\TeamId\Projects::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Teams\TeamId\Projects::class] = $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Projects(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Teams\ListProjectsLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Teams\TeamId\Projects::class]); + $items = $operator->call($arguments['team_id'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listReposLegacyListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('team_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_id'); + } + + $arguments['team_id'] = $params['team_id']; + unset($params['team_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Teams\TeamId\Repos::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Teams\TeamId\Repos::class] = $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Repos(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Teams\ListReposLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Teams\TeamId\Repos::class]); + $items = $operator->call($arguments['team_id'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listChildLegacyListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('team_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_id'); + } + + $arguments['team_id'] = $params['team_id']; + unset($params['team_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Teams\TeamId\Teams::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Teams\TeamId\Teams::class] = $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Teams(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Teams\ListChildLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Teams\TeamId\Teams::class]); + $items = $operator->call($arguments['team_id'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listDiscussionsInOrgListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('team_slug', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_slug'); + } + + $arguments['team_slug'] = $params['team_slug']; + unset($params['team_slug']); + if (array_key_exists('pinned', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pinned'); + } + + $arguments['pinned'] = $params['pinned']; + unset($params['pinned']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Discussions::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Discussions::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Discussions(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Teams\ListDiscussionsInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Discussions::class]); + $items = $operator->call($arguments['org'], $arguments['team_slug'], $arguments['pinned'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listMembersInOrgListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('team_slug', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_slug'); + } + + $arguments['team_slug'] = $params['team_slug']; + unset($params['team_slug']); + if (array_key_exists('role', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: role'); + } + + $arguments['role'] = $params['role']; + unset($params['role']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Members::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Members::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Members(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Teams\ListMembersInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Members::class]); + $items = $operator->call($arguments['org'], $arguments['team_slug'], $arguments['role'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listProjectsInOrgListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('team_slug', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_slug'); + } + + $arguments['team_slug'] = $params['team_slug']; + unset($params['team_slug']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Projects::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Projects::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Projects(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Teams\ListProjectsInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Projects::class]); + $items = $operator->call($arguments['org'], $arguments['team_slug'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listReposInOrgListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('team_slug', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_slug'); + } + + $arguments['team_slug'] = $params['team_slug']; + unset($params['team_slug']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Repos::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Repos::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Repos(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Teams\ListReposInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Repos::class]); + $items = $operator->call($arguments['org'], $arguments['team_slug'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listChildInOrgListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('team_slug', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_slug'); + } + + $arguments['team_slug'] = $params['team_slug']; + unset($params['team_slug']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Teams::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Teams::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Teams(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Teams\ListChildInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Teams::class]); + $items = $operator->call($arguments['org'], $arguments['team_slug'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listDiscussionCommentsLegacyListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('team_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_id'); + } + + $arguments['team_id'] = $params['team_id']; + unset($params['team_id']); + if (array_key_exists('discussion_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: discussion_number'); + } + + $arguments['discussion_number'] = $params['discussion_number']; + unset($params['discussion_number']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Teams\TeamId\Discussions\DiscussionNumber\Comments::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Teams\TeamId\Discussions\DiscussionNumber\Comments::class] = $this->hydrators->getObjectMapperOperation🌀Teams🌀TeamId🌀Discussions🌀DiscussionNumber🌀Comments(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Teams\ListDiscussionCommentsLegacyListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Teams\TeamId\Discussions\DiscussionNumber\Comments::class]); + $items = $operator->call($arguments['team_id'], $arguments['discussion_number'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listDiscussionCommentsInOrgListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('team_slug', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: team_slug'); + } + + $arguments['team_slug'] = $params['team_slug']; + unset($params['team_slug']); + if (array_key_exists('discussion_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: discussion_number'); + } + + $arguments['discussion_number'] = $params['discussion_number']; + unset($params['discussion_number']); + if (array_key_exists('direction', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: direction'); + } + + $arguments['direction'] = $params['direction']; + unset($params['direction']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Discussions\DiscussionNumber\Comments::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Discussions\DiscussionNumber\Comments::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Discussions🌀DiscussionNumber🌀Comments(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Teams\ListDiscussionCommentsInOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Discussions\DiscussionNumber\Comments::class]); + $items = $operator->call($arguments['org'], $arguments['team_slug'], $arguments['discussion_number'], $arguments['direction'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Ten.php b/clients/GitHubEnterprise-3.4/src/Router/List/Ten.php new file mode 100644 index 00000000000..92dacbe35d4 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Ten.php @@ -0,0 +1,62 @@ + */ + public function call(string $call, array $params, array $pathChunks): iterable + { + $matched = false; + if ($pathChunks[0] === '') { + if ($pathChunks[1] === 'orgs') { + if ($pathChunks[2] === '{org}') { + if ($pathChunks[3] === 'teams') { + if ($pathChunks[4] === '{team_slug}') { + if ($pathChunks[5] === 'discussions') { + if ($pathChunks[6] === '{discussion_number}') { + if ($pathChunks[7] === 'comments') { + if ($pathChunks[8] === '{comment_number}') { + if ($pathChunks[9] === 'reactions') { + if ($call === 'LIST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions') { + $matched = true; + if (array_key_exists(Router\List\Reactions::class, $this->router) === false) { + $this->router[Router\List\Reactions::class] = new Router\List\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Reactions::class]->ListForTeamDiscussionCommentInOrgListing($params); + } + } + } + } + } + } + } + } + } + } + } + + if ($matched === false) { + throw new InvalidArgumentException(); + } + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Three.php b/clients/GitHubEnterprise-3.4/src/Router/List/Three.php new file mode 100644 index 00000000000..f834d62a776 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Three.php @@ -0,0 +1,262 @@ +|iterable|iterable|iterable|iterable|(iterable|array{code: int})|iterable|(iterable|(iterable|(iterable|(iterable|(iterable|(iterable|(iterable|(iterable|(iterable|(iterable|(iterable|(iterable|(iterable */ + public function call(string $call, array $params, array $pathChunks): iterable + { + $matched = false; + if ($pathChunks[0] === '') { + if ($pathChunks[1] === 'admin') { + if ($pathChunks[2] === 'hooks') { + if ($call === 'LIST /admin/hooks') { + $matched = true; + if (array_key_exists(Router\List\EnterpriseAdmin::class, $this->router) === false) { + $this->router[Router\List\EnterpriseAdmin::class] = new Router\List\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\EnterpriseAdmin::class]->ListGlobalWebhooksListing($params); + } + } elseif ($pathChunks[2] === 'keys') { + if ($call === 'LIST /admin/keys') { + $matched = true; + if (array_key_exists(Router\List\EnterpriseAdmin::class, $this->router) === false) { + $this->router[Router\List\EnterpriseAdmin::class] = new Router\List\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\EnterpriseAdmin::class]->ListPublicKeysListing($params); + } + } elseif ($pathChunks[2] === 'pre-receive-environments') { + if ($call === 'LIST /admin/pre-receive-environments') { + $matched = true; + if (array_key_exists(Router\List\EnterpriseAdmin::class, $this->router) === false) { + $this->router[Router\List\EnterpriseAdmin::class] = new Router\List\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\EnterpriseAdmin::class]->ListPreReceiveEnvironmentsListing($params); + } + } elseif ($pathChunks[2] === 'pre-receive-hooks') { + if ($call === 'LIST /admin/pre-receive-hooks') { + $matched = true; + if (array_key_exists(Router\List\EnterpriseAdmin::class, $this->router) === false) { + $this->router[Router\List\EnterpriseAdmin::class] = new Router\List\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\EnterpriseAdmin::class]->ListPreReceiveHooksListing($params); + } + } elseif ($pathChunks[2] === 'tokens') { + if ($call === 'LIST /admin/tokens') { + $matched = true; + if (array_key_exists(Router\List\EnterpriseAdmin::class, $this->router) === false) { + $this->router[Router\List\EnterpriseAdmin::class] = new Router\List\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\EnterpriseAdmin::class]->ListPersonalAccessTokensListing($params); + } + } + } elseif ($pathChunks[1] === 'app') { + if ($pathChunks[2] === 'installation-requests') { + if ($call === 'LIST /app/installation-requests') { + $matched = true; + if (array_key_exists(Router\List\Apps::class, $this->router) === false) { + $this->router[Router\List\Apps::class] = new Router\List\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Apps::class]->ListInstallationRequestsForAuthenticatedAppListing($params); + } + } elseif ($pathChunks[2] === 'installations') { + if ($call === 'LIST /app/installations') { + $matched = true; + if (array_key_exists(Router\List\Apps::class, $this->router) === false) { + $this->router[Router\List\Apps::class] = new Router\List\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Apps::class]->ListInstallationsListing($params); + } + } + } elseif ($pathChunks[1] === 'applications') { + if ($pathChunks[2] === 'grants') { + if ($call === 'LIST /applications/grants') { + $matched = true; + if (array_key_exists(Router\List\OauthAuthorizations::class, $this->router) === false) { + $this->router[Router\List\OauthAuthorizations::class] = new Router\List\OauthAuthorizations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\OauthAuthorizations::class]->ListGrantsListing($params); + } + } + } elseif ($pathChunks[1] === 'gists') { + if ($pathChunks[2] === 'public') { + if ($call === 'LIST /gists/public') { + $matched = true; + if (array_key_exists(Router\List\Gists::class, $this->router) === false) { + $this->router[Router\List\Gists::class] = new Router\List\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Gists::class]->ListPublicListing($params); + } + } elseif ($pathChunks[2] === 'starred') { + if ($call === 'LIST /gists/starred') { + $matched = true; + if (array_key_exists(Router\List\Gists::class, $this->router) === false) { + $this->router[Router\List\Gists::class] = new Router\List\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Gists::class]->ListStarredListing($params); + } + } + } elseif ($pathChunks[1] === 'user') { + if ($pathChunks[2] === 'emails') { + if ($call === 'LIST /user/emails') { + $matched = true; + if (array_key_exists(Router\List\Users::class, $this->router) === false) { + $this->router[Router\List\Users::class] = new Router\List\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Users::class]->ListEmailsForAuthenticatedUserListing($params); + } + } elseif ($pathChunks[2] === 'followers') { + if ($call === 'LIST /user/followers') { + $matched = true; + if (array_key_exists(Router\List\Users::class, $this->router) === false) { + $this->router[Router\List\Users::class] = new Router\List\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Users::class]->ListFollowersForAuthenticatedUserListing($params); + } + } elseif ($pathChunks[2] === 'following') { + if ($call === 'LIST /user/following') { + $matched = true; + if (array_key_exists(Router\List\Users::class, $this->router) === false) { + $this->router[Router\List\Users::class] = new Router\List\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Users::class]->ListFollowedByAuthenticatedUserListing($params); + } + } elseif ($pathChunks[2] === 'gpg_keys') { + if ($call === 'LIST /user/gpg_keys') { + $matched = true; + if (array_key_exists(Router\List\Users::class, $this->router) === false) { + $this->router[Router\List\Users::class] = new Router\List\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Users::class]->ListGpgKeysForAuthenticatedUserListing($params); + } + } elseif ($pathChunks[2] === 'issues') { + if ($call === 'LIST /user/issues') { + $matched = true; + if (array_key_exists(Router\List\Issues::class, $this->router) === false) { + $this->router[Router\List\Issues::class] = new Router\List\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Issues::class]->ListForAuthenticatedUserListing($params); + } + } elseif ($pathChunks[2] === 'keys') { + if ($call === 'LIST /user/keys') { + $matched = true; + if (array_key_exists(Router\List\Users::class, $this->router) === false) { + $this->router[Router\List\Users::class] = new Router\List\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Users::class]->ListPublicSshKeysForAuthenticatedUserListing($params); + } + } elseif ($pathChunks[2] === 'migrations') { + if ($call === 'LIST /user/migrations') { + $matched = true; + if (array_key_exists(Router\List\Migrations::class, $this->router) === false) { + $this->router[Router\List\Migrations::class] = new Router\List\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Migrations::class]->ListForAuthenticatedUserListing($params); + } + } elseif ($pathChunks[2] === 'orgs') { + if ($call === 'LIST /user/orgs') { + $matched = true; + if (array_key_exists(Router\List\Orgs::class, $this->router) === false) { + $this->router[Router\List\Orgs::class] = new Router\List\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Orgs::class]->ListForAuthenticatedUserListing($params); + } + } elseif ($pathChunks[2] === 'public_emails') { + if ($call === 'LIST /user/public_emails') { + $matched = true; + if (array_key_exists(Router\List\Users::class, $this->router) === false) { + $this->router[Router\List\Users::class] = new Router\List\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Users::class]->ListPublicEmailsForAuthenticatedUserListing($params); + } + } elseif ($pathChunks[2] === 'repos') { + if ($call === 'LIST /user/repos') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListForAuthenticatedUserListing($params); + } + } elseif ($pathChunks[2] === 'repository_invitations') { + if ($call === 'LIST /user/repository_invitations') { + $matched = true; + if (array_key_exists(Router\List\Repos::class, $this->router) === false) { + $this->router[Router\List\Repos::class] = new Router\List\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Repos::class]->ListInvitationsForAuthenticatedUserListing($params); + } + } elseif ($pathChunks[2] === 'starred') { + if ($call === 'LIST /user/starred') { + $matched = true; + if (array_key_exists(Router\List\Activity::class, $this->router) === false) { + $this->router[Router\List\Activity::class] = new Router\List\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Activity::class]->ListReposStarredByAuthenticatedUserListing($params); + } + } elseif ($pathChunks[2] === 'subscriptions') { + if ($call === 'LIST /user/subscriptions') { + $matched = true; + if (array_key_exists(Router\List\Activity::class, $this->router) === false) { + $this->router[Router\List\Activity::class] = new Router\List\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Activity::class]->ListWatchedReposForAuthenticatedUserListing($params); + } + } elseif ($pathChunks[2] === 'teams') { + if ($call === 'LIST /user/teams') { + $matched = true; + if (array_key_exists(Router\List\Teams::class, $this->router) === false) { + $this->router[Router\List\Teams::class] = new Router\List\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Teams::class]->ListForAuthenticatedUserListing($params); + } + } + } + } + + if ($matched === false) { + throw new InvalidArgumentException(); + } + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Two.php b/clients/GitHubEnterprise-3.4/src/Router/List/Two.php new file mode 100644 index 00000000000..193fddc5a3c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Two.php @@ -0,0 +1,90 @@ +|array{code: int})|(iterable|(iterable|(iterable|(iterable|(iterable */ + public function call(string $call, array $params, array $pathChunks): iterable + { + $matched = false; + if ($pathChunks[0] === '') { + if ($pathChunks[1] === 'authorizations') { + if ($call === 'LIST /authorizations') { + $matched = true; + if (array_key_exists(Router\List\OauthAuthorizations::class, $this->router) === false) { + $this->router[Router\List\OauthAuthorizations::class] = new Router\List\OauthAuthorizations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\OauthAuthorizations::class]->ListAuthorizationsListing($params); + } + } elseif ($pathChunks[1] === 'events') { + if ($call === 'LIST /events') { + $matched = true; + if (array_key_exists(Router\List\Activity::class, $this->router) === false) { + $this->router[Router\List\Activity::class] = new Router\List\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Activity::class]->ListPublicEventsListing($params); + } + } elseif ($pathChunks[1] === 'gists') { + if ($call === 'LIST /gists') { + $matched = true; + if (array_key_exists(Router\List\Gists::class, $this->router) === false) { + $this->router[Router\List\Gists::class] = new Router\List\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Gists::class]->ListListing($params); + } + } elseif ($pathChunks[1] === 'issues') { + if ($call === 'LIST /issues') { + $matched = true; + if (array_key_exists(Router\List\Issues::class, $this->router) === false) { + $this->router[Router\List\Issues::class] = new Router\List\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Issues::class]->ListListing($params); + } + } elseif ($pathChunks[1] === 'licenses') { + if ($call === 'LIST /licenses') { + $matched = true; + if (array_key_exists(Router\List\Licenses::class, $this->router) === false) { + $this->router[Router\List\Licenses::class] = new Router\List\Licenses($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Licenses::class]->GetAllCommonlyUsedListing($params); + } + } elseif ($pathChunks[1] === 'notifications') { + if ($call === 'LIST /notifications') { + $matched = true; + if (array_key_exists(Router\List\Activity::class, $this->router) === false) { + $this->router[Router\List\Activity::class] = new Router\List\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + } + + return $this->router[Router\List\Activity::class]->ListNotificationsForAuthenticatedUserListing($params); + } + } + } + + if ($matched === false) { + throw new InvalidArgumentException(); + } + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/List/Users.php b/clients/GitHubEnterprise-3.4/src/Router/List/Users.php new file mode 100644 index 00000000000..2ea0bc87f65 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/List/Users.php @@ -0,0 +1,372 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return (iterable | array{code: int}) */ + public function listEmailsForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\Emails::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\Emails::class] = $this->hydrators->getObjectMapperOperation🌀User🌀Emails(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Users\ListEmailsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\Emails::class]); + $items = $operator->call($arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listFollowersForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\Followers::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\Followers::class] = $this->hydrators->getObjectMapperOperation🌀User🌀Followers(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Users\ListFollowersForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\Followers::class]); + $items = $operator->call($arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listFollowedByAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\Following::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\Following::class] = $this->hydrators->getObjectMapperOperation🌀User🌀Following(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Users\ListFollowedByAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\Following::class]); + $items = $operator->call($arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listGpgKeysForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\GpgKeys::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\GpgKeys::class] = $this->hydrators->getObjectMapperOperation🌀User🌀GpgKeys(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Users\ListGpgKeysForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\GpgKeys::class]); + $items = $operator->call($arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listPublicSshKeysForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\Keys::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\Keys::class] = $this->hydrators->getObjectMapperOperation🌀User🌀Keys(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Users\ListPublicSshKeysForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\Keys::class]); + $items = $operator->call($arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return (iterable | array{code: int}) */ + public function listPublicEmailsForAuthenticatedUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\User\PublicEmails::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\User\PublicEmails::class] = $this->hydrators->getObjectMapperOperation🌀User🌀PublicEmails(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Users\ListPublicEmailsForAuthenticatedUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\User\PublicEmails::class]); + $items = $operator->call($arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listFollowersForUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); + } + + $arguments['username'] = $params['username']; + unset($params['username']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Users\Username\Followers::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Users\Username\Followers::class] = $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Followers(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Users\ListFollowersForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Users\Username\Followers::class]); + $items = $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listFollowingForUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); + } + + $arguments['username'] = $params['username']; + unset($params['username']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Users\Username\Following::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Users\Username\Following::class] = $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Following(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Users\ListFollowingForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Users\Username\Following::class]); + $items = $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listGpgKeysForUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); + } + + $arguments['username'] = $params['username']; + unset($params['username']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Users\Username\GpgKeys::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Users\Username\GpgKeys::class] = $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀GpgKeys(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Users\ListGpgKeysForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Users\Username\GpgKeys::class]); + $items = $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + + /** @return iterable */ + public function listPublicKeysForUserListing(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('username', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: username'); + } + + $arguments['username'] = $params['username']; + unset($params['username']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists(Hydrator\Operation\Users\Username\Keys::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Users\Username\Keys::class] = $this->hydrators->getObjectMapperOperation🌀Users🌀Username🌀Keys(); + } + + $arguments['page'] = 1; + do { + $operator = new Operator\Users\ListPublicKeysForUserListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Users\Username\Keys::class]); + $items = $operator->call($arguments['username'], $arguments['per_page'], $arguments['page']); + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/Patch/Eight.php b/clients/GitHubEnterprise-3.4/src/Router/Patch/Eight.php index dee42dfbe3e..f1dd443c413 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Patch/Eight.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Patch/Eight.php @@ -40,7 +40,7 @@ public function call(string $call, array $params, array $pathChunks): ProtectedB $this->router[Router\Patch\Repos::class] = new Router\Patch\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Repos::class]->updatePullRequestReviewProtection($params); + return $this->router[Router\Patch\Repos::class]->UpdatePullRequestReviewProtection($params); } } elseif ($pathChunks[7] === 'required_status_checks') { if ($call === 'PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks') { @@ -49,7 +49,7 @@ public function call(string $call, array $params, array $pathChunks): ProtectedB $this->router[Router\Patch\Repos::class] = new Router\Patch\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Repos::class]->updateStatusCheckProtection($params); + return $this->router[Router\Patch\Repos::class]->UpdateStatusCheckProtection($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Patch/Five.php b/clients/GitHubEnterprise-3.4/src/Router/Patch/Five.php index a817d8d43c5..03175abdc81 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Patch/Five.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Patch/Five.php @@ -43,7 +43,7 @@ public function call(string $call, array $params, array $pathChunks): GistCommen $this->router[Router\Patch\Gists::class] = new Router\Patch\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Gists::class]->updateComment($params); + return $this->router[Router\Patch\Gists::class]->UpdateComment($params); } } } @@ -58,7 +58,7 @@ public function call(string $call, array $params, array $pathChunks): GistCommen $this->router[Router\Patch\Orgs::class] = new Router\Patch\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Orgs::class]->updateWebhook($params); + return $this->router[Router\Patch\Orgs::class]->UpdateWebhook($params); } } } elseif ($pathChunks[3] === 'pre-receive-hooks') { @@ -69,7 +69,7 @@ public function call(string $call, array $params, array $pathChunks): GistCommen $this->router[Router\Patch\EnterpriseAdmin::class] = new Router\Patch\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\EnterpriseAdmin::class]->updatePreReceiveHookEnforcementForOrg($params); + return $this->router[Router\Patch\EnterpriseAdmin::class]->UpdatePreReceiveHookEnforcementForOrg($params); } } } elseif ($pathChunks[3] === 'teams') { @@ -80,7 +80,7 @@ public function call(string $call, array $params, array $pathChunks): GistCommen $this->router[Router\Patch\Teams::class] = new Router\Patch\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Teams::class]->updateInOrg($params); + return $this->router[Router\Patch\Teams::class]->UpdateInOrg($params); } } } @@ -95,7 +95,7 @@ public function call(string $call, array $params, array $pathChunks): GistCommen $this->router[Router\Patch\Projects::class] = new Router\Patch\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Projects::class]->updateCard($params); + return $this->router[Router\Patch\Projects::class]->UpdateCard($params); } } } @@ -110,7 +110,7 @@ public function call(string $call, array $params, array $pathChunks): GistCommen $this->router[Router\Patch\Teams::class] = new Router\Patch\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Teams::class]->updateDiscussionLegacy($params); + return $this->router[Router\Patch\Teams::class]->UpdateDiscussionLegacy($params); } } } @@ -125,7 +125,7 @@ public function call(string $call, array $params, array $pathChunks): GistCommen $this->router[Router\Patch\Orgs::class] = new Router\Patch\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Orgs::class]->updateMembershipForAuthenticatedUser($params); + return $this->router[Router\Patch\Orgs::class]->UpdateMembershipForAuthenticatedUser($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Patch/Four.php b/clients/GitHubEnterprise-3.4/src/Router/Patch/Four.php index 548fb084f56..afbaf2fa6a1 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Patch/Four.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Patch/Four.php @@ -45,7 +45,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Patch\EnterpriseAdmin::class] = new Router\Patch\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\EnterpriseAdmin::class]->updateGlobalWebhook($params); + return $this->router[Router\Patch\EnterpriseAdmin::class]->UpdateGlobalWebhook($params); } } } elseif ($pathChunks[2] === 'organizations') { @@ -56,7 +56,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Patch\EnterpriseAdmin::class] = new Router\Patch\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\EnterpriseAdmin::class]->updateOrgName($params); + return $this->router[Router\Patch\EnterpriseAdmin::class]->UpdateOrgName($params); } } } elseif ($pathChunks[2] === 'pre-receive-environments') { @@ -67,7 +67,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Patch\EnterpriseAdmin::class] = new Router\Patch\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\EnterpriseAdmin::class]->updatePreReceiveEnvironment($params); + return $this->router[Router\Patch\EnterpriseAdmin::class]->UpdatePreReceiveEnvironment($params); } } } elseif ($pathChunks[2] === 'pre-receive-hooks') { @@ -78,7 +78,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Patch\EnterpriseAdmin::class] = new Router\Patch\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\EnterpriseAdmin::class]->updatePreReceiveHook($params); + return $this->router[Router\Patch\EnterpriseAdmin::class]->UpdatePreReceiveHook($params); } } } elseif ($pathChunks[2] === 'users') { @@ -89,7 +89,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Patch\EnterpriseAdmin::class] = new Router\Patch\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\EnterpriseAdmin::class]->updateUsernameForUser($params); + return $this->router[Router\Patch\EnterpriseAdmin::class]->UpdateUsernameForUser($params); } } } @@ -102,7 +102,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Patch\Apps::class] = new Router\Patch\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Apps::class]->updateWebhookConfigForApp($params); + return $this->router[Router\Patch\Apps::class]->UpdateWebhookConfigForApp($params); } } } @@ -115,7 +115,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Patch\Apps::class] = new Router\Patch\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Apps::class]->resetToken($params); + return $this->router[Router\Patch\Apps::class]->ResetToken($params); } } } @@ -128,7 +128,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Patch\Activity::class] = new Router\Patch\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Activity::class]->markThreadAsRead($params); + return $this->router[Router\Patch\Activity::class]->MarkThreadAsRead($params); } } } @@ -141,7 +141,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Patch\Projects::class] = new Router\Patch\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Projects::class]->updateColumn($params); + return $this->router[Router\Patch\Projects::class]->UpdateColumn($params); } } } @@ -154,7 +154,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Patch\Repos::class] = new Router\Patch\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Repos::class]->update($params); + return $this->router[Router\Patch\Repos::class]->Update($params); } } } @@ -167,7 +167,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Patch\Repos::class] = new Router\Patch\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Repos::class]->acceptInvitationForAuthenticatedUser($params); + return $this->router[Router\Patch\Repos::class]->AcceptInvitationForAuthenticatedUser($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Patch/Nine.php b/clients/GitHubEnterprise-3.4/src/Router/Patch/Nine.php index 04d47e277aa..2a689a85bcb 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Patch/Nine.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Patch/Nine.php @@ -40,7 +40,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Patch\Teams::class] = new Router\Patch\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Teams::class]->updateDiscussionCommentInOrg($params); + return $this->router[Router\Patch\Teams::class]->UpdateDiscussionCommentInOrg($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Patch/Orgs.php b/clients/GitHubEnterprise-3.4/src/Router/Patch/Orgs.php index 01f07a137f1..aa9eabf54f1 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Patch/Orgs.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Patch/Orgs.php @@ -7,7 +7,6 @@ use ApiClients\Client\GitHubEnterprise\Hydrator; use ApiClients\Client\GitHubEnterprise\Hydrators; use ApiClients\Client\GitHubEnterprise\Operator; -use ApiClients\Client\GitHubEnterprise\Schema; use ApiClients\Client\GitHubEnterprise\Schema\OrganizationFull; use ApiClients\Client\GitHubEnterprise\Schema\OrgHook; use ApiClients\Client\GitHubEnterprise\Schema\OrgMembership; @@ -55,7 +54,7 @@ public function updateWebhookConfigForOrg(array $params): WebhookConfig|array return $operator->call($arguments['org'], $arguments['hook_id'], $params); } - /** @return Schema\OrganizationFull */ + /** @return */ public function update(array $params): OrganizationFull|array { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Patch/Seven.php b/clients/GitHubEnterprise-3.4/src/Router/Patch/Seven.php index c60f6abfefe..09b2daa070d 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Patch/Seven.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Patch/Seven.php @@ -47,7 +47,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Patch\Teams::class] = new Router\Patch\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Teams::class]->updateDiscussionInOrg($params); + return $this->router[Router\Patch\Teams::class]->UpdateDiscussionInOrg($params); } } } @@ -66,7 +66,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Patch\CodeScanning::class] = new Router\Patch\CodeScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\CodeScanning::class]->updateAlert($params); + return $this->router[Router\Patch\CodeScanning::class]->UpdateAlert($params); } } } @@ -79,7 +79,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Patch\Git::class] = new Router\Patch\Git($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Git::class]->updateRef($params); + return $this->router[Router\Patch\Git::class]->UpdateRef($params); } } } @@ -92,7 +92,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Patch\Repos::class] = new Router\Patch\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Repos::class]->updateWebhookConfigForRepo($params); + return $this->router[Router\Patch\Repos::class]->UpdateWebhookConfigForRepo($params); } } } @@ -105,7 +105,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Patch\Issues::class] = new Router\Patch\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Issues::class]->updateComment($params); + return $this->router[Router\Patch\Issues::class]->UpdateComment($params); } } } @@ -118,7 +118,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Patch\Pulls::class] = new Router\Patch\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Pulls::class]->updateReviewComment($params); + return $this->router[Router\Patch\Pulls::class]->UpdateReviewComment($params); } } } @@ -131,7 +131,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Patch\Repos::class] = new Router\Patch\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Repos::class]->updateReleaseAsset($params); + return $this->router[Router\Patch\Repos::class]->UpdateReleaseAsset($params); } } } @@ -144,7 +144,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Patch\SecretScanning::class] = new Router\Patch\SecretScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\SecretScanning::class]->updateAlert($params); + return $this->router[Router\Patch\SecretScanning::class]->UpdateAlert($params); } } } @@ -163,7 +163,7 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus $this->router[Router\Patch\Teams::class] = new Router\Patch\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Teams::class]->updateDiscussionCommentLegacy($params); + return $this->router[Router\Patch\Teams::class]->UpdateDiscussionCommentLegacy($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Patch/Six.php b/clients/GitHubEnterprise-3.4/src/Router/Patch/Six.php index 6147dc3ad6d..05af313e690 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Patch/Six.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Patch/Six.php @@ -53,7 +53,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\EnterpriseAdmin::class] = new Router\Patch\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\EnterpriseAdmin::class]->updateLdapMappingForTeam($params); + return $this->router[Router\Patch\EnterpriseAdmin::class]->UpdateLdapMappingForTeam($params); } } } @@ -66,7 +66,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\EnterpriseAdmin::class] = new Router\Patch\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\EnterpriseAdmin::class]->updateLdapMappingForUser($params); + return $this->router[Router\Patch\EnterpriseAdmin::class]->UpdateLdapMappingForUser($params); } } } @@ -83,7 +83,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\EnterpriseAdmin::class] = new Router\Patch\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\EnterpriseAdmin::class]->updateSelfHostedRunnerGroupForEnterprise($params); + return $this->router[Router\Patch\EnterpriseAdmin::class]->UpdateSelfHostedRunnerGroupForEnterprise($params); } } } @@ -100,7 +100,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\Actions::class] = new Router\Patch\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Actions::class]->updateSelfHostedRunnerGroupForOrg($params); + return $this->router[Router\Patch\Actions::class]->UpdateSelfHostedRunnerGroupForOrg($params); } } } @@ -113,7 +113,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\Orgs::class] = new Router\Patch\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Orgs::class]->updateWebhookConfigForOrg($params); + return $this->router[Router\Patch\Orgs::class]->UpdateWebhookConfigForOrg($params); } } } @@ -130,7 +130,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\Checks::class] = new Router\Patch\Checks($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Checks::class]->update($params); + return $this->router[Router\Patch\Checks::class]->Update($params); } } } elseif ($pathChunks[4] === 'check-suites') { @@ -141,7 +141,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\Checks::class] = new Router\Patch\Checks($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Checks::class]->setSuitesPreferences($params); + return $this->router[Router\Patch\Checks::class]->SetSuitesPreferences($params); } } } elseif ($pathChunks[4] === 'comments') { @@ -152,7 +152,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\Repos::class] = new Router\Patch\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Repos::class]->updateCommitComment($params); + return $this->router[Router\Patch\Repos::class]->UpdateCommitComment($params); } } } elseif ($pathChunks[4] === 'hooks') { @@ -163,7 +163,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\Repos::class] = new Router\Patch\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Repos::class]->updateWebhook($params); + return $this->router[Router\Patch\Repos::class]->UpdateWebhook($params); } } } elseif ($pathChunks[4] === 'invitations') { @@ -174,7 +174,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\Repos::class] = new Router\Patch\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Repos::class]->updateInvitation($params); + return $this->router[Router\Patch\Repos::class]->UpdateInvitation($params); } } } elseif ($pathChunks[4] === 'issues') { @@ -185,7 +185,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\Issues::class] = new Router\Patch\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Issues::class]->update($params); + return $this->router[Router\Patch\Issues::class]->Update($params); } } } elseif ($pathChunks[4] === 'labels') { @@ -196,7 +196,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\Issues::class] = new Router\Patch\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Issues::class]->updateLabel($params); + return $this->router[Router\Patch\Issues::class]->UpdateLabel($params); } } } elseif ($pathChunks[4] === 'milestones') { @@ -207,7 +207,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\Issues::class] = new Router\Patch\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Issues::class]->updateMilestone($params); + return $this->router[Router\Patch\Issues::class]->UpdateMilestone($params); } } } elseif ($pathChunks[4] === 'pre-receive-hooks') { @@ -218,7 +218,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\EnterpriseAdmin::class] = new Router\Patch\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\EnterpriseAdmin::class]->updatePreReceiveHookEnforcementForRepo($params); + return $this->router[Router\Patch\EnterpriseAdmin::class]->UpdatePreReceiveHookEnforcementForRepo($params); } } } elseif ($pathChunks[4] === 'pulls') { @@ -229,7 +229,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\Pulls::class] = new Router\Patch\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Pulls::class]->update($params); + return $this->router[Router\Patch\Pulls::class]->Update($params); } } } elseif ($pathChunks[4] === 'releases') { @@ -240,7 +240,7 @@ public function call(string $call, array $params, array $pathChunks): LdapMappin $this->router[Router\Patch\Repos::class] = new Router\Patch\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Repos::class]->updateRelease($params); + return $this->router[Router\Patch\Repos::class]->UpdateRelease($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Patch/Three.php b/clients/GitHubEnterprise-3.4/src/Router/Patch/Three.php index dcfff0d1782..0a1423287f5 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Patch/Three.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Patch/Three.php @@ -27,7 +27,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return |Schema\OrganizationFull|(Schema\Project|array{code: int}) */ + /** @return |(Schema\Project|array{code: int}) */ public function call(string $call, array $params, array $pathChunks): Authorization|Announcement|GistSimple|OrganizationFull|Project|TeamFull|array { $matched = false; @@ -40,7 +40,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Patch\OauthAuthorizations::class] = new Router\Patch\OauthAuthorizations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\OauthAuthorizations::class]->updateAuthorization($params); + return $this->router[Router\Patch\OauthAuthorizations::class]->UpdateAuthorization($params); } } } elseif ($pathChunks[1] === 'enterprise') { @@ -51,7 +51,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Patch\EnterpriseAdmin::class] = new Router\Patch\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\EnterpriseAdmin::class]->setAnnouncement($params); + return $this->router[Router\Patch\EnterpriseAdmin::class]->SetAnnouncement($params); } } } elseif ($pathChunks[1] === 'gists') { @@ -62,7 +62,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Patch\Gists::class] = new Router\Patch\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Gists::class]->update($params); + return $this->router[Router\Patch\Gists::class]->Update($params); } } } elseif ($pathChunks[1] === 'orgs') { @@ -73,7 +73,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Patch\Orgs::class] = new Router\Patch\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Orgs::class]->update($params); + return $this->router[Router\Patch\Orgs::class]->Update($params); } } } elseif ($pathChunks[1] === 'projects') { @@ -84,7 +84,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Patch\Projects::class] = new Router\Patch\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Projects::class]->update($params); + return $this->router[Router\Patch\Projects::class]->Update($params); } } } elseif ($pathChunks[1] === 'teams') { @@ -95,7 +95,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Patch\Teams::class] = new Router\Patch\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Teams::class]->updateLegacy($params); + return $this->router[Router\Patch\Teams::class]->UpdateLegacy($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Patch/Two.php b/clients/GitHubEnterprise-3.4/src/Router/Patch/Two.php index 40374320e89..f51264dcf3a 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Patch/Two.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Patch/Two.php @@ -35,7 +35,7 @@ public function call(string $call, array $params, array $pathChunks): PrivateUse $this->router[Router\Patch\Users::class] = new Router\Patch\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Patch\Users::class]->updateAuthenticated($params); + return $this->router[Router\Patch\Users::class]->UpdateAuthenticated($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Post/Actions.php b/clients/GitHubEnterprise-3.4/src/Router/Post/Actions.php index 280d3752e82..9e3c43d1f9f 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Post/Actions.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Post/Actions.php @@ -231,7 +231,7 @@ public function cancelWorkflowRun(array $params): EmptyObject|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['run_id']); } - /** @return iterable */ + /** @return Observable */ public function reviewPendingDeploymentsForRun(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Post/Eight.php b/clients/GitHubEnterprise-3.4/src/Router/Post/Eight.php index d05a2bf9b1a..3b59ea6575d 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Post/Eight.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Post/Eight.php @@ -27,7 +27,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return |iterable|array{code: int} */ + /** @return |Observable|array{code: int} */ public function call(string $call, array $params, array $pathChunks): Json|TeamDiscussionComment|Reaction|Ok|EmptyObject|iterable|ProtectedBranchAdminEnforced { $matched = false; @@ -45,7 +45,7 @@ public function call(string $call, array $params, array $pathChunks): Json|TeamD $this->router[Router\Post\Orgs::class] = new Router\Post\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Orgs::class]->redeliverWebhookDelivery($params); + return $this->router[Router\Post\Orgs::class]->RedeliverWebhookDelivery($params); } } } @@ -62,7 +62,7 @@ public function call(string $call, array $params, array $pathChunks): Json|TeamD $this->router[Router\Post\Teams::class] = new Router\Post\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Teams::class]->createDiscussionCommentInOrg($params); + return $this->router[Router\Post\Teams::class]->CreateDiscussionCommentInOrg($params); } } elseif ($pathChunks[7] === 'reactions') { if ($call === 'POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions') { @@ -71,7 +71,7 @@ public function call(string $call, array $params, array $pathChunks): Json|TeamD $this->router[Router\Post\Reactions::class] = new Router\Post\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Reactions::class]->createForTeamDiscussionInOrg($params); + return $this->router[Router\Post\Reactions::class]->CreateForTeamDiscussionInOrg($params); } } } @@ -92,7 +92,7 @@ public function call(string $call, array $params, array $pathChunks): Json|TeamD $this->router[Router\Post\Actions::class] = new Router\Post\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Actions::class]->addCustomLabelsToSelfHostedRunnerForRepo($params); + return $this->router[Router\Post\Actions::class]->AddCustomLabelsToSelfHostedRunnerForRepo($params); } } } @@ -105,7 +105,7 @@ public function call(string $call, array $params, array $pathChunks): Json|TeamD $this->router[Router\Post\Actions::class] = new Router\Post\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Actions::class]->cancelWorkflowRun($params); + return $this->router[Router\Post\Actions::class]->CancelWorkflowRun($params); } } elseif ($pathChunks[7] === 'pending_deployments') { if ($call === 'POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments') { @@ -114,7 +114,7 @@ public function call(string $call, array $params, array $pathChunks): Json|TeamD $this->router[Router\Post\Actions::class] = new Router\Post\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Actions::class]->reviewPendingDeploymentsForRun($params); + return $this->router[Router\Post\Actions::class]->ReviewPendingDeploymentsForRun($params); } } elseif ($pathChunks[7] === 'rerun') { if ($call === 'POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun') { @@ -123,7 +123,7 @@ public function call(string $call, array $params, array $pathChunks): Json|TeamD $this->router[Router\Post\Actions::class] = new Router\Post\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Actions::class]->reRunWorkflow($params); + return $this->router[Router\Post\Actions::class]->ReRunWorkflow($params); } } } @@ -136,7 +136,7 @@ public function call(string $call, array $params, array $pathChunks): Json|TeamD $this->router[Router\Post\Actions::class] = new Router\Post\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Actions::class]->createWorkflowDispatch($params); + return $this->router[Router\Post\Actions::class]->CreateWorkflowDispatch($params); } } } @@ -151,7 +151,7 @@ public function call(string $call, array $params, array $pathChunks): Json|TeamD $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->setAdminBranchProtection($params); + return $this->router[Router\Post\Repos::class]->SetAdminBranchProtection($params); } } elseif ($pathChunks[7] === 'required_signatures') { if ($call === 'POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures') { @@ -160,7 +160,7 @@ public function call(string $call, array $params, array $pathChunks): Json|TeamD $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createCommitSignatureProtection($params); + return $this->router[Router\Post\Repos::class]->CreateCommitSignatureProtection($params); } } } @@ -175,7 +175,7 @@ public function call(string $call, array $params, array $pathChunks): Json|TeamD $this->router[Router\Post\Reactions::class] = new Router\Post\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Reactions::class]->createForIssueComment($params); + return $this->router[Router\Post\Reactions::class]->CreateForIssueComment($params); } } } @@ -190,7 +190,7 @@ public function call(string $call, array $params, array $pathChunks): Json|TeamD $this->router[Router\Post\Reactions::class] = new Router\Post\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Reactions::class]->createForPullRequestReviewComment($params); + return $this->router[Router\Post\Reactions::class]->CreateForPullRequestReviewComment($params); } } } @@ -211,7 +211,7 @@ public function call(string $call, array $params, array $pathChunks): Json|TeamD $this->router[Router\Post\Reactions::class] = new Router\Post\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Reactions::class]->createForTeamDiscussionCommentLegacy($params); + return $this->router[Router\Post\Reactions::class]->CreateForTeamDiscussionCommentLegacy($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Post/EnterpriseAdmin.php b/clients/GitHubEnterprise-3.4/src/Router/Post/EnterpriseAdmin.php index 25ca56e24e8..c64c21632cb 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Post/EnterpriseAdmin.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Post/EnterpriseAdmin.php @@ -179,7 +179,7 @@ public function createSelfHostedRunnerGroupForEnterprise(array $params): RunnerG return $operator->call($arguments['enterprise'], $params); } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function addAuthorizedSshKey(array $params): iterable { $matched = true; @@ -337,24 +337,4 @@ public function addCustomLabelsToSelfHostedRunnerForEnterprise(array $params): O return $operator->call($arguments['enterprise'], $arguments['runner_id'], $params); } - - /** @return */ - public function startPreReceiveEnvironmentDownloadStreaming(array $params): PreReceiveEnvironmentDownloadStatus|array - { - $matched = true; - $arguments = []; - if (array_key_exists('pre_receive_environment_id', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: pre_receive_environment_id'); - } - - $arguments['pre_receive_environment_id'] = $params['pre_receive_environment_id']; - unset($params['pre_receive_environment_id']); - if (array_key_exists(Hydrator\Operation\Admin\PreReceiveEnvironments\PreReceiveEnvironmentId\Downloads::class, $this->hydrator) === false) { - $this->hydrator[Hydrator\Operation\Admin\PreReceiveEnvironments\PreReceiveEnvironmentId\Downloads::class] = $this->hydrators->getObjectMapperOperation🌀Admin🌀PreReceiveEnvironments🌀PreReceiveEnvironmentId🌀Downloads(); - } - - $operator = new Operator\EnterpriseAdmin\StartPreReceiveEnvironmentDownloadStreaming($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Admin\PreReceiveEnvironments\PreReceiveEnvironmentId\Downloads::class]); - - return $operator->call($arguments['pre_receive_environment_id']); - } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Post/Five.php b/clients/GitHubEnterprise-3.4/src/Router/Post/Five.php index edf327f2c04..b6ac193332e 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Post/Five.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Post/Five.php @@ -46,7 +46,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return array{code: int}||(Schema\ProjectCard|array{code: int})|(Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|(Schema\Deployment|Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|(Schema\MergedUpstream|(Schema\Commit|(iterable */ + /** @return array{code: int}||(Schema\ProjectCard|array{code: int})|(Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|(Schema\Deployment|Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|(Schema\MergedUpstream|(Schema\Commit|(Observable */ public function call(string $call, array $params, array $pathChunks): PreReceiveEnvironmentDownloadStatus|Authorization|InstallationToken|RunnerGroupsEnterprise|RunnerGroupsOrg|ProjectCard|Json|Autolink|CheckRun|CheckSuite|Deployment|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|FullRepository|Hook|Issue|DeployKey|Label|MergedUpstream|Commit|Milestone|Page|Project|PullRequest|Release|MinimalRepository|Repository|iterable { $matched = false; @@ -61,7 +61,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->pingGlobalWebhook($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->PingGlobalWebhook($params); } } } @@ -74,7 +74,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->startPreReceiveEnvironmentDownload($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->StartPreReceiveEnvironmentDownload($params); } } } @@ -87,7 +87,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->createImpersonationOAuthToken($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->CreateImpersonationOAuthToken($params); } } } @@ -102,7 +102,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Apps::class] = new Router\Post\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Apps::class]->createInstallationAccessToken($params); + return $this->router[Router\Post\Apps::class]->CreateInstallationAccessToken($params); } } } @@ -117,7 +117,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Apps::class] = new Router\Post\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Apps::class]->scopeToken($params); + return $this->router[Router\Post\Apps::class]->ScopeToken($params); } } } @@ -132,7 +132,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->createSelfHostedRunnerGroupForEnterprise($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->CreateSelfHostedRunnerGroupForEnterprise($params); } } } @@ -147,7 +147,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Actions::class] = new Router\Post\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Actions::class]->createSelfHostedRunnerGroupForOrg($params); + return $this->router[Router\Post\Actions::class]->CreateSelfHostedRunnerGroupForOrg($params); } } } @@ -162,7 +162,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Projects::class] = new Router\Post\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Projects::class]->createCard($params); + return $this->router[Router\Post\Projects::class]->CreateCard($params); } } elseif ($pathChunks[4] === 'moves') { if ($call === 'POST /projects/columns/{column_id}/moves') { @@ -171,7 +171,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Projects::class] = new Router\Post\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Projects::class]->moveColumn($params); + return $this->router[Router\Post\Projects::class]->MoveColumn($params); } } } @@ -186,7 +186,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createAutolink($params); + return $this->router[Router\Post\Repos::class]->CreateAutolink($params); } } elseif ($pathChunks[4] === 'check-runs') { if ($call === 'POST /repos/{owner}/{repo}/check-runs') { @@ -195,7 +195,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Checks::class] = new Router\Post\Checks($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Checks::class]->create($params); + return $this->router[Router\Post\Checks::class]->Create($params); } } elseif ($pathChunks[4] === 'check-suites') { if ($call === 'POST /repos/{owner}/{repo}/check-suites') { @@ -204,7 +204,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Checks::class] = new Router\Post\Checks($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Checks::class]->createSuite($params); + return $this->router[Router\Post\Checks::class]->CreateSuite($params); } } elseif ($pathChunks[4] === 'deployments') { if ($call === 'POST /repos/{owner}/{repo}/deployments') { @@ -213,7 +213,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createDeployment($params); + return $this->router[Router\Post\Repos::class]->CreateDeployment($params); } } elseif ($pathChunks[4] === 'dispatches') { if ($call === 'POST /repos/{owner}/{repo}/dispatches') { @@ -222,7 +222,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createDispatchEvent($params); + return $this->router[Router\Post\Repos::class]->CreateDispatchEvent($params); } } elseif ($pathChunks[4] === 'forks') { if ($call === 'POST /repos/{owner}/{repo}/forks') { @@ -231,7 +231,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createFork($params); + return $this->router[Router\Post\Repos::class]->CreateFork($params); } } elseif ($pathChunks[4] === 'hooks') { if ($call === 'POST /repos/{owner}/{repo}/hooks') { @@ -240,7 +240,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createWebhook($params); + return $this->router[Router\Post\Repos::class]->CreateWebhook($params); } } elseif ($pathChunks[4] === 'issues') { if ($call === 'POST /repos/{owner}/{repo}/issues') { @@ -249,7 +249,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Issues::class] = new Router\Post\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Issues::class]->create($params); + return $this->router[Router\Post\Issues::class]->Create($params); } } elseif ($pathChunks[4] === 'keys') { if ($call === 'POST /repos/{owner}/{repo}/keys') { @@ -258,7 +258,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createDeployKey($params); + return $this->router[Router\Post\Repos::class]->CreateDeployKey($params); } } elseif ($pathChunks[4] === 'labels') { if ($call === 'POST /repos/{owner}/{repo}/labels') { @@ -267,7 +267,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Issues::class] = new Router\Post\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Issues::class]->createLabel($params); + return $this->router[Router\Post\Issues::class]->CreateLabel($params); } } elseif ($pathChunks[4] === 'merge-upstream') { if ($call === 'POST /repos/{owner}/{repo}/merge-upstream') { @@ -276,7 +276,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->mergeUpstream($params); + return $this->router[Router\Post\Repos::class]->MergeUpstream($params); } } elseif ($pathChunks[4] === 'merges') { if ($call === 'POST /repos/{owner}/{repo}/merges') { @@ -285,7 +285,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->merge($params); + return $this->router[Router\Post\Repos::class]->Merge($params); } } elseif ($pathChunks[4] === 'milestones') { if ($call === 'POST /repos/{owner}/{repo}/milestones') { @@ -294,7 +294,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Issues::class] = new Router\Post\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Issues::class]->createMilestone($params); + return $this->router[Router\Post\Issues::class]->CreateMilestone($params); } } elseif ($pathChunks[4] === 'pages') { if ($call === 'POST /repos/{owner}/{repo}/pages') { @@ -303,7 +303,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createPagesSite($params); + return $this->router[Router\Post\Repos::class]->CreatePagesSite($params); } } elseif ($pathChunks[4] === 'projects') { if ($call === 'POST /repos/{owner}/{repo}/projects') { @@ -312,7 +312,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Projects::class] = new Router\Post\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Projects::class]->createForRepo($params); + return $this->router[Router\Post\Projects::class]->CreateForRepo($params); } } elseif ($pathChunks[4] === 'pulls') { if ($call === 'POST /repos/{owner}/{repo}/pulls') { @@ -321,7 +321,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Pulls::class] = new Router\Post\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Pulls::class]->create($params); + return $this->router[Router\Post\Pulls::class]->Create($params); } } elseif ($pathChunks[4] === 'releases') { if ($call === 'POST /repos/{owner}/{repo}/releases') { @@ -330,7 +330,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createRelease($params); + return $this->router[Router\Post\Repos::class]->CreateRelease($params); } } elseif ($pathChunks[4] === 'transfer') { if ($call === 'POST /repos/{owner}/{repo}/transfer') { @@ -339,7 +339,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->transfer($params); + return $this->router[Router\Post\Repos::class]->Transfer($params); } } } @@ -352,7 +352,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createUsingTemplate($params); + return $this->router[Router\Post\Repos::class]->CreateUsingTemplate($params); } } } @@ -367,7 +367,7 @@ public function call(string $call, array $params, array $pathChunks): PreReceive $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->addAuthorizedSshKey($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->AddAuthorizedSshKey($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Post/Four.php b/clients/GitHubEnterprise-3.4/src/Router/Post/Four.php index cdc32a5a3f2..623b0ff75e3 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Post/Four.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Post/Four.php @@ -47,7 +47,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Post\Apps::class] = new Router\Post\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Apps::class]->createFromManifest($params); + return $this->router[Router\Post\Apps::class]->CreateFromManifest($params); } } } @@ -60,7 +60,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Post\Apps::class] = new Router\Post\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Apps::class]->checkToken($params); + return $this->router[Router\Post\Apps::class]->CheckToken($params); } } } @@ -73,7 +73,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Post\Gists::class] = new Router\Post\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Gists::class]->createComment($params); + return $this->router[Router\Post\Gists::class]->CreateComment($params); } } elseif ($pathChunks[3] === 'forks') { if ($call === 'POST /gists/{gist_id}/forks') { @@ -82,7 +82,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Post\Gists::class] = new Router\Post\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Gists::class]->fork($params); + return $this->router[Router\Post\Gists::class]->Fork($params); } } } @@ -95,7 +95,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Post\Orgs::class] = new Router\Post\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Orgs::class]->createWebhook($params); + return $this->router[Router\Post\Orgs::class]->CreateWebhook($params); } } elseif ($pathChunks[3] === 'migrations') { if ($call === 'POST /orgs/{org}/migrations') { @@ -104,7 +104,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Post\Migrations::class] = new Router\Post\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Migrations::class]->startForOrg($params); + return $this->router[Router\Post\Migrations::class]->StartForOrg($params); } } elseif ($pathChunks[3] === 'projects') { if ($call === 'POST /orgs/{org}/projects') { @@ -113,7 +113,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Post\Projects::class] = new Router\Post\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Projects::class]->createForOrg($params); + return $this->router[Router\Post\Projects::class]->CreateForOrg($params); } } elseif ($pathChunks[3] === 'repos') { if ($call === 'POST /orgs/{org}/repos') { @@ -122,7 +122,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createInOrg($params); + return $this->router[Router\Post\Repos::class]->CreateInOrg($params); } } elseif ($pathChunks[3] === 'teams') { if ($call === 'POST /orgs/{org}/teams') { @@ -131,7 +131,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Post\Teams::class] = new Router\Post\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Teams::class]->create($params); + return $this->router[Router\Post\Teams::class]->Create($params); } } } @@ -144,7 +144,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Post\Projects::class] = new Router\Post\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Projects::class]->createColumn($params); + return $this->router[Router\Post\Projects::class]->CreateColumn($params); } } } @@ -157,7 +157,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->startConfigurationProcess($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->StartConfigurationProcess($params); } } elseif ($pathChunks[3] === 'maintenance') { if ($call === 'POST /setup/api/maintenance') { @@ -166,7 +166,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->enableOrDisableMaintenanceMode($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->EnableOrDisableMaintenanceMode($params); } } elseif ($pathChunks[3] === 'start') { if ($call === 'POST /setup/api/start') { @@ -175,7 +175,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->createEnterpriseServerLicense($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->CreateEnterpriseServerLicense($params); } } elseif ($pathChunks[3] === 'upgrade') { if ($call === 'POST /setup/api/upgrade') { @@ -184,7 +184,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->upgradeLicense($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->UpgradeLicense($params); } } } @@ -197,7 +197,7 @@ public function call(string $call, array $params, array $pathChunks): Integratio $this->router[Router\Post\Teams::class] = new Router\Post\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Teams::class]->createDiscussionLegacy($params); + return $this->router[Router\Post\Teams::class]->CreateDiscussionLegacy($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Post/Issues.php b/clients/GitHubEnterprise-3.4/src/Router/Post/Issues.php index 2fdaa40815f..1156bc121c9 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Post/Issues.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Post/Issues.php @@ -172,7 +172,7 @@ public function createComment(array $params): IssueComment|array return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $params); } - /** @return (iterable | Schema\BasicError) */ + /** @return (Observable | Schema\BasicError) */ public function addLabels(array $params): iterable|BasicError { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Post/Nine.php b/clients/GitHubEnterprise-3.4/src/Router/Post/Nine.php index a88b1438d8a..bb14a983b81 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Post/Nine.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Post/Nine.php @@ -24,7 +24,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable|iterable|iterable|iterable| */ + /** @return Observable|Observable|Observable|Observable| */ public function call(string $call, array $params, array $pathChunks): iterable|Json|PullRequestReviewComment|PullRequestReview { $matched = false; @@ -43,7 +43,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|J $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->addStatusCheckContexts($params); + return $this->router[Router\Post\Repos::class]->AddStatusCheckContexts($params); } } } elseif ($pathChunks[7] === 'restrictions') { @@ -54,7 +54,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|J $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->addAppAccessRestrictions($params); + return $this->router[Router\Post\Repos::class]->AddAppAccessRestrictions($params); } } elseif ($pathChunks[8] === 'teams') { if ($call === 'POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams') { @@ -63,7 +63,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|J $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->addTeamAccessRestrictions($params); + return $this->router[Router\Post\Repos::class]->AddTeamAccessRestrictions($params); } } elseif ($pathChunks[8] === 'users') { if ($call === 'POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users') { @@ -72,7 +72,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|J $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->addUserAccessRestrictions($params); + return $this->router[Router\Post\Repos::class]->AddUserAccessRestrictions($params); } } } @@ -89,7 +89,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|J $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->redeliverWebhookDelivery($params); + return $this->router[Router\Post\Repos::class]->RedeliverWebhookDelivery($params); } } } @@ -106,7 +106,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|J $this->router[Router\Post\Pulls::class] = new Router\Post\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Pulls::class]->createReplyForReviewComment($params); + return $this->router[Router\Post\Pulls::class]->CreateReplyForReviewComment($params); } } } @@ -119,7 +119,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|J $this->router[Router\Post\Pulls::class] = new Router\Post\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Pulls::class]->submitReview($params); + return $this->router[Router\Post\Pulls::class]->SubmitReview($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Post/Repos.php b/clients/GitHubEnterprise-3.4/src/Router/Post/Repos.php index 6b3eaebeb5f..ae801e4c858 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Post/Repos.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Post/Repos.php @@ -775,7 +775,7 @@ public function createCommitSignatureProtection(array $params): ProtectedBranchA return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch']); } - /** @return iterable */ + /** @return Observable */ public function addStatusCheckContexts(array $params): iterable { $matched = true; @@ -807,7 +807,7 @@ public function addStatusCheckContexts(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch'], $params); } - /** @return iterable */ + /** @return Observable */ public function addAppAccessRestrictions(array $params): iterable { $matched = true; @@ -839,7 +839,7 @@ public function addAppAccessRestrictions(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch'], $params); } - /** @return iterable */ + /** @return Observable */ public function addTeamAccessRestrictions(array $params): iterable { $matched = true; @@ -871,7 +871,7 @@ public function addTeamAccessRestrictions(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch'], $params); } - /** @return iterable */ + /** @return Observable */ public function addUserAccessRestrictions(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Post/Seven.php b/clients/GitHubEnterprise-3.4/src/Router/Post/Seven.php index 3893dae3d13..c8d49dbe069 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Post/Seven.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Post/Seven.php @@ -36,7 +36,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return |(Schema\DeploymentBranchPolicy|array{code: int})|array{code: int}|(iterable|Schema\BasicError)|(Schema\PullRequestSimple|(Schema\ReleaseAsset */ + /** @return |(Schema\DeploymentBranchPolicy|array{code: int})|array{code: int}|(Observable|Schema\BasicError)|(Schema\PullRequestSimple|(Schema\ReleaseAsset */ public function call(string $call, array $params, array $pathChunks): Ok|AuthenticationToken|BranchWithProtection|EmptyObject|Reaction|CommitComment|DeploymentStatus|DeploymentBranchPolicy|Issue|IssueComment|iterable|BasicError|PullRequestReviewComment|PullRequestSimple|PullRequestReview|ReleaseAsset { $matched = false; @@ -53,7 +53,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->addCustomLabelsToSelfHostedRunnerForEnterprise($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->AddCustomLabelsToSelfHostedRunnerForEnterprise($params); } } } @@ -72,7 +72,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Actions::class] = new Router\Post\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Actions::class]->addCustomLabelsToSelfHostedRunnerForOrg($params); + return $this->router[Router\Post\Actions::class]->AddCustomLabelsToSelfHostedRunnerForOrg($params); } } } @@ -91,7 +91,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Actions::class] = new Router\Post\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Actions::class]->createRegistrationTokenForRepo($params); + return $this->router[Router\Post\Actions::class]->CreateRegistrationTokenForRepo($params); } } elseif ($pathChunks[6] === 'remove-token') { if ($call === 'POST /repos/{owner}/{repo}/actions/runners/remove-token') { @@ -100,7 +100,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Actions::class] = new Router\Post\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Actions::class]->createRemoveTokenForRepo($params); + return $this->router[Router\Post\Actions::class]->CreateRemoveTokenForRepo($params); } } } @@ -113,7 +113,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->renameBranch($params); + return $this->router[Router\Post\Repos::class]->RenameBranch($params); } } } @@ -126,7 +126,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Checks::class] = new Router\Post\Checks($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Checks::class]->rerequestRun($params); + return $this->router[Router\Post\Checks::class]->RerequestRun($params); } } } @@ -139,7 +139,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Checks::class] = new Router\Post\Checks($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Checks::class]->rerequestSuite($params); + return $this->router[Router\Post\Checks::class]->RerequestSuite($params); } } } @@ -152,7 +152,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Reactions::class] = new Router\Post\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Reactions::class]->createForCommitComment($params); + return $this->router[Router\Post\Reactions::class]->CreateForCommitComment($params); } } } @@ -165,7 +165,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createCommitComment($params); + return $this->router[Router\Post\Repos::class]->CreateCommitComment($params); } } } @@ -178,7 +178,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createDeploymentStatus($params); + return $this->router[Router\Post\Repos::class]->CreateDeploymentStatus($params); } } } @@ -191,7 +191,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createDeploymentBranchPolicy($params); + return $this->router[Router\Post\Repos::class]->CreateDeploymentBranchPolicy($params); } } } @@ -204,7 +204,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->pingWebhook($params); + return $this->router[Router\Post\Repos::class]->PingWebhook($params); } } elseif ($pathChunks[6] === 'tests') { if ($call === 'POST /repos/{owner}/{repo}/hooks/{hook_id}/tests') { @@ -213,7 +213,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->testPushWebhook($params); + return $this->router[Router\Post\Repos::class]->TestPushWebhook($params); } } } @@ -226,7 +226,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Issues::class] = new Router\Post\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Issues::class]->addAssignees($params); + return $this->router[Router\Post\Issues::class]->AddAssignees($params); } } elseif ($pathChunks[6] === 'comments') { if ($call === 'POST /repos/{owner}/{repo}/issues/{issue_number}/comments') { @@ -235,7 +235,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Issues::class] = new Router\Post\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Issues::class]->createComment($params); + return $this->router[Router\Post\Issues::class]->CreateComment($params); } } elseif ($pathChunks[6] === 'labels') { if ($call === 'POST /repos/{owner}/{repo}/issues/{issue_number}/labels') { @@ -244,7 +244,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Issues::class] = new Router\Post\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Issues::class]->addLabels($params); + return $this->router[Router\Post\Issues::class]->AddLabels($params); } } elseif ($pathChunks[6] === 'reactions') { if ($call === 'POST /repos/{owner}/{repo}/issues/{issue_number}/reactions') { @@ -253,7 +253,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Reactions::class] = new Router\Post\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Reactions::class]->createForIssue($params); + return $this->router[Router\Post\Reactions::class]->CreateForIssue($params); } } } @@ -266,7 +266,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Pulls::class] = new Router\Post\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Pulls::class]->createReviewComment($params); + return $this->router[Router\Post\Pulls::class]->CreateReviewComment($params); } } elseif ($pathChunks[6] === 'requested_reviewers') { if ($call === 'POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers') { @@ -275,7 +275,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Pulls::class] = new Router\Post\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Pulls::class]->requestReviewers($params); + return $this->router[Router\Post\Pulls::class]->RequestReviewers($params); } } elseif ($pathChunks[6] === 'reviews') { if ($call === 'POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews') { @@ -284,7 +284,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Pulls::class] = new Router\Post\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Pulls::class]->createReview($params); + return $this->router[Router\Post\Pulls::class]->CreateReview($params); } } } @@ -297,7 +297,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->uploadReleaseAsset($params); + return $this->router[Router\Post\Repos::class]->UploadReleaseAsset($params); } } elseif ($pathChunks[6] === 'reactions') { if ($call === 'POST /repos/{owner}/{repo}/releases/{release_id}/reactions') { @@ -306,7 +306,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Authent $this->router[Router\Post\Reactions::class] = new Router\Post\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Reactions::class]->createForRelease($params); + return $this->router[Router\Post\Reactions::class]->CreateForRelease($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Post/Six.php b/clients/GitHubEnterprise-3.4/src/Router/Post/Six.php index 3ab4f82098b..c282bbfe742 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Post/Six.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Post/Six.php @@ -52,7 +52,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->syncLdapMappingForTeam($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->SyncLdapMappingForTeam($params); } } } @@ -65,7 +65,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->syncLdapMappingForUser($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->SyncLdapMappingForUser($params); } } } @@ -82,7 +82,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Apps::class] = new Router\Post\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Apps::class]->redeliverWebhookDelivery($params); + return $this->router[Router\Post\Apps::class]->RedeliverWebhookDelivery($params); } } } @@ -99,7 +99,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->createRegistrationTokenForEnterprise($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->CreateRegistrationTokenForEnterprise($params); } } elseif ($pathChunks[5] === 'remove-token') { if ($call === 'POST /enterprises/{enterprise}/actions/runners/remove-token') { @@ -108,7 +108,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->createRemoveTokenForEnterprise($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->CreateRemoveTokenForEnterprise($params); } } } @@ -125,7 +125,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Actions::class] = new Router\Post\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Actions::class]->createRegistrationTokenForOrg($params); + return $this->router[Router\Post\Actions::class]->CreateRegistrationTokenForOrg($params); } } elseif ($pathChunks[5] === 'remove-token') { if ($call === 'POST /orgs/{org}/actions/runners/remove-token') { @@ -134,7 +134,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Actions::class] = new Router\Post\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Actions::class]->createRemoveTokenForOrg($params); + return $this->router[Router\Post\Actions::class]->CreateRemoveTokenForOrg($params); } } } @@ -147,7 +147,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Orgs::class] = new Router\Post\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Orgs::class]->pingWebhook($params); + return $this->router[Router\Post\Orgs::class]->PingWebhook($params); } } } @@ -160,7 +160,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Teams::class] = new Router\Post\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Teams::class]->createDiscussionInOrg($params); + return $this->router[Router\Post\Teams::class]->CreateDiscussionInOrg($params); } } } @@ -177,7 +177,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Projects::class] = new Router\Post\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Projects::class]->moveCard($params); + return $this->router[Router\Post\Projects::class]->MoveCard($params); } } } @@ -194,7 +194,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\CodeScanning::class] = new Router\Post\CodeScanning($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\CodeScanning::class]->uploadSarif($params); + return $this->router[Router\Post\CodeScanning::class]->UploadSarif($params); } } } elseif ($pathChunks[4] === 'git') { @@ -205,7 +205,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Git::class] = new Router\Post\Git($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Git::class]->createBlob($params); + return $this->router[Router\Post\Git::class]->CreateBlob($params); } } elseif ($pathChunks[5] === 'commits') { if ($call === 'POST /repos/{owner}/{repo}/git/commits') { @@ -214,7 +214,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Git::class] = new Router\Post\Git($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Git::class]->createCommit($params); + return $this->router[Router\Post\Git::class]->CreateCommit($params); } } elseif ($pathChunks[5] === 'refs') { if ($call === 'POST /repos/{owner}/{repo}/git/refs') { @@ -223,7 +223,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Git::class] = new Router\Post\Git($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Git::class]->createRef($params); + return $this->router[Router\Post\Git::class]->CreateRef($params); } } elseif ($pathChunks[5] === 'tags') { if ($call === 'POST /repos/{owner}/{repo}/git/tags') { @@ -232,7 +232,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Git::class] = new Router\Post\Git($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Git::class]->createTag($params); + return $this->router[Router\Post\Git::class]->CreateTag($params); } } elseif ($pathChunks[5] === 'trees') { if ($call === 'POST /repos/{owner}/{repo}/git/trees') { @@ -241,7 +241,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Git::class] = new Router\Post\Git($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Git::class]->createTree($params); + return $this->router[Router\Post\Git::class]->CreateTree($params); } } } elseif ($pathChunks[4] === 'pages') { @@ -252,7 +252,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->requestPagesBuild($params); + return $this->router[Router\Post\Repos::class]->RequestPagesBuild($params); } } } elseif ($pathChunks[4] === 'releases') { @@ -263,7 +263,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->generateReleaseNotes($params); + return $this->router[Router\Post\Repos::class]->GenerateReleaseNotes($params); } } } elseif ($pathChunks[4] === 'statuses') { @@ -274,7 +274,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createCommitStatus($params); + return $this->router[Router\Post\Repos::class]->CreateCommitStatus($params); } } } @@ -291,7 +291,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Teams::class] = new Router\Post\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Teams::class]->createDiscussionCommentLegacy($params); + return $this->router[Router\Post\Teams::class]->CreateDiscussionCommentLegacy($params); } } elseif ($pathChunks[5] === 'reactions') { if ($call === 'POST /teams/{team_id}/discussions/{discussion_number}/reactions') { @@ -300,7 +300,7 @@ public function call(string $call, array $params, array $pathChunks): Created|Js $this->router[Router\Post\Reactions::class] = new Router\Post\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Reactions::class]->createForTeamDiscussionLegacy($params); + return $this->router[Router\Post\Reactions::class]->CreateForTeamDiscussionLegacy($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Post/Ten.php b/clients/GitHubEnterprise-3.4/src/Router/Post/Ten.php index 11a9e7898e5..d1dc7e20e17 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Post/Ten.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Post/Ten.php @@ -41,7 +41,7 @@ public function call(string $call, array $params, array $pathChunks): Reaction|a $this->router[Router\Post\Reactions::class] = new Router\Post\Reactions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Reactions::class]->createForTeamDiscussionCommentInOrg($params); + return $this->router[Router\Post\Reactions::class]->CreateForTeamDiscussionCommentInOrg($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Post/Three.php b/clients/GitHubEnterprise-3.4/src/Router/Post/Three.php index 1321d5ea130..b166d62cd13 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Post/Three.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Post/Three.php @@ -31,7 +31,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return |(string|array{code: int})|(iterable|(Schema\GpgKey|(Schema\Key|(Schema\Migration|(Schema\Project|(Schema\Repository */ + /** @return |(string|array{code: int})|(Observable|(Schema\GpgKey|(Schema\Key|(Schema\Migration|(Schema\Project|(Schema\Repository */ public function call(string $call, array $params, array $pathChunks): GlobalHook|OrganizationSimple|PreReceiveEnvironment|PreReceiveHook|SimpleUser|string|iterable|GpgKey|Key|Migration|Project|Repository { $matched = false; @@ -44,7 +44,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->createGlobalWebhook($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->CreateGlobalWebhook($params); } } elseif ($pathChunks[2] === 'organizations') { if ($call === 'POST /admin/organizations') { @@ -53,7 +53,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->createOrg($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->CreateOrg($params); } } elseif ($pathChunks[2] === 'pre-receive-environments') { if ($call === 'POST /admin/pre-receive-environments') { @@ -62,7 +62,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->createPreReceiveEnvironment($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->CreatePreReceiveEnvironment($params); } } elseif ($pathChunks[2] === 'pre-receive-hooks') { if ($call === 'POST /admin/pre-receive-hooks') { @@ -71,7 +71,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->createPreReceiveHook($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->CreatePreReceiveHook($params); } } elseif ($pathChunks[2] === 'users') { if ($call === 'POST /admin/users') { @@ -80,7 +80,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->createUser($params); + return $this->router[Router\Post\EnterpriseAdmin::class]->CreateUser($params); } } } elseif ($pathChunks[1] === 'markdown') { @@ -91,7 +91,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Post\Markdown::class] = new Router\Post\Markdown($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Markdown::class]->renderRaw($params); + return $this->router[Router\Post\Markdown::class]->RenderRaw($params); } } } elseif ($pathChunks[1] === 'user') { @@ -102,7 +102,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Post\Users::class] = new Router\Post\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Users::class]->addEmailForAuthenticatedUser($params); + return $this->router[Router\Post\Users::class]->AddEmailForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'gpg_keys') { if ($call === 'POST /user/gpg_keys') { @@ -111,7 +111,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Post\Users::class] = new Router\Post\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Users::class]->createGpgKeyForAuthenticatedUser($params); + return $this->router[Router\Post\Users::class]->CreateGpgKeyForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'keys') { if ($call === 'POST /user/keys') { @@ -120,7 +120,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Post\Users::class] = new Router\Post\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Users::class]->createPublicSshKeyForAuthenticatedUser($params); + return $this->router[Router\Post\Users::class]->CreatePublicSshKeyForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'migrations') { if ($call === 'POST /user/migrations') { @@ -129,7 +129,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Post\Migrations::class] = new Router\Post\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Migrations::class]->startForAuthenticatedUser($params); + return $this->router[Router\Post\Migrations::class]->StartForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'projects') { if ($call === 'POST /user/projects') { @@ -138,7 +138,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Post\Projects::class] = new Router\Post\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Projects::class]->createForAuthenticatedUser($params); + return $this->router[Router\Post\Projects::class]->CreateForAuthenticatedUser($params); } } elseif ($pathChunks[2] === 'repos') { if ($call === 'POST /user/repos') { @@ -147,7 +147,7 @@ public function call(string $call, array $params, array $pathChunks): GlobalHook $this->router[Router\Post\Repos::class] = new Router\Post\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Repos::class]->createForAuthenticatedUser($params); + return $this->router[Router\Post\Repos::class]->CreateForAuthenticatedUser($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Post/Two.php b/clients/GitHubEnterprise-3.4/src/Router/Post/Two.php index 5e77f71e753..ab47a21f665 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Post/Two.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Post/Two.php @@ -35,7 +35,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Post\OauthAuthorizations::class] = new Router\Post\OauthAuthorizations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\OauthAuthorizations::class]->createAuthorization($params); + return $this->router[Router\Post\OauthAuthorizations::class]->CreateAuthorization($params); } } elseif ($pathChunks[1] === 'gists') { if ($call === 'POST /gists') { @@ -44,7 +44,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Post\Gists::class] = new Router\Post\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Gists::class]->create($params); + return $this->router[Router\Post\Gists::class]->Create($params); } } elseif ($pathChunks[1] === 'markdown') { if ($call === 'POST /markdown') { @@ -53,7 +53,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Post\Markdown::class] = new Router\Post\Markdown($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\Markdown::class]->render($params); + return $this->router[Router\Post\Markdown::class]->Render($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Post/Users.php b/clients/GitHubEnterprise-3.4/src/Router/Post/Users.php index 580db880a64..5dfdcb94eaa 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Post/Users.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Post/Users.php @@ -26,7 +26,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return (iterable | array{code: int}) */ + /** @return (Observable | array{code: int}) */ public function addEmailForAuthenticatedUser(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Put/Eight.php b/clients/GitHubEnterprise-3.4/src/Router/Put/Eight.php index 7ffdc5589c2..314e4a5589c 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Put/Eight.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Put/Eight.php @@ -42,7 +42,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Deploym $this->router[Router\Put\EnterpriseAdmin::class] = new Router\Put\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\EnterpriseAdmin::class]->addOrgAccessToSelfHostedRunnerGroupInEnterprise($params); + return $this->router[Router\Put\EnterpriseAdmin::class]->AddOrgAccessToSelfHostedRunnerGroupInEnterprise($params); } } } elseif ($pathChunks[6] === 'runners') { @@ -53,7 +53,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Deploym $this->router[Router\Put\EnterpriseAdmin::class] = new Router\Put\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\EnterpriseAdmin::class]->addSelfHostedRunnerToGroupForEnterprise($params); + return $this->router[Router\Put\EnterpriseAdmin::class]->AddSelfHostedRunnerToGroupForEnterprise($params); } } } @@ -74,7 +74,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Deploym $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->addRepoAccessToSelfHostedRunnerGroupInOrg($params); + return $this->router[Router\Put\Actions::class]->AddRepoAccessToSelfHostedRunnerGroupInOrg($params); } } } elseif ($pathChunks[6] === 'runners') { @@ -85,7 +85,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Deploym $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->addSelfHostedRunnerToGroupForOrg($params); + return $this->router[Router\Put\Actions::class]->AddSelfHostedRunnerToGroupForOrg($params); } } } @@ -100,7 +100,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Deploym $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->addSelectedRepoToOrgSecret($params); + return $this->router[Router\Put\Actions::class]->AddSelectedRepoToOrgSecret($params); } } } @@ -117,7 +117,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Deploym $this->router[Router\Put\Dependabot::class] = new Router\Put\Dependabot($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Dependabot::class]->addSelectedRepoToOrgSecret($params); + return $this->router[Router\Put\Dependabot::class]->AddSelectedRepoToOrgSecret($params); } } } @@ -134,7 +134,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Deploym $this->router[Router\Put\Teams::class] = new Router\Put\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Teams::class]->addOrUpdateRepoPermissionsInOrg($params); + return $this->router[Router\Put\Teams::class]->AddOrUpdateRepoPermissionsInOrg($params); } } } @@ -155,7 +155,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Deploym $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->setCustomLabelsForSelfHostedRunnerForRepo($params); + return $this->router[Router\Put\Actions::class]->SetCustomLabelsForSelfHostedRunnerForRepo($params); } } } @@ -168,7 +168,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Deploym $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->disableWorkflow($params); + return $this->router[Router\Put\Actions::class]->DisableWorkflow($params); } } elseif ($pathChunks[7] === 'enable') { if ($call === 'PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable') { @@ -177,7 +177,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Deploym $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->enableWorkflow($params); + return $this->router[Router\Put\Actions::class]->EnableWorkflow($params); } } } @@ -192,7 +192,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Deploym $this->router[Router\Put\Repos::class] = new Router\Put\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Repos::class]->updateDeploymentBranchPolicy($params); + return $this->router[Router\Put\Repos::class]->UpdateDeploymentBranchPolicy($params); } } } @@ -207,7 +207,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|Deploym $this->router[Router\Put\Pulls::class] = new Router\Put\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Pulls::class]->updateReview($params); + return $this->router[Router\Put\Pulls::class]->UpdateReview($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Put/Five.php b/clients/GitHubEnterprise-3.4/src/Router/Put/Five.php index 0688f51e34f..dba355b51d1 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Put/Five.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Put/Five.php @@ -43,7 +43,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Apps::class] = new Router\Put\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Apps::class]->suspendInstallation($params); + return $this->router[Router\Put\Apps::class]->SuspendInstallation($params); } } } @@ -58,7 +58,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\OauthAuthorizations::class] = new Router\Put\OauthAuthorizations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\OauthAuthorizations::class]->getOrCreateAuthorizationForAppAndFingerprint($params); + return $this->router[Router\Put\OauthAuthorizations::class]->GetOrCreateAuthorizationForAppAndFingerprint($params); } } } @@ -73,7 +73,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\EnterpriseAdmin::class] = new Router\Put\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\EnterpriseAdmin::class]->setGithubActionsPermissionsEnterprise($params); + return $this->router[Router\Put\EnterpriseAdmin::class]->SetGithubActionsPermissionsEnterprise($params); } } } @@ -88,7 +88,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Activity::class] = new Router\Put\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Activity::class]->setThreadSubscription($params); + return $this->router[Router\Put\Activity::class]->SetThreadSubscription($params); } } } @@ -103,7 +103,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->setGithubActionsPermissionsOrganization($params); + return $this->router[Router\Put\Actions::class]->SetGithubActionsPermissionsOrganization($params); } } } elseif ($pathChunks[3] === 'memberships') { @@ -114,7 +114,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Orgs::class] = new Router\Put\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Orgs::class]->setMembershipForUser($params); + return $this->router[Router\Put\Orgs::class]->SetMembershipForUser($params); } } } elseif ($pathChunks[3] === 'outside_collaborators') { @@ -125,7 +125,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Orgs::class] = new Router\Put\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Orgs::class]->convertMemberToOutsideCollaborator($params); + return $this->router[Router\Put\Orgs::class]->ConvertMemberToOutsideCollaborator($params); } } } elseif ($pathChunks[3] === 'public_members') { @@ -136,7 +136,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Orgs::class] = new Router\Put\Orgs($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Orgs::class]->setPublicMembershipForAuthenticatedUser($params); + return $this->router[Router\Put\Orgs::class]->SetPublicMembershipForAuthenticatedUser($params); } } } @@ -151,7 +151,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Projects::class] = new Router\Put\Projects($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Projects::class]->addCollaborator($params); + return $this->router[Router\Put\Projects::class]->AddCollaborator($params); } } } @@ -166,7 +166,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Repos::class] = new Router\Put\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Repos::class]->enableLfsForRepo($params); + return $this->router[Router\Put\Repos::class]->EnableLfsForRepo($params); } } elseif ($pathChunks[4] === 'notifications') { if ($call === 'PUT /repos/{owner}/{repo}/notifications') { @@ -175,7 +175,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Activity::class] = new Router\Put\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Activity::class]->markRepoNotificationsAsRead($params); + return $this->router[Router\Put\Activity::class]->MarkRepoNotificationsAsRead($params); } } elseif ($pathChunks[4] === 'pages') { if ($call === 'PUT /repos/{owner}/{repo}/pages') { @@ -184,7 +184,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Repos::class] = new Router\Put\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Repos::class]->updateInformationAboutPagesSite($params); + return $this->router[Router\Put\Repos::class]->UpdateInformationAboutPagesSite($params); } } elseif ($pathChunks[4] === 'subscription') { if ($call === 'PUT /repos/{owner}/{repo}/subscription') { @@ -193,7 +193,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Activity::class] = new Router\Put\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Activity::class]->setRepoSubscription($params); + return $this->router[Router\Put\Activity::class]->SetRepoSubscription($params); } } elseif ($pathChunks[4] === 'topics') { if ($call === 'PUT /repos/{owner}/{repo}/topics') { @@ -202,7 +202,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Repos::class] = new Router\Put\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Repos::class]->replaceAllTopics($params); + return $this->router[Router\Put\Repos::class]->ReplaceAllTopics($params); } } } @@ -217,7 +217,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Teams::class] = new Router\Put\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Teams::class]->addMemberLegacy($params); + return $this->router[Router\Put\Teams::class]->AddMemberLegacy($params); } } } elseif ($pathChunks[3] === 'memberships') { @@ -228,7 +228,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Teams::class] = new Router\Put\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Teams::class]->addOrUpdateMembershipForUserLegacy($params); + return $this->router[Router\Put\Teams::class]->AddOrUpdateMembershipForUserLegacy($params); } } } elseif ($pathChunks[3] === 'projects') { @@ -239,7 +239,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Teams::class] = new Router\Put\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Teams::class]->addOrUpdateProjectPermissionsLegacy($params); + return $this->router[Router\Put\Teams::class]->AddOrUpdateProjectPermissionsLegacy($params); } } } @@ -254,7 +254,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Activity::class] = new Router\Put\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Activity::class]->starRepoForAuthenticatedUser($params); + return $this->router[Router\Put\Activity::class]->StarRepoForAuthenticatedUser($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Put/Four.php b/clients/GitHubEnterprise-3.4/src/Router/Put/Four.php index e7f41a56caa..e22b6a75520 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Put/Four.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Put/Four.php @@ -37,7 +37,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\OauthAuthorizations::class] = new Router\Put\OauthAuthorizations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\OauthAuthorizations::class]->getOrCreateAuthorizationForApp($params); + return $this->router[Router\Put\OauthAuthorizations::class]->GetOrCreateAuthorizationForApp($params); } } } @@ -50,7 +50,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Gists::class] = new Router\Put\Gists($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Gists::class]->star($params); + return $this->router[Router\Put\Gists::class]->Star($params); } } } @@ -63,7 +63,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\EnterpriseAdmin::class] = new Router\Put\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\EnterpriseAdmin::class]->setSettings($params); + return $this->router[Router\Put\EnterpriseAdmin::class]->SetSettings($params); } } } @@ -76,7 +76,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\Users::class] = new Router\Put\Users($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Users::class]->follow($params); + return $this->router[Router\Put\Users::class]->Follow($params); } } } @@ -89,7 +89,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\EnterpriseAdmin::class] = new Router\Put\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\EnterpriseAdmin::class]->promoteUserToBeSiteAdministrator($params); + return $this->router[Router\Put\EnterpriseAdmin::class]->PromoteUserToBeSiteAdministrator($params); } } elseif ($pathChunks[3] === 'suspended') { if ($call === 'PUT /users/{username}/suspended') { @@ -98,7 +98,7 @@ public function call(string $call, array $params, array $pathChunks): Authorizat $this->router[Router\Put\EnterpriseAdmin::class] = new Router\Put\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\EnterpriseAdmin::class]->suspendUser($params); + return $this->router[Router\Put\EnterpriseAdmin::class]->SuspendUser($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Put/Issues.php b/clients/GitHubEnterprise-3.4/src/Router/Put/Issues.php index 37f52c1c94c..f649665eb26 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Put/Issues.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Put/Issues.php @@ -26,7 +26,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return (iterable | Schema\BasicError) */ + /** @return (Observable | Schema\BasicError) */ public function setLabels(array $params): iterable|BasicError { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Put/Nine.php b/clients/GitHubEnterprise-3.4/src/Router/Put/Nine.php index d39cb227b63..4bfaa7a4ae3 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Put/Nine.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Put/Nine.php @@ -22,7 +22,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable|iterable|iterable|iterable| */ + /** @return Observable|Observable|Observable|Observable| */ public function call(string $call, array $params, array $pathChunks): iterable|PullRequestReview { $matched = false; @@ -41,7 +41,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|P $this->router[Router\Put\Repos::class] = new Router\Put\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Repos::class]->setStatusCheckContexts($params); + return $this->router[Router\Put\Repos::class]->SetStatusCheckContexts($params); } } } elseif ($pathChunks[7] === 'restrictions') { @@ -52,7 +52,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|P $this->router[Router\Put\Repos::class] = new Router\Put\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Repos::class]->setAppAccessRestrictions($params); + return $this->router[Router\Put\Repos::class]->SetAppAccessRestrictions($params); } } elseif ($pathChunks[8] === 'teams') { if ($call === 'PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams') { @@ -61,7 +61,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|P $this->router[Router\Put\Repos::class] = new Router\Put\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Repos::class]->setTeamAccessRestrictions($params); + return $this->router[Router\Put\Repos::class]->SetTeamAccessRestrictions($params); } } elseif ($pathChunks[8] === 'users') { if ($call === 'PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users') { @@ -70,7 +70,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|P $this->router[Router\Put\Repos::class] = new Router\Put\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Repos::class]->setUserAccessRestrictions($params); + return $this->router[Router\Put\Repos::class]->SetUserAccessRestrictions($params); } } } @@ -87,7 +87,7 @@ public function call(string $call, array $params, array $pathChunks): iterable|P $this->router[Router\Put\Pulls::class] = new Router\Put\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Pulls::class]->dismissReview($params); + return $this->router[Router\Put\Pulls::class]->DismissReview($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Put/Repos.php b/clients/GitHubEnterprise-3.4/src/Router/Put/Repos.php index 272b845d1f9..76129b38d7c 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Put/Repos.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Put/Repos.php @@ -276,7 +276,7 @@ public function updateDeploymentBranchPolicy(array $params): DeploymentBranchPol return $operator->call($arguments['owner'], $arguments['repo'], $arguments['environment_name'], $arguments['branch_policy_id'], $params); } - /** @return iterable */ + /** @return Observable */ public function setStatusCheckContexts(array $params): iterable { $matched = true; @@ -308,7 +308,7 @@ public function setStatusCheckContexts(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch'], $params); } - /** @return iterable */ + /** @return Observable */ public function setAppAccessRestrictions(array $params): iterable { $matched = true; @@ -340,7 +340,7 @@ public function setAppAccessRestrictions(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch'], $params); } - /** @return iterable */ + /** @return Observable */ public function setTeamAccessRestrictions(array $params): iterable { $matched = true; @@ -372,7 +372,7 @@ public function setTeamAccessRestrictions(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch'], $params); } - /** @return iterable */ + /** @return Observable */ public function setUserAccessRestrictions(array $params): iterable { $matched = true; diff --git a/clients/GitHubEnterprise-3.4/src/Router/Put/Seven.php b/clients/GitHubEnterprise-3.4/src/Router/Put/Seven.php index 9821d829ff7..4f42b399675 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Put/Seven.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Put/Seven.php @@ -28,7 +28,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return array{code: int}||(Schema\TeamMembership|array{code: int})|(Schema\EmptyObject|(iterable|Schema\BasicError) */ + /** @return array{code: int}||(Schema\TeamMembership|array{code: int})|(Schema\EmptyObject|(Observable|Schema\BasicError) */ public function call(string $call, array $params, array $pathChunks): Ok|TeamMembership|EmptyObject|ProtectedBranch|iterable|BasicError|PullRequestMergeResult|Json { $matched = false; @@ -45,7 +45,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\EnterpriseAdmin::class] = new Router\Put\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\EnterpriseAdmin::class]->enableSelectedOrganizationGithubActionsEnterprise($params); + return $this->router[Router\Put\EnterpriseAdmin::class]->EnableSelectedOrganizationGithubActionsEnterprise($params); } } } @@ -58,7 +58,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\EnterpriseAdmin::class] = new Router\Put\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\EnterpriseAdmin::class]->setOrgAccessToSelfHostedRunnerGroupInEnterprise($params); + return $this->router[Router\Put\EnterpriseAdmin::class]->SetOrgAccessToSelfHostedRunnerGroupInEnterprise($params); } } elseif ($pathChunks[6] === 'runners') { if ($call === 'PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners') { @@ -67,7 +67,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\EnterpriseAdmin::class] = new Router\Put\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\EnterpriseAdmin::class]->setSelfHostedRunnersInGroupForEnterprise($params); + return $this->router[Router\Put\EnterpriseAdmin::class]->SetSelfHostedRunnersInGroupForEnterprise($params); } } } @@ -80,7 +80,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\EnterpriseAdmin::class] = new Router\Put\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\EnterpriseAdmin::class]->setCustomLabelsForSelfHostedRunnerForEnterprise($params); + return $this->router[Router\Put\EnterpriseAdmin::class]->SetCustomLabelsForSelfHostedRunnerForEnterprise($params); } } } @@ -99,7 +99,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->enableSelectedRepositoryGithubActionsOrganization($params); + return $this->router[Router\Put\Actions::class]->EnableSelectedRepositoryGithubActionsOrganization($params); } } } @@ -112,7 +112,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->setRepoAccessToSelfHostedRunnerGroupInOrg($params); + return $this->router[Router\Put\Actions::class]->SetRepoAccessToSelfHostedRunnerGroupInOrg($params); } } elseif ($pathChunks[6] === 'runners') { if ($call === 'PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners') { @@ -121,7 +121,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->setSelfHostedRunnersInGroupForOrg($params); + return $this->router[Router\Put\Actions::class]->SetSelfHostedRunnersInGroupForOrg($params); } } } @@ -134,7 +134,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->setCustomLabelsForSelfHostedRunnerForOrg($params); + return $this->router[Router\Put\Actions::class]->SetCustomLabelsForSelfHostedRunnerForOrg($params); } } } @@ -147,7 +147,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->setSelectedReposForOrgSecret($params); + return $this->router[Router\Put\Actions::class]->SetSelectedReposForOrgSecret($params); } } } @@ -162,7 +162,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Dependabot::class] = new Router\Put\Dependabot($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Dependabot::class]->setSelectedReposForOrgSecret($params); + return $this->router[Router\Put\Dependabot::class]->SetSelectedReposForOrgSecret($params); } } } @@ -177,7 +177,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Teams::class] = new Router\Put\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Teams::class]->addOrUpdateMembershipForUserInOrg($params); + return $this->router[Router\Put\Teams::class]->AddOrUpdateMembershipForUserInOrg($params); } } } elseif ($pathChunks[5] === 'projects') { @@ -188,7 +188,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Teams::class] = new Router\Put\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Teams::class]->addOrUpdateProjectPermissionsInOrg($params); + return $this->router[Router\Put\Teams::class]->AddOrUpdateProjectPermissionsInOrg($params); } } } @@ -207,7 +207,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->setAllowedActionsRepository($params); + return $this->router[Router\Put\Actions::class]->SetAllowedActionsRepository($params); } } } elseif ($pathChunks[5] === 'secrets') { @@ -218,7 +218,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->createOrUpdateRepoSecret($params); + return $this->router[Router\Put\Actions::class]->CreateOrUpdateRepoSecret($params); } } } @@ -231,7 +231,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Repos::class] = new Router\Put\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Repos::class]->updateBranchProtection($params); + return $this->router[Router\Put\Repos::class]->UpdateBranchProtection($params); } } } @@ -244,7 +244,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Dependabot::class] = new Router\Put\Dependabot($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Dependabot::class]->createOrUpdateRepoSecret($params); + return $this->router[Router\Put\Dependabot::class]->CreateOrUpdateRepoSecret($params); } } } @@ -257,7 +257,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Issues::class] = new Router\Put\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Issues::class]->setLabels($params); + return $this->router[Router\Put\Issues::class]->SetLabels($params); } } elseif ($pathChunks[6] === 'lock') { if ($call === 'PUT /repos/{owner}/{repo}/issues/{issue_number}/lock') { @@ -266,7 +266,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Issues::class] = new Router\Put\Issues($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Issues::class]->lock($params); + return $this->router[Router\Put\Issues::class]->Lock($params); } } } @@ -279,7 +279,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Pulls::class] = new Router\Put\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Pulls::class]->merge($params); + return $this->router[Router\Put\Pulls::class]->Merge($params); } } elseif ($pathChunks[6] === 'update-branch') { if ($call === 'PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch') { @@ -288,7 +288,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Pulls::class] = new Router\Put\Pulls($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Pulls::class]->updateBranch($params); + return $this->router[Router\Put\Pulls::class]->UpdateBranch($params); } } } @@ -307,7 +307,7 @@ public function call(string $call, array $params, array $pathChunks): Ok|TeamMem $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->createOrUpdateEnvironmentSecret($params); + return $this->router[Router\Put\Actions::class]->CreateOrUpdateEnvironmentSecret($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Put/Six.php b/clients/GitHubEnterprise-3.4/src/Router/Put/Six.php index a0fbd331a25..3357cbefc62 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Put/Six.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Put/Six.php @@ -41,7 +41,7 @@ public function call(string $call, array $params, array $pathChunks): EmptyObjec $this->router[Router\Put\EnterpriseAdmin::class] = new Router\Put\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\EnterpriseAdmin::class]->setSelectedOrganizationsEnabledGithubActionsEnterprise($params); + return $this->router[Router\Put\EnterpriseAdmin::class]->SetSelectedOrganizationsEnabledGithubActionsEnterprise($params); } } elseif ($pathChunks[5] === 'selected-actions') { if ($call === 'PUT /enterprises/{enterprise}/actions/permissions/selected-actions') { @@ -50,7 +50,7 @@ public function call(string $call, array $params, array $pathChunks): EmptyObjec $this->router[Router\Put\EnterpriseAdmin::class] = new Router\Put\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\EnterpriseAdmin::class]->setAllowedActionsEnterprise($params); + return $this->router[Router\Put\EnterpriseAdmin::class]->SetAllowedActionsEnterprise($params); } } } @@ -67,7 +67,7 @@ public function call(string $call, array $params, array $pathChunks): EmptyObjec $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->setSelectedRepositoriesEnabledGithubActionsOrganization($params); + return $this->router[Router\Put\Actions::class]->SetSelectedRepositoriesEnabledGithubActionsOrganization($params); } } elseif ($pathChunks[5] === 'selected-actions') { if ($call === 'PUT /orgs/{org}/actions/permissions/selected-actions') { @@ -76,7 +76,7 @@ public function call(string $call, array $params, array $pathChunks): EmptyObjec $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->setAllowedActionsOrganization($params); + return $this->router[Router\Put\Actions::class]->SetAllowedActionsOrganization($params); } } } elseif ($pathChunks[4] === 'secrets') { @@ -87,7 +87,7 @@ public function call(string $call, array $params, array $pathChunks): EmptyObjec $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->createOrUpdateOrgSecret($params); + return $this->router[Router\Put\Actions::class]->CreateOrUpdateOrgSecret($params); } } } @@ -100,7 +100,7 @@ public function call(string $call, array $params, array $pathChunks): EmptyObjec $this->router[Router\Put\Dependabot::class] = new Router\Put\Dependabot($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Dependabot::class]->createOrUpdateOrgSecret($params); + return $this->router[Router\Put\Dependabot::class]->CreateOrUpdateOrgSecret($params); } } } @@ -117,7 +117,7 @@ public function call(string $call, array $params, array $pathChunks): EmptyObjec $this->router[Router\Put\Actions::class] = new Router\Put\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Actions::class]->setGithubActionsPermissionsRepository($params); + return $this->router[Router\Put\Actions::class]->SetGithubActionsPermissionsRepository($params); } } } elseif ($pathChunks[4] === 'collaborators') { @@ -128,7 +128,7 @@ public function call(string $call, array $params, array $pathChunks): EmptyObjec $this->router[Router\Put\Repos::class] = new Router\Put\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Repos::class]->addCollaborator($params); + return $this->router[Router\Put\Repos::class]->AddCollaborator($params); } } } elseif ($pathChunks[4] === 'contents') { @@ -139,7 +139,7 @@ public function call(string $call, array $params, array $pathChunks): EmptyObjec $this->router[Router\Put\Repos::class] = new Router\Put\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Repos::class]->createOrUpdateFileContents($params); + return $this->router[Router\Put\Repos::class]->CreateOrUpdateFileContents($params); } } } elseif ($pathChunks[4] === 'environments') { @@ -150,7 +150,7 @@ public function call(string $call, array $params, array $pathChunks): EmptyObjec $this->router[Router\Put\Repos::class] = new Router\Put\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Repos::class]->createOrUpdateEnvironment($params); + return $this->router[Router\Put\Repos::class]->CreateOrUpdateEnvironment($params); } } } @@ -167,7 +167,7 @@ public function call(string $call, array $params, array $pathChunks): EmptyObjec $this->router[Router\Put\Teams::class] = new Router\Put\Teams($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Teams::class]->addOrUpdateRepoPermissionsLegacy($params); + return $this->router[Router\Put\Teams::class]->AddOrUpdateRepoPermissionsLegacy($params); } } } @@ -184,7 +184,7 @@ public function call(string $call, array $params, array $pathChunks): EmptyObjec $this->router[Router\Put\Apps::class] = new Router\Put\Apps($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Apps::class]->addRepoToInstallationForAuthenticatedUser($params); + return $this->router[Router\Put\Apps::class]->AddRepoToInstallationForAuthenticatedUser($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Put/Two.php b/clients/GitHubEnterprise-3.4/src/Router/Put/Two.php index 2ff7a3abefa..43d1ecb9798 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Put/Two.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Put/Two.php @@ -35,7 +35,7 @@ public function call(string $call, array $params, array $pathChunks): Accepted|a $this->router[Router\Put\Activity::class] = new Router\Put\Activity($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Put\Activity::class]->markNotificationsAsRead($params); + return $this->router[Router\Put\Activity::class]->MarkNotificationsAsRead($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Stream/Actions.php b/clients/GitHubEnterprise-3.4/src/Router/Stream/Actions.php new file mode 100644 index 00000000000..eff2d42853b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/Stream/Actions.php @@ -0,0 +1,120 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return Observable */ + public function downloadArtifactStreaming(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('artifact_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: artifact_id'); + } + + $arguments['artifact_id'] = $params['artifact_id']; + unset($params['artifact_id']); + if (array_key_exists('archive_format', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: archive_format'); + } + + $arguments['archive_format'] = $params['archive_format']; + unset($params['archive_format']); + if (array_key_exists(Hydrator\Operation\Repos\Owner\Repo\Actions\Artifacts\ArtifactId\ArchiveFormat::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Actions\Artifacts\ArtifactId\ArchiveFormat::class] = $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Actions🌀Artifacts🌀ArtifactId🌀ArchiveFormat(); + } + + $operator = new Operator\Actions\DownloadArtifactStreaming($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Repos\Owner\Repo\Actions\Artifacts\ArtifactId\ArchiveFormat::class]); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['artifact_id'], $arguments['archive_format']); + } + + /** @return Observable */ + public function downloadJobLogsForWorkflowRunStreaming(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('job_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: job_id'); + } + + $arguments['job_id'] = $params['job_id']; + unset($params['job_id']); + $operator = new Operator\Actions\DownloadJobLogsForWorkflowRunStreaming($this->browser, $this->authentication); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['job_id']); + } + + /** @return Observable */ + public function downloadWorkflowRunLogsStreaming(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('run_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: run_id'); + } + + $arguments['run_id'] = $params['run_id']; + unset($params['run_id']); + $operator = new Operator\Actions\DownloadWorkflowRunLogsStreaming($this->browser, $this->authentication); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['run_id']); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/Stream/Eight.php b/clients/GitHubEnterprise-3.4/src/Router/Stream/Eight.php index abfde55c502..90c326aa8c8 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Stream/Eight.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Stream/Eight.php @@ -35,11 +35,11 @@ public function call(string $call, array $params, array $pathChunks): iterable if ($pathChunks[7] === '{archive_format}') { if ($call === 'STREAM /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}') { $matched = true; - if (array_key_exists(Router\Get\Actions::class, $this->router) === false) { - $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + if (array_key_exists(Router\Stream\Actions::class, $this->router) === false) { + $this->router[Router\Stream\Actions::class] = new Router\Stream\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->downloadArtifactStreaming($params); + return $this->router[Router\Stream\Actions::class]->DownloadArtifactStreaming($params); } } } @@ -48,11 +48,11 @@ public function call(string $call, array $params, array $pathChunks): iterable if ($pathChunks[7] === 'logs') { if ($call === 'STREAM /repos/{owner}/{repo}/actions/jobs/{job_id}/logs') { $matched = true; - if (array_key_exists(Router\Get\Actions::class, $this->router) === false) { - $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + if (array_key_exists(Router\Stream\Actions::class, $this->router) === false) { + $this->router[Router\Stream\Actions::class] = new Router\Stream\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->downloadJobLogsForWorkflowRunStreaming($params); + return $this->router[Router\Stream\Actions::class]->DownloadJobLogsForWorkflowRunStreaming($params); } } } @@ -61,11 +61,11 @@ public function call(string $call, array $params, array $pathChunks): iterable if ($pathChunks[7] === 'logs') { if ($call === 'STREAM /repos/{owner}/{repo}/actions/runs/{run_id}/logs') { $matched = true; - if (array_key_exists(Router\Get\Actions::class, $this->router) === false) { - $this->router[Router\Get\Actions::class] = new Router\Get\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + if (array_key_exists(Router\Stream\Actions::class, $this->router) === false) { + $this->router[Router\Stream\Actions::class] = new Router\Stream\Actions($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Actions::class]->downloadWorkflowRunLogsStreaming($params); + return $this->router[Router\Stream\Actions::class]->DownloadWorkflowRunLogsStreaming($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Stream/EnterpriseAdmin.php b/clients/GitHubEnterprise-3.4/src/Router/Stream/EnterpriseAdmin.php new file mode 100644 index 00000000000..be8dfb0a800 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/Stream/EnterpriseAdmin.php @@ -0,0 +1,67 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return */ + public function startPreReceiveEnvironmentDownloadStreaming(array $params): PreReceiveEnvironmentDownloadStatus|array + { + $matched = true; + $arguments = []; + if (array_key_exists('pre_receive_environment_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pre_receive_environment_id'); + } + + $arguments['pre_receive_environment_id'] = $params['pre_receive_environment_id']; + unset($params['pre_receive_environment_id']); + if (array_key_exists(Hydrator\Operation\Admin\PreReceiveEnvironments\PreReceiveEnvironmentId\Downloads::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Admin\PreReceiveEnvironments\PreReceiveEnvironmentId\Downloads::class] = $this->hydrators->getObjectMapperOperation🌀Admin🌀PreReceiveEnvironments🌀PreReceiveEnvironmentId🌀Downloads(); + } + + $operator = new Operator\EnterpriseAdmin\StartPreReceiveEnvironmentDownloadStreaming($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Admin\PreReceiveEnvironments\PreReceiveEnvironmentId\Downloads::class]); + + return $operator->call($arguments['pre_receive_environment_id']); + } + + /** @return */ + public function getDownloadStatusForPreReceiveEnvironmentStreaming(array $params): PreReceiveEnvironmentDownloadStatus|array + { + $matched = true; + $arguments = []; + if (array_key_exists('pre_receive_environment_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: pre_receive_environment_id'); + } + + $arguments['pre_receive_environment_id'] = $params['pre_receive_environment_id']; + unset($params['pre_receive_environment_id']); + if (array_key_exists(Hydrator\Operation\Admin\PreReceiveEnvironments\PreReceiveEnvironmentId\Downloads\Latest::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Admin\PreReceiveEnvironments\PreReceiveEnvironmentId\Downloads\Latest::class] = $this->hydrators->getObjectMapperOperation🌀Admin🌀PreReceiveEnvironments🌀PreReceiveEnvironmentId🌀Downloads🌀Latest(); + } + + $operator = new Operator\EnterpriseAdmin\GetDownloadStatusForPreReceiveEnvironmentStreaming($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Admin\PreReceiveEnvironments\PreReceiveEnvironmentId\Downloads\Latest::class]); + + return $operator->call($arguments['pre_receive_environment_id']); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/Stream/Five.php b/clients/GitHubEnterprise-3.4/src/Router/Stream/Five.php index 541e9d74dd0..25ce4abd319 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Stream/Five.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Stream/Five.php @@ -32,11 +32,11 @@ public function call(string $call, array $params, array $pathChunks): PreReceive if ($pathChunks[4] === 'downloads') { if ($call === 'STREAM /admin/pre-receive-environments/{pre_receive_environment_id}/downloads') { $matched = true; - if (array_key_exists(Router\Post\EnterpriseAdmin::class, $this->router) === false) { - $this->router[Router\Post\EnterpriseAdmin::class] = new Router\Post\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + if (array_key_exists(Router\Stream\EnterpriseAdmin::class, $this->router) === false) { + $this->router[Router\Stream\EnterpriseAdmin::class] = new Router\Stream\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Post\EnterpriseAdmin::class]->startPreReceiveEnvironmentDownloadStreaming($params); + return $this->router[Router\Stream\EnterpriseAdmin::class]->StartPreReceiveEnvironmentDownloadStreaming($params); } } } diff --git a/clients/GitHubEnterprise-3.4/src/Router/Stream/Migrations.php b/clients/GitHubEnterprise-3.4/src/Router/Stream/Migrations.php new file mode 100644 index 00000000000..cdcc616527d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/Stream/Migrations.php @@ -0,0 +1,52 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return Observable */ + public function downloadArchiveForOrgStreaming(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('migration_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: migration_id'); + } + + $arguments['migration_id'] = $params['migration_id']; + unset($params['migration_id']); + if (array_key_exists(Hydrator\Operation\Orgs\Org\Migrations\MigrationId\Archive::class, $this->hydrator) === false) { + $this->hydrator[Hydrator\Operation\Orgs\Org\Migrations\MigrationId\Archive::class] = $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Migrations🌀MigrationId🌀Archive(); + } + + $operator = new Operator\Migrations\DownloadArchiveForOrgStreaming($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrator[Hydrator\Operation\Orgs\Org\Migrations\MigrationId\Archive::class]); + + return $operator->call($arguments['org'], $arguments['migration_id']); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/Stream/Repos.php b/clients/GitHubEnterprise-3.4/src/Router/Stream/Repos.php new file mode 100644 index 00000000000..6b163be83b7 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/src/Router/Stream/Repos.php @@ -0,0 +1,81 @@ + */ + private array $hydrator = []; + + public function __construct(private SchemaValidator $requestSchemaValidator, private SchemaValidator $responseSchemaValidator, private Hydrators $hydrators, private Browser $browser, private AuthenticationInterface $authentication) + { + } + + /** @return Observable */ + public function downloadTarballArchiveStreaming(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('ref', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: ref'); + } + + $arguments['ref'] = $params['ref']; + unset($params['ref']); + $operator = new Operator\Repos\DownloadTarballArchiveStreaming($this->browser, $this->authentication); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['ref']); + } + + /** @return Observable */ + public function downloadZipballArchiveStreaming(array $params): iterable + { + $matched = true; + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('ref', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: ref'); + } + + $arguments['ref'] = $params['ref']; + unset($params['ref']); + $operator = new Operator\Repos\DownloadZipballArchiveStreaming($this->browser, $this->authentication); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['ref']); + } +} diff --git a/clients/GitHubEnterprise-3.4/src/Router/Stream/Six.php b/clients/GitHubEnterprise-3.4/src/Router/Stream/Six.php index 5bc440154a5..e867aff1b18 100644 --- a/clients/GitHubEnterprise-3.4/src/Router/Stream/Six.php +++ b/clients/GitHubEnterprise-3.4/src/Router/Stream/Six.php @@ -34,11 +34,11 @@ public function call(string $call, array $params, array $pathChunks): PreReceive if ($pathChunks[5] === 'latest') { if ($call === 'STREAM /admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest') { $matched = true; - if (array_key_exists(Router\Get\EnterpriseAdmin::class, $this->router) === false) { - $this->router[Router\Get\EnterpriseAdmin::class] = new Router\Get\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + if (array_key_exists(Router\Stream\EnterpriseAdmin::class, $this->router) === false) { + $this->router[Router\Stream\EnterpriseAdmin::class] = new Router\Stream\EnterpriseAdmin($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\EnterpriseAdmin::class]->getDownloadStatusForPreReceiveEnvironmentStreaming($params); + return $this->router[Router\Stream\EnterpriseAdmin::class]->GetDownloadStatusForPreReceiveEnvironmentStreaming($params); } } } @@ -51,11 +51,11 @@ public function call(string $call, array $params, array $pathChunks): PreReceive if ($pathChunks[5] === 'archive') { if ($call === 'STREAM /orgs/{org}/migrations/{migration_id}/archive') { $matched = true; - if (array_key_exists(Router\Get\Migrations::class, $this->router) === false) { - $this->router[Router\Get\Migrations::class] = new Router\Get\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + if (array_key_exists(Router\Stream\Migrations::class, $this->router) === false) { + $this->router[Router\Stream\Migrations::class] = new Router\Stream\Migrations($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Migrations::class]->downloadArchiveForOrgStreaming($params); + return $this->router[Router\Stream\Migrations::class]->DownloadArchiveForOrgStreaming($params); } } } @@ -68,22 +68,22 @@ public function call(string $call, array $params, array $pathChunks): PreReceive if ($pathChunks[5] === '{ref}') { if ($call === 'STREAM /repos/{owner}/{repo}/tarball/{ref}') { $matched = true; - if (array_key_exists(Router\Get\Repos::class, $this->router) === false) { - $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + if (array_key_exists(Router\Stream\Repos::class, $this->router) === false) { + $this->router[Router\Stream\Repos::class] = new Router\Stream\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->downloadTarballArchiveStreaming($params); + return $this->router[Router\Stream\Repos::class]->DownloadTarballArchiveStreaming($params); } } } elseif ($pathChunks[4] === 'zipball') { if ($pathChunks[5] === '{ref}') { if ($call === 'STREAM /repos/{owner}/{repo}/zipball/{ref}') { $matched = true; - if (array_key_exists(Router\Get\Repos::class, $this->router) === false) { - $this->router[Router\Get\Repos::class] = new Router\Get\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); + if (array_key_exists(Router\Stream\Repos::class, $this->router) === false) { + $this->router[Router\Stream\Repos::class] = new Router\Stream\Repos($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators, $this->browser, $this->authentication); } - return $this->router[Router\Get\Repos::class]->downloadZipballArchiveStreaming($params); + return $this->router[Router\Stream\Repos::class]->DownloadZipballArchiveStreaming($params); } } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListArtifactsForRepoTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListArtifactsForRepoTest.php index 6b1923ec23f..ea408550e27 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListArtifactsForRepoTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListArtifactsForRepoTest.php @@ -29,13 +29,13 @@ public function call_httpCode_200_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/actions/artifacts?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/artifacts?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListArtifactsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -50,8 +50,8 @@ public function operations_httpCode_200_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/actions/artifacts?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/artifacts?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listArtifactsForRepo('generated', 'generated', 8, 4); + $result = $client->operations()->actions()->listArtifactsForRepo('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListEnvironmentSecretsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListEnvironmentSecretsTest.php index 28caf1e4319..088990da577 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListEnvironmentSecretsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListEnvironmentSecretsTest.php @@ -29,13 +29,13 @@ public function call_httpCode_200_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', '/repositories/13/environments/generated/secrets?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repositories/13/environments/generated/secrets?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListEnvironmentSecrets::OPERATION_MATCH, (static function (array $data): array { $data['repository_id'] = 13; $data['environment_name'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -50,8 +50,8 @@ public function operations_httpCode_200_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', '/repositories/13/environments/generated/secrets?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repositories/13/environments/generated/secrets?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listEnvironmentSecrets(13, 'generated', 8, 4); + $result = $client->operations()->actions()->listEnvironmentSecrets(13, 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListJobsForWorkflowRunTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListJobsForWorkflowRunTest.php index 97f9ea2b913..1331cefc336 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListJobsForWorkflowRunTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListJobsForWorkflowRunTest.php @@ -29,7 +29,7 @@ public function call_httpCode_200_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/actions/runs/6/jobs?filter=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/runs/6/jobs?filter=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListJobsForWorkflowRun::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -37,7 +37,7 @@ public function call_httpCode_200_responseContentType_application_json_zero(): v $data['run_id'] = 6; $data['filter'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,8 +52,8 @@ public function operations_httpCode_200_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/actions/runs/6/jobs?filter=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/runs/6/jobs?filter=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listJobsForWorkflowRun('generated', 'generated', 6, 'generated', 8, 4); + $result = $client->operations()->actions()->listJobsForWorkflowRun('generated', 'generated', 6, 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListOrgSecretsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListOrgSecretsTest.php index c4030a30567..b91bdfe7e48 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListOrgSecretsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListOrgSecretsTest.php @@ -29,12 +29,12 @@ public function call_httpCode_200_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', '/orgs/generated/actions/secrets?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/actions/secrets?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListOrgSecrets::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -49,8 +49,8 @@ public function operations_httpCode_200_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', '/orgs/generated/actions/secrets?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/actions/secrets?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listOrgSecrets('generated', 8, 4); + $result = $client->operations()->actions()->listOrgSecrets('generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrgTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrgTest.php index 05b1b4c497f..eb38355603d 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrgTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrgTest.php @@ -29,12 +29,12 @@ public function call_httpCode_200_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', '/orgs/generated/actions/runner-groups/15/repositories?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/actions/runner-groups/15/repositories?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['runner_group_id'] = 15; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -50,8 +50,8 @@ public function operations_httpCode_200_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', '/orgs/generated/actions/runner-groups/15/repositories?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/actions/runner-groups/15/repositories?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listRepoAccessToSelfHostedRunnerGroupInOrg('generated', 15, 4, 8); + $result = $client->operations()->actions()->listRepoAccessToSelfHostedRunnerGroupInOrg('generated', 15, 1, 8); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListRepoSecretsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListRepoSecretsTest.php index dbe97490185..f4b23880339 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListRepoSecretsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListRepoSecretsTest.php @@ -29,13 +29,13 @@ public function call_httpCode_200_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/actions/secrets?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/secrets?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListRepoSecrets::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -50,8 +50,8 @@ public function operations_httpCode_200_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/actions/secrets?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/secrets?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listRepoSecrets('generated', 'generated', 8, 4); + $result = $client->operations()->actions()->listRepoSecrets('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListRepoWorkflowsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListRepoWorkflowsTest.php index 9e9f7222291..1e9d07a5f52 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListRepoWorkflowsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListRepoWorkflowsTest.php @@ -29,13 +29,13 @@ public function call_httpCode_200_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/actions/workflows?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/workflows?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListRepoWorkflows::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -50,8 +50,8 @@ public function operations_httpCode_200_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/actions/workflows?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/workflows?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listRepoWorkflows('generated', 'generated', 8, 4); + $result = $client->operations()->actions()->listRepoWorkflows('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelectedReposForOrgSecretTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelectedReposForOrgSecretTest.php index 72122843c04..d1b06189c6a 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelectedReposForOrgSecretTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelectedReposForOrgSecretTest.php @@ -29,12 +29,12 @@ public function call_httpCode_200_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', '/orgs/generated/actions/secrets/generated/repositories?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/actions/secrets/generated/repositories?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListSelectedReposForOrgSecret::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['secret_name'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -50,8 +50,8 @@ public function operations_httpCode_200_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', '/orgs/generated/actions/secrets/generated/repositories?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/actions/secrets/generated/repositories?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listSelectedReposForOrgSecret('generated', 'generated', 4, 8); + $result = $client->operations()->actions()->listSelectedReposForOrgSecret('generated', 'generated', 1, 8); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelectedRepositoriesEnabledGithubActionsOrganizationTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelectedRepositoriesEnabledGithubActionsOrganizationTest.php index 2b1af510ade..db5e7823ee1 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelectedRepositoriesEnabledGithubActionsOrganizationTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelectedRepositoriesEnabledGithubActionsOrganizationTest.php @@ -29,12 +29,12 @@ public function call_httpCode_200_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', '/orgs/generated/actions/permissions/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/actions/permissions/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -49,8 +49,8 @@ public function operations_httpCode_200_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', '/orgs/generated/actions/permissions/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/actions/permissions/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listSelectedRepositoriesEnabledGithubActionsOrganization('generated', 8, 4); + $result = $client->operations()->actions()->listSelectedRepositoriesEnabledGithubActionsOrganization('generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnerGroupsForOrgTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnerGroupsForOrgTest.php index caea92d309f..9b9cceacbbf 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnerGroupsForOrgTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnerGroupsForOrgTest.php @@ -29,12 +29,12 @@ public function call_httpCode_200_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', '/orgs/generated/actions/runner-groups?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/actions/runner-groups?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListSelfHostedRunnerGroupsForOrg::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -49,8 +49,8 @@ public function operations_httpCode_200_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', '/orgs/generated/actions/runner-groups?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/actions/runner-groups?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listSelfHostedRunnerGroupsForOrg('generated', 8, 4); + $result = $client->operations()->actions()->listSelfHostedRunnerGroupsForOrg('generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnersForOrgTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnersForOrgTest.php index 1a49d28a3f4..c04fc9735ee 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnersForOrgTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnersForOrgTest.php @@ -29,12 +29,12 @@ public function call_httpCode_200_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', '/orgs/generated/actions/runners?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/actions/runners?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListSelfHostedRunnersForOrg::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -49,8 +49,8 @@ public function operations_httpCode_200_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', '/orgs/generated/actions/runners?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/actions/runners?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listSelfHostedRunnersForOrg('generated', 8, 4); + $result = $client->operations()->actions()->listSelfHostedRunnersForOrg('generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnersForRepoTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnersForRepoTest.php index 73cd575d464..641b2b0cfcc 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnersForRepoTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnersForRepoTest.php @@ -29,13 +29,13 @@ public function call_httpCode_200_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/actions/runners?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/runners?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListSelfHostedRunnersForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -50,8 +50,8 @@ public function operations_httpCode_200_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/actions/runners?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/runners?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listSelfHostedRunnersForRepo('generated', 'generated', 8, 4); + $result = $client->operations()->actions()->listSelfHostedRunnersForRepo('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnersInGroupForOrgTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnersInGroupForOrgTest.php index 351127d23e2..29b57185d6e 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnersInGroupForOrgTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListSelfHostedRunnersInGroupForOrgTest.php @@ -29,13 +29,13 @@ public function call_httpCode_200_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', '/orgs/generated/actions/runner-groups/15/runners?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/actions/runner-groups/15/runners?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListSelfHostedRunnersInGroupForOrg::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['runner_group_id'] = 15; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -50,8 +50,8 @@ public function operations_httpCode_200_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', '/orgs/generated/actions/runner-groups/15/runners?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/actions/runner-groups/15/runners?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listSelfHostedRunnersInGroupForOrg('generated', 15, 8, 4); + $result = $client->operations()->actions()->listSelfHostedRunnersInGroupForOrg('generated', 15, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListWorkflowRunArtifactsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListWorkflowRunArtifactsTest.php index d2712db2940..c11fe9ef00b 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListWorkflowRunArtifactsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListWorkflowRunArtifactsTest.php @@ -29,14 +29,14 @@ public function call_httpCode_200_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/actions/runs/6/artifacts?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/runs/6/artifacts?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListWorkflowRunArtifacts::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['run_id'] = 6; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,8 +51,8 @@ public function operations_httpCode_200_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/actions/runs/6/artifacts?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/runs/6/artifacts?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listWorkflowRunArtifacts('generated', 'generated', 6, 8, 4); + $result = $client->operations()->actions()->listWorkflowRunArtifacts('generated', 'generated', 6, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListWorkflowRunsForRepoTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListWorkflowRunsForRepoTest.php index 249491399a8..940cc8a79be 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListWorkflowRunsForRepoTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListWorkflowRunsForRepoTest.php @@ -29,7 +29,7 @@ public function call_httpCode_200_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/actions/runs?actor=generated&branch=generated&event=generated&status=generated&created=1970-01-01T00:00:00+00:00&per_page=8&page=4&exclude_pull_requests=', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/runs?actor=generated&branch=generated&event=generated&status=generated&created=1970-01-01T00:00:00+00:00&per_page=8&page=1&exclude_pull_requests=', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListWorkflowRunsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -40,7 +40,7 @@ public function call_httpCode_200_responseContentType_application_json_zero(): v $data['status'] = 'generated'; $data['created'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; $data['exclude_pull_requests'] = false; return $data; @@ -56,8 +56,8 @@ public function operations_httpCode_200_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/actions/runs?actor=generated&branch=generated&event=generated&status=generated&created=1970-01-01T00:00:00+00:00&per_page=8&page=4&exclude_pull_requests=', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/runs?actor=generated&branch=generated&event=generated&status=generated&created=1970-01-01T00:00:00+00:00&per_page=8&page=1&exclude_pull_requests=', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listWorkflowRunsForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 8, 4, false); + $result = $client->operations()->actions()->listWorkflowRunsForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 8, 1, false); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListWorkflowRunsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListWorkflowRunsTest.php index 0b423c8c4e9..ec526b4bdb6 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListWorkflowRunsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Actions/ListWorkflowRunsTest.php @@ -29,7 +29,7 @@ public function call_httpCode_200_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/actions/workflows//runs?actor=generated&branch=generated&event=generated&status=generated&created=1970-01-01T00:00:00+00:00&per_page=8&page=4&exclude_pull_requests=', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/workflows//runs?actor=generated&branch=generated&event=generated&status=generated&created=1970-01-01T00:00:00+00:00&per_page=8&page=1&exclude_pull_requests=', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Actions\ListWorkflowRuns::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -41,7 +41,7 @@ public function call_httpCode_200_responseContentType_application_json_zero(): v $data['status'] = 'generated'; $data['created'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; $data['exclude_pull_requests'] = false; return $data; @@ -57,8 +57,8 @@ public function operations_httpCode_200_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/actions/workflows//runs?actor=generated&branch=generated&event=generated&status=generated&created=1970-01-01T00:00:00+00:00&per_page=8&page=4&exclude_pull_requests=', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/actions/workflows//runs?actor=generated&branch=generated&event=generated&status=generated&created=1970-01-01T00:00:00+00:00&per_page=8&page=1&exclude_pull_requests=', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->actions()->listWorkflowRuns('generated', 'generated', null, 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 8, 4, false); + $result = $client->operations()->actions()->listWorkflowRuns('generated', 'generated', null, 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 8, 1, false); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListEventsForAuthenticatedUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListEventsForAuthenticatedUserListingTest.php new file mode 100644 index 00000000000..07a0a4d5bca --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListEventsForAuthenticatedUserListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListNotificationsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['before'] = '1970-01-01T00:00:00+00:00'; + $data['all'] = false; + $data['participating'] = false; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listNotificationsForAuthenticatedUserListing('1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', false, false, 1, 8); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListNotificationsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['before'] = '1970-01-01T00:00:00+00:00'; + $data['all'] = false; + $data['participating'] = false; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listNotificationsForAuthenticatedUserListing('1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', false, false, 1, 8); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListNotificationsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['before'] = '1970-01-01T00:00:00+00:00'; + $data['all'] = false; + $data['participating'] = false; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listNotificationsForAuthenticatedUserListing('1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', false, false, 1, 8); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListNotificationsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['before'] = '1970-01-01T00:00:00+00:00'; + $data['all'] = false; + $data['participating'] = false; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listNotificationsForAuthenticatedUserListing('1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', false, false, 1, 8); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListNotificationsForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListNotificationsForAuthenticatedUserTest.php index 55046d40ba7..aa1ab19c7fe 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListNotificationsForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListNotificationsForAuthenticatedUserTest.php @@ -31,14 +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', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListNotificationsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['since'] = '1970-01-01T00:00:00+00:00'; $data['before'] = '1970-01-01T00:00:00+00:00'; $data['all'] = false; $data['participating'] = false; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -55,9 +55,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', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listNotificationsForAuthenticatedUser('1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', false, false, 4, 8); + $result = $client->operations()->activity()->listNotificationsForAuthenticatedUser('1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', false, false, 1, 8); } /** @test */ @@ -70,14 +70,14 @@ public function call_httpCode_401_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', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListNotificationsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['since'] = '1970-01-01T00:00:00+00:00'; $data['before'] = '1970-01-01T00:00:00+00:00'; $data['all'] = false; $data['participating'] = false; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -94,9 +94,9 @@ public function operations_httpCode_401_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', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listNotificationsForAuthenticatedUser('1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', false, false, 4, 8); + $result = $client->operations()->activity()->listNotificationsForAuthenticatedUser('1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', false, false, 1, 8); } /** @test */ @@ -109,14 +109,14 @@ public function call_httpCode_422_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', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListNotificationsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['since'] = '1970-01-01T00:00:00+00:00'; $data['before'] = '1970-01-01T00:00:00+00:00'; $data['all'] = false; $data['participating'] = false; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -133,9 +133,9 @@ public function operations_httpCode_422_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', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listNotificationsForAuthenticatedUser('1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', false, false, 4, 8); + $result = $client->operations()->activity()->listNotificationsForAuthenticatedUser('1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', false, false, 1, 8); } /** @test */ @@ -147,14 +147,14 @@ 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', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListNotificationsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['since'] = '1970-01-01T00:00:00+00:00'; $data['before'] = '1970-01-01T00:00:00+00:00'; $data['all'] = false; $data['participating'] = false; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -170,9 +170,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', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/notifications?since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&all=&participating=&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listNotificationsForAuthenticatedUser('1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', false, false, 4, 8); + $result = $client->operations()->activity()->listNotificationsForAuthenticatedUser('1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', false, false, 1, 8); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListOrgEventsForAuthenticatedUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListOrgEventsForAuthenticatedUserListingTest.php new file mode 100644 index 00000000000..a30f82bb397 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListOrgEventsForAuthenticatedUserListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListPublicEventsForRepoNetworkListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listPublicEventsForRepoNetworkListing('generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListPublicEventsForRepoNetworkListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listPublicEventsForRepoNetworkListing('generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_301_responseContentType_application_json_zero(): void + { + $response = new Response(301, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListPublicEventsForRepoNetworkListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_301_responseContentType_application_json_zero(): void + { + $response = new Response(301, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listPublicEventsForRepoNetworkListing('generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListPublicEventsForRepoNetworkListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listPublicEventsForRepoNetworkListing('generated', 'generated', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicEventsForRepoNetworkTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicEventsForRepoNetworkTest.php index 46328f4aac9..97e8991aa47 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicEventsForRepoNetworkTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicEventsForRepoNetworkTest.php @@ -31,13 +31,13 @@ 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', '/networks/generated/generated/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListPublicEventsForRepoNetwork::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,9 +53,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', '/networks/generated/generated/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listPublicEventsForRepoNetwork('generated', 'generated', 8, 4); + $result = $client->operations()->activity()->listPublicEventsForRepoNetwork('generated', 'generated', 8, 1); } /** @test */ @@ -68,13 +68,13 @@ 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', '/networks/generated/generated/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListPublicEventsForRepoNetwork::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -90,9 +90,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', '/networks/generated/generated/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listPublicEventsForRepoNetwork('generated', 'generated', 8, 4); + $result = $client->operations()->activity()->listPublicEventsForRepoNetwork('generated', 'generated', 8, 1); } /** @test */ @@ -104,13 +104,13 @@ public function call_httpCode_301_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', '/networks/generated/generated/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListPublicEventsForRepoNetwork::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -125,9 +125,9 @@ public function operations_httpCode_301_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', '/networks/generated/generated/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listPublicEventsForRepoNetwork('generated', 'generated', 8, 4); + $result = $client->operations()->activity()->listPublicEventsForRepoNetwork('generated', 'generated', 8, 1); } /** @test */ @@ -139,13 +139,13 @@ 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', '/networks/generated/generated/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListPublicEventsForRepoNetwork::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -160,9 +160,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', '/networks/generated/generated/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/networks/generated/generated/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listPublicEventsForRepoNetwork('generated', 'generated', 8, 4); + $result = $client->operations()->activity()->listPublicEventsForRepoNetwork('generated', 'generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicEventsForUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicEventsForUserListingTest.php new file mode 100644 index 00000000000..5369ed98185 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicEventsForUserListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListPublicEventsListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listPublicEventsListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_503_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListPublicEventsListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_503_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listPublicEventsListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListPublicEventsListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listPublicEventsListing(8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicEventsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicEventsTest.php index 82e21a4d04a..e72ecec6813 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicEventsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicEventsTest.php @@ -31,11 +31,11 @@ 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', '/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListPublicEvents::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,9 +51,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', '/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listPublicEvents(8, 4); + $result = $client->operations()->activity()->listPublicEvents(8, 1); } /** @test */ @@ -66,11 +66,11 @@ 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', '/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListPublicEvents::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,9 +86,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', '/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listPublicEvents(8, 4); + $result = $client->operations()->activity()->listPublicEvents(8, 1); } /** @test */ @@ -100,11 +100,11 @@ 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', '/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListPublicEvents::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -119,9 +119,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', '/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listPublicEvents(8, 4); + $result = $client->operations()->activity()->listPublicEvents(8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicOrgEventsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicOrgEventsListingTest.php new file mode 100644 index 00000000000..3858268b054 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListPublicOrgEventsListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/starred?sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListReposStarredByAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['sort'] = 'generated'; + $data['direction'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/starred?sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listReposStarredByAuthenticatedUserListing('generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/starred?sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListReposStarredByAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['sort'] = 'generated'; + $data['direction'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/starred?sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listReposStarredByAuthenticatedUserListing('generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/starred?sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListReposStarredByAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['sort'] = 'generated'; + $data['direction'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/starred?sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listReposStarredByAuthenticatedUserListing('generated', 'generated', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListReposStarredByAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListReposStarredByAuthenticatedUserTest.php index cca29a12d0a..b01314efe5f 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListReposStarredByAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListReposStarredByAuthenticatedUserTest.php @@ -31,13 +31,13 @@ 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', '/user/starred?sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/starred?sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListReposStarredByAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['sort'] = 'generated'; $data['direction'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,9 +53,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', '/user/starred?sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/starred?sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listReposStarredByAuthenticatedUser('generated', 'generated', 8, 4); + $result = $client->operations()->activity()->listReposStarredByAuthenticatedUser('generated', 'generated', 8, 1); } /** @test */ @@ -68,13 +68,13 @@ public function call_httpCode_401_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', '/user/starred?sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/starred?sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListReposStarredByAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['sort'] = 'generated'; $data['direction'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -90,9 +90,9 @@ public function operations_httpCode_401_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', '/user/starred?sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/starred?sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listReposStarredByAuthenticatedUser('generated', 'generated', 8, 4); + $result = $client->operations()->activity()->listReposStarredByAuthenticatedUser('generated', 'generated', 8, 1); } /** @test */ @@ -104,13 +104,13 @@ 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', '/user/starred?sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/starred?sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListReposStarredByAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['sort'] = 'generated'; $data['direction'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -125,9 +125,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', '/user/starred?sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/starred?sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listReposStarredByAuthenticatedUser('generated', 'generated', 8, 4); + $result = $client->operations()->activity()->listReposStarredByAuthenticatedUser('generated', 'generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListReposWatchedByUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListReposWatchedByUserListingTest.php new file mode 100644 index 00000000000..adeb9db0d9f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListReposWatchedByUserListingTest.php @@ -0,0 +1,12 @@ +prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/stargazers?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/stargazers?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListStargazersForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,8 +53,8 @@ public function operations_httpCode_422_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/stargazers?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/stargazers?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listStargazersForRepo('generated', 'generated', 8, 4); + $result = $client->operations()->activity()->listStargazersForRepo('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListWatchedReposForAuthenticatedUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListWatchedReposForAuthenticatedUserListingTest.php new file mode 100644 index 00000000000..0d2bf9f734c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListWatchedReposForAuthenticatedUserListingTest.php @@ -0,0 +1,140 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/subscriptions?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListWatchedReposForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/subscriptions?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listWatchedReposForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/subscriptions?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListWatchedReposForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/subscriptions?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listWatchedReposForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/subscriptions?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Activity\ListWatchedReposForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/subscriptions?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->activity()->listWatchedReposForAuthenticatedUserListing(8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListWatchedReposForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListWatchedReposForAuthenticatedUserTest.php index 4448e929fcc..c9b943bd897 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListWatchedReposForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListWatchedReposForAuthenticatedUserTest.php @@ -31,11 +31,11 @@ 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', '/user/subscriptions?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/subscriptions?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListWatchedReposForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,9 +51,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', '/user/subscriptions?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/subscriptions?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listWatchedReposForAuthenticatedUser(8, 4); + $result = $client->operations()->activity()->listWatchedReposForAuthenticatedUser(8, 1); } /** @test */ @@ -66,11 +66,11 @@ public function call_httpCode_401_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', '/user/subscriptions?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/subscriptions?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListWatchedReposForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,9 +86,9 @@ public function operations_httpCode_401_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', '/user/subscriptions?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/subscriptions?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listWatchedReposForAuthenticatedUser(8, 4); + $result = $client->operations()->activity()->listWatchedReposForAuthenticatedUser(8, 1); } /** @test */ @@ -100,11 +100,11 @@ 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', '/user/subscriptions?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/subscriptions?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Activity\ListWatchedReposForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -119,9 +119,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', '/user/subscriptions?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/subscriptions?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->activity()->listWatchedReposForAuthenticatedUser(8, 4); + $result = $client->operations()->activity()->listWatchedReposForAuthenticatedUser(8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListWatchersForRepoListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListWatchersForRepoListingTest.php new file mode 100644 index 00000000000..32c77b8403d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Activity/ListWatchersForRepoListingTest.php @@ -0,0 +1,12 @@ +prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/user/installations/15/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations/15/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Apps\ListInstallationReposForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['installation_id'] = 15; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -50,9 +50,9 @@ public function operations_httpCode_200_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', '/user/installations/15/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations/15/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->apps()->listInstallationReposForAuthenticatedUser(15, 8, 4); + $result = $client->operations()->apps()->listInstallationReposForAuthenticatedUser(15, 8, 1); } /** @test */ @@ -65,12 +65,12 @@ 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', '/user/installations/15/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations/15/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Apps\ListInstallationReposForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['installation_id'] = 15; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,9 +86,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', '/user/installations/15/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations/15/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->apps()->listInstallationReposForAuthenticatedUser(15, 8, 4); + $result = $client->operations()->apps()->listInstallationReposForAuthenticatedUser(15, 8, 1); } /** @test */ @@ -101,12 +101,12 @@ 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', '/user/installations/15/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations/15/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Apps\ListInstallationReposForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['installation_id'] = 15; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -122,9 +122,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', '/user/installations/15/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations/15/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->apps()->listInstallationReposForAuthenticatedUser(15, 8, 4); + $result = $client->operations()->apps()->listInstallationReposForAuthenticatedUser(15, 8, 1); } /** @test */ @@ -136,12 +136,12 @@ 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', '/user/installations/15/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations/15/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Apps\ListInstallationReposForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['installation_id'] = 15; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -156,9 +156,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', '/user/installations/15/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations/15/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->apps()->listInstallationReposForAuthenticatedUser(15, 8, 4); + $result = $client->operations()->apps()->listInstallationReposForAuthenticatedUser(15, 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationRequestsForAuthenticatedAppListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationRequestsForAuthenticatedAppListingTest.php new file mode 100644 index 00000000000..2aab66460ae --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationRequestsForAuthenticatedAppListingTest.php @@ -0,0 +1,101 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/app/installation-requests?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Apps\ListInstallationRequestsForAuthenticatedAppListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/app/installation-requests?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->apps()->listInstallationRequestsForAuthenticatedAppListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/app/installation-requests?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Apps\ListInstallationRequestsForAuthenticatedAppListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/app/installation-requests?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->apps()->listInstallationRequestsForAuthenticatedAppListing(8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationRequestsForAuthenticatedAppTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationRequestsForAuthenticatedAppTest.php index e3885a6e5d6..280a349378d 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationRequestsForAuthenticatedAppTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationRequestsForAuthenticatedAppTest.php @@ -31,11 +31,11 @@ public function call_httpCode_401_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', '/app/installation-requests?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/app/installation-requests?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Apps\ListInstallationRequestsForAuthenticatedApp::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,9 +51,9 @@ public function operations_httpCode_401_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', '/app/installation-requests?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/app/installation-requests?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->apps()->listInstallationRequestsForAuthenticatedApp(8, 4); + $result = $client->operations()->apps()->listInstallationRequestsForAuthenticatedApp(8, 1); } /** @test */ @@ -65,11 +65,11 @@ 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', '/app/installation-requests?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/app/installation-requests?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Apps\ListInstallationRequestsForAuthenticatedApp::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -84,9 +84,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', '/app/installation-requests?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/app/installation-requests?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->apps()->listInstallationRequestsForAuthenticatedApp(8, 4); + $result = $client->operations()->apps()->listInstallationRequestsForAuthenticatedApp(8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationsForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationsForAuthenticatedUserTest.php index acbdb7b506d..7d8f501b600 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationsForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationsForAuthenticatedUserTest.php @@ -30,11 +30,11 @@ public function call_httpCode_200_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', '/user/installations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Apps\ListInstallationsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -49,9 +49,9 @@ public function operations_httpCode_200_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', '/user/installations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->apps()->listInstallationsForAuthenticatedUser(8, 4); + $result = $client->operations()->apps()->listInstallationsForAuthenticatedUser(8, 1); } /** @test */ @@ -64,11 +64,11 @@ 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', '/user/installations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Apps\ListInstallationsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -84,9 +84,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', '/user/installations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->apps()->listInstallationsForAuthenticatedUser(8, 4); + $result = $client->operations()->apps()->listInstallationsForAuthenticatedUser(8, 1); } /** @test */ @@ -99,11 +99,11 @@ public function call_httpCode_401_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', '/user/installations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Apps\ListInstallationsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -119,9 +119,9 @@ public function operations_httpCode_401_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', '/user/installations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->apps()->listInstallationsForAuthenticatedUser(8, 4); + $result = $client->operations()->apps()->listInstallationsForAuthenticatedUser(8, 1); } /** @test */ @@ -133,11 +133,11 @@ 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', '/user/installations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Apps\ListInstallationsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -152,9 +152,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', '/user/installations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/installations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->apps()->listInstallationsForAuthenticatedUser(8, 4); + $result = $client->operations()->apps()->listInstallationsForAuthenticatedUser(8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationsListingTest.php new file mode 100644 index 00000000000..c441876236a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Apps/ListInstallationsListingTest.php @@ -0,0 +1,12 @@ +prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/installation/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/installation/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Apps\ListReposAccessibleToInstallation::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -49,9 +49,9 @@ public function operations_httpCode_200_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', '/installation/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/installation/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->apps()->listReposAccessibleToInstallation(8, 4); + $result = $client->operations()->apps()->listReposAccessibleToInstallation(8, 1); } /** @test */ @@ -64,11 +64,11 @@ 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', '/installation/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/installation/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Apps\ListReposAccessibleToInstallation::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -84,9 +84,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', '/installation/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/installation/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->apps()->listReposAccessibleToInstallation(8, 4); + $result = $client->operations()->apps()->listReposAccessibleToInstallation(8, 1); } /** @test */ @@ -99,11 +99,11 @@ public function call_httpCode_401_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', '/installation/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/installation/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Apps\ListReposAccessibleToInstallation::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -119,9 +119,9 @@ public function operations_httpCode_401_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', '/installation/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/installation/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->apps()->listReposAccessibleToInstallation(8, 4); + $result = $client->operations()->apps()->listReposAccessibleToInstallation(8, 1); } /** @test */ @@ -133,11 +133,11 @@ 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', '/installation/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/installation/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Apps\ListReposAccessibleToInstallation::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -152,9 +152,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', '/installation/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/installation/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->apps()->listReposAccessibleToInstallation(8, 4); + $result = $client->operations()->apps()->listReposAccessibleToInstallation(8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Billing/GetGithubAdvancedSecurityBillingGheTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Billing/GetGithubAdvancedSecurityBillingGheTest.php index e3978fc9f1f..eec88345d9c 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Billing/GetGithubAdvancedSecurityBillingGheTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Billing/GetGithubAdvancedSecurityBillingGheTest.php @@ -30,12 +30,12 @@ public function call_httpCode_200_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', '/enterprises/generated/settings/billing/advanced-security?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/enterprises/generated/settings/billing/advanced-security?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Billing\GetGithubAdvancedSecurityBillingGhe::OPERATION_MATCH, (static function (array $data): array { $data['enterprise'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -50,9 +50,9 @@ public function operations_httpCode_200_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', '/enterprises/generated/settings/billing/advanced-security?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/enterprises/generated/settings/billing/advanced-security?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->billing()->getGithubAdvancedSecurityBillingGhe('generated', 8, 4); + $result = $client->operations()->billing()->getGithubAdvancedSecurityBillingGhe('generated', 8, 1); } /** @test */ @@ -65,12 +65,12 @@ 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', '/enterprises/generated/settings/billing/advanced-security?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/enterprises/generated/settings/billing/advanced-security?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Billing\GetGithubAdvancedSecurityBillingGhe::OPERATION_MATCH, (static function (array $data): array { $data['enterprise'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,8 +86,8 @@ 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', '/enterprises/generated/settings/billing/advanced-security?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/enterprises/generated/settings/billing/advanced-security?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->billing()->getGithubAdvancedSecurityBillingGhe('generated', 8, 4); + $result = $client->operations()->billing()->getGithubAdvancedSecurityBillingGhe('generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Billing/GetGithubAdvancedSecurityBillingOrgTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Billing/GetGithubAdvancedSecurityBillingOrgTest.php index 205bd754b3d..ec27c124d41 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Billing/GetGithubAdvancedSecurityBillingOrgTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Billing/GetGithubAdvancedSecurityBillingOrgTest.php @@ -30,12 +30,12 @@ public function call_httpCode_200_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', '/orgs/generated/settings/billing/advanced-security?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/settings/billing/advanced-security?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Billing\GetGithubAdvancedSecurityBillingOrg::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -50,9 +50,9 @@ public function operations_httpCode_200_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', '/orgs/generated/settings/billing/advanced-security?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/settings/billing/advanced-security?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->billing()->getGithubAdvancedSecurityBillingOrg('generated', 8, 4); + $result = $client->operations()->billing()->getGithubAdvancedSecurityBillingOrg('generated', 8, 1); } /** @test */ @@ -65,12 +65,12 @@ 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', '/orgs/generated/settings/billing/advanced-security?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/settings/billing/advanced-security?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Billing\GetGithubAdvancedSecurityBillingOrg::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,8 +86,8 @@ 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', '/orgs/generated/settings/billing/advanced-security?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/settings/billing/advanced-security?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->billing()->getGithubAdvancedSecurityBillingOrg('generated', 8, 4); + $result = $client->operations()->billing()->getGithubAdvancedSecurityBillingOrg('generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Checks/ListAnnotationsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Checks/ListAnnotationsListingTest.php new file mode 100644 index 00000000000..9b6c16b7afb --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Checks/ListAnnotationsListingTest.php @@ -0,0 +1,12 @@ +prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/commits/generated/check-runs?check_name=generated&status=generated&app_id=6&filter=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated/check-runs?check_name=generated&status=generated&app_id=6&filter=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Checks\ListForRef::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -40,7 +40,7 @@ public function call_httpCode_200_responseContentType_application_json_zero(): v $data['app_id'] = 6; $data['filter'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -55,8 +55,8 @@ public function operations_httpCode_200_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/commits/generated/check-runs?check_name=generated&status=generated&app_id=6&filter=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated/check-runs?check_name=generated&status=generated&app_id=6&filter=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->checks()->listForRef('generated', 'generated', 'generated', 'generated', 'generated', 6, 'generated', 8, 4); + $result = $client->operations()->checks()->listForRef('generated', 'generated', 'generated', 'generated', 'generated', 6, 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Checks/ListForSuiteTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Checks/ListForSuiteTest.php index 58d62a8ef9a..a69bf75392a 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Checks/ListForSuiteTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Checks/ListForSuiteTest.php @@ -29,7 +29,7 @@ public function call_httpCode_200_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/check-suites/14/check-runs?check_name=generated&status=generated&filter=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/check-suites/14/check-runs?check_name=generated&status=generated&filter=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Checks\ListForSuite::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -39,7 +39,7 @@ public function call_httpCode_200_responseContentType_application_json_zero(): v $data['status'] = 'generated'; $data['filter'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -54,8 +54,8 @@ public function operations_httpCode_200_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/check-suites/14/check-runs?check_name=generated&status=generated&filter=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/check-suites/14/check-runs?check_name=generated&status=generated&filter=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->checks()->listForSuite('generated', 'generated', 14, 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->checks()->listForSuite('generated', 'generated', 14, 'generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Checks/ListSuitesForRefTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Checks/ListSuitesForRefTest.php index 15fc1baef23..14bc545733d 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Checks/ListSuitesForRefTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Checks/ListSuitesForRefTest.php @@ -29,7 +29,7 @@ public function call_httpCode_200_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/commits/generated/check-suites?app_id=6&check_name=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated/check-suites?app_id=6&check_name=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Checks\ListSuitesForRef::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -38,7 +38,7 @@ public function call_httpCode_200_responseContentType_application_json_zero(): v $data['app_id'] = 6; $data['check_name'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,8 +53,8 @@ public function operations_httpCode_200_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/commits/generated/check-suites?app_id=6&check_name=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated/check-suites?app_id=6&check_name=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->checks()->listSuitesForRef('generated', 'generated', 'generated', 6, 'generated', 8, 4); + $result = $client->operations()->checks()->listSuitesForRef('generated', 'generated', 'generated', 6, 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListAlertInstancesListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListAlertInstancesListingTest.php new file mode 100644 index 00000000000..d1989613a21 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListAlertInstancesListingTest.php @@ -0,0 +1,152 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\CodeScanning\ListAlertInstancesListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['alert_number'] = 12; + $data['ref'] = 'generated'; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('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(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->codeScanning()->listAlertInstancesListing('generated', 'generated', 12, 'generated', 1, 8); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\CodeScanning\ListAlertInstancesListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['alert_number'] = 12; + $data['ref'] = 'generated'; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts/12/instances?ref=generated&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); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_503_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('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(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\CodeScanning\ListAlertInstancesListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['alert_number'] = 12; + $data['ref'] = 'generated'; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_503_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('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(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->codeScanning()->listAlertInstancesListing('generated', 'generated', 12, 'generated', 1, 8); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListAlertInstancesTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListAlertInstancesTest.php index 99616522602..a3a3b314867 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListAlertInstancesTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListAlertInstancesTest.php @@ -31,14 +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=4&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&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\CodeScanning\ListAlertInstances::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; $data['ref'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -55,9 +55,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=4&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&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', 4, 8); + $result = $client->operations()->codeScanning()->listAlertInstances('generated', 'generated', 12, 'generated', 1, 8); } /** @test */ @@ -70,14 +70,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=4&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&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\CodeScanning\ListAlertInstances::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; $data['ref'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -94,9 +94,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=4&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&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', 4, 8); + $result = $client->operations()->codeScanning()->listAlertInstances('generated', 'generated', 12, 'generated', 1, 8); } /** @test */ @@ -109,14 +109,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=4&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&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\CodeScanning\ListAlertInstances::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; $data['ref'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -133,8 +133,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=4&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&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', 4, 8); + $result = $client->operations()->codeScanning()->listAlertInstances('generated', 'generated', 12, 'generated', 1, 8); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListAlertsForRepoListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListAlertsForRepoListingTest.php new file mode 100644 index 00000000000..cb0b894daf2 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListAlertsForRepoListingTest.php @@ -0,0 +1,211 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=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(Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['tool_name'] = 'generated'; + $data['tool_guid'] = null; + $data['ref'] = 'generated'; + $data['state'] = 'generated'; + $data['page'] = 1; + $data['per_page'] = 8; + $data['direction'] = 'generated'; + $data['sort'] = 'generated'; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=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', 1, 8, 'generated', 'generated'); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=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(Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['tool_name'] = 'generated'; + $data['tool_guid'] = null; + $data['ref'] = 'generated'; + $data['state'] = 'generated'; + $data['page'] = 1; + $data['per_page'] = 8; + $data['direction'] = 'generated'; + $data['sort'] = 'generated'; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=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', 1, 8, 'generated', 'generated'); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_503_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=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(Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['tool_name'] = 'generated'; + $data['tool_guid'] = null; + $data['ref'] = 'generated'; + $data['state'] = 'generated'; + $data['page'] = 1; + $data['per_page'] = 8; + $data['direction'] = 'generated'; + $data['sort'] = 'generated'; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_503_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=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', 1, 8, 'generated', 'generated'); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=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(Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['tool_name'] = 'generated'; + $data['tool_guid'] = null; + $data['ref'] = 'generated'; + $data['state'] = 'generated'; + $data['page'] = 1; + $data['per_page'] = 8; + $data['direction'] = 'generated'; + $data['sort'] = 'generated'; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&state=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', 1, 8, 'generated', 'generated'); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListAlertsForRepoTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListAlertsForRepoTest.php index fb651ae54d8..5485e38252b 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListAlertsForRepoTest.php +++ b/clients/GitHubEnterprise-3.4/tests/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&page=4&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&state=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(Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -40,7 +40,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $data['tool_guid'] = null; $data['ref'] = 'generated'; $data['state'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; $data['direction'] = 'generated'; $data['sort'] = 'generated'; @@ -59,9 +59,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&page=4&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&state=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', 4, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -74,7 +74,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&page=4&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&state=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(Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -83,7 +83,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['tool_guid'] = null; $data['ref'] = 'generated'; $data['state'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; $data['direction'] = 'generated'; $data['sort'] = 'generated'; @@ -102,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?tool_name=generated&tool_guid=&ref=generated&state=generated&page=4&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&state=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', 4, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -117,7 +117,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&page=4&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&state=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(Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -126,7 +126,7 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $data['tool_guid'] = null; $data['ref'] = 'generated'; $data['state'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; $data['direction'] = 'generated'; $data['sort'] = 'generated'; @@ -145,9 +145,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&page=4&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&state=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', 4, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -159,7 +159,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&page=4&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&state=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(Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -168,7 +168,7 @@ public function call_httpCode_304_empty(): void $data['tool_guid'] = null; $data['ref'] = 'generated'; $data['state'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; $data['direction'] = 'generated'; $data['sort'] = 'generated'; @@ -186,9 +186,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&page=4&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&state=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', 4, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8, 'generated', 'generated'); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListRecentAnalysesListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListRecentAnalysesListingTest.php new file mode 100644 index 00000000000..2252b60f2fa --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListRecentAnalysesListingTest.php @@ -0,0 +1,158 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(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['ref'] = 'generated'; + $data['sarif_id'] = 'generated'; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&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()->listRecentAnalysesListing('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(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['ref'] = 'generated'; + $data['sarif_id'] = 'generated'; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&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()->listRecentAnalysesListing('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_503_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(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['ref'] = 'generated'; + $data['sarif_id'] = 'generated'; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_503_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&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()->listRecentAnalysesListing('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListRecentAnalysesTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListRecentAnalysesTest.php index 7376956c69d..ee1d940554a 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListRecentAnalysesTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/CodeScanning/ListRecentAnalysesTest.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/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\CodeScanning\ListRecentAnalyses::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -40,7 +40,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $data['tool_guid'] = null; $data['ref'] = 'generated'; $data['sarif_id'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -57,9 +57,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=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&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()->listRecentAnalyses('generated', 'generated', 'generated', null, 'generated', 'generated', 4, 8); + $result = $client->operations()->codeScanning()->listRecentAnalyses('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8); } /** @test */ @@ -72,7 +72,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/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\CodeScanning\ListRecentAnalyses::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -81,7 +81,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['tool_guid'] = null; $data['ref'] = 'generated'; $data['sarif_id'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -98,9 +98,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=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&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()->listRecentAnalyses('generated', 'generated', 'generated', null, 'generated', 'generated', 4, 8); + $result = $client->operations()->codeScanning()->listRecentAnalyses('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8); } /** @test */ @@ -113,7 +113,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/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\CodeScanning\ListRecentAnalyses::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -122,7 +122,7 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $data['tool_guid'] = null; $data['ref'] = 'generated'; $data['sarif_id'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -139,8 +139,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=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/analyses?tool_name=generated&tool_guid=&ref=generated&sarif_id=generated&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()->listRecentAnalyses('generated', 'generated', 'generated', null, 'generated', 'generated', 4, 8); + $result = $client->operations()->codeScanning()->listRecentAnalyses('generated', 'generated', 'generated', null, 'generated', 'generated', 1, 8); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Dependabot/ListOrgSecretsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Dependabot/ListOrgSecretsTest.php index f24fe0489d9..c5fa70c8d40 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Dependabot/ListOrgSecretsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Dependabot/ListOrgSecretsTest.php @@ -29,12 +29,12 @@ public function call_httpCode_200_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', '/orgs/generated/dependabot/secrets?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/dependabot/secrets?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Dependabot\ListOrgSecrets::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -49,8 +49,8 @@ public function operations_httpCode_200_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', '/orgs/generated/dependabot/secrets?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/dependabot/secrets?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->dependabot()->listOrgSecrets('generated', 8, 4); + $result = $client->operations()->dependabot()->listOrgSecrets('generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Dependabot/ListRepoSecretsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Dependabot/ListRepoSecretsTest.php index 06cd4b66618..aa39e56ed4d 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Dependabot/ListRepoSecretsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Dependabot/ListRepoSecretsTest.php @@ -29,13 +29,13 @@ public function call_httpCode_200_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/dependabot/secrets?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/dependabot/secrets?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Dependabot\ListRepoSecrets::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -50,8 +50,8 @@ public function operations_httpCode_200_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/dependabot/secrets?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/dependabot/secrets?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->dependabot()->listRepoSecrets('generated', 'generated', 8, 4); + $result = $client->operations()->dependabot()->listRepoSecrets('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Dependabot/ListSelectedReposForOrgSecretTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Dependabot/ListSelectedReposForOrgSecretTest.php index 16cb501f10d..d1d66a5ccd5 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Dependabot/ListSelectedReposForOrgSecretTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Dependabot/ListSelectedReposForOrgSecretTest.php @@ -29,12 +29,12 @@ public function call_httpCode_200_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', '/orgs/generated/dependabot/secrets/generated/repositories?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/dependabot/secrets/generated/repositories?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Dependabot\ListSelectedReposForOrgSecret::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['secret_name'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -50,8 +50,8 @@ public function operations_httpCode_200_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', '/orgs/generated/dependabot/secrets/generated/repositories?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/dependabot/secrets/generated/repositories?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->dependabot()->listSelectedReposForOrgSecret('generated', 'generated', 4, 8); + $result = $client->operations()->dependabot()->listSelectedReposForOrgSecret('generated', 'generated', 1, 8); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/GetAuditLogListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/GetAuditLogListingTest.php new file mode 100644 index 00000000000..7ae730c3bb8 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/GetAuditLogListingTest.php @@ -0,0 +1,12 @@ +prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/actions/runner-groups/15/organizations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/enterprises/generated/actions/runner-groups/15/organizations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise::OPERATION_MATCH, (static function (array $data): array { $data['enterprise'] = 'generated'; $data['runner_group_id'] = 15; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -50,8 +50,8 @@ public function operations_httpCode_200_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', '/enterprises/generated/actions/runner-groups/15/organizations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/enterprises/generated/actions/runner-groups/15/organizations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->enterpriseAdmin()->listOrgAccessToSelfHostedRunnerGroupInEnterprise('generated', 15, 8, 4); + $result = $client->operations()->enterpriseAdmin()->listOrgAccessToSelfHostedRunnerGroupInEnterprise('generated', 15, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListPersonalAccessTokensListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListPersonalAccessTokensListingTest.php new file mode 100644 index 00000000000..e7e324f1b9d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListPersonalAccessTokensListingTest.php @@ -0,0 +1,12 @@ +prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/actions/permissions/organizations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/enterprises/generated/actions/permissions/organizations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise::OPERATION_MATCH, (static function (array $data): array { $data['enterprise'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -49,8 +49,8 @@ public function operations_httpCode_200_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', '/enterprises/generated/actions/permissions/organizations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/enterprises/generated/actions/permissions/organizations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->enterpriseAdmin()->listSelectedOrganizationsEnabledGithubActionsEnterprise('generated', 8, 4); + $result = $client->operations()->enterpriseAdmin()->listSelectedOrganizationsEnabledGithubActionsEnterprise('generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListSelfHostedRunnerGroupsForEnterpriseTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListSelfHostedRunnerGroupsForEnterpriseTest.php index 9d8c2187385..cea41fe74ff 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListSelfHostedRunnerGroupsForEnterpriseTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListSelfHostedRunnerGroupsForEnterpriseTest.php @@ -29,12 +29,12 @@ public function call_httpCode_200_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', '/enterprises/generated/actions/runner-groups?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/enterprises/generated/actions/runner-groups?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise::OPERATION_MATCH, (static function (array $data): array { $data['enterprise'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -49,8 +49,8 @@ public function operations_httpCode_200_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', '/enterprises/generated/actions/runner-groups?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/enterprises/generated/actions/runner-groups?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->enterpriseAdmin()->listSelfHostedRunnerGroupsForEnterprise('generated', 8, 4); + $result = $client->operations()->enterpriseAdmin()->listSelfHostedRunnerGroupsForEnterprise('generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListSelfHostedRunnersForEnterpriseTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListSelfHostedRunnersForEnterpriseTest.php index ef43189c463..7e314999748 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListSelfHostedRunnersForEnterpriseTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListSelfHostedRunnersForEnterpriseTest.php @@ -29,12 +29,12 @@ public function call_httpCode_200_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', '/enterprises/generated/actions/runners?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/enterprises/generated/actions/runners?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise::OPERATION_MATCH, (static function (array $data): array { $data['enterprise'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -49,8 +49,8 @@ public function operations_httpCode_200_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', '/enterprises/generated/actions/runners?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/enterprises/generated/actions/runners?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->enterpriseAdmin()->listSelfHostedRunnersForEnterprise('generated', 8, 4); + $result = $client->operations()->enterpriseAdmin()->listSelfHostedRunnersForEnterprise('generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListSelfHostedRunnersInGroupForEnterpriseTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListSelfHostedRunnersInGroupForEnterpriseTest.php index e6dab1cd718..571526fb855 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListSelfHostedRunnersInGroupForEnterpriseTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/EnterpriseAdmin/ListSelfHostedRunnersInGroupForEnterpriseTest.php @@ -29,13 +29,13 @@ public function call_httpCode_200_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', '/enterprises/generated/actions/runner-groups/15/runners?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/enterprises/generated/actions/runner-groups/15/runners?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise::OPERATION_MATCH, (static function (array $data): array { $data['enterprise'] = 'generated'; $data['runner_group_id'] = 15; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -50,8 +50,8 @@ public function operations_httpCode_200_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', '/enterprises/generated/actions/runner-groups/15/runners?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/enterprises/generated/actions/runner-groups/15/runners?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->enterpriseAdmin()->listSelfHostedRunnersInGroupForEnterprise('generated', 15, 8, 4); + $result = $client->operations()->enterpriseAdmin()->listSelfHostedRunnersInGroupForEnterprise('generated', 15, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommentsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommentsListingTest.php new file mode 100644 index 00000000000..1c07def2abb --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommentsListingTest.php @@ -0,0 +1,143 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListCommentsListing::OPERATION_MATCH, (static function (array $data): array { + $data['gist_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listCommentsListing('generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListCommentsListing::OPERATION_MATCH, (static function (array $data): array { + $data['gist_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listCommentsListing('generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListCommentsListing::OPERATION_MATCH, (static function (array $data): array { + $data['gist_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listCommentsListing('generated', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommentsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommentsTest.php index 4bccc41b5ab..c756b8e5b27 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommentsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommentsTest.php @@ -31,12 +31,12 @@ 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', '/gists/generated/comments?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListComments::OPERATION_MATCH, (static function (array $data): array { $data['gist_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,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', '/gists/generated/comments?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listComments('generated', 8, 4); + $result = $client->operations()->gists()->listComments('generated', 8, 1); } /** @test */ @@ -67,12 +67,12 @@ 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', '/gists/generated/comments?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListComments::OPERATION_MATCH, (static function (array $data): array { $data['gist_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -88,9 +88,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', '/gists/generated/comments?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listComments('generated', 8, 4); + $result = $client->operations()->gists()->listComments('generated', 8, 1); } /** @test */ @@ -102,12 +102,12 @@ 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', '/gists/generated/comments?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListComments::OPERATION_MATCH, (static function (array $data): array { $data['gist_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -122,9 +122,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', '/gists/generated/comments?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listComments('generated', 8, 4); + $result = $client->operations()->gists()->listComments('generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommitsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommitsListingTest.php new file mode 100644 index 00000000000..340d627ac5c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommitsListingTest.php @@ -0,0 +1,143 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/commits?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListCommitsListing::OPERATION_MATCH, (static function (array $data): array { + $data['gist_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/commits?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listCommitsListing('generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/commits?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListCommitsListing::OPERATION_MATCH, (static function (array $data): array { + $data['gist_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/commits?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listCommitsListing('generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/commits?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListCommitsListing::OPERATION_MATCH, (static function (array $data): array { + $data['gist_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/commits?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listCommitsListing('generated', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommitsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommitsTest.php index 14ef41c1262..03d97eb847a 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommitsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListCommitsTest.php @@ -31,12 +31,12 @@ 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', '/gists/generated/commits?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/commits?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListCommits::OPERATION_MATCH, (static function (array $data): array { $data['gist_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,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', '/gists/generated/commits?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/commits?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listCommits('generated', 8, 4); + $result = $client->operations()->gists()->listCommits('generated', 8, 1); } /** @test */ @@ -67,12 +67,12 @@ 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', '/gists/generated/commits?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/commits?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListCommits::OPERATION_MATCH, (static function (array $data): array { $data['gist_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -88,9 +88,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', '/gists/generated/commits?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/commits?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listCommits('generated', 8, 4); + $result = $client->operations()->gists()->listCommits('generated', 8, 1); } /** @test */ @@ -102,12 +102,12 @@ 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', '/gists/generated/commits?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/commits?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListCommits::OPERATION_MATCH, (static function (array $data): array { $data['gist_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -122,9 +122,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', '/gists/generated/commits?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/commits?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listCommits('generated', 8, 4); + $result = $client->operations()->gists()->listCommits('generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForUserListingTest.php new file mode 100644 index 00000000000..fb6fc957f41 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForUserListingTest.php @@ -0,0 +1,64 @@ + 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/users/generated/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListForUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['username'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/users/generated/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listForUserListing('generated', '1970-01-01T00:00:00+00:00', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForUserTest.php index 033bb6ac1f9..2ef0b9ba032 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForUserTest.php @@ -31,13 +31,13 @@ public function call_httpCode_422_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', '/users/generated/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/users/generated/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListForUser::OPERATION_MATCH, (static function (array $data): array { $data['username'] = 'generated'; $data['since'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,8 +53,8 @@ public function operations_httpCode_422_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', '/users/generated/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/users/generated/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listForUser('generated', '1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->gists()->listForUser('generated', '1970-01-01T00:00:00+00:00', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForksListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForksListingTest.php new file mode 100644 index 00000000000..b1c7c8c4cb6 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForksListingTest.php @@ -0,0 +1,143 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/forks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListForksListing::OPERATION_MATCH, (static function (array $data): array { + $data['gist_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/forks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listForksListing('generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/forks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListForksListing::OPERATION_MATCH, (static function (array $data): array { + $data['gist_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/forks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listForksListing('generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/forks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListForksListing::OPERATION_MATCH, (static function (array $data): array { + $data['gist_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/generated/forks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listForksListing('generated', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForksTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForksTest.php index ece1fd4df5a..79d921b3962 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForksTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListForksTest.php @@ -31,12 +31,12 @@ 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', '/gists/generated/forks?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/forks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListForks::OPERATION_MATCH, (static function (array $data): array { $data['gist_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,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', '/gists/generated/forks?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/forks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listForks('generated', 8, 4); + $result = $client->operations()->gists()->listForks('generated', 8, 1); } /** @test */ @@ -67,12 +67,12 @@ 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', '/gists/generated/forks?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/forks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListForks::OPERATION_MATCH, (static function (array $data): array { $data['gist_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -88,9 +88,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', '/gists/generated/forks?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/forks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listForks('generated', 8, 4); + $result = $client->operations()->gists()->listForks('generated', 8, 1); } /** @test */ @@ -102,12 +102,12 @@ 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', '/gists/generated/forks?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/forks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListForks::OPERATION_MATCH, (static function (array $data): array { $data['gist_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -122,9 +122,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', '/gists/generated/forks?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/generated/forks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listForks('generated', 8, 4); + $result = $client->operations()->gists()->listForks('generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListListingTest.php new file mode 100644 index 00000000000..0ff956a7d3f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListListingTest.php @@ -0,0 +1,103 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListListing::OPERATION_MATCH, (static function (array $data): array { + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listListing('1970-01-01T00:00:00+00:00', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListListing::OPERATION_MATCH, (static function (array $data): array { + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listListing('1970-01-01T00:00:00+00:00', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListPublicListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListPublicListingTest.php new file mode 100644 index 00000000000..0e395555460 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListPublicListingTest.php @@ -0,0 +1,143 @@ + 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListPublicListing::OPERATION_MATCH, (static function (array $data): array { + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listPublicListing('1970-01-01T00:00:00+00:00', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListPublicListing::OPERATION_MATCH, (static function (array $data): array { + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listPublicListing('1970-01-01T00:00:00+00:00', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListPublicListing::OPERATION_MATCH, (static function (array $data): array { + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listPublicListing('1970-01-01T00:00:00+00:00', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListPublicTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListPublicTest.php index 559bc75f142..692d4ca97fb 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListPublicTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListPublicTest.php @@ -31,12 +31,12 @@ public function call_httpCode_422_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', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListPublic::OPERATION_MATCH, (static function (array $data): array { $data['since'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,9 @@ public function operations_httpCode_422_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', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listPublic('1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->gists()->listPublic('1970-01-01T00:00:00+00:00', 8, 1); } /** @test */ @@ -67,12 +67,12 @@ 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', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListPublic::OPERATION_MATCH, (static function (array $data): array { $data['since'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -88,9 +88,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', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listPublic('1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->gists()->listPublic('1970-01-01T00:00:00+00:00', 8, 1); } /** @test */ @@ -102,12 +102,12 @@ 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', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListPublic::OPERATION_MATCH, (static function (array $data): array { $data['since'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -122,9 +122,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', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/public?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listPublic('1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->gists()->listPublic('1970-01-01T00:00:00+00:00', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListStarredListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListStarredListingTest.php new file mode 100644 index 00000000000..af9d0fc06b6 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListStarredListingTest.php @@ -0,0 +1,143 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListStarredListing::OPERATION_MATCH, (static function (array $data): array { + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listStarredListing('1970-01-01T00:00:00+00:00', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListStarredListing::OPERATION_MATCH, (static function (array $data): array { + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listStarredListing('1970-01-01T00:00:00+00:00', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Gists\ListStarredListing::OPERATION_MATCH, (static function (array $data): array { + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->gists()->listStarredListing('1970-01-01T00:00:00+00:00', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListStarredTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListStarredTest.php index 87abc980007..04b2de8177e 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListStarredTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/ListStarredTest.php @@ -31,12 +31,12 @@ public function call_httpCode_401_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', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListStarred::OPERATION_MATCH, (static function (array $data): array { $data['since'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,9 @@ public function operations_httpCode_401_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', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listStarred('1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->gists()->listStarred('1970-01-01T00:00:00+00:00', 8, 1); } /** @test */ @@ -67,12 +67,12 @@ 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', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListStarred::OPERATION_MATCH, (static function (array $data): array { $data['since'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -88,9 +88,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', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listStarred('1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->gists()->listStarred('1970-01-01T00:00:00+00:00', 8, 1); } /** @test */ @@ -102,12 +102,12 @@ 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', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\ListStarred::OPERATION_MATCH, (static function (array $data): array { $data['since'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -122,9 +122,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', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists/starred?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->listStarred('1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->gists()->listStarred('1970-01-01T00:00:00+00:00', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/List_Test.php b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/List_Test.php index b391124b8bc..59cd0877caf 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Gists/List_Test.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Gists/List_Test.php @@ -31,12 +31,12 @@ 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', '/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\List_::OPERATION_MATCH, (static function (array $data): array { $data['since'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,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', '/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->list('1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->gists()->list('1970-01-01T00:00:00+00:00', 8, 1); } /** @test */ @@ -66,12 +66,12 @@ 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', '/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Gists\List_::OPERATION_MATCH, (static function (array $data): array { $data['since'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,9 +86,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', '/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/gists?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->gists()->list('1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->gists()->list('1970-01-01T00:00:00+00:00', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListAssigneesListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListAssigneesListingTest.php new file mode 100644 index 00000000000..aad961f76c3 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListAssigneesListingTest.php @@ -0,0 +1,64 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/assignees?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListAssigneesListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/assignees?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listAssigneesListing('generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListAssigneesTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListAssigneesTest.php index 86d44cd5da0..d476a15cd1e 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListAssigneesTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListAssigneesTest.php @@ -31,13 +31,13 @@ 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/assignees?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/assignees?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListAssignees::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,8 +53,8 @@ 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/assignees?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/assignees?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listAssignees('generated', 'generated', 8, 4); + $result = $client->operations()->issues()->listAssignees('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsForRepoListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsForRepoListingTest.php new file mode 100644 index 00000000000..c2d3115554e --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsForRepoListingTest.php @@ -0,0 +1,111 @@ + 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/comments?direction=generated&since=1970-01-01T00:00:00+00:00&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListCommentsForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['direction'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['sort'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/comments?direction=generated&since=1970-01-01T00:00:00+00:00&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listCommentsForRepoListing('generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/comments?direction=generated&since=1970-01-01T00:00:00+00:00&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListCommentsForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['direction'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['sort'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/comments?direction=generated&since=1970-01-01T00:00:00+00:00&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listCommentsForRepoListing('generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsForRepoTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsForRepoTest.php index b7e8565ebd5..27b7e18c36a 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsForRepoTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsForRepoTest.php @@ -31,7 +31,7 @@ public function call_httpCode_422_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/issues/comments?direction=generated&since=1970-01-01T00:00:00+00:00&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/comments?direction=generated&since=1970-01-01T00:00:00+00:00&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListCommentsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -40,7 +40,7 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $data['since'] = '1970-01-01T00:00:00+00:00'; $data['sort'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -56,9 +56,9 @@ public function operations_httpCode_422_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/issues/comments?direction=generated&since=1970-01-01T00:00:00+00:00&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/comments?direction=generated&since=1970-01-01T00:00:00+00:00&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listCommentsForRepo('generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 8, 4); + $result = $client->operations()->issues()->listCommentsForRepo('generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 8, 1); } /** @test */ @@ -71,7 +71,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/issues/comments?direction=generated&since=1970-01-01T00:00:00+00:00&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/comments?direction=generated&since=1970-01-01T00:00:00+00:00&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListCommentsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -80,7 +80,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['since'] = '1970-01-01T00:00:00+00:00'; $data['sort'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -96,8 +96,8 @@ 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/issues/comments?direction=generated&since=1970-01-01T00:00:00+00:00&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/comments?direction=generated&since=1970-01-01T00:00:00+00:00&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listCommentsForRepo('generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 8, 4); + $result = $client->operations()->issues()->listCommentsForRepo('generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsListingTest.php new file mode 100644 index 00000000000..29a95ea3fd9 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsListingTest.php @@ -0,0 +1,109 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/comments?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListCommentsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/comments?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listCommentsListing('generated', 'generated', 12, '1970-01-01T00:00:00+00:00', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/comments?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListCommentsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/comments?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listCommentsListing('generated', 'generated', 12, '1970-01-01T00:00:00+00:00', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsTest.php index 732be3a8110..d147124e567 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListCommentsTest.php @@ -31,7 +31,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/issues/12/comments?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/comments?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListComments::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -39,7 +39,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['issue_number'] = 12; $data['since'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -55,9 +55,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/issues/12/comments?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/comments?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listComments('generated', 'generated', 12, '1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->issues()->listComments('generated', 'generated', 12, '1970-01-01T00:00:00+00:00', 8, 1); } /** @test */ @@ -70,7 +70,7 @@ public function call_httpCode_410_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/issues/12/comments?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/comments?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListComments::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -78,7 +78,7 @@ public function call_httpCode_410_responseContentType_application_json_zero(): v $data['issue_number'] = 12; $data['since'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -94,8 +94,8 @@ public function operations_httpCode_410_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/issues/12/comments?since=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/comments?since=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listComments('generated', 'generated', 12, '1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->issues()->listComments('generated', 'generated', 12, '1970-01-01T00:00:00+00:00', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForRepoListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForRepoListingTest.php new file mode 100644 index 00000000000..fb6a54f6c4d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForRepoListingTest.php @@ -0,0 +1,64 @@ + 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListEventsForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listEventsForRepoListing('generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForRepoTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForRepoTest.php index dc416b1c598..09677cecc69 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForRepoTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForRepoTest.php @@ -31,13 +31,13 @@ public function call_httpCode_422_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/issues/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListEventsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,8 +53,8 @@ public function operations_httpCode_422_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/issues/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listEventsForRepo('generated', 'generated', 8, 4); + $result = $client->operations()->issues()->listEventsForRepo('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForTimelineListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForTimelineListingTest.php new file mode 100644 index 00000000000..69d0ca92faa --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForTimelineListingTest.php @@ -0,0 +1,107 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/timeline?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListEventsForTimelineListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/timeline?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listEventsForTimelineListing('generated', 'generated', 12, 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/timeline?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListEventsForTimelineListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/timeline?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listEventsForTimelineListing('generated', 'generated', 12, 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForTimelineTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForTimelineTest.php index c5e0b63b159..eeff3690afc 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForTimelineTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsForTimelineTest.php @@ -31,14 +31,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/issues/12/timeline?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/timeline?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListEventsForTimeline::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['issue_number'] = 12; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -54,9 +54,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/issues/12/timeline?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/timeline?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listEventsForTimeline('generated', 'generated', 12, 8, 4); + $result = $client->operations()->issues()->listEventsForTimeline('generated', 'generated', 12, 8, 1); } /** @test */ @@ -69,14 +69,14 @@ public function call_httpCode_410_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/issues/12/timeline?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/timeline?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListEventsForTimeline::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['issue_number'] = 12; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -92,8 +92,8 @@ public function operations_httpCode_410_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/issues/12/timeline?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/timeline?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listEventsForTimeline('generated', 'generated', 12, 8, 4); + $result = $client->operations()->issues()->listEventsForTimeline('generated', 'generated', 12, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsListingTest.php new file mode 100644 index 00000000000..e2ef0d79bc0 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsListingTest.php @@ -0,0 +1,65 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListEventsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listEventsListing('generated', 'generated', 12, 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsTest.php index f3b68569ad0..d39217a9a09 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListEventsTest.php @@ -31,14 +31,14 @@ public function call_httpCode_410_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/issues/12/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListEvents::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['issue_number'] = 12; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -54,8 +54,8 @@ public function operations_httpCode_410_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/issues/12/events?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/events?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listEvents('generated', 'generated', 12, 8, 4); + $result = $client->operations()->issues()->listEvents('generated', 'generated', 12, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForAuthenticatedUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForAuthenticatedUserListingTest.php new file mode 100644 index 00000000000..9b020bb5d75 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForAuthenticatedUserListingTest.php @@ -0,0 +1,113 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['labels'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['filter'] = 'generated'; + $data['state'] = 'generated'; + $data['sort'] = 'generated'; + $data['direction'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listForAuthenticatedUserListing('generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['labels'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['filter'] = 'generated'; + $data['state'] = 'generated'; + $data['sort'] = 'generated'; + $data['direction'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listForAuthenticatedUserListing('generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForAuthenticatedUserTest.php index cd39296ea1a..305b5aa26dc 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForAuthenticatedUserTest.php @@ -31,7 +31,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', '/user/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['labels'] = 'generated'; @@ -41,7 +41,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['sort'] = 'generated'; $data['direction'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -57,9 +57,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', '/user/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForAuthenticatedUser('generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->issues()->listForAuthenticatedUser('generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -71,7 +71,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', '/user/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['labels'] = 'generated'; @@ -81,7 +81,7 @@ public function call_httpCode_304_empty(): void $data['sort'] = 'generated'; $data['direction'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -96,9 +96,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', '/user/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForAuthenticatedUser('generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->issues()->listForAuthenticatedUser('generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForOrgListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForOrgListingTest.php new file mode 100644 index 00000000000..fdb518cef4a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForOrgListingTest.php @@ -0,0 +1,69 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListForOrgListing::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['labels'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['filter'] = 'generated'; + $data['state'] = 'generated'; + $data['sort'] = 'generated'; + $data['direction'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listForOrgListing('generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForOrgTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForOrgTest.php index 26c0863cc87..a97359905f2 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForOrgTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForOrgTest.php @@ -31,7 +31,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', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListForOrg::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; @@ -42,7 +42,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['sort'] = 'generated'; $data['direction'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -58,8 +58,8 @@ 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', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/issues?labels=generated&since=1970-01-01T00:00:00+00:00&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForOrg('generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->issues()->listForOrg('generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForRepoListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForRepoListingTest.php new file mode 100644 index 00000000000..fd99f47ac3e --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForRepoListingTest.php @@ -0,0 +1,171 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['milestone'] = 'generated'; + $data['assignee'] = 'generated'; + $data['creator'] = 'generated'; + $data['mentioned'] = 'generated'; + $data['labels'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['state'] = 'generated'; + $data['sort'] = 'generated'; + $data['direction'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_301_responseContentType_application_json_zero(): void + { + $response = new Response(301, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['milestone'] = 'generated'; + $data['assignee'] = 'generated'; + $data['creator'] = 'generated'; + $data['mentioned'] = 'generated'; + $data['labels'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['state'] = 'generated'; + $data['sort'] = 'generated'; + $data['direction'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['milestone'] = 'generated'; + $data['assignee'] = 'generated'; + $data['creator'] = 'generated'; + $data['mentioned'] = 'generated'; + $data['labels'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['state'] = 'generated'; + $data['sort'] = 'generated'; + $data['direction'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForRepoTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForRepoTest.php index 25a9d011030..aa7b115f3c6 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForRepoTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListForRepoTest.php @@ -30,7 +30,7 @@ public function call_httpCode_301_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/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -45,7 +45,7 @@ public function call_httpCode_301_responseContentType_application_json_zero(): v $data['sort'] = 'generated'; $data['direction'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -60,9 +60,9 @@ public function operations_httpCode_301_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/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -75,7 +75,7 @@ public function call_httpCode_422_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/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -90,7 +90,7 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $data['sort'] = 'generated'; $data['direction'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -106,9 +106,9 @@ public function operations_httpCode_422_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/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -121,7 +121,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/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -136,7 +136,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['sort'] = 'generated'; $data['direction'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -152,8 +152,8 @@ 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/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues?milestone=generated&assignee=generated&creator=generated&mentioned=generated&labels=generated&since=1970-01-01T00:00:00+00:00&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->issues()->listForRepo('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsForMilestoneListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsForMilestoneListingTest.php new file mode 100644 index 00000000000..3c87947eb83 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsForMilestoneListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListLabelsForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listLabelsForRepoListing('generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsForRepoTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsForRepoTest.php index b0baf280f3e..39139e25f55 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsForRepoTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsForRepoTest.php @@ -31,13 +31,13 @@ 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/labels?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListLabelsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,8 +53,8 @@ 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/labels?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listLabelsForRepo('generated', 'generated', 8, 4); + $result = $client->operations()->issues()->listLabelsForRepo('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsOnIssueListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsOnIssueListingTest.php new file mode 100644 index 00000000000..51d1f0cd0e6 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsOnIssueListingTest.php @@ -0,0 +1,147 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListLabelsOnIssueListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_301_responseContentType_application_json_zero(): void + { + $response = new Response(301, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listLabelsOnIssueListing('generated', 'generated', 12, 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListLabelsOnIssueListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listLabelsOnIssueListing('generated', 'generated', 12, 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListLabelsOnIssueListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listLabelsOnIssueListing('generated', 'generated', 12, 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsOnIssueTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsOnIssueTest.php index 3ebf87d9161..028947b6026 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsOnIssueTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListLabelsOnIssueTest.php @@ -30,14 +30,14 @@ public function call_httpCode_301_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/issues/12/labels?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListLabelsOnIssue::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['issue_number'] = 12; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,9 @@ public function operations_httpCode_301_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/issues/12/labels?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listLabelsOnIssue('generated', 'generated', 12, 8, 4); + $result = $client->operations()->issues()->listLabelsOnIssue('generated', 'generated', 12, 8, 1); } /** @test */ @@ -67,14 +67,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/issues/12/labels?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListLabelsOnIssue::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['issue_number'] = 12; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -90,9 +90,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/issues/12/labels?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listLabelsOnIssue('generated', 'generated', 12, 8, 4); + $result = $client->operations()->issues()->listLabelsOnIssue('generated', 'generated', 12, 8, 1); } /** @test */ @@ -105,14 +105,14 @@ public function call_httpCode_410_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/issues/12/labels?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListLabelsOnIssue::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['issue_number'] = 12; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -128,8 +128,8 @@ public function operations_httpCode_410_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/issues/12/labels?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/labels?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listLabelsOnIssue('generated', 'generated', 12, 8, 4); + $result = $client->operations()->issues()->listLabelsOnIssue('generated', 'generated', 12, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListListingTest.php new file mode 100644 index 00000000000..1ee3952fb63 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListListingTest.php @@ -0,0 +1,170 @@ + 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListListing::OPERATION_MATCH, (static function (array $data): array { + $data['labels'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['collab'] = false; + $data['orgs'] = false; + $data['owned'] = false; + $data['pulls'] = false; + $data['filter'] = 'generated'; + $data['state'] = 'generated'; + $data['sort'] = 'generated'; + $data['direction'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listListing('generated', '1970-01-01T00:00:00+00:00', false, false, false, false, 'generated', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListListing::OPERATION_MATCH, (static function (array $data): array { + $data['labels'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['collab'] = false; + $data['orgs'] = false; + $data['owned'] = false; + $data['pulls'] = false; + $data['filter'] = 'generated'; + $data['state'] = 'generated'; + $data['sort'] = 'generated'; + $data['direction'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listListing('generated', '1970-01-01T00:00:00+00:00', false, false, false, false, 'generated', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListListing::OPERATION_MATCH, (static function (array $data): array { + $data['labels'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['collab'] = false; + $data['orgs'] = false; + $data['owned'] = false; + $data['pulls'] = false; + $data['filter'] = 'generated'; + $data['state'] = 'generated'; + $data['sort'] = 'generated'; + $data['direction'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listListing('generated', '1970-01-01T00:00:00+00:00', false, false, false, false, 'generated', 'generated', 'generated', 'generated', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListMilestonesListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListMilestonesListingTest.php new file mode 100644 index 00000000000..73a147458a2 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListMilestonesListingTest.php @@ -0,0 +1,67 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/milestones?state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Issues\ListMilestonesListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['state'] = 'generated'; + $data['sort'] = 'generated'; + $data['direction'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/milestones?state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listMilestonesListing('generated', 'generated', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListMilestonesTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListMilestonesTest.php index e95fb9194de..15061f43138 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListMilestonesTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/ListMilestonesTest.php @@ -31,7 +31,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/milestones?state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/milestones?state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\ListMilestones::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -40,7 +40,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['sort'] = 'generated'; $data['direction'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -56,8 +56,8 @@ 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/milestones?state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/milestones?state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->listMilestones('generated', 'generated', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->issues()->listMilestones('generated', 'generated', 'generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/List_Test.php b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/List_Test.php index 86b9e9c81ce..6654137f112 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Issues/List_Test.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Issues/List_Test.php @@ -31,7 +31,7 @@ public function call_httpCode_422_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', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\List_::OPERATION_MATCH, (static function (array $data): array { $data['labels'] = 'generated'; @@ -45,7 +45,7 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $data['sort'] = 'generated'; $data['direction'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -61,9 +61,9 @@ public function operations_httpCode_422_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', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->list('generated', '1970-01-01T00:00:00+00:00', false, false, false, false, 'generated', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->issues()->list('generated', '1970-01-01T00:00:00+00:00', false, false, false, false, 'generated', 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -76,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', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\List_::OPERATION_MATCH, (static function (array $data): array { $data['labels'] = 'generated'; @@ -90,7 +90,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['sort'] = 'generated'; $data['direction'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -106,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', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->list('generated', '1970-01-01T00:00:00+00:00', false, false, false, false, 'generated', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->issues()->list('generated', '1970-01-01T00:00:00+00:00', false, false, false, false, 'generated', 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -120,7 +120,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', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Issues\List_::OPERATION_MATCH, (static function (array $data): array { $data['labels'] = 'generated'; @@ -134,7 +134,7 @@ public function call_httpCode_304_empty(): void $data['sort'] = 'generated'; $data['direction'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -149,9 +149,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', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/issues?labels=generated&since=1970-01-01T00:00:00+00:00&collab=&orgs=&owned=&pulls=&filter=generated&state=generated&sort=generated&direction=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->issues()->list('generated', '1970-01-01T00:00:00+00:00', false, false, false, false, 'generated', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->issues()->list('generated', '1970-01-01T00:00:00+00:00', false, false, false, false, 'generated', 'generated', 'generated', 'generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Licenses/GetAllCommonlyUsedListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Licenses/GetAllCommonlyUsedListingTest.php new file mode 100644 index 00000000000..fff3f671879 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Licenses/GetAllCommonlyUsedListingTest.php @@ -0,0 +1,59 @@ +prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/licenses?featured=&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Licenses\GetAllCommonlyUsedListing::OPERATION_MATCH, (static function (array $data): array { + $data['featured'] = false; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/licenses?featured=&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->licenses()->getAllCommonlyUsedListing(false, 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Licenses/GetAllCommonlyUsedTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Licenses/GetAllCommonlyUsedTest.php index 4913da9c397..52a0df452ca 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Licenses/GetAllCommonlyUsedTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Licenses/GetAllCommonlyUsedTest.php @@ -26,12 +26,12 @@ 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', '/licenses?featured=&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/licenses?featured=&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Licenses\GetAllCommonlyUsed::OPERATION_MATCH, (static function (array $data): array { $data['featured'] = false; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -46,9 +46,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', '/licenses?featured=&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/licenses?featured=&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->licenses()->getAllCommonlyUsed(false, 8, 4); + $result = $client->operations()->licenses()->getAllCommonlyUsed(false, 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListForAuthenticatedUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListForAuthenticatedUserListingTest.php new file mode 100644 index 00000000000..67e7bdab213 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListForAuthenticatedUserListingTest.php @@ -0,0 +1,140 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/migrations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Migrations\ListForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/migrations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->migrations()->listForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/migrations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Migrations\ListForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/migrations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->migrations()->listForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/migrations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Migrations\ListForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/migrations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->migrations()->listForAuthenticatedUserListing(8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListForAuthenticatedUserTest.php index 46e65b27aea..4fccd124890 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListForAuthenticatedUserTest.php @@ -31,11 +31,11 @@ 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', '/user/migrations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/migrations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Migrations\ListForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,9 +51,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', '/user/migrations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/migrations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->migrations()->listForAuthenticatedUser(8, 4); + $result = $client->operations()->migrations()->listForAuthenticatedUser(8, 1); } /** @test */ @@ -66,11 +66,11 @@ public function call_httpCode_401_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', '/user/migrations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/migrations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Migrations\ListForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,9 +86,9 @@ public function operations_httpCode_401_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', '/user/migrations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/migrations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->migrations()->listForAuthenticatedUser(8, 4); + $result = $client->operations()->migrations()->listForAuthenticatedUser(8, 1); } /** @test */ @@ -100,11 +100,11 @@ 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', '/user/migrations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/migrations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Migrations\ListForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -119,9 +119,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', '/user/migrations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/migrations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->migrations()->listForAuthenticatedUser(8, 4); + $result = $client->operations()->migrations()->listForAuthenticatedUser(8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListForOrgListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListForOrgListingTest.php new file mode 100644 index 00000000000..7c42b053631 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListForOrgListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/migrations/12/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Migrations\ListReposForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['migration_id'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/migrations/12/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->migrations()->listReposForAuthenticatedUserListing(12, 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListReposForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListReposForAuthenticatedUserTest.php index d93f4529024..85e147c704a 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListReposForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListReposForAuthenticatedUserTest.php @@ -31,12 +31,12 @@ 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', '/user/migrations/12/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/migrations/12/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Migrations\ListReposForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['migration_id'] = 12; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,8 +52,8 @@ 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', '/user/migrations/12/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/migrations/12/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->migrations()->listReposForAuthenticatedUser(12, 8, 4); + $result = $client->operations()->migrations()->listReposForAuthenticatedUser(12, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListReposForOrgListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListReposForOrgListingTest.php new file mode 100644 index 00000000000..c76ba8ab68b --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListReposForOrgListingTest.php @@ -0,0 +1,64 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/migrations/12/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Migrations\ListReposForOrgListing::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['migration_id'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/migrations/12/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->migrations()->listReposForOrgListing('generated', 12, 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListReposForOrgTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListReposForOrgTest.php index dc2d539fbf9..f1074a02a53 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListReposForOrgTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Migrations/ListReposForOrgTest.php @@ -31,13 +31,13 @@ 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', '/orgs/generated/migrations/12/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/migrations/12/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Migrations\ListReposForOrg::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['migration_id'] = 12; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,8 +53,8 @@ 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', '/orgs/generated/migrations/12/repositories?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/migrations/12/repositories?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->migrations()->listReposForOrg('generated', 12, 8, 4); + $result = $client->operations()->migrations()->listReposForOrg('generated', 12, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListAuthorizationsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListAuthorizationsListingTest.php new file mode 100644 index 00000000000..e9c78594ba0 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListAuthorizationsListingTest.php @@ -0,0 +1,183 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\OauthAuthorizations\ListAuthorizationsListing::OPERATION_MATCH, (static function (array $data): array { + $data['client_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->oauthAuthorizations()->listAuthorizationsListing('generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\OauthAuthorizations\ListAuthorizationsListing::OPERATION_MATCH, (static function (array $data): array { + $data['client_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->oauthAuthorizations()->listAuthorizationsListing('generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\OauthAuthorizations\ListAuthorizationsListing::OPERATION_MATCH, (static function (array $data): array { + $data['client_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->oauthAuthorizations()->listAuthorizationsListing('generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\OauthAuthorizations\ListAuthorizationsListing::OPERATION_MATCH, (static function (array $data): array { + $data['client_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->oauthAuthorizations()->listAuthorizationsListing('generated', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListAuthorizationsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListAuthorizationsTest.php index 4b9ad40f597..30d97b34a00 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListAuthorizationsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListAuthorizationsTest.php @@ -31,12 +31,12 @@ 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', '/authorizations?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\OauthAuthorizations\ListAuthorizations::OPERATION_MATCH, (static function (array $data): array { $data['client_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,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', '/authorizations?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->oauthAuthorizations()->listAuthorizations('generated', 8, 4); + $result = $client->operations()->oauthAuthorizations()->listAuthorizations('generated', 8, 1); } /** @test */ @@ -67,12 +67,12 @@ public function call_httpCode_401_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', '/authorizations?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\OauthAuthorizations\ListAuthorizations::OPERATION_MATCH, (static function (array $data): array { $data['client_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -88,9 +88,9 @@ public function operations_httpCode_401_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', '/authorizations?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->oauthAuthorizations()->listAuthorizations('generated', 8, 4); + $result = $client->operations()->oauthAuthorizations()->listAuthorizations('generated', 8, 1); } /** @test */ @@ -103,12 +103,12 @@ 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', '/authorizations?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\OauthAuthorizations\ListAuthorizations::OPERATION_MATCH, (static function (array $data): array { $data['client_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -124,9 +124,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', '/authorizations?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->oauthAuthorizations()->listAuthorizations('generated', 8, 4); + $result = $client->operations()->oauthAuthorizations()->listAuthorizations('generated', 8, 1); } /** @test */ @@ -138,12 +138,12 @@ 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', '/authorizations?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\OauthAuthorizations\ListAuthorizations::OPERATION_MATCH, (static function (array $data): array { $data['client_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -158,9 +158,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', '/authorizations?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/authorizations?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->oauthAuthorizations()->listAuthorizations('generated', 8, 4); + $result = $client->operations()->oauthAuthorizations()->listAuthorizations('generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListGrantsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListGrantsListingTest.php new file mode 100644 index 00000000000..5f8e774e653 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListGrantsListingTest.php @@ -0,0 +1,183 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\OauthAuthorizations\ListGrantsListing::OPERATION_MATCH, (static function (array $data): array { + $data['client_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->oauthAuthorizations()->listGrantsListing('generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\OauthAuthorizations\ListGrantsListing::OPERATION_MATCH, (static function (array $data): array { + $data['client_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->oauthAuthorizations()->listGrantsListing('generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\OauthAuthorizations\ListGrantsListing::OPERATION_MATCH, (static function (array $data): array { + $data['client_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->oauthAuthorizations()->listGrantsListing('generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\OauthAuthorizations\ListGrantsListing::OPERATION_MATCH, (static function (array $data): array { + $data['client_id'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->oauthAuthorizations()->listGrantsListing('generated', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListGrantsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListGrantsTest.php index 65f174ca107..2419fbebad0 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListGrantsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/OauthAuthorizations/ListGrantsTest.php @@ -31,12 +31,12 @@ 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', '/applications/grants?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\OauthAuthorizations\ListGrants::OPERATION_MATCH, (static function (array $data): array { $data['client_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,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', '/applications/grants?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->oauthAuthorizations()->listGrants('generated', 8, 4); + $result = $client->operations()->oauthAuthorizations()->listGrants('generated', 8, 1); } /** @test */ @@ -67,12 +67,12 @@ public function call_httpCode_401_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', '/applications/grants?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\OauthAuthorizations\ListGrants::OPERATION_MATCH, (static function (array $data): array { $data['client_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -88,9 +88,9 @@ public function operations_httpCode_401_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', '/applications/grants?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->oauthAuthorizations()->listGrants('generated', 8, 4); + $result = $client->operations()->oauthAuthorizations()->listGrants('generated', 8, 1); } /** @test */ @@ -103,12 +103,12 @@ 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', '/applications/grants?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\OauthAuthorizations\ListGrants::OPERATION_MATCH, (static function (array $data): array { $data['client_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -124,9 +124,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', '/applications/grants?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->oauthAuthorizations()->listGrants('generated', 8, 4); + $result = $client->operations()->oauthAuthorizations()->listGrants('generated', 8, 1); } /** @test */ @@ -138,12 +138,12 @@ 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', '/applications/grants?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\OauthAuthorizations\ListGrants::OPERATION_MATCH, (static function (array $data): array { $data['client_id'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -158,9 +158,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', '/applications/grants?client_id=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/applications/grants?client_id=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->oauthAuthorizations()->listGrants('generated', 8, 4); + $result = $client->operations()->oauthAuthorizations()->listGrants('generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/GetAuditLogListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/GetAuditLogListingTest.php new file mode 100644 index 00000000000..02221a56196 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/GetAuditLogListingTest.php @@ -0,0 +1,12 @@ +prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/installations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/installations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Orgs\ListAppInstallations::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -49,8 +49,8 @@ public function operations_httpCode_200_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', '/orgs/generated/installations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/installations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listAppInstallations('generated', 8, 4); + $result = $client->operations()->orgs()->listAppInstallations('generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListForAuthenticatedUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListForAuthenticatedUserListingTest.php new file mode 100644 index 00000000000..db0b5502e4a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListForAuthenticatedUserListingTest.php @@ -0,0 +1,140 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/orgs?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Orgs\ListForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/orgs?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->listForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/orgs?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Orgs\ListForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/orgs?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->listForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/orgs?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Orgs\ListForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/orgs?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->listForAuthenticatedUserListing(8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListForAuthenticatedUserTest.php index 187d4fb7a46..5e786237feb 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListForAuthenticatedUserTest.php @@ -31,11 +31,11 @@ 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', '/user/orgs?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/orgs?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Orgs\ListForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,9 +51,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', '/user/orgs?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/orgs?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listForAuthenticatedUser(8, 4); + $result = $client->operations()->orgs()->listForAuthenticatedUser(8, 1); } /** @test */ @@ -66,11 +66,11 @@ public function call_httpCode_401_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', '/user/orgs?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/orgs?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Orgs\ListForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,9 +86,9 @@ public function operations_httpCode_401_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', '/user/orgs?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/orgs?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listForAuthenticatedUser(8, 4); + $result = $client->operations()->orgs()->listForAuthenticatedUser(8, 1); } /** @test */ @@ -100,11 +100,11 @@ 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', '/user/orgs?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/orgs?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Orgs\ListForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -119,9 +119,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', '/user/orgs?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/orgs?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listForAuthenticatedUser(8, 4); + $result = $client->operations()->orgs()->listForAuthenticatedUser(8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListForUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListForUserListingTest.php new file mode 100644 index 00000000000..b8644daddf1 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListForUserListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/members?filter=generated&role=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Orgs\ListMembersListing::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['filter'] = 'generated'; + $data['role'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/members?filter=generated&role=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->listMembersListing('generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListMembersTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListMembersTest.php index a000388996f..4d55134e8c0 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListMembersTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListMembersTest.php @@ -31,14 +31,14 @@ public function call_httpCode_422_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', '/orgs/generated/members?filter=generated&role=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/members?filter=generated&role=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Orgs\ListMembers::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['filter'] = 'generated'; $data['role'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -54,8 +54,8 @@ public function operations_httpCode_422_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', '/orgs/generated/members?filter=generated&role=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/members?filter=generated&role=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listMembers('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->orgs()->listMembers('generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListMembershipsForAuthenticatedUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListMembershipsForAuthenticatedUserListingTest.php new file mode 100644 index 00000000000..7877fded68d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListMembershipsForAuthenticatedUserListingTest.php @@ -0,0 +1,183 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Orgs\ListMembershipsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['state'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->listMembershipsForAuthenticatedUserListing('generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Orgs\ListMembershipsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['state'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->listMembershipsForAuthenticatedUserListing('generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Orgs\ListMembershipsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['state'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->listMembershipsForAuthenticatedUserListing('generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Orgs\ListMembershipsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['state'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->listMembershipsForAuthenticatedUserListing('generated', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListMembershipsForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListMembershipsForAuthenticatedUserTest.php index a93c192f21c..ee729bc832c 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListMembershipsForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListMembershipsForAuthenticatedUserTest.php @@ -31,12 +31,12 @@ 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', '/user/memberships/orgs?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Orgs\ListMembershipsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['state'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,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', '/user/memberships/orgs?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listMembershipsForAuthenticatedUser('generated', 8, 4); + $result = $client->operations()->orgs()->listMembershipsForAuthenticatedUser('generated', 8, 1); } /** @test */ @@ -67,12 +67,12 @@ public function call_httpCode_401_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', '/user/memberships/orgs?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Orgs\ListMembershipsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['state'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -88,9 +88,9 @@ public function operations_httpCode_401_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', '/user/memberships/orgs?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listMembershipsForAuthenticatedUser('generated', 8, 4); + $result = $client->operations()->orgs()->listMembershipsForAuthenticatedUser('generated', 8, 1); } /** @test */ @@ -103,12 +103,12 @@ public function call_httpCode_422_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', '/user/memberships/orgs?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Orgs\ListMembershipsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['state'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -124,9 +124,9 @@ public function operations_httpCode_422_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', '/user/memberships/orgs?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listMembershipsForAuthenticatedUser('generated', 8, 4); + $result = $client->operations()->orgs()->listMembershipsForAuthenticatedUser('generated', 8, 1); } /** @test */ @@ -138,12 +138,12 @@ 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', '/user/memberships/orgs?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Orgs\ListMembershipsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['state'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -158,9 +158,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', '/user/memberships/orgs?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/memberships/orgs?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listMembershipsForAuthenticatedUser('generated', 8, 4); + $result = $client->operations()->orgs()->listMembershipsForAuthenticatedUser('generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListOutsideCollaboratorsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListOutsideCollaboratorsListingTest.php new file mode 100644 index 00000000000..fb5defe859c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListOutsideCollaboratorsListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/hooks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Orgs\ListWebhooksListing::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/hooks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->orgs()->listWebhooksListing('generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListWebhooksTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListWebhooksTest.php index d78bc340be2..d8b31550e1d 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListWebhooksTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Orgs/ListWebhooksTest.php @@ -31,12 +31,12 @@ 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', '/orgs/generated/hooks?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/hooks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Orgs\ListWebhooks::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,8 +52,8 @@ 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', '/orgs/generated/hooks?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/hooks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->orgs()->listWebhooks('generated', 8, 4); + $result = $client->operations()->orgs()->listWebhooks('generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCardsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCardsListingTest.php new file mode 100644 index 00000000000..fd7966aba19 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCardsListingTest.php @@ -0,0 +1,146 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListCardsListing::OPERATION_MATCH, (static function (array $data): array { + $data['column_id'] = 9; + $data['archived_state'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listCardsListing(9, 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListCardsListing::OPERATION_MATCH, (static function (array $data): array { + $data['column_id'] = 9; + $data['archived_state'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listCardsListing(9, 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListCardsListing::OPERATION_MATCH, (static function (array $data): array { + $data['column_id'] = 9; + $data['archived_state'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listCardsListing(9, 'generated', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCardsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCardsTest.php index 91f338aba62..0b92c9326f7 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCardsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCardsTest.php @@ -31,13 +31,13 @@ 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', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListCards::OPERATION_MATCH, (static function (array $data): array { $data['column_id'] = 9; $data['archived_state'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,9 +53,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', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listCards(9, 'generated', 8, 4); + $result = $client->operations()->projects()->listCards(9, 'generated', 8, 1); } /** @test */ @@ -68,13 +68,13 @@ public function call_httpCode_401_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', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListCards::OPERATION_MATCH, (static function (array $data): array { $data['column_id'] = 9; $data['archived_state'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -90,9 +90,9 @@ public function operations_httpCode_401_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', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listCards(9, 'generated', 8, 4); + $result = $client->operations()->projects()->listCards(9, 'generated', 8, 1); } /** @test */ @@ -104,13 +104,13 @@ 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', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListCards::OPERATION_MATCH, (static function (array $data): array { $data['column_id'] = 9; $data['archived_state'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -125,9 +125,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', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/columns/9/cards?archived_state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listCards(9, 'generated', 8, 4); + $result = $client->operations()->projects()->listCards(9, 'generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCollaboratorsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCollaboratorsListingTest.php new file mode 100644 index 00000000000..21e4cf9064d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCollaboratorsListingTest.php @@ -0,0 +1,228 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListCollaboratorsListing::OPERATION_MATCH, (static function (array $data): array { + $data['project_id'] = 10; + $data['affiliation'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listCollaboratorsListing(10, 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListCollaboratorsListing::OPERATION_MATCH, (static function (array $data): array { + $data['project_id'] = 10; + $data['affiliation'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listCollaboratorsListing(10, 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListCollaboratorsListing::OPERATION_MATCH, (static function (array $data): array { + $data['project_id'] = 10; + $data['affiliation'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listCollaboratorsListing(10, 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListCollaboratorsListing::OPERATION_MATCH, (static function (array $data): array { + $data['project_id'] = 10; + $data['affiliation'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listCollaboratorsListing(10, 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListCollaboratorsListing::OPERATION_MATCH, (static function (array $data): array { + $data['project_id'] = 10; + $data['affiliation'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listCollaboratorsListing(10, 'generated', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCollaboratorsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCollaboratorsTest.php index d5b3685acde..f3d943aae6d 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCollaboratorsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListCollaboratorsTest.php @@ -31,13 +31,13 @@ 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', '/projects/10/collaborators?affiliation=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListCollaborators::OPERATION_MATCH, (static function (array $data): array { $data['project_id'] = 10; $data['affiliation'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,9 +53,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', '/projects/10/collaborators?affiliation=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listCollaborators(10, 'generated', 8, 4); + $result = $client->operations()->projects()->listCollaborators(10, 'generated', 8, 1); } /** @test */ @@ -68,13 +68,13 @@ public function call_httpCode_422_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', '/projects/10/collaborators?affiliation=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListCollaborators::OPERATION_MATCH, (static function (array $data): array { $data['project_id'] = 10; $data['affiliation'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -90,9 +90,9 @@ public function operations_httpCode_422_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', '/projects/10/collaborators?affiliation=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listCollaborators(10, 'generated', 8, 4); + $result = $client->operations()->projects()->listCollaborators(10, 'generated', 8, 1); } /** @test */ @@ -105,13 +105,13 @@ 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', '/projects/10/collaborators?affiliation=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListCollaborators::OPERATION_MATCH, (static function (array $data): array { $data['project_id'] = 10; $data['affiliation'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -127,9 +127,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', '/projects/10/collaborators?affiliation=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listCollaborators(10, 'generated', 8, 4); + $result = $client->operations()->projects()->listCollaborators(10, 'generated', 8, 1); } /** @test */ @@ -142,13 +142,13 @@ public function call_httpCode_401_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', '/projects/10/collaborators?affiliation=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListCollaborators::OPERATION_MATCH, (static function (array $data): array { $data['project_id'] = 10; $data['affiliation'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -164,9 +164,9 @@ public function operations_httpCode_401_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', '/projects/10/collaborators?affiliation=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listCollaborators(10, 'generated', 8, 4); + $result = $client->operations()->projects()->listCollaborators(10, 'generated', 8, 1); } /** @test */ @@ -178,13 +178,13 @@ 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', '/projects/10/collaborators?affiliation=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListCollaborators::OPERATION_MATCH, (static function (array $data): array { $data['project_id'] = 10; $data['affiliation'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -199,9 +199,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', '/projects/10/collaborators?affiliation=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listCollaborators(10, 'generated', 8, 4); + $result = $client->operations()->projects()->listCollaborators(10, 'generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListColumnsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListColumnsListingTest.php new file mode 100644 index 00000000000..dd55d16ce2e --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListColumnsListingTest.php @@ -0,0 +1,143 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/columns?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListColumnsListing::OPERATION_MATCH, (static function (array $data): array { + $data['project_id'] = 10; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/columns?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listColumnsListing(10, 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/columns?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListColumnsListing::OPERATION_MATCH, (static function (array $data): array { + $data['project_id'] = 10; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/columns?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listColumnsListing(10, 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/columns?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListColumnsListing::OPERATION_MATCH, (static function (array $data): array { + $data['project_id'] = 10; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/projects/10/columns?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listColumnsListing(10, 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListColumnsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListColumnsTest.php index b15a4aadefe..35ede91ac28 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListColumnsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListColumnsTest.php @@ -31,12 +31,12 @@ 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', '/projects/10/columns?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/columns?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListColumns::OPERATION_MATCH, (static function (array $data): array { $data['project_id'] = 10; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,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', '/projects/10/columns?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/columns?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listColumns(10, 8, 4); + $result = $client->operations()->projects()->listColumns(10, 8, 1); } /** @test */ @@ -67,12 +67,12 @@ public function call_httpCode_401_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', '/projects/10/columns?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/columns?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListColumns::OPERATION_MATCH, (static function (array $data): array { $data['project_id'] = 10; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -88,9 +88,9 @@ public function operations_httpCode_401_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', '/projects/10/columns?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/columns?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listColumns(10, 8, 4); + $result = $client->operations()->projects()->listColumns(10, 8, 1); } /** @test */ @@ -102,12 +102,12 @@ 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', '/projects/10/columns?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/columns?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListColumns::OPERATION_MATCH, (static function (array $data): array { $data['project_id'] = 10; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -122,9 +122,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', '/projects/10/columns?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/projects/10/columns?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listColumns(10, 8, 4); + $result = $client->operations()->projects()->listColumns(10, 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForOrgListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForOrgListingTest.php new file mode 100644 index 00000000000..f0f9596580e --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForOrgListingTest.php @@ -0,0 +1,64 @@ + 'application/json'], json_encode(json_decode(Schema\ValidationErrorSimple::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListForOrgListing::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['state'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationErrorSimple::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationErrorSimple::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listForOrgListing('generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForOrgTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForOrgTest.php index 435114fd0b9..16bc95f0b37 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForOrgTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForOrgTest.php @@ -31,13 +31,13 @@ public function call_httpCode_422_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', '/orgs/generated/projects?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListForOrg::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['state'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,8 +53,8 @@ public function operations_httpCode_422_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', '/orgs/generated/projects?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listForOrg('generated', 'generated', 8, 4); + $result = $client->operations()->projects()->listForOrg('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForRepoListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForRepoListingTest.php new file mode 100644 index 00000000000..8776a205190 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForRepoListingTest.php @@ -0,0 +1,233 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['state'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listForRepoListing('generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['state'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listForRepoListing('generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['state'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listForRepoListing('generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['state'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listForRepoListing('generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationErrorSimple::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationErrorSimple::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['state'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationErrorSimple::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationErrorSimple::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listForRepoListing('generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForRepoTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForRepoTest.php index 29a8ec349e0..b8e1f74465c 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForRepoTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForRepoTest.php @@ -31,14 +31,14 @@ public function call_httpCode_401_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/projects?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['state'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -54,9 +54,9 @@ public function operations_httpCode_401_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/projects?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listForRepo('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->projects()->listForRepo('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -69,14 +69,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/projects?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['state'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -92,9 +92,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/projects?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listForRepo('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->projects()->listForRepo('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -107,14 +107,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/projects?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['state'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -130,9 +130,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/projects?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listForRepo('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->projects()->listForRepo('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -145,14 +145,14 @@ public function call_httpCode_410_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/projects?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['state'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -168,9 +168,9 @@ public function operations_httpCode_410_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/projects?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listForRepo('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->projects()->listForRepo('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -183,14 +183,14 @@ public function call_httpCode_422_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/projects?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['state'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -206,8 +206,8 @@ public function operations_httpCode_422_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/projects?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listForRepo('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->projects()->listForRepo('generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForUserListingTest.php new file mode 100644 index 00000000000..237595f0a77 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForUserListingTest.php @@ -0,0 +1,64 @@ + 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/users/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Projects\ListForUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['username'] = 'generated'; + $data['state'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/users/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->projects()->listForUserListing('generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForUserTest.php index 592a6bd43e2..87d027a5e8c 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Projects/ListForUserTest.php @@ -31,13 +31,13 @@ public function call_httpCode_422_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', '/users/generated/projects?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/users/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Projects\ListForUser::OPERATION_MATCH, (static function (array $data): array { $data['username'] = 'generated'; $data['state'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,8 +53,8 @@ public function operations_httpCode_422_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', '/users/generated/projects?state=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/users/generated/projects?state=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->projects()->listForUser('generated', 'generated', 8, 4); + $result = $client->operations()->projects()->listForUser('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListCommentsForReviewListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListCommentsForReviewListingTest.php new file mode 100644 index 00000000000..7dd258c1e5d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListCommentsForReviewListingTest.php @@ -0,0 +1,66 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/pulls/11/reviews/9/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Pulls\ListCommentsForReviewListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['pull_number'] = 11; + $data['review_id'] = 9; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/pulls/11/reviews/9/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->pulls()->listCommentsForReviewListing('generated', 'generated', 11, 9, 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListCommentsForReviewTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListCommentsForReviewTest.php index 34cacd879d7..9fed32eb06b 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListCommentsForReviewTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListCommentsForReviewTest.php @@ -31,7 +31,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/pulls/11/reviews/9/comments?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/pulls/11/reviews/9/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Pulls\ListCommentsForReview::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -39,7 +39,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['pull_number'] = 11; $data['review_id'] = 9; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -55,8 +55,8 @@ 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/pulls/11/reviews/9/comments?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/pulls/11/reviews/9/comments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->pulls()->listCommentsForReview('generated', 'generated', 11, 9, 8, 4); + $result = $client->operations()->pulls()->listCommentsForReview('generated', 'generated', 11, 9, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListCommitsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListCommitsListingTest.php new file mode 100644 index 00000000000..e1c61dafe4f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListCommitsListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/pulls/11/files?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Pulls\ListFilesListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['pull_number'] = 11; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/pulls/11/files?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->pulls()->listFilesListing('generated', 'generated', 11, 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_500_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/pulls/11/files?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Pulls\ListFilesListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['pull_number'] = 11; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_500_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/pulls/11/files?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->pulls()->listFilesListing('generated', 'generated', 11, 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_503_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/pulls/11/files?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Pulls\ListFilesListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['pull_number'] = 11; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_503_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/pulls/11/files?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->pulls()->listFilesListing('generated', 'generated', 11, 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListFilesTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListFilesTest.php index bbf6ede5f7d..619d072a7d7 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListFilesTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListFilesTest.php @@ -31,14 +31,14 @@ public function call_httpCode_422_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/pulls/11/files?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/pulls/11/files?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Pulls\ListFiles::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['pull_number'] = 11; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -54,9 +54,9 @@ public function operations_httpCode_422_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/pulls/11/files?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/pulls/11/files?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->pulls()->listFiles('generated', 'generated', 11, 8, 4); + $result = $client->operations()->pulls()->listFiles('generated', 'generated', 11, 8, 1); } /** @test */ @@ -69,14 +69,14 @@ public function call_httpCode_500_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/pulls/11/files?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/pulls/11/files?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Pulls\ListFiles::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['pull_number'] = 11; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -92,9 +92,9 @@ public function operations_httpCode_500_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/pulls/11/files?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/pulls/11/files?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->pulls()->listFiles('generated', 'generated', 11, 8, 4); + $result = $client->operations()->pulls()->listFiles('generated', 'generated', 11, 8, 1); } /** @test */ @@ -107,14 +107,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/pulls/11/files?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/pulls/11/files?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Pulls\ListFiles::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['pull_number'] = 11; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -130,8 +130,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/pulls/11/files?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/pulls/11/files?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->pulls()->listFiles('generated', 'generated', 11, 8, 4); + $result = $client->operations()->pulls()->listFiles('generated', 'generated', 11, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListListingTest.php new file mode 100644 index 00000000000..330ec833527 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListListingTest.php @@ -0,0 +1,115 @@ + 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/pulls?head=generated&base=generated&direction=generated&state=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Pulls\ListListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['head'] = 'generated'; + $data['base'] = 'generated'; + $data['direction'] = 'generated'; + $data['state'] = 'generated'; + $data['sort'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/pulls?head=generated&base=generated&direction=generated&state=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->pulls()->listListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/pulls?head=generated&base=generated&direction=generated&state=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Pulls\ListListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['head'] = 'generated'; + $data['base'] = 'generated'; + $data['direction'] = 'generated'; + $data['state'] = 'generated'; + $data['sort'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/pulls?head=generated&base=generated&direction=generated&state=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->pulls()->listListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListReviewCommentsForRepoListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListReviewCommentsForRepoListingTest.php new file mode 100644 index 00000000000..af88059c5e1 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Pulls/ListReviewCommentsForRepoListingTest.php @@ -0,0 +1,12 @@ +prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/pulls?head=generated&base=generated&direction=generated&state=generated&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/pulls?head=generated&base=generated&direction=generated&state=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Pulls\List_::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -42,7 +42,7 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $data['state'] = 'generated'; $data['sort'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -58,9 +58,9 @@ public function operations_httpCode_422_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/pulls?head=generated&base=generated&direction=generated&state=generated&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/pulls?head=generated&base=generated&direction=generated&state=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->pulls()->list('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->pulls()->list('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -72,7 +72,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/pulls?head=generated&base=generated&direction=generated&state=generated&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/pulls?head=generated&base=generated&direction=generated&state=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Pulls\List_::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -83,7 +83,7 @@ public function call_httpCode_304_empty(): void $data['state'] = 'generated'; $data['sort'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -98,9 +98,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/pulls?head=generated&base=generated&direction=generated&state=generated&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/pulls?head=generated&base=generated&direction=generated&state=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->pulls()->list('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->pulls()->list('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForCommitCommentListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForCommitCommentListingTest.php new file mode 100644 index 00000000000..ecf0cf587f0 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForCommitCommentListingTest.php @@ -0,0 +1,66 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/comments/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Reactions\ListForCommitCommentListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['comment_id'] = 10; + $data['content'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/comments/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->reactions()->listForCommitCommentListing('generated', 'generated', 10, 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForCommitCommentTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForCommitCommentTest.php index b97ab5c1226..5d11e3cd953 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForCommitCommentTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForCommitCommentTest.php @@ -31,7 +31,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/comments/10/reactions?content=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/comments/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Reactions\ListForCommitComment::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -39,7 +39,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['comment_id'] = 10; $data['content'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -55,8 +55,8 @@ 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/comments/10/reactions?content=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/comments/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->reactions()->listForCommitComment('generated', 'generated', 10, 'generated', 8, 4); + $result = $client->operations()->reactions()->listForCommitComment('generated', 'generated', 10, 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueCommentListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueCommentListingTest.php new file mode 100644 index 00000000000..8147fbf3f30 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueCommentListingTest.php @@ -0,0 +1,66 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/comments/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Reactions\ListForIssueCommentListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['comment_id'] = 10; + $data['content'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/comments/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->reactions()->listForIssueCommentListing('generated', 'generated', 10, 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueCommentTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueCommentTest.php index 971dfad12ab..bc1fe88c9b1 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueCommentTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueCommentTest.php @@ -31,7 +31,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/issues/comments/10/reactions?content=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/comments/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Reactions\ListForIssueComment::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -39,7 +39,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['comment_id'] = 10; $data['content'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -55,8 +55,8 @@ 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/issues/comments/10/reactions?content=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/comments/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->reactions()->listForIssueComment('generated', 'generated', 10, 'generated', 8, 4); + $result = $client->operations()->reactions()->listForIssueComment('generated', 'generated', 10, 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueListingTest.php new file mode 100644 index 00000000000..1e5b855885d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueListingTest.php @@ -0,0 +1,109 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Reactions\ListForIssueListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['content'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->reactions()->listForIssueListing('generated', 'generated', 12, 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Reactions\ListForIssueListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['content'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->reactions()->listForIssueListing('generated', 'generated', 12, 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueTest.php index 682d9ff0648..8d1efaa1ff3 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForIssueTest.php @@ -31,7 +31,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/issues/12/reactions?content=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Reactions\ListForIssue::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -39,7 +39,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['issue_number'] = 12; $data['content'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -55,9 +55,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/issues/12/reactions?content=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->reactions()->listForIssue('generated', 'generated', 12, 'generated', 8, 4); + $result = $client->operations()->reactions()->listForIssue('generated', 'generated', 12, 'generated', 8, 1); } /** @test */ @@ -70,7 +70,7 @@ public function call_httpCode_410_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/issues/12/reactions?content=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Reactions\ListForIssue::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -78,7 +78,7 @@ public function call_httpCode_410_responseContentType_application_json_zero(): v $data['issue_number'] = 12; $data['content'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -94,8 +94,8 @@ public function operations_httpCode_410_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/issues/12/reactions?content=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/issues/12/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->reactions()->listForIssue('generated', 'generated', 12, 'generated', 8, 4); + $result = $client->operations()->reactions()->listForIssue('generated', 'generated', 12, 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForPullRequestReviewCommentListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForPullRequestReviewCommentListingTest.php new file mode 100644 index 00000000000..debea9d51f9 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForPullRequestReviewCommentListingTest.php @@ -0,0 +1,66 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/pulls/comments/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Reactions\ListForPullRequestReviewCommentListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['comment_id'] = 10; + $data['content'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/pulls/comments/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->reactions()->listForPullRequestReviewCommentListing('generated', 'generated', 10, 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForPullRequestReviewCommentTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForPullRequestReviewCommentTest.php index abea3554083..02eae5f537e 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForPullRequestReviewCommentTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForPullRequestReviewCommentTest.php @@ -31,7 +31,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/pulls/comments/10/reactions?content=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/pulls/comments/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Reactions\ListForPullRequestReviewComment::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -39,7 +39,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['comment_id'] = 10; $data['content'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -55,8 +55,8 @@ 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/pulls/comments/10/reactions?content=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/pulls/comments/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->reactions()->listForPullRequestReviewComment('generated', 'generated', 10, 'generated', 8, 4); + $result = $client->operations()->reactions()->listForPullRequestReviewComment('generated', 'generated', 10, 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForReleaseListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForReleaseListingTest.php new file mode 100644 index 00000000000..5603333dc74 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForReleaseListingTest.php @@ -0,0 +1,66 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/releases/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Reactions\ListForReleaseListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['release_id'] = 10; + $data['content'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/releases/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->reactions()->listForReleaseListing('generated', 'generated', 10, 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForReleaseTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForReleaseTest.php index b9a4f9174b2..a1e8871cd07 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForReleaseTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForReleaseTest.php @@ -31,7 +31,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/releases/10/reactions?content=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/releases/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Reactions\ListForRelease::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -39,7 +39,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['release_id'] = 10; $data['content'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -55,8 +55,8 @@ 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/releases/10/reactions?content=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/releases/10/reactions?content=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->reactions()->listForRelease('generated', 'generated', 10, 'generated', 8, 4); + $result = $client->operations()->reactions()->listForRelease('generated', 'generated', 10, 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForTeamDiscussionCommentInOrgListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForTeamDiscussionCommentInOrgListingTest.php new file mode 100644 index 00000000000..340154a2639 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Reactions/ListForTeamDiscussionCommentInOrgListingTest.php @@ -0,0 +1,12 @@ +prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/compare/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/compare/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\CompareCommits::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['basehead'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -52,9 +52,9 @@ public function operations_httpCode_200_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/compare/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/compare/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->compareCommits('generated', 'generated', 'generated', 4, 8); + $result = $client->operations()->repos()->compareCommits('generated', 'generated', 'generated', 1, 8); } /** @test */ @@ -67,13 +67,13 @@ 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/compare/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/compare/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\CompareCommits::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['basehead'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -90,9 +90,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/compare/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/compare/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->compareCommits('generated', 'generated', 'generated', 4, 8); + $result = $client->operations()->repos()->compareCommits('generated', 'generated', 'generated', 1, 8); } /** @test */ @@ -105,13 +105,13 @@ public function call_httpCode_500_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/compare/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/compare/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\CompareCommits::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['basehead'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -128,9 +128,9 @@ public function operations_httpCode_500_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/compare/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/compare/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->compareCommits('generated', 'generated', 'generated', 4, 8); + $result = $client->operations()->repos()->compareCommits('generated', 'generated', 'generated', 1, 8); } /** @test */ @@ -143,13 +143,13 @@ 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/compare/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/compare/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\CompareCommits::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['basehead'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -166,8 +166,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/compare/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/compare/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->compareCommits('generated', 'generated', 'generated', 4, 8); + $result = $client->operations()->repos()->compareCommits('generated', 'generated', 'generated', 1, 8); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetAllEnvironmentsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetAllEnvironmentsTest.php index 455c07a3497..798f98a96fd 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetAllEnvironmentsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetAllEnvironmentsTest.php @@ -29,13 +29,13 @@ public function call_httpCode_200_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/environments?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/environments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\GetAllEnvironments::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -50,8 +50,8 @@ public function operations_httpCode_200_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/environments?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/environments?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->getAllEnvironments('generated', 'generated', 8, 4); + $result = $client->operations()->repos()->getAllEnvironments('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetAllTopicsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetAllTopicsTest.php index 865ecdea384..f76be8e6654 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetAllTopicsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetAllTopicsTest.php @@ -30,12 +30,12 @@ public function call_httpCode_200_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/topics?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/topics?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\GetAllTopics::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -51,9 +51,9 @@ public function operations_httpCode_200_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/topics?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/topics?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->getAllTopics('generated', 'generated', 4, 8); + $result = $client->operations()->repos()->getAllTopics('generated', 'generated', 1, 8); } /** @test */ @@ -66,12 +66,12 @@ 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/topics?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/topics?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\GetAllTopics::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -88,8 +88,8 @@ 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/topics?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/topics?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->getAllTopics('generated', 'generated', 4, 8); + $result = $client->operations()->repos()->getAllTopics('generated', 'generated', 1, 8); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetCombinedStatusForRefTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetCombinedStatusForRefTest.php index 687a22d9d6f..86ba9620c78 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetCombinedStatusForRefTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetCombinedStatusForRefTest.php @@ -30,14 +30,14 @@ public function call_httpCode_200_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/commits/generated/status?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated/status?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\GetCombinedStatusForRef::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['ref'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,9 @@ public function operations_httpCode_200_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/commits/generated/status?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated/status?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->getCombinedStatusForRef('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->repos()->getCombinedStatusForRef('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -67,14 +67,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/commits/generated/status?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated/status?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\GetCombinedStatusForRef::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['ref'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -90,8 +90,8 @@ 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/commits/generated/status?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated/status?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->getCombinedStatusForRef('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->repos()->getCombinedStatusForRef('generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetCommitTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetCommitTest.php index b879841f8cb..e55e3a1cdc2 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetCommitTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/GetCommitTest.php @@ -30,13 +30,13 @@ public function call_httpCode_200_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/commits/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\GetCommit::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['ref'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -52,9 +52,9 @@ public function operations_httpCode_200_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/commits/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->getCommit('generated', 'generated', 'generated', 4, 8); + $result = $client->operations()->repos()->getCommit('generated', 'generated', 'generated', 1, 8); } /** @test */ @@ -67,13 +67,13 @@ public function call_httpCode_422_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/commits/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\GetCommit::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['ref'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -90,9 +90,9 @@ public function operations_httpCode_422_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/commits/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->getCommit('generated', 'generated', 'generated', 4, 8); + $result = $client->operations()->repos()->getCommit('generated', 'generated', 'generated', 1, 8); } /** @test */ @@ -105,13 +105,13 @@ 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/commits/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\GetCommit::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['ref'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -128,9 +128,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/commits/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->getCommit('generated', 'generated', 'generated', 4, 8); + $result = $client->operations()->repos()->getCommit('generated', 'generated', 'generated', 1, 8); } /** @test */ @@ -143,13 +143,13 @@ public function call_httpCode_500_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/commits/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\GetCommit::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['ref'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -166,9 +166,9 @@ public function operations_httpCode_500_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/commits/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->getCommit('generated', 'generated', 'generated', 4, 8); + $result = $client->operations()->repos()->getCommit('generated', 'generated', 'generated', 1, 8); } /** @test */ @@ -181,13 +181,13 @@ 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/commits/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\GetCommit::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['ref'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -204,8 +204,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/commits/generated?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->getCommit('generated', 'generated', 'generated', 4, 8); + $result = $client->operations()->repos()->getCommit('generated', 'generated', 'generated', 1, 8); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListBranchesListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListBranchesListingTest.php new file mode 100644 index 00000000000..549f62a4e60 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListBranchesListingTest.php @@ -0,0 +1,65 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/branches?protected=&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListBranchesListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['protected'] = false; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/branches?protected=&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listBranchesListing('generated', 'generated', false, 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListBranchesTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListBranchesTest.php index 80f754fe768..ece3b82a4b0 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListBranchesTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListBranchesTest.php @@ -31,14 +31,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/branches?protected=&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/branches?protected=&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListBranches::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['protected'] = false; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -54,8 +54,8 @@ 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/branches?protected=&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/branches?protected=&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listBranches('generated', 'generated', false, 8, 4); + $result = $client->operations()->repos()->listBranches('generated', 'generated', false, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCacheInfoListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCacheInfoListingTest.php new file mode 100644 index 00000000000..73d1518cc7f --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCacheInfoListingTest.php @@ -0,0 +1,105 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/replicas/caches?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListCacheInfoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/replicas/caches?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listCacheInfoListing('generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/replicas/caches?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListCacheInfoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/replicas/caches?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listCacheInfoListing('generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCacheInfoTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCacheInfoTest.php index a656c3f5621..a83a4c3d1d5 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCacheInfoTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCacheInfoTest.php @@ -31,13 +31,13 @@ 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/replicas/caches?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/replicas/caches?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListCacheInfo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,9 +53,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/replicas/caches?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/replicas/caches?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listCacheInfo('generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listCacheInfo('generated', 'generated', 8, 1); } /** @test */ @@ -68,13 +68,13 @@ 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/replicas/caches?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/replicas/caches?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListCacheInfo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -90,8 +90,8 @@ 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/replicas/caches?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/replicas/caches?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listCacheInfo('generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listCacheInfo('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCollaboratorsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCollaboratorsListingTest.php new file mode 100644 index 00000000000..6c427793b54 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCollaboratorsListingTest.php @@ -0,0 +1,65 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListCollaboratorsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['affiliation'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listCollaboratorsListing('generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCollaboratorsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCollaboratorsTest.php index fa664c059ee..856b3404e6c 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCollaboratorsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCollaboratorsTest.php @@ -31,14 +31,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/collaborators?affiliation=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListCollaborators::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['affiliation'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -54,8 +54,8 @@ 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/collaborators?affiliation=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/collaborators?affiliation=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listCollaborators('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listCollaborators('generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommentsForCommitListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommentsForCommitListingTest.php new file mode 100644 index 00000000000..8fba1249fdc --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommentsForCommitListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/commits/generated/statuses?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListCommitStatusesForRefListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['ref'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_301_responseContentType_application_json_zero(): void + { + $response = new Response(301, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/commits/generated/statuses?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listCommitStatusesForRefListing('generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommitStatusesForRefTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommitStatusesForRefTest.php index ea2868b6994..4fe56b5c3f1 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommitStatusesForRefTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommitStatusesForRefTest.php @@ -29,14 +29,14 @@ public function call_httpCode_301_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/commits/generated/statuses?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated/statuses?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListCommitStatusesForRef::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['ref'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,8 +51,8 @@ public function operations_httpCode_301_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/commits/generated/statuses?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits/generated/statuses?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listCommitStatusesForRef('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listCommitStatusesForRef('generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommitsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommitsListingTest.php new file mode 100644 index 00000000000..03cbc8f8c4c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommitsListingTest.php @@ -0,0 +1,258 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListCommitsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['sha'] = 'generated'; + $data['path'] = 'generated'; + $data['author'] = 'generated'; + $data['committer'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['until'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_500_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listCommitsListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_400_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(400, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListCommitsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['sha'] = 'generated'; + $data['path'] = 'generated'; + $data['author'] = 'generated'; + $data['committer'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['until'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_400_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(400, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listCommitsListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_400_responseContentType_application_scim_json_zero(): void + { + self::expectException(ErrorSchemas\ScimError::class); + $response = new Response(400, ['Content-Type' => 'application/scim+json'], json_encode(json_decode(Schema\ScimError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListCommitsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['sha'] = 'generated'; + $data['path'] = 'generated'; + $data['author'] = 'generated'; + $data['committer'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['until'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_400_responseContentType_application_scim_json_zero(): void + { + self::expectException(ErrorSchemas\ScimError::class); + $response = new Response(400, ['Content-Type' => 'application/scim+json'], json_encode(json_decode(Schema\ScimError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listCommitsListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListCommitsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['sha'] = 'generated'; + $data['path'] = 'generated'; + $data['author'] = 'generated'; + $data['committer'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['until'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listCommitsListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_409_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(409, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListCommitsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['sha'] = 'generated'; + $data['path'] = 'generated'; + $data['author'] = 'generated'; + $data['committer'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['until'] = '1970-01-01T00:00:00+00:00'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_409_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(409, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listCommitsListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommitsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommitsTest.php index bdcb584b4f5..b185189bd89 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommitsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListCommitsTest.php @@ -31,7 +31,7 @@ public function call_httpCode_500_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/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListCommits::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -43,7 +43,7 @@ public function call_httpCode_500_responseContentType_application_json_zero(): v $data['since'] = '1970-01-01T00:00:00+00:00'; $data['until'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -59,9 +59,9 @@ public function operations_httpCode_500_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/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listCommits('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->repos()->listCommits('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1); } /** @test */ @@ -74,7 +74,7 @@ public function call_httpCode_400_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/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListCommits::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -86,7 +86,7 @@ public function call_httpCode_400_responseContentType_application_json_zero(): v $data['since'] = '1970-01-01T00:00:00+00:00'; $data['until'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -102,9 +102,9 @@ public function operations_httpCode_400_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/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listCommits('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->repos()->listCommits('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1); } /** @test */ @@ -117,7 +117,7 @@ public function call_httpCode_400_responseContentType_application_scim_json_zero $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/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListCommits::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -129,7 +129,7 @@ public function call_httpCode_400_responseContentType_application_scim_json_zero $data['since'] = '1970-01-01T00:00:00+00:00'; $data['until'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -145,9 +145,9 @@ public function operations_httpCode_400_responseContentType_application_scim_jso $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/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listCommits('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->repos()->listCommits('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1); } /** @test */ @@ -160,7 +160,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/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListCommits::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -172,7 +172,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['since'] = '1970-01-01T00:00:00+00:00'; $data['until'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -188,9 +188,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/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listCommits('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->repos()->listCommits('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1); } /** @test */ @@ -203,7 +203,7 @@ public function call_httpCode_409_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/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListCommits::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -215,7 +215,7 @@ public function call_httpCode_409_responseContentType_application_json_zero(): v $data['since'] = '1970-01-01T00:00:00+00:00'; $data['until'] = '1970-01-01T00:00:00+00:00'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -231,8 +231,8 @@ public function operations_httpCode_409_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/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/commits?sha=generated&path=generated&author=generated&committer=generated&since=1970-01-01T00:00:00+00:00&until=1970-01-01T00:00:00+00:00&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listCommits('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 4); + $result = $client->operations()->repos()->listCommits('generated', 'generated', 'generated', 'generated', 'generated', 'generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListContributorsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListContributorsListingTest.php new file mode 100644 index 00000000000..f1fa7c12ee7 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListContributorsListingTest.php @@ -0,0 +1,149 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/contributors?anon=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListContributorsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['anon'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/contributors?anon=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listContributorsListing('generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/contributors?anon=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListContributorsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['anon'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/contributors?anon=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listContributorsListing('generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_204_empty(): void + { + $response = new Response(204, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/contributors?anon=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListContributorsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['anon'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_204_empty(): void + { + $response = new Response(204, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/contributors?anon=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listContributorsListing('generated', 'generated', 'generated', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(204, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListContributorsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListContributorsTest.php index 62acc9e801d..d2d0b093a97 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListContributorsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListContributorsTest.php @@ -31,14 +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/contributors?anon=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/contributors?anon=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListContributors::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['anon'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -54,9 +54,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/contributors?anon=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/contributors?anon=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listContributors('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listContributors('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -69,14 +69,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/contributors?anon=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/contributors?anon=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListContributors::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['anon'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -92,9 +92,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/contributors?anon=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/contributors?anon=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listContributors('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listContributors('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -106,14 +106,14 @@ public function call_httpCode_204_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/contributors?anon=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/contributors?anon=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListContributors::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['anon'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -128,9 +128,9 @@ public function operations_httpCode_204_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/contributors?anon=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/contributors?anon=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listContributors('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listContributors('generated', 'generated', 'generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(204, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeployKeysListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeployKeysListingTest.php new file mode 100644 index 00000000000..60e2178bf64 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeployKeysListingTest.php @@ -0,0 +1,12 @@ +prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/environments/generated/deployment-branch-policies?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/environments/generated/deployment-branch-policies?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListDeploymentBranchPolicies::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['environment_name'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,8 +51,8 @@ public function operations_httpCode_200_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/environments/generated/deployment-branch-policies?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/environments/generated/deployment-branch-policies?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listDeploymentBranchPolicies('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listDeploymentBranchPolicies('generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeploymentStatusesListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeploymentStatusesListingTest.php new file mode 100644 index 00000000000..737a5bb0971 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeploymentStatusesListingTest.php @@ -0,0 +1,65 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/deployments/13/statuses?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListDeploymentStatusesListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['deployment_id'] = 13; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/deployments/13/statuses?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listDeploymentStatusesListing('generated', 'generated', 13, 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeploymentStatusesTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeploymentStatusesTest.php index 16b663fb9d9..28eb3aab544 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeploymentStatusesTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeploymentStatusesTest.php @@ -31,14 +31,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/deployments/13/statuses?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/deployments/13/statuses?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListDeploymentStatuses::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['deployment_id'] = 13; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -54,8 +54,8 @@ 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/deployments/13/statuses?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/deployments/13/statuses?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listDeploymentStatuses('generated', 'generated', 13, 8, 4); + $result = $client->operations()->repos()->listDeploymentStatuses('generated', 'generated', 13, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeploymentsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeploymentsListingTest.php new file mode 100644 index 00000000000..9f33720cbe5 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListDeploymentsListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['direction'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['before'] = '1970-01-01T00:00:00+00:00'; + $data['visibility'] = 'generated'; + $data['affiliation'] = 'generated'; + $data['type'] = 'generated'; + $data['sort'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listForAuthenticatedUserListing('generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['direction'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['before'] = '1970-01-01T00:00:00+00:00'; + $data['visibility'] = 'generated'; + $data['affiliation'] = 'generated'; + $data['type'] = 'generated'; + $data['sort'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listForAuthenticatedUserListing('generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['direction'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['before'] = '1970-01-01T00:00:00+00:00'; + $data['visibility'] = 'generated'; + $data['affiliation'] = 'generated'; + $data['type'] = 'generated'; + $data['sort'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listForAuthenticatedUserListing('generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['direction'] = 'generated'; + $data['since'] = '1970-01-01T00:00:00+00:00'; + $data['before'] = '1970-01-01T00:00:00+00:00'; + $data['visibility'] = 'generated'; + $data['affiliation'] = 'generated'; + $data['type'] = 'generated'; + $data['sort'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listForAuthenticatedUserListing('generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListForAuthenticatedUserTest.php index 1ed631a0328..4dda14eaef6 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListForAuthenticatedUserTest.php @@ -31,7 +31,7 @@ public function call_httpCode_422_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', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['direction'] = 'generated'; @@ -42,7 +42,7 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $data['type'] = 'generated'; $data['sort'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -58,9 +58,9 @@ public function operations_httpCode_422_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', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listForAuthenticatedUser('generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listForAuthenticatedUser('generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -73,7 +73,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', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['direction'] = 'generated'; @@ -84,7 +84,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $data['type'] = 'generated'; $data['sort'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -100,9 +100,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', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listForAuthenticatedUser('generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listForAuthenticatedUser('generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -115,7 +115,7 @@ public function call_httpCode_401_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', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['direction'] = 'generated'; @@ -126,7 +126,7 @@ public function call_httpCode_401_responseContentType_application_json_zero(): v $data['type'] = 'generated'; $data['sort'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -142,9 +142,9 @@ public function operations_httpCode_401_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', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listForAuthenticatedUser('generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listForAuthenticatedUser('generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -156,7 +156,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', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['direction'] = 'generated'; @@ -167,7 +167,7 @@ public function call_httpCode_304_empty(): void $data['type'] = 'generated'; $data['sort'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -182,9 +182,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', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repos?direction=generated&since=1970-01-01T00:00:00+00:00&before=1970-01-01T00:00:00+00:00&visibility=generated&affiliation=generated&type=generated&sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listForAuthenticatedUser('generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listForAuthenticatedUser('generated', '1970-01-01T00:00:00+00:00', '1970-01-01T00:00:00+00:00', 'generated', 'generated', 'generated', 'generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListForOrgListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListForOrgListingTest.php new file mode 100644 index 00000000000..5ce7079875a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListForOrgListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/forks?sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListForksListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['sort'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_400_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(400, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/forks?sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listForksListing('generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_400_responseContentType_application_scim_json_zero(): void + { + self::expectException(ErrorSchemas\ScimError::class); + $response = new Response(400, ['Content-Type' => 'application/scim+json'], json_encode(json_decode(Schema\ScimError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/forks?sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListForksListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['sort'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_400_responseContentType_application_scim_json_zero(): void + { + self::expectException(ErrorSchemas\ScimError::class); + $response = new Response(400, ['Content-Type' => 'application/scim+json'], json_encode(json_decode(Schema\ScimError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/forks?sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listForksListing('generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListForksTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListForksTest.php index 8391a1db7ad..cd9905cb1b8 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListForksTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListForksTest.php @@ -31,14 +31,14 @@ public function call_httpCode_400_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/forks?sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/forks?sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListForks::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['sort'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -54,9 +54,9 @@ public function operations_httpCode_400_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/forks?sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/forks?sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listForks('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listForks('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -69,14 +69,14 @@ public function call_httpCode_400_responseContentType_application_scim_json_zero $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/forks?sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/forks?sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListForks::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['sort'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -92,8 +92,8 @@ public function operations_httpCode_400_responseContentType_application_scim_jso $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/forks?sort=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/forks?sort=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listForks('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listForks('generated', 'generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListInvitationsForAuthenticatedUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListInvitationsForAuthenticatedUserListingTest.php new file mode 100644 index 00000000000..37989c7c2d4 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListInvitationsForAuthenticatedUserListingTest.php @@ -0,0 +1,179 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListInvitationsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listInvitationsForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListInvitationsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listInvitationsForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListInvitationsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listInvitationsForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListInvitationsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listInvitationsForAuthenticatedUserListing(8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListInvitationsForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListInvitationsForAuthenticatedUserTest.php index 4c1ac0f3db6..d8027355626 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListInvitationsForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListInvitationsForAuthenticatedUserTest.php @@ -31,11 +31,11 @@ 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', '/user/repository_invitations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListInvitationsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,9 +51,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', '/user/repository_invitations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listInvitationsForAuthenticatedUser(8, 4); + $result = $client->operations()->repos()->listInvitationsForAuthenticatedUser(8, 1); } /** @test */ @@ -66,11 +66,11 @@ 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', '/user/repository_invitations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListInvitationsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,9 +86,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', '/user/repository_invitations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listInvitationsForAuthenticatedUser(8, 4); + $result = $client->operations()->repos()->listInvitationsForAuthenticatedUser(8, 1); } /** @test */ @@ -101,11 +101,11 @@ public function call_httpCode_401_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', '/user/repository_invitations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListInvitationsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -121,9 +121,9 @@ public function operations_httpCode_401_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', '/user/repository_invitations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listInvitationsForAuthenticatedUser(8, 4); + $result = $client->operations()->repos()->listInvitationsForAuthenticatedUser(8, 1); } /** @test */ @@ -135,11 +135,11 @@ 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', '/user/repository_invitations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListInvitationsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -154,9 +154,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', '/user/repository_invitations?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/repository_invitations?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listInvitationsForAuthenticatedUser(8, 4); + $result = $client->operations()->repos()->listInvitationsForAuthenticatedUser(8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListInvitationsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListInvitationsListingTest.php new file mode 100644 index 00000000000..dd9fa1bef12 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListInvitationsListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/releases?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListReleasesListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/releases?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listReleasesListing('generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListReleasesTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListReleasesTest.php index 8415b327268..eea239c7e58 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListReleasesTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListReleasesTest.php @@ -31,13 +31,13 @@ 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/releases?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/releases?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListReleases::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,8 +53,8 @@ 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/releases?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/releases?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listReleases('generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listReleases('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListTagsListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListTagsListingTest.php new file mode 100644 index 00000000000..fd9ee146450 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListTagsListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListTeamsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listTeamsListing('generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListTeamsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListTeamsTest.php index c2b53fa878c..302a77cea72 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListTeamsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListTeamsTest.php @@ -31,13 +31,13 @@ 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/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListTeams::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,8 +53,8 @@ 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/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listTeams('generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listTeams('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListWebhooksListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListWebhooksListingTest.php new file mode 100644 index 00000000000..aab5135400d --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListWebhooksListingTest.php @@ -0,0 +1,64 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/hooks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Repos\ListWebhooksListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/hooks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->repos()->listWebhooksListing('generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListWebhooksTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListWebhooksTest.php index 8c653b976a1..06373918d70 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListWebhooksTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Repos/ListWebhooksTest.php @@ -31,13 +31,13 @@ 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/hooks?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/hooks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Repos\ListWebhooks::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,8 +53,8 @@ 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/hooks?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/hooks?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->repos()->listWebhooks('generated', 'generated', 8, 4); + $result = $client->operations()->repos()->listWebhooks('generated', 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Search/CodeTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Search/CodeTest.php index 598e9ba4bfc..56810882315 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Search/CodeTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Search/CodeTest.php @@ -30,14 +30,14 @@ public function call_httpCode_200_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', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Code::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,9 @@ public function operations_httpCode_200_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', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->code('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->code('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -67,14 +67,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', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Code::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -90,9 +90,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', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->code('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->code('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -105,14 +105,14 @@ public function call_httpCode_422_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', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Code::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -128,9 +128,9 @@ public function operations_httpCode_422_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', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->code('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->code('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -143,14 +143,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', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Code::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -166,9 +166,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', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->code('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->code('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -180,14 +180,14 @@ 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', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Code::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -202,9 +202,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', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/code?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->code('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->code('generated', 'generated', 'generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Search/CommitsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Search/CommitsTest.php index a62c5e2f373..b35fdd43772 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Search/CommitsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Search/CommitsTest.php @@ -29,14 +29,14 @@ public function call_httpCode_200_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', '/search/commits?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/commits?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Commits::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,9 +51,9 @@ public function operations_httpCode_200_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', '/search/commits?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/commits?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->commits('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->commits('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -65,14 +65,14 @@ 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', '/search/commits?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/commits?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Commits::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -87,9 +87,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', '/search/commits?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/commits?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->commits('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->commits('generated', 'generated', 'generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Search/IssuesAndPullRequestsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Search/IssuesAndPullRequestsTest.php index 11eceaf7457..370110f1dda 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Search/IssuesAndPullRequestsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Search/IssuesAndPullRequestsTest.php @@ -30,14 +30,14 @@ public function call_httpCode_200_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', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\IssuesAndPullRequests::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,9 @@ public function operations_httpCode_200_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', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->issuesAndPullRequests('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->issuesAndPullRequests('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -67,14 +67,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', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\IssuesAndPullRequests::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -90,9 +90,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', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->issuesAndPullRequests('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->issuesAndPullRequests('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -105,14 +105,14 @@ public function call_httpCode_422_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', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\IssuesAndPullRequests::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -128,9 +128,9 @@ public function operations_httpCode_422_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', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->issuesAndPullRequests('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->issuesAndPullRequests('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -143,14 +143,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', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\IssuesAndPullRequests::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -166,9 +166,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', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->issuesAndPullRequests('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->issuesAndPullRequests('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -180,14 +180,14 @@ 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', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\IssuesAndPullRequests::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -202,9 +202,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', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/issues?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->issuesAndPullRequests('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->issuesAndPullRequests('generated', 'generated', 'generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Search/LabelsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Search/LabelsTest.php index bcf859ba4da..e41dae7275d 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Search/LabelsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Search/LabelsTest.php @@ -30,7 +30,7 @@ public function call_httpCode_200_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', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Labels::OPERATION_MATCH, (static function (array $data): array { $data['repository_id'] = 13; @@ -38,7 +38,7 @@ public function call_httpCode_200_responseContentType_application_json_zero(): v $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,9 +53,9 @@ public function operations_httpCode_200_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', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->labels(13, 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->labels(13, 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -68,7 +68,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', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Labels::OPERATION_MATCH, (static function (array $data): array { $data['repository_id'] = 13; @@ -76,7 +76,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -92,9 +92,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', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->labels(13, 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->labels(13, 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -107,7 +107,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', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Labels::OPERATION_MATCH, (static function (array $data): array { $data['repository_id'] = 13; @@ -115,7 +115,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -131,9 +131,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', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->labels(13, 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->labels(13, 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -146,7 +146,7 @@ public function call_httpCode_422_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', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Labels::OPERATION_MATCH, (static function (array $data): array { $data['repository_id'] = 13; @@ -154,7 +154,7 @@ public function call_httpCode_422_responseContentType_application_json_zero(): v $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -170,9 +170,9 @@ public function operations_httpCode_422_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', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->labels(13, 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->labels(13, 'generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -184,7 +184,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', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Labels::OPERATION_MATCH, (static function (array $data): array { $data['repository_id'] = 13; @@ -192,7 +192,7 @@ public function call_httpCode_304_empty(): void $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -207,9 +207,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', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/labels?repository_id=13&q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->labels(13, 'generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->labels(13, 'generated', 'generated', 'generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Search/ReposTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Search/ReposTest.php index 8081626ea3c..f9748fe9082 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Search/ReposTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Search/ReposTest.php @@ -30,14 +30,14 @@ public function call_httpCode_200_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', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Repos::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,9 @@ public function operations_httpCode_200_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', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->repos('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->repos('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -67,14 +67,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', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Repos::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -90,9 +90,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', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->repos('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->repos('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -105,14 +105,14 @@ public function call_httpCode_422_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', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Repos::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -128,9 +128,9 @@ public function operations_httpCode_422_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', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->repos('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->repos('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -142,14 +142,14 @@ 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', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Repos::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -164,9 +164,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', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/repositories?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->repos('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->repos('generated', 'generated', 'generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Search/TopicsTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Search/TopicsTest.php index 4e1b4df1768..d79de644dad 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Search/TopicsTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Search/TopicsTest.php @@ -29,12 +29,12 @@ public function call_httpCode_200_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', '/search/topics?q=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/topics?q=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Topics::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -49,9 +49,9 @@ public function operations_httpCode_200_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', '/search/topics?q=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/topics?q=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->topics('generated', 8, 4); + $result = $client->operations()->search()->topics('generated', 8, 1); } /** @test */ @@ -63,12 +63,12 @@ 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', '/search/topics?q=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/topics?q=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Topics::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -83,9 +83,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', '/search/topics?q=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/topics?q=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->topics('generated', 8, 4); + $result = $client->operations()->search()->topics('generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Search/UsersTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Search/UsersTest.php index b6f982c6654..d6994148d45 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Search/UsersTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Search/UsersTest.php @@ -30,14 +30,14 @@ public function call_httpCode_200_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', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Users::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,9 @@ public function operations_httpCode_200_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', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->users('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->users('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -67,14 +67,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', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Users::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -90,9 +90,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', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->users('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->users('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -105,14 +105,14 @@ public function call_httpCode_422_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', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Users::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -128,9 +128,9 @@ public function operations_httpCode_422_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', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->users('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->users('generated', 'generated', 'generated', 8, 1); } /** @test */ @@ -142,14 +142,14 @@ 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', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Search\Users::OPERATION_MATCH, (static function (array $data): array { $data['q'] = 'generated'; $data['sort'] = 'generated'; $data['order'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -164,9 +164,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', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/search/users?q=generated&sort=generated&order=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->search()->users('generated', 'generated', 'generated', 8, 4); + $result = $client->operations()->search()->users('generated', 'generated', 'generated', 8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForOrgListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForOrgListingTest.php new file mode 100644 index 00000000000..884f420e377 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForOrgListingTest.php @@ -0,0 +1,109 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\SecretScanning\ListAlertsForOrgListing::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['state'] = 'generated'; + $data['secret_type'] = 'generated'; + $data['resolution'] = 'generated'; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listAlertsForOrgListing('generated', 'generated', 'generated', 'generated', 1, 8); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_503_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\SecretScanning\ListAlertsForOrgListing::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['state'] = 'generated'; + $data['secret_type'] = 'generated'; + $data['resolution'] = 'generated'; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_503_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listAlertsForOrgListing('generated', 'generated', 'generated', 'generated', 1, 8); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForOrgTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForOrgTest.php index 7bb119bb383..87d90b088de 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForOrgTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForOrgTest.php @@ -31,14 +31,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', '/orgs/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\SecretScanning\ListAlertsForOrg::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['state'] = 'generated'; $data['secret_type'] = 'generated'; $data['resolution'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -55,9 +55,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', '/orgs/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->secretScanning()->listAlertsForOrg('generated', 'generated', 'generated', 'generated', 4, 8); + $result = $client->operations()->secretScanning()->listAlertsForOrg('generated', 'generated', 'generated', 'generated', 1, 8); } /** @test */ @@ -70,14 +70,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', '/orgs/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\SecretScanning\ListAlertsForOrg::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['state'] = 'generated'; $data['secret_type'] = 'generated'; $data['resolution'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -94,8 +94,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', '/orgs/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->secretScanning()->listAlertsForOrg('generated', 'generated', 'generated', 'generated', 4, 8); + $result = $client->operations()->secretScanning()->listAlertsForOrg('generated', 'generated', 'generated', 'generated', 1, 8); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForRepoListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForRepoListingTest.php new file mode 100644 index 00000000000..e5b21bcdea6 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForRepoListingTest.php @@ -0,0 +1,111 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\SecretScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['state'] = 'generated'; + $data['secret_type'] = 'generated'; + $data['resolution'] = 'generated'; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_503_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 1, 8); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_404_empty(): void + { + $response = new Response(404, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\SecretScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['state'] = 'generated'; + $data['secret_type'] = 'generated'; + $data['resolution'] = 'generated'; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_empty(): void + { + $response = new Response(404, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', 'generated', 'generated', 1, 8); + self::assertArrayHasKey('code', $result); + self::assertSame(404, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForRepoTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForRepoTest.php index f3cc9f62f71..0ce1923095d 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForRepoTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListAlertsForRepoTest.php @@ -31,7 +31,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/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\SecretScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -39,7 +39,7 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $data['state'] = 'generated'; $data['secret_type'] = 'generated'; $data['resolution'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -56,9 +56,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/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->secretScanning()->listAlertsForRepo('generated', 'generated', 'generated', 'generated', 'generated', 4, 8); + $result = $client->operations()->secretScanning()->listAlertsForRepo('generated', 'generated', 'generated', 'generated', 'generated', 1, 8); } /** @test */ @@ -70,7 +70,7 @@ public function call_httpCode_404_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/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\SecretScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -78,7 +78,7 @@ public function call_httpCode_404_empty(): void $data['state'] = 'generated'; $data['secret_type'] = 'generated'; $data['resolution'] = 'generated'; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -94,9 +94,9 @@ public function operations_httpCode_404_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/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts?state=generated&secret_type=generated&resolution=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->secretScanning()->listAlertsForRepo('generated', 'generated', 'generated', 'generated', 'generated', 4, 8); + $result = $client->operations()->secretScanning()->listAlertsForRepo('generated', 'generated', 'generated', 'generated', 'generated', 1, 8); self::assertArrayHasKey('code', $result); self::assertSame(404, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListLocationsForAlertListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListLocationsForAlertListingTest.php new file mode 100644 index 00000000000..956082d0262 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListLocationsForAlertListingTest.php @@ -0,0 +1,107 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts/12/locations?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\SecretScanning\ListLocationsForAlertListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['alert_number'] = 12; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_503_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts/12/locations?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listLocationsForAlertListing('generated', 'generated', 12, 1, 8); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_404_empty(): void + { + $response = new Response(404, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts/12/locations?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\SecretScanning\ListLocationsForAlertListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['alert_number'] = 12; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_empty(): void + { + $response = new Response(404, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts/12/locations?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listLocationsForAlertListing('generated', 'generated', 12, 1, 8); + self::assertArrayHasKey('code', $result); + self::assertSame(404, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListLocationsForAlertTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListLocationsForAlertTest.php index 3ee37494957..74ee3527043 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListLocationsForAlertTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/SecretScanning/ListLocationsForAlertTest.php @@ -31,13 +31,13 @@ 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/secret-scanning/alerts/12/locations?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts/12/locations?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\SecretScanning\ListLocationsForAlert::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -54,9 +54,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/secret-scanning/alerts/12/locations?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts/12/locations?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->secretScanning()->listLocationsForAlert('generated', 'generated', 12, 4, 8); + $result = $client->operations()->secretScanning()->listLocationsForAlert('generated', 'generated', 12, 1, 8); } /** @test */ @@ -68,13 +68,13 @@ public function call_httpCode_404_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/secret-scanning/alerts/12/locations?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts/12/locations?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\SecretScanning\ListLocationsForAlert::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; $data['repo'] = 'generated'; $data['alert_number'] = 12; - $data['page'] = 4; + $data['page'] = 1; $data['per_page'] = 8; return $data; @@ -90,9 +90,9 @@ public function operations_httpCode_404_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/secret-scanning/alerts/12/locations?page=4&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/secret-scanning/alerts/12/locations?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->secretScanning()->listLocationsForAlert('generated', 'generated', 12, 4, 8); + $result = $client->operations()->secretScanning()->listLocationsForAlert('generated', 'generated', 12, 1, 8); self::assertArrayHasKey('code', $result); self::assertSame(404, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListChildInOrgListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListChildInOrgListingTest.php new file mode 100644 index 00000000000..953011ffffc --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListChildInOrgListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/teams/7/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Teams\ListChildLegacyListing::OPERATION_MATCH, (static function (array $data): array { + $data['team_id'] = 7; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/teams/7/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->teams()->listChildLegacyListing(7, 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/teams/7/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Teams\ListChildLegacyListing::OPERATION_MATCH, (static function (array $data): array { + $data['team_id'] = 7; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/teams/7/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->teams()->listChildLegacyListing(7, 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/teams/7/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Teams\ListChildLegacyListing::OPERATION_MATCH, (static function (array $data): array { + $data['team_id'] = 7; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/teams/7/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->teams()->listChildLegacyListing(7, 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListChildLegacyTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListChildLegacyTest.php index 29c56cb7861..8b49aee4af6 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListChildLegacyTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListChildLegacyTest.php @@ -31,12 +31,12 @@ 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', '/teams/7/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/teams/7/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Teams\ListChildLegacy::OPERATION_MATCH, (static function (array $data): array { $data['team_id'] = 7; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,9 +52,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', '/teams/7/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/teams/7/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->teams()->listChildLegacy(7, 8, 4); + $result = $client->operations()->teams()->listChildLegacy(7, 8, 1); } /** @test */ @@ -67,12 +67,12 @@ 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', '/teams/7/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/teams/7/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Teams\ListChildLegacy::OPERATION_MATCH, (static function (array $data): array { $data['team_id'] = 7; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -88,9 +88,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', '/teams/7/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/teams/7/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->teams()->listChildLegacy(7, 8, 4); + $result = $client->operations()->teams()->listChildLegacy(7, 8, 1); } /** @test */ @@ -103,12 +103,12 @@ public function call_httpCode_422_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', '/teams/7/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/teams/7/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Teams\ListChildLegacy::OPERATION_MATCH, (static function (array $data): array { $data['team_id'] = 7; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -124,8 +124,8 @@ public function operations_httpCode_422_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', '/teams/7/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/teams/7/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->teams()->listChildLegacy(7, 8, 4); + $result = $client->operations()->teams()->listChildLegacy(7, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListDiscussionCommentsInOrgListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListDiscussionCommentsInOrgListingTest.php new file mode 100644 index 00000000000..f25f4c4bf3c --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListDiscussionCommentsInOrgListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Teams\ListForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->teams()->listForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Teams\ListForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->teams()->listForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Teams\ListForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->teams()->listForAuthenticatedUserListing(8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListForAuthenticatedUserTest.php index c902f5b1e69..58d21123c1a 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListForAuthenticatedUserTest.php @@ -31,11 +31,11 @@ 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', '/user/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Teams\ListForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,9 +51,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', '/user/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->teams()->listForAuthenticatedUser(8, 4); + $result = $client->operations()->teams()->listForAuthenticatedUser(8, 1); } /** @test */ @@ -66,11 +66,11 @@ 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', '/user/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Teams\ListForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,9 +86,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', '/user/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->teams()->listForAuthenticatedUser(8, 4); + $result = $client->operations()->teams()->listForAuthenticatedUser(8, 1); } /** @test */ @@ -100,11 +100,11 @@ 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', '/user/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Teams\ListForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -119,9 +119,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', '/user/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->teams()->listForAuthenticatedUser(8, 4); + $result = $client->operations()->teams()->listForAuthenticatedUser(8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListListingTest.php new file mode 100644 index 00000000000..3d6add8ffaa --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListListingTest.php @@ -0,0 +1,63 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Teams\ListListing::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->teams()->listListing('generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListMembersInOrgListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListMembersInOrgListingTest.php new file mode 100644 index 00000000000..d0acbb612c2 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListMembersInOrgListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/teams/7/members?role=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Teams\ListMembersLegacyListing::OPERATION_MATCH, (static function (array $data): array { + $data['team_id'] = 7; + $data['role'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/teams/7/members?role=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->teams()->listMembersLegacyListing(7, 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListMembersLegacyTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListMembersLegacyTest.php index 90f142b4a20..537f593a869 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListMembersLegacyTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListMembersLegacyTest.php @@ -31,13 +31,13 @@ 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', '/teams/7/members?role=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/teams/7/members?role=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Teams\ListMembersLegacy::OPERATION_MATCH, (static function (array $data): array { $data['team_id'] = 7; $data['role'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -53,8 +53,8 @@ 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', '/teams/7/members?role=generated&per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/teams/7/members?role=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->teams()->listMembersLegacy(7, 'generated', 8, 4); + $result = $client->operations()->teams()->listMembersLegacy(7, 'generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListProjectsInOrgListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListProjectsInOrgListingTest.php new file mode 100644 index 00000000000..816dba82aa3 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListProjectsInOrgListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/teams/7/projects?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Teams\ListProjectsLegacyListing::OPERATION_MATCH, (static function (array $data): array { + $data['team_id'] = 7; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/teams/7/projects?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->teams()->listProjectsLegacyListing(7, 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListProjectsLegacyTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListProjectsLegacyTest.php index 440f38c024f..cb81d00b7de 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListProjectsLegacyTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListProjectsLegacyTest.php @@ -31,12 +31,12 @@ 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', '/teams/7/projects?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/teams/7/projects?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Teams\ListProjectsLegacy::OPERATION_MATCH, (static function (array $data): array { $data['team_id'] = 7; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,8 +52,8 @@ 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', '/teams/7/projects?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/teams/7/projects?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->teams()->listProjectsLegacy(7, 8, 4); + $result = $client->operations()->teams()->listProjectsLegacy(7, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListReposInOrgListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListReposInOrgListingTest.php new file mode 100644 index 00000000000..3d8e9bde318 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListReposInOrgListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/teams/7/repos?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Teams\ListReposLegacyListing::OPERATION_MATCH, (static function (array $data): array { + $data['team_id'] = 7; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/teams/7/repos?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->teams()->listReposLegacyListing(7, 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListReposLegacyTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListReposLegacyTest.php index 2bbbfdd36c5..f7611da3d99 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListReposLegacyTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/ListReposLegacyTest.php @@ -31,12 +31,12 @@ 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', '/teams/7/repos?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/teams/7/repos?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Teams\ListReposLegacy::OPERATION_MATCH, (static function (array $data): array { $data['team_id'] = 7; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,8 +52,8 @@ 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', '/teams/7/repos?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/teams/7/repos?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->teams()->listReposLegacy(7, 8, 4); + $result = $client->operations()->teams()->listReposLegacy(7, 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/List_Test.php b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/List_Test.php index 62072bbea41..9e650ad4740 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Teams/List_Test.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Teams/List_Test.php @@ -31,12 +31,12 @@ 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', '/orgs/generated/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Teams\List_::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -52,8 +52,8 @@ 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', '/orgs/generated/teams?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/teams?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->teams()->list('generated', 8, 4); + $result = $client->operations()->teams()->list('generated', 8, 1); } } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListEmailsForAuthenticatedUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListEmailsForAuthenticatedUserListingTest.php new file mode 100644 index 00000000000..d77fb32e1b2 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListEmailsForAuthenticatedUserListingTest.php @@ -0,0 +1,179 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListEmailsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listEmailsForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListEmailsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listEmailsForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListEmailsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listEmailsForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListEmailsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listEmailsForAuthenticatedUserListing(8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListEmailsForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListEmailsForAuthenticatedUserTest.php index 0713e32dd08..b31be820f17 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListEmailsForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListEmailsForAuthenticatedUserTest.php @@ -31,11 +31,11 @@ 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', '/user/emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListEmailsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,9 +51,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', '/user/emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listEmailsForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listEmailsForAuthenticatedUser(8, 1); } /** @test */ @@ -66,11 +66,11 @@ 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', '/user/emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListEmailsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,9 +86,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', '/user/emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listEmailsForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listEmailsForAuthenticatedUser(8, 1); } /** @test */ @@ -101,11 +101,11 @@ public function call_httpCode_401_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', '/user/emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListEmailsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -121,9 +121,9 @@ public function operations_httpCode_401_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', '/user/emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listEmailsForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listEmailsForAuthenticatedUser(8, 1); } /** @test */ @@ -135,11 +135,11 @@ 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', '/user/emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListEmailsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -154,9 +154,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', '/user/emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listEmailsForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listEmailsForAuthenticatedUser(8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowedByAuthenticatedUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowedByAuthenticatedUserListingTest.php new file mode 100644 index 00000000000..aa843930b30 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowedByAuthenticatedUserListingTest.php @@ -0,0 +1,140 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/following?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListFollowedByAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/following?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listFollowedByAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/following?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListFollowedByAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/following?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listFollowedByAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/following?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListFollowedByAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/following?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listFollowedByAuthenticatedUserListing(8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowedByAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowedByAuthenticatedUserTest.php index 12bb6495bc6..545865c7b8c 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowedByAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowedByAuthenticatedUserTest.php @@ -31,11 +31,11 @@ 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', '/user/following?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/following?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListFollowedByAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,9 +51,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', '/user/following?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/following?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listFollowedByAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listFollowedByAuthenticatedUser(8, 1); } /** @test */ @@ -66,11 +66,11 @@ public function call_httpCode_401_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', '/user/following?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/following?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListFollowedByAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,9 +86,9 @@ public function operations_httpCode_401_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', '/user/following?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/following?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listFollowedByAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listFollowedByAuthenticatedUser(8, 1); } /** @test */ @@ -100,11 +100,11 @@ 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', '/user/following?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/following?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListFollowedByAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -119,9 +119,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', '/user/following?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/following?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listFollowedByAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listFollowedByAuthenticatedUser(8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowersForAuthenticatedUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowersForAuthenticatedUserListingTest.php new file mode 100644 index 00000000000..f3b06249d2a --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowersForAuthenticatedUserListingTest.php @@ -0,0 +1,140 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/followers?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListFollowersForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/followers?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listFollowersForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/followers?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListFollowersForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/followers?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listFollowersForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/followers?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListFollowersForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/followers?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listFollowersForAuthenticatedUserListing(8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowersForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowersForAuthenticatedUserTest.php index 3332612852e..cd0870d74ea 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowersForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowersForAuthenticatedUserTest.php @@ -31,11 +31,11 @@ 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', '/user/followers?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/followers?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListFollowersForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,9 +51,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', '/user/followers?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/followers?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listFollowersForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listFollowersForAuthenticatedUser(8, 1); } /** @test */ @@ -66,11 +66,11 @@ public function call_httpCode_401_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', '/user/followers?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/followers?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListFollowersForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,9 +86,9 @@ public function operations_httpCode_401_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', '/user/followers?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/followers?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listFollowersForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listFollowersForAuthenticatedUser(8, 1); } /** @test */ @@ -100,11 +100,11 @@ 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', '/user/followers?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/followers?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListFollowersForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -119,9 +119,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', '/user/followers?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/followers?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listFollowersForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listFollowersForAuthenticatedUser(8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowersForUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowersForUserListingTest.php new file mode 100644 index 00000000000..75307214c01 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListFollowersForUserListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListGpgKeysForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listGpgKeysForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListGpgKeysForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listGpgKeysForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListGpgKeysForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listGpgKeysForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListGpgKeysForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listGpgKeysForAuthenticatedUserListing(8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListGpgKeysForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListGpgKeysForAuthenticatedUserTest.php index 994f176d421..7744951f491 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListGpgKeysForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListGpgKeysForAuthenticatedUserTest.php @@ -31,11 +31,11 @@ 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', '/user/gpg_keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListGpgKeysForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,9 +51,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', '/user/gpg_keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listGpgKeysForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listGpgKeysForAuthenticatedUser(8, 1); } /** @test */ @@ -66,11 +66,11 @@ 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', '/user/gpg_keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListGpgKeysForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,9 +86,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', '/user/gpg_keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listGpgKeysForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listGpgKeysForAuthenticatedUser(8, 1); } /** @test */ @@ -101,11 +101,11 @@ public function call_httpCode_401_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', '/user/gpg_keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListGpgKeysForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -121,9 +121,9 @@ public function operations_httpCode_401_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', '/user/gpg_keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listGpgKeysForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listGpgKeysForAuthenticatedUser(8, 1); } /** @test */ @@ -135,11 +135,11 @@ 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', '/user/gpg_keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListGpgKeysForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -154,9 +154,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', '/user/gpg_keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/gpg_keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listGpgKeysForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listGpgKeysForAuthenticatedUser(8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListGpgKeysForUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListGpgKeysForUserListingTest.php new file mode 100644 index 00000000000..ea19c8b1345 --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListGpgKeysForUserListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListPublicEmailsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listPublicEmailsForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListPublicEmailsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listPublicEmailsForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListPublicEmailsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listPublicEmailsForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListPublicEmailsForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listPublicEmailsForAuthenticatedUserListing(8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListPublicEmailsForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListPublicEmailsForAuthenticatedUserTest.php index cbb1e2664a1..e4fb3f14af3 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListPublicEmailsForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListPublicEmailsForAuthenticatedUserTest.php @@ -31,11 +31,11 @@ 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', '/user/public_emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListPublicEmailsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,9 +51,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', '/user/public_emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listPublicEmailsForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listPublicEmailsForAuthenticatedUser(8, 1); } /** @test */ @@ -66,11 +66,11 @@ 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', '/user/public_emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListPublicEmailsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,9 +86,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', '/user/public_emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listPublicEmailsForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listPublicEmailsForAuthenticatedUser(8, 1); } /** @test */ @@ -101,11 +101,11 @@ public function call_httpCode_401_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', '/user/public_emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListPublicEmailsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -121,9 +121,9 @@ public function operations_httpCode_401_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', '/user/public_emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listPublicEmailsForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listPublicEmailsForAuthenticatedUser(8, 1); } /** @test */ @@ -135,11 +135,11 @@ 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', '/user/public_emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListPublicEmailsForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -154,9 +154,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', '/user/public_emails?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/public_emails?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listPublicEmailsForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listPublicEmailsForAuthenticatedUser(8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListPublicKeysForUserListingTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListPublicKeysForUserListingTest.php new file mode 100644 index 00000000000..8cefcc9989e --- /dev/null +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListPublicKeysForUserListingTest.php @@ -0,0 +1,12 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListPublicSshKeysForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listPublicSshKeysForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListPublicSshKeysForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listPublicSshKeysForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListPublicSshKeysForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_401_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listPublicSshKeysForAuthenticatedUserListing(8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Operation\Users\ListPublicSshKeysForAuthenticatedUserListing::OPERATION_MATCH, (static function (array $data): array { + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_304_empty(): void + { + $response = new Response(304, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->users()->listPublicSshKeysForAuthenticatedUserListing(8, 1); + self::assertArrayHasKey('code', $result); + self::assertSame(304, $result['code']); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListPublicSshKeysForAuthenticatedUserTest.php b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListPublicSshKeysForAuthenticatedUserTest.php index 59b373e9e24..4c1700c65e6 100644 --- a/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListPublicSshKeysForAuthenticatedUserTest.php +++ b/clients/GitHubEnterprise-3.4/tests/Operation/Users/ListPublicSshKeysForAuthenticatedUserTest.php @@ -31,11 +31,11 @@ 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', '/user/keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListPublicSshKeysForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -51,9 +51,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', '/user/keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listPublicSshKeysForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listPublicSshKeysForAuthenticatedUser(8, 1); } /** @test */ @@ -66,11 +66,11 @@ 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', '/user/keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListPublicSshKeysForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -86,9 +86,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', '/user/keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listPublicSshKeysForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listPublicSshKeysForAuthenticatedUser(8, 1); } /** @test */ @@ -101,11 +101,11 @@ public function call_httpCode_401_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', '/user/keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListPublicSshKeysForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -121,9 +121,9 @@ public function operations_httpCode_401_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', '/user/keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listPublicSshKeysForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listPublicSshKeysForAuthenticatedUser(8, 1); } /** @test */ @@ -135,11 +135,11 @@ 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', '/user/keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Operation\Users\ListPublicSshKeysForAuthenticatedUser::OPERATION_MATCH, (static function (array $data): array { $data['per_page'] = 8; - $data['page'] = 4; + $data['page'] = 1; return $data; })([])); @@ -154,9 +154,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', '/user/keys?per_page=8&page=4', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/user/keys?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->users()->listPublicSshKeysForAuthenticatedUser(8, 4); + $result = $client->operations()->users()->listPublicSshKeysForAuthenticatedUser(8, 1); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); }