diff --git a/clients/GitHubEnterpriseCloud/README.md b/clients/GitHubEnterpriseCloud/README.md index 4069e421234..4fa237cf664 100644 --- a/clients/GitHubEnterpriseCloud/README.md +++ b/clients/GitHubEnterpriseCloud/README.md @@ -6761,6 +6761,8 @@ Using the `call` method: $client->call('GET /orgs/{org}/external-group/{group_id}', [ 'org' => 'generated', 'group_id' => 8, + 'per_page' => 8, + 'page' => 1, ]); ``` @@ -6768,6 +6770,8 @@ Operations method: ```php $client->operations()->teams()->externalIdpGroupInfoForOrg( org: 'generated', group_id: 8, + per_page: 8, + page: 1, ); ``` diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index dc04cbbf57a..e4eb5cf76b1 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "1361f78292c83f6e3e25de0a25ba1a99", + "specHash": "f14afa6095b928550e397c99507c5224", "generatedFiles": { "files": [ { @@ -636,7 +636,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRulesetBypassActor.php", - "hash": "da5558c25d72365e22f30e3ebdf01c3a" + "hash": "2e0619fff68b3f8748c16e7c8be50d33" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRulesetConditions.php", @@ -648,7 +648,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/OrgRulesetConditions.php", - "hash": "2ce6ae6ee0b8289cf159cbec1231401c" + "hash": "1fb8c124ad67f25dc4aed7fa8ec1dd67" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleCreation.php", @@ -716,7 +716,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php", - "hash": "6ee659e0f0495addd089ee78553a9686" + "hash": "ad16883d58672461f2c234371bcbffb3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GroupMapping.php", @@ -1664,7 +1664,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/MergeGroup.php", - "hash": "7a6406edd5bd0e6dbda4dab47e0e23c0" + "hash": "b6356ced654e16ac9801808291bba8a7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/PersonalAccessTokenRequest.php", @@ -2068,11 +2068,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMergeGroupChecksRequested.php", - "hash": "cbaca5a39166481f6d942ed044ac5a07" + "hash": "484ed85889ef0e92bf3d3bd819e5b3ef" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMergeGroupDestroyed.php", - "hash": "941e7a4b7ecba07d959a7fea7c5921cc" + "hash": "c02af3a72b6c946a4526cf549078c6e0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMetaDeleted.php", @@ -4928,11 +4928,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "3510ea1cccef695477bdc9eb4bb4f14b" + "hash": "72d215a78ad1500e0524cf9996ca7c9a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "fc69f8a617e5785351ad8a694527d716" + "hash": "027a98f8cfc8813638489bf25f06dd12" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Teams\/Create\/Request\/ApplicationJson.php", @@ -5128,11 +5128,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateBranchProtection\/Request\/ApplicationJson.php", - "hash": "12a792f09c2f00ed5ac0b58d3ed1a9ea" + "hash": "6e8294d2ebaee2ce0e2033338398ca20" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateBranchProtection\/Request\/ApplicationJson\/RequiredStatusChecks.php", - "hash": "bf7e1521e9362411f1d51e6480403492" + "hash": "f59e402f46c425fe9539b0cea8a61631" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateBranchProtection\/Request\/ApplicationJson\/RequiredStatusChecks\/Checks.php", @@ -5160,7 +5160,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateStatusCheckProtection\/Request\/ApplicationJson.php", - "hash": "0d333e97892a349de452653bbedfc044" + "hash": "97dcfa013b7d65c0ee6a33ef014bf57e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/SetStatusCheckContexts\/Request\/ApplicationJson.php", @@ -5648,11 +5648,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/CreateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "b5bc0de396046888507d2874875d48aa" + "hash": "ae12a630c4182e91688f3f4ffce367b0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "8454bccfb8cbf8b0b0635a15d47d007a" + "hash": "1458f402025184131549dd43bd66d97a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanning\/UpdateAlert\/Request\/ApplicationJson.php", @@ -5948,7 +5948,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Orgs.php", - "hash": "59890756247759e5bb8bf34f4d0283c2" + "hash": "6dc29d5441ea46353fafdee72cf0089e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Oidc.php", @@ -5964,7 +5964,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Teams.php", - "hash": "077f348a787c4511764f9da2250f66a9" + "hash": "cae7259d9b17070b8063bb2897448899" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Interactions.php", @@ -5980,7 +5980,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "e3d0fb7bf6fdae24d5c77c192f75dddc" + "hash": "5e11a4a4079e52ea4cb85be73bb2dd70" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php", @@ -6008,7 +6008,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/SecurityAdvisories.php", - "hash": "ff770b21094efb1ed605bd62cd6ee60e" + "hash": "f4d12d137568d19e36ebe3e619835acf" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Scim.php", @@ -12272,15 +12272,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php", - "hash": "3745906c13bc1514ffb74aaec2053e14" + "hash": "3c6000a4e4943a4a58ec7fd70179a902" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php", - "hash": "646366987f657717e173115347d43f52" + "hash": "9e7a45a4dd1eb89a4a4c36c016aba8e0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php", - "hash": "73c76c53786fa9781ebcc4114db8685d" + "hash": "2e62ac9bf854490f9652d92ccf97fda7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/SecurityAdvisories\/CreateRepositoryAdvisoryCveRequest\/Response\/ApplicationJson\/Accepted.php", @@ -15500,15 +15500,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Teams\/ExternalIdpGroupInfoForOrg.php", - "hash": "69d104c02a6f1fcf25c61679ec1e8703" + "hash": "efad97dac9c802f65c673f81ba742fed" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Teams\/ExternalIdpGroupInfoForOrg.php", - "hash": "4bf7ad560cb58125a5621f941c8cfa12" + "hash": "c9642f658f6b1d4043e9d28fb644160a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Teams\/ExternalIdpGroupInfoForOrgTest.php", - "hash": "eb9ac5ea27b9f5246a7e040537fa8f54" + "hash": "ed9aed1ffb6bad1c82b21a6b8f87911d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Teams\/ListExternalIdpGroupsForOrg.php", @@ -26096,7 +26096,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php", - "hash": "76b69033138f291aa2775258778751e5" + "hash": "bff5f5609bfe96becd22f89b8de4f872" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php", @@ -26116,7 +26116,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Teams.php", - "hash": "9dbf4ed59ca54dedb015c3c8cb8a8834" + "hash": "33692b199e4c062125db2851021f6098" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Codespaces.php", @@ -26204,7 +26204,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Orgs.php", - "hash": "60e93c0879fba08f09548e2e2d1f6998" + "hash": "b3e49a2bb6d97bdcf6329d78cc2b7093" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Migrations.php", @@ -26332,7 +26332,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Orgs.php", - "hash": "287cac26e23abe87d9ad96011db66cb9" + "hash": "6b2999079830ce29faaf441a7e3f7cbc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Teams.php", @@ -26408,7 +26408,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php", - "hash": "623934de7b82e97f0bfb220ac1a80422" + "hash": "b8114d05283f3435c0b82c4e0e537cb8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php", @@ -26648,11 +26648,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "cb7d826c43fe180e6b9f6268536b74bc" + "hash": "a96cdb50243cdee603b01f1bca0ac0e3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "77cf4e9f2070d524bd40e99d7a32ad14" + "hash": "8434b700729e55251f8d88c94798f810" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -26672,7 +26672,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Four.php", - "hash": "e38ddd8d5049c75e864802385ba02672" + "hash": "357c5435add746f49352db02940da5fe" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Six.php", @@ -26720,7 +26720,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Five.php", - "hash": "2d60145a93ebc2c26221058fe1d9783c" + "hash": "1bc2e14132b41f20c4010f0304dcaae3" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Seven.php", @@ -26748,7 +26748,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "dc880ef38a537e30963c81bc90d8075f" + "hash": "7b23038b8a14b1c869d4a39aa7c0808f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Two.php", @@ -26756,7 +26756,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", - "hash": "2cc43ed3de040350a0aad4f187e57e9e" + "hash": "18d96d2ed387d98bfd9273505127fadb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", @@ -29472,11 +29472,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetOrgRuleSuites.php", - "hash": "f856f28a185697eed5a4735e8df224e9" + "hash": "bd09c28b04c3df9706416c95c9079c04" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetOrgRuleSuites.php", - "hash": "825577af69624b6fad73508617ad322d" + "hash": "1b505ed4202be42c0270b75dc8ebfdb9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetOrgRuleSuitesTest.php", @@ -29484,11 +29484,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetOrgRuleSuitesListing.php", - "hash": "cba6003e12e2e189d9e4623610a71f37" + "hash": "531ac84246c34251a0ad007b755d01ef" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetOrgRuleSuitesListing.php", - "hash": "7c5852b294a39886e1530bce1140e79a" + "hash": "83a1991a9d2b54148f899ec4d8ee1a13" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetOrgRuleSuitesListingTest.php", @@ -29508,11 +29508,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetRepoRuleSuites.php", - "hash": "26af7e95194e51a0edebdb4cd0e7f9b6" + "hash": "0b86d08adbcb6822503fca61a5962418" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRuleSuites.php", - "hash": "e26bc39ef87d3845308b88e51d1c9acd" + "hash": "02a1cbefb25998740f368859c6037622" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRuleSuitesTest.php", @@ -29520,11 +29520,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetRepoRuleSuitesListing.php", - "hash": "dfef34626dc87463611e1a15e66aa547" + "hash": "345d3e6423b3a69c7214e6ca497f3131" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRuleSuitesListing.php", - "hash": "70337a2af73047be3dcbbe1d7c99ac8f" + "hash": "dd0ee5d51d0a831b2f52fb68a6674eb4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRuleSuitesListingTest.php", @@ -29860,11 +29860,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "1efd2d80d9ab1a1e59bc6d34c3cefe2e" + "hash": "84508f6a33b9cef7b9b493593afdb5e0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "358ba35723469380db51b84dbc0b733c" + "hash": "99e667000b16020e07bbb34b93bfee82" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -30472,7 +30472,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/CreateCustomOrganizationRole.php", - "hash": "2cfa39bca4642bb8640e02730b65ee9a" + "hash": "9a8cf90e61a6ecaa4ea346d3e5cd1690" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/CreateCustomOrganizationRoleTest.php", @@ -30552,7 +30552,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/PatchCustomOrganizationRole.php", - "hash": "b40a64b699cd59be2558d344c0b55198" + "hash": "10520e43fcf524b4591ebee4c59b5d71" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/PatchCustomOrganizationRoleTest.php", diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetOrgRuleSuites.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetOrgRuleSuites.php index 4f6057aeea7..3c6685aa524 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetOrgRuleSuites.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetOrgRuleSuites.php @@ -27,8 +27,7 @@ final class GetOrgRuleSuites public const OPERATION_MATCH = 'GET /orgs/{org}/rulesets/rule-suites'; /**The organization name. The name is not case sensitive. **/ private string $org; - /**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. - **/ + /**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. **/ private string $ref; /**The name of the repository to filter on. When specified, only rule evaluations from this repository will be returned. **/ private int $repositoryName; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetOrgRuleSuitesListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetOrgRuleSuitesListing.php index 712f0b8856b..ab2e63842c7 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetOrgRuleSuitesListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetOrgRuleSuitesListing.php @@ -27,8 +27,7 @@ final class GetOrgRuleSuitesListing public const OPERATION_MATCH = 'LIST /orgs/{org}/rulesets/rule-suites'; /**The organization name. The name is not case sensitive. **/ private string $org; - /**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. - **/ + /**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. **/ private string $ref; /**The name of the repository to filter on. When specified, only rule evaluations from this repository will be returned. **/ private int $repositoryName; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetRepoRuleSuites.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetRepoRuleSuites.php index 3bedb089b34..0d852261a2f 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetRepoRuleSuites.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetRepoRuleSuites.php @@ -29,8 +29,7 @@ final class GetRepoRuleSuites private string $owner; /**The name of the repository without the `.git` extension. The name is not case sensitive. **/ private string $repo; - /**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. - **/ + /**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. **/ private string $ref; /**The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. **/ private string $actorName; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetRepoRuleSuitesListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetRepoRuleSuitesListing.php index 4a5049982d3..7d0b55f00d4 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetRepoRuleSuitesListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetRepoRuleSuitesListing.php @@ -29,8 +29,7 @@ final class GetRepoRuleSuitesListing private string $owner; /**The name of the repository without the `.git` extension. The name is not case sensitive. **/ private string $repo; - /**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. - **/ + /**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. **/ private string $ref; /**The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. **/ private string $actorName; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Teams/ExternalIdpGroupInfoForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Teams/ExternalIdpGroupInfoForOrg.php index 5885227949c..043d2be1535 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Teams/ExternalIdpGroupInfoForOrg.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Teams/ExternalIdpGroupInfoForOrg.php @@ -25,16 +25,22 @@ final class ExternalIdpGroupInfoForOrg private string $org; /**The unique identifier of the group. **/ private int $groupId; + /**The number of results per page for the "members" array (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ + private int $perPage; + /**The page number of the "members" array results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ + private int $page; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\ExternalGroup\GroupId $hydrator, string $org, int $groupId) + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\ExternalGroup\GroupId $hydrator, string $org, int $groupId, int $perPage = 30, int $page = 1) { $this->org = $org; $this->groupId = $groupId; + $this->perPage = $perPage; + $this->page = $page; } public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{org}', '{group_id}'], [$this->org, $this->groupId], '/orgs/{org}/external-group/{group_id}')); + return new Request('GET', str_replace(['{org}', '{group_id}', '{per_page}', '{page}'], [$this->org, $this->groupId, $this->perPage, $this->page], '/orgs/{org}/external-group/{group_id}' . '?per_page={per_page}&page={page}')); } public function createResponse(ResponseInterface $response): Schema\ExternalGroup diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/CreateCustomOrganizationRole.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/CreateCustomOrganizationRole.php index d367eebf991..e34ef4c88a8 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/CreateCustomOrganizationRole.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/CreateCustomOrganizationRole.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, array $params): OrganizationRole { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Orgs\CreateCustomOrganizationRole($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/PatchCustomOrganizationRole.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/PatchCustomOrganizationRole.php index bb27696364c..d9ea294c127 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/PatchCustomOrganizationRole.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/PatchCustomOrganizationRole.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $org, int $roleId, array $params): OrganizationRole { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Orgs\PatchCustomOrganizationRole($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org, $roleId); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuites.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuites.php index 63b1ad5e485..84ac917f2d8 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuites.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuites.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ + /** @return iterable */ public function call(string $org, string $ref, int $repositoryName, string $actorName, string $timePeriod = 'day', string $ruleSuiteResult = 'all', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Repos\GetOrgRuleSuites($this->responseSchemaValidator, $this->hydrator, $org, $ref, $repositoryName, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuitesListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuitesListing.php index f45a6333abb..ab8b8afab07 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuitesListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuitesListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ + /** @return iterable */ public function call(string $org, string $ref, int $repositoryName, string $actorName, string $timePeriod = 'day', string $ruleSuiteResult = 'all', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Repos\GetOrgRuleSuitesListing($this->responseSchemaValidator, $this->hydrator, $org, $ref, $repositoryName, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetRepoRuleSuites.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetRepoRuleSuites.php index fd83db3a62b..7465a66472f 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetRepoRuleSuites.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetRepoRuleSuites.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ + /** @return iterable */ public function call(string $owner, string $repo, string $ref, string $actorName, string $timePeriod = 'day', string $ruleSuiteResult = 'all', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Repos\GetRepoRuleSuites($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $ref, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetRepoRuleSuitesListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetRepoRuleSuitesListing.php index f6ab9e7330a..ec656c49a72 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetRepoRuleSuitesListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetRepoRuleSuitesListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable */ + /** @return iterable */ public function call(string $owner, string $repo, string $ref, string $actorName, string $timePeriod = 'day', string $ruleSuiteResult = 'all', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Repos\GetRepoRuleSuitesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $ref, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Teams/ExternalIdpGroupInfoForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Teams/ExternalIdpGroupInfoForOrg.php index 70c612de53c..3d8f8c12748 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Teams/ExternalIdpGroupInfoForOrg.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Teams/ExternalIdpGroupInfoForOrg.php @@ -24,10 +24,9 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return */ - public function call(string $org, int $groupId): ExternalGroup + public function call(string $org, int $groupId, int $perPage = 30, int $page = 1): ExternalGroup { - $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Teams\ExternalIdpGroupInfoForOrg($this->responseSchemaValidator, $this->hydrator, $org, $groupId); + $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Teams\ExternalIdpGroupInfoForOrg($this->responseSchemaValidator, $this->hydrator, $org, $groupId, $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): ExternalGroup { return $operation->createResponse($response); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php index 9868f7d6c94..fa247a2f6a3 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php @@ -55,7 +55,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Schema\ExternalGroup|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|ActionsEnterprisePermissions|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|iterable|WithoutBody|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|CopilotOrganizationDetails|OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|ExternalGroup|OrgHook|OrgMembership|Migration|OrganizationRole|RepositoryRuleset|GroupMapping|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Import|Installation|InteractionLimitResponse|One|Language|LicenseContent|Page|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|CodespacesUserPublicKey|CodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|EmptyObject { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php index cf229620cec..71b1c095c35 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php @@ -303,7 +303,7 @@ public function listForUser(array $params): iterable return $operator->call($arguments['username'], $arguments['direction'], $arguments['type'], $arguments['sort'], $arguments['per_page'], $arguments['page']); } - /** @return Observable */ + /** @return iterable */ public function getOrgRuleSuites(array $params): iterable { $arguments = []; @@ -1824,7 +1824,7 @@ public function getRelease(array $params): Release|WithoutBody return $operator->call($arguments['owner'], $arguments['repo'], $arguments['release_id']); } - /** @return Observable */ + /** @return iterable */ public function getRepoRuleSuites(array $params): iterable { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php index cdf09c07168..03a7df914de 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php @@ -83,7 +83,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): ActionsCacheUsageOrgEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|ActionsBillingUsage|AdvancedSecurityActiveCommitters|GetAllCostCenters|PackagesBillingUsage|CombinedBillingUsage|BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|WithoutBody|CodeSecurityConfiguration|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|ScimEnterpriseGroupList|ScimEnterpriseUserList|ScimUserList|TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Teams.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Teams.php index 13d2758fefa..67e300631c7 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Teams.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Teams.php @@ -299,7 +299,6 @@ public function listChildLegacy(array $params): iterable return $operator->call($arguments['team_id'], $arguments['per_page'], $arguments['page']); } - /** @return */ public function externalIdpGroupInfoForOrg(array $params): ExternalGroup { $arguments = []; @@ -315,9 +314,21 @@ public function externalIdpGroupInfoForOrg(array $params): ExternalGroup $arguments['group_id'] = $params['group_id']; unset($params['group_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); $operator = new Internal\Operator\Teams\ExternalIdpGroupInfoForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀ExternalGroup🌀GroupId()); - return $operator->call($arguments['org'], $arguments['group_id']); + return $operator->call($arguments['org'], $arguments['group_id'], $arguments['per_page'], $arguments['page']); } /** @return */ diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php index 386aefc3d36..8d97f82a3a6 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php @@ -16,7 +16,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|Schema\BasicError|WithoutBody|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php index bf86b4e5909..03f4959493b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php @@ -253,7 +253,7 @@ public function listForUserListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ + /** @return iterable */ public function getOrgRuleSuitesListing(array $params): iterable { $arguments = []; @@ -1267,7 +1267,7 @@ public function listPagesBuildsListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ + /** @return iterable */ public function getRepoRuleSuitesListing(array $params): iterable { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php index c6e21800e2d..d270888850b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Five.php index 2b3dccfd204..6139fbab3ee 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Five.php @@ -24,7 +24,7 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\OrganizationRole|Observable */ + /** @return |Observable */ public function call(string $call, array $params, array $pathChunks): GistComment|OrganizationCustomRepositoryRole|OrgHook|OrganizationRole|iterable|WithoutBody|TeamFull|ProjectCard|Import|TeamDiscussion|GroupMapping|OrgMembership { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Orgs.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Orgs.php index 342efb2c5fd..065f344c7b3 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Orgs.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Orgs.php @@ -125,6 +125,7 @@ public function updateWebhook(array $params): OrgHook return $operator->call($arguments['org'], $arguments['hook_id'], $params); } + /** @return */ public function patchCustomOrganizationRole(array $params): OrganizationRole { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Four.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Four.php index 2b25d661a6e..db222965ba3 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Four.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Four.php @@ -30,7 +30,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\OrganizationRole */ public function call(string $call, array $params, array $pathChunks): Integration|Authorization|GistComment|WithoutBody|BaseGist|OrganizationCustomRepositoryRole|OrgHook|OrganizationInvitation|Migration|OrganizationRole|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|Project|FullRepository|RepositoryRuleset|TeamFull|ProjectColumn|TeamDiscussion { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Orgs.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Orgs.php index 92515ea237b..ef326f5449f 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Orgs.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Orgs.php @@ -84,6 +84,7 @@ public function createInvitation(array $params): OrganizationInvitation return $operator->call($arguments['org'], $params); } + /** @return */ public function createCustomOrganizationRole(array $params): OrganizationRole { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Operation/Orgs.php b/clients/GitHubEnterpriseCloud/src/Operation/Orgs.php index b8f141565d8..599cedf240a 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Orgs.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Orgs.php @@ -355,6 +355,7 @@ public function listOrgRoles(string $org): \ApiClients\Client\GitHubEnterpriseCl return $this->operators->orgs👷ListOrgRoles()->call($org); } + /** @return */ public function createCustomOrganizationRole(string $org, array $params): OrganizationRole { return $this->operators->orgs👷CreateCustomOrganizationRole()->call($org, $params); @@ -408,6 +409,7 @@ public function deleteCustomOrganizationRole(string $org, int $roleId): WithoutB return $this->operators->orgs👷DeleteCustomOrganizationRole()->call($org, $roleId); } + /** @return */ public function patchCustomOrganizationRole(string $org, int $roleId, array $params): OrganizationRole { return $this->operators->orgs👷PatchCustomOrganizationRole()->call($org, $roleId, $params); diff --git a/clients/GitHubEnterpriseCloud/src/Operation/Repos.php b/clients/GitHubEnterpriseCloud/src/Operation/Repos.php index 1aea6d30de5..e4913185fbc 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Repos.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Repos.php @@ -107,13 +107,13 @@ public function createOrgRuleset(string $org, array $params): RepositoryRuleset return $this->operators->repos👷CreateOrgRuleset()->call($org, $params); } - /** @return Observable */ + /** @return iterable */ public function getOrgRuleSuites(string $org, string $ref, int $repositoryName, string $actorName, string $timePeriod, string $ruleSuiteResult, int $perPage, int $page): iterable { return $this->operators->repos👷GetOrgRuleSuites()->call($org, $ref, $repositoryName, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); } - /** @return Observable */ + /** @return iterable */ public function getOrgRuleSuitesListing(string $org, string $ref, int $repositoryName, string $actorName, string $timePeriod, string $ruleSuiteResult, int $perPage, int $page): iterable { return $this->operators->repos👷GetOrgRuleSuitesListing()->call($org, $ref, $repositoryName, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); @@ -1193,13 +1193,13 @@ public function createRepoRuleset(string $owner, string $repo, array $params): R return $this->operators->repos👷CreateRepoRuleset()->call($owner, $repo, $params); } - /** @return Observable */ + /** @return iterable */ public function getRepoRuleSuites(string $owner, string $repo, string $ref, string $actorName, string $timePeriod, string $ruleSuiteResult, int $perPage, int $page): iterable { return $this->operators->repos👷GetRepoRuleSuites()->call($owner, $repo, $ref, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); } - /** @return Observable */ + /** @return iterable */ public function getRepoRuleSuitesListing(string $owner, string $repo, string $ref, string $actorName, string $timePeriod, string $ruleSuiteResult, int $perPage, int $page): iterable { return $this->operators->repos👷GetRepoRuleSuitesListing()->call($owner, $repo, $ref, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Operation/Teams.php b/clients/GitHubEnterpriseCloud/src/Operation/Teams.php index 156267b938f..d326feb203e 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Teams.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Teams.php @@ -23,10 +23,9 @@ public function __construct(private Internal\Operators $operators) { } - /** @return */ - public function externalIdpGroupInfoForOrg(string $org, int $groupId): ExternalGroup + public function externalIdpGroupInfoForOrg(string $org, int $groupId, int $perPage, int $page): ExternalGroup { - return $this->operators->teams👷ExternalIdpGroupInfoForOrg()->call($org, $groupId); + return $this->operators->teams👷ExternalIdpGroupInfoForOrg()->call($org, $groupId, $perPage, $page); } /** @return */ diff --git a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index 38b7f34ca67..73d21f88869 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -1220,7 +1220,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/external-group/{group_id}') { - return $this->typeResolver->resolve(''); + return $this->typeResolver->resolve('Schema\\ExternalGroup'); } if ($call === 'GET /orgs/{org}/external-groups') { @@ -1432,7 +1432,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'POST /orgs/{org}/organization-roles') { - return $this->typeResolver->resolve('Schema\\OrganizationRole'); + return $this->typeResolver->resolve(''); } if ($call === 'DELETE /orgs/{org}/organization-roles/teams/{team_slug}') { @@ -1468,7 +1468,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'PATCH /orgs/{org}/organization-roles/{role_id}') { - return $this->typeResolver->resolve('Schema\\OrganizationRole'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /orgs/{org}/organization-roles/{role_id}/teams') { @@ -1684,11 +1684,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/rulesets/rule-suites') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'LIST /orgs/{org}/rulesets/rule-suites') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}') { @@ -3872,11 +3872,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/rulesets/rule-suites') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'LIST /repos/{owner}/{repo}/rulesets/rule-suites') { - return $this->typeResolver->resolve('Observable'); + return $this->typeResolver->resolve('iterable'); } if ($call === 'GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}') { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/MergeGroup.php b/clients/GitHubEnterpriseCloud/src/Schema/MergeGroup.php index ef65d10ca1d..b0a64e6b61b 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/MergeGroup.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/MergeGroup.php @@ -134,11 +134,10 @@ "description": "A commit." } }, - "description": "A group of pull requests that the merge queue has grouped together to be merged.\\n" + "description": "A group of pull requests that the merge queue has grouped together to be merged." }'; public const SCHEMA_TITLE = 'Merge Group'; - public const SCHEMA_DESCRIPTION = 'A group of pull requests that the merge queue has grouped together to be merged. -'; + public const SCHEMA_DESCRIPTION = 'A group of pull requests that the merge queue has grouped together to be merged.'; public const SCHEMA_EXAMPLE_DATA = '{ "head_sha": "generated", "head_ref": "generated", diff --git a/clients/GitHubEnterpriseCloud/src/Schema/OrgRulesetConditions.php b/clients/GitHubEnterpriseCloud/src/Schema/OrgRulesetConditions.php index 10697001d57..2ac2d735b9b 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/OrgRulesetConditions.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/OrgRulesetConditions.php @@ -248,11 +248,10 @@ "description": "Conditions to target repositories by property and refs by name" } ], - "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\\n" + "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties." }'; public const SCHEMA_TITLE = 'Organization ruleset conditions'; - public const SCHEMA_DESCRIPTION = 'Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties. -'; + public const SCHEMA_DESCRIPTION = 'Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.'; public const SCHEMA_EXAMPLE_DATA = '[]'; public function __construct() diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php index 0944585ad6d..93fcdca496b 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php @@ -55,7 +55,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.\\n" + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -66,7 +66,7 @@ "DeployKey" ], "type": "string", - "description": "The type of actor that can bypass a ruleset.\\n" + "description": "The type of actor that can bypass a ruleset." }, "bypass_mode": { "enum": [ @@ -74,7 +74,7 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type.\\n" + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." } }, "description": "An actor that can bypass rules in a ruleset" @@ -323,7 +323,7 @@ "description": "Conditions to target repositories by property and refs by name" } ], - "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\\n" + "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties." }, "rules": { "type": "array", @@ -1174,7 +1174,6 @@ * enforcement: The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. * bypassActors: The actors that can bypass the rules in this ruleset * conditions: Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties. - * rules: An array of rules within the ruleset. */ public function __construct(public string $name, public string|null $target, public string $enforcement, #[MapFrom('bypass_actors')] diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php index 9e1c3e4ee52..363d3bb7b8c 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php @@ -54,7 +54,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.\\n" + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -65,7 +65,7 @@ "DeployKey" ], "type": "string", - "description": "The type of actor that can bypass a ruleset.\\n" + "description": "The type of actor that can bypass a ruleset." }, "bypass_mode": { "enum": [ @@ -73,7 +73,7 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type.\\n" + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." } }, "description": "An actor that can bypass rules in a ruleset" diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateBranchProtection/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateBranchProtection/Request/ApplicationJson.php index 76ce5ba7b38..0cb39ea6978 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateBranchProtection/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateBranchProtection/Request/ApplicationJson.php @@ -37,7 +37,7 @@ "items": { "type": "string" }, - "description": "**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\\n", + "description": "**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.", "deprecated": true }, "checks": { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateBranchProtection/Request/ApplicationJson/RequiredStatusChecks.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateBranchProtection/Request/ApplicationJson/RequiredStatusChecks.php index f3c7c83335b..2d05b78cb88 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateBranchProtection/Request/ApplicationJson/RequiredStatusChecks.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateBranchProtection/Request/ApplicationJson/RequiredStatusChecks.php @@ -25,7 +25,7 @@ "items": { "type": "string" }, - "description": "**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\\n", + "description": "**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.", "deprecated": true }, "checks": { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php index 3c3d021ed68..512645ddd1f 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php @@ -50,7 +50,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.\\n" + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -61,7 +61,7 @@ "DeployKey" ], "type": "string", - "description": "The type of actor that can bypass a ruleset.\\n" + "description": "The type of actor that can bypass a ruleset." }, "bypass_mode": { "enum": [ @@ -69,7 +69,7 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type.\\n" + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." } }, "description": "An actor that can bypass rules in a ruleset" @@ -318,7 +318,7 @@ "description": "Conditions to target repositories by property and refs by name" } ], - "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\\n" + "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties." }, "rules": { "type": "array", @@ -1169,7 +1169,6 @@ * enforcement: The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page. * bypassActors: The actors that can bypass the rules in this ruleset * conditions: Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties. - * rules: An array of rules within the ruleset. */ public function __construct(public string|null $name, public string|null $target, public string|null $enforcement, #[MapFrom('bypass_actors')] diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php index c8128a82f02..6819500ad2a 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php @@ -49,7 +49,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.\\n" + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -60,7 +60,7 @@ "DeployKey" ], "type": "string", - "description": "The type of actor that can bypass a ruleset.\\n" + "description": "The type of actor that can bypass a ruleset." }, "bypass_mode": { "enum": [ @@ -68,7 +68,7 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type.\\n" + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." } }, "description": "An actor that can bypass rules in a ruleset" diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateStatusCheckProtection/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateStatusCheckProtection/Request/ApplicationJson.php index d4bd413426f..f94a3224354 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateStatusCheckProtection/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateStatusCheckProtection/Request/ApplicationJson.php @@ -18,7 +18,7 @@ "items": { "type": "string" }, - "description": "**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.\\n", + "description": "**Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control.", "deprecated": true }, "checks": { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php index 2bfb83be5d7..c248ff93e96 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php @@ -73,7 +73,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.\\n" + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -84,7 +84,7 @@ "DeployKey" ], "type": "string", - "description": "The type of actor that can bypass a ruleset.\\n" + "description": "The type of actor that can bypass a ruleset." }, "bypass_mode": { "enum": [ @@ -92,7 +92,7 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type.\\n" + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." } }, "description": "An actor that can bypass rules in a ruleset" @@ -408,7 +408,7 @@ "description": "Conditions to target repositories by property and refs by name" } ], - "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\\n" + "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties." } ] }, diff --git a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulesetBypassActor.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulesetBypassActor.php index a9d8b39a5ee..b70708b761f 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulesetBypassActor.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulesetBypassActor.php @@ -21,7 +21,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.\\n" + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -32,7 +32,7 @@ "DeployKey" ], "type": "string", - "description": "The type of actor that can bypass a ruleset.\\n" + "description": "The type of actor that can bypass a ruleset." }, "bypass_mode": { "enum": [ @@ -40,7 +40,7 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type.\\n" + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." } }, "description": "An actor that can bypass rules in a ruleset" diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookMergeGroupChecksRequested.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookMergeGroupChecksRequested.php index 8ec0e34cc05..5a70d490d3f 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookMergeGroupChecksRequested.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookMergeGroupChecksRequested.php @@ -172,7 +172,7 @@ "description": "A commit." } }, - "description": "A group of pull requests that the merge queue has grouped together to be merged.\\n" + "description": "A group of pull requests that the merge queue has grouped together to be merged." }, "organization": { "title": "Organization Simple", @@ -2263,7 +2263,6 @@ for and sent to a GitHub App. For more information, see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." * mergeGroup: A group of pull requests that the merge queue has grouped together to be merged. - * organization: A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an organization, or when the event occurs from activity in a repository owned by an organization. * repository: The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookMergeGroupDestroyed.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookMergeGroupDestroyed.php index 5aafa5a6d0d..8d431b6702a 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookMergeGroupDestroyed.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookMergeGroupDestroyed.php @@ -181,7 +181,7 @@ "description": "A commit." } }, - "description": "A group of pull requests that the merge queue has grouped together to be merged.\\n" + "description": "A group of pull requests that the merge queue has grouped together to be merged." }, "organization": { "title": "Organization Simple", @@ -2274,7 +2274,6 @@ for and sent to a GitHub App. For more information, see "[Using webhooks with GitHub Apps](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." * mergeGroup: A group of pull requests that the merge queue has grouped together to be merged. - * organization: A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an organization, or when the event occurs from activity in a repository owned by an organization. * repository: The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetCreated.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetCreated.php index ebbe3cddd44..ffc0726486e 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetCreated.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetCreated.php @@ -1778,7 +1778,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.\\n" + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -1789,7 +1789,7 @@ "DeployKey" ], "type": "string", - "description": "The type of actor that can bypass a ruleset.\\n" + "description": "The type of actor that can bypass a ruleset." }, "bypass_mode": { "enum": [ @@ -1797,7 +1797,7 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type.\\n" + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." } }, "description": "An actor that can bypass rules in a ruleset" @@ -2113,7 +2113,7 @@ "description": "Conditions to target repositories by property and refs by name" } ], - "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\\n" + "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties." } ] }, diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetDeleted.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetDeleted.php index 641751b0b24..f4780e8b53f 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetDeleted.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetDeleted.php @@ -1778,7 +1778,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.\\n" + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -1789,7 +1789,7 @@ "DeployKey" ], "type": "string", - "description": "The type of actor that can bypass a ruleset.\\n" + "description": "The type of actor that can bypass a ruleset." }, "bypass_mode": { "enum": [ @@ -1797,7 +1797,7 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type.\\n" + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." } }, "description": "An actor that can bypass rules in a ruleset" @@ -2113,7 +2113,7 @@ "description": "Conditions to target repositories by property and refs by name" } ], - "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\\n" + "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties." } ] }, diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited.php index 333b75747f4..a455346a17d 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited.php @@ -1778,7 +1778,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories.\\n" + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -1789,7 +1789,7 @@ "DeployKey" ], "type": "string", - "description": "The type of actor that can bypass a ruleset.\\n" + "description": "The type of actor that can bypass a ruleset." }, "bypass_mode": { "enum": [ @@ -1797,7 +1797,7 @@ "pull_request" ], "type": "string", - "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type.\\n" + "description": "When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type." } }, "description": "An actor that can bypass rules in a ruleset" @@ -2113,7 +2113,7 @@ "description": "Conditions to target repositories by property and refs by name" } ], - "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties.\\n" + "description": "Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties." } ] }, diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Teams/ExternalIdpGroupInfoForOrgTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Teams/ExternalIdpGroupInfoForOrgTest.php index ba5b2c158d5..69489db8189 100644 --- a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Teams/ExternalIdpGroupInfoForOrgTest.php +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Teams/ExternalIdpGroupInfoForOrgTest.php @@ -29,11 +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/external-group/8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/external-group/8?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\Teams\ExternalIdpGroupInfoForOrg::OPERATION_MATCH, (static function (array $data): array { $data['org'] = 'generated'; $data['group_id'] = 8; + $data['per_page'] = 8; + $data['page'] = 1; return $data; })([])); @@ -48,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/external-group/8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/orgs/generated/external-group/8?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()->externalIdpGroupInfoForOrg('generated', 8); + $result = $client->operations()->teams()->externalIdpGroupInfoForOrg('generated', 8, 8, 1); } } diff --git a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php index e8332a026db..7882bfb6723 100644 --- a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php @@ -311,7 +311,7 @@ function authHeader(): string assertType('Observable', $client->call('GET /orgs/{org}/docker/conflicts')); assertType('Observable', $client->call('GET /orgs/{org}/events')); assertType('Observable', $client->call('LIST /orgs/{org}/events')); -assertType('', $client->call('GET /orgs/{org}/external-group/{group_id}')); +assertType('Schema\\ExternalGroup', $client->call('GET /orgs/{org}/external-group/{group_id}')); assertType('', $client->call('GET /orgs/{org}/external-groups')); assertType('Observable', $client->call('GET /orgs/{org}/failed_invitations')); assertType('Observable', $client->call('LIST /orgs/{org}/failed_invitations')); @@ -364,7 +364,7 @@ function authHeader(): string assertType('Observable', $client->call('LIST /orgs/{org}/migrations/{migration_id}/repositories')); assertType('Observable', $client->call('GET /orgs/{org}/organization-fine-grained-permissions')); assertType('', $client->call('GET /orgs/{org}/organization-roles')); -assertType('Schema\\OrganizationRole', $client->call('POST /orgs/{org}/organization-roles')); +assertType('', $client->call('POST /orgs/{org}/organization-roles')); assertType('', $client->call('DELETE /orgs/{org}/organization-roles/teams/{team_slug}')); assertType('', $client->call('PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}')); assertType('', $client->call('DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}')); @@ -373,7 +373,7 @@ function authHeader(): string assertType('', $client->call('DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}')); assertType('', $client->call('GET /orgs/{org}/organization-roles/{role_id}')); assertType('', $client->call('DELETE /orgs/{org}/organization-roles/{role_id}')); -assertType('Schema\\OrganizationRole', $client->call('PATCH /orgs/{org}/organization-roles/{role_id}')); +assertType('', $client->call('PATCH /orgs/{org}/organization-roles/{role_id}')); assertType('Observable|WithoutBody', $client->call('GET /orgs/{org}/organization-roles/{role_id}/teams')); assertType('Observable|WithoutBody', $client->call('LIST /orgs/{org}/organization-roles/{role_id}/teams')); assertType('Observable|WithoutBody', $client->call('GET /orgs/{org}/organization-roles/{role_id}/users')); @@ -427,8 +427,8 @@ function authHeader(): string assertType('Observable', $client->call('GET /orgs/{org}/rulesets')); assertType('Observable', $client->call('LIST /orgs/{org}/rulesets')); assertType('', $client->call('POST /orgs/{org}/rulesets')); -assertType('Observable', $client->call('GET /orgs/{org}/rulesets/rule-suites')); -assertType('Observable', $client->call('LIST /orgs/{org}/rulesets/rule-suites')); +assertType('iterable', $client->call('GET /orgs/{org}/rulesets/rule-suites')); +assertType('iterable', $client->call('LIST /orgs/{org}/rulesets/rule-suites')); assertType('', $client->call('GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}')); assertType('', $client->call('GET /orgs/{org}/rulesets/{ruleset_id}')); assertType('', $client->call('PUT /orgs/{org}/rulesets/{ruleset_id}')); @@ -974,8 +974,8 @@ function authHeader(): string assertType('Observable', $client->call('GET /repos/{owner}/{repo}/rulesets')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/rulesets')); assertType('', $client->call('POST /repos/{owner}/{repo}/rulesets')); -assertType('Observable', $client->call('GET /repos/{owner}/{repo}/rulesets/rule-suites')); -assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/rulesets/rule-suites')); +assertType('iterable', $client->call('GET /repos/{owner}/{repo}/rulesets/rule-suites')); +assertType('iterable', $client->call('LIST /repos/{owner}/{repo}/rulesets/rule-suites')); assertType('', $client->call('GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}')); assertType('', $client->call('GET /repos/{owner}/{repo}/rulesets/{ruleset_id}')); assertType('', $client->call('PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}')); diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index 461769d2cf6..9afb381bcfa 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -11959,6 +11959,8 @@ paths: parameters: - "$ref": "#/components/parameters/org" - "$ref": "#/components/parameters/group-id" + - "$ref": "#/components/parameters/members-per-page" + - "$ref": "#/components/parameters/members-page" responses: '200': description: Response @@ -24070,7 +24072,7 @@ paths: have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained - control.\n" + control." items: type: string checks: @@ -24781,7 +24783,7 @@ paths: in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` - instead of `contexts` for more fine-grained control.\n" + instead of `contexts` for more fine-grained control." items: type: string checks: @@ -81393,12 +81395,10 @@ components: type: - integer - 'null' - description: 'The ID of the actor that can bypass a ruleset. If `actor_type` + description: The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories. - - ' actor_type: type: string enum: @@ -81407,16 +81407,12 @@ components: - RepositoryRole - Team - DeployKey - description: 'The type of actor that can bypass a ruleset. - - ' + description: The type of actor that can bypass a ruleset. bypass_mode: type: string - description: 'When the specified actor can bypass the ruleset. `pull_request` + description: When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. - - ' enum: - always - pull_request @@ -81531,11 +81527,9 @@ components: org-ruleset-conditions: title: Organization ruleset conditions type: object - description: 'Conditions for an organization ruleset. The conditions object - should contain both `repository_name` and `ref_name` properties or both `repository_id` + description: Conditions for an organization ruleset. The conditions object should + contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties. - - ' oneOf: - type: object title: repository_name_and_ref_name @@ -103937,10 +103931,8 @@ components: merge-group: type: object title: Merge Group - description: 'A group of pull requests that the merge queue has grouped together + description: A group of pull requests that the merge queue has grouped together to be merged. - - ' properties: head_sha: description: The SHA of the merge group. @@ -233002,6 +232994,22 @@ components: required: true schema: type: integer + members-per-page: + name: per_page + description: The number of results per page for the "members" array (max 100). + For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." + in: query + schema: + type: integer + default: 30 + members-page: + name: page + description: The page number of the "members" array results to fetch. For more + information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." + in: query + schema: + type: integer + default: 1 hook-id: name: hook_id description: The unique identifier of the hook. You can find this value in the @@ -233161,12 +233169,10 @@ components: type: string ref-in-query: name: ref - description: 'The name of the ref. Cannot contain wildcard characters. Optionally + description: The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. - - ' in: query schema: type: string