diff --git a/clients/GitHubEnterpriseCloud/README.md b/clients/GitHubEnterpriseCloud/README.md index 3ad96825dae..acf1a559822 100644 --- a/clients/GitHubEnterpriseCloud/README.md +++ b/clients/GitHubEnterpriseCloud/README.md @@ -2920,6 +2920,30 @@ $client->operations()->enterpriseAdmin()->createOrUpdateEnterpriseCustomProperti You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/custom-properties#create-or-update-custom-properties-for-an-enterprise). +### enterprise-admin/promote-custom-property-to-enterprise + +Promote a custom property to an enterprise + +Using the `call` method: +```php +$client->call('PUT /enterprises/{enterprise}/properties/schema/organizations/{org}/{custom_property_name}/promote', [ + 'enterprise' => 'generated', + 'org' => 'generated', + 'custom_property_name' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->enterpriseAdmin()->promoteCustomPropertyToEnterprise( enterprise: 'generated', + org: 'generated', + custom_property_name: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/custom-properties#promote-a-custom-property-to-an-enterprise). + + ### enterprise-admin/get-enterprise-custom-property Get a custom property for an enterprise @@ -6852,6 +6876,74 @@ $client->operations()->orgs()->listPushBypassRequestsListing( org: 'gener You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/orgs/bypass-requests#list-push-rule-bypass-requests-within-an-organization). +### secret-scanning/list-org-bypass-requests + +List bypass requests for secret scanning for an org + +Using the `call` method: +```php +$client->call('GET /orgs/{org}/bypass-requests/secret-scanning', [ + 'org' => 'generated', + 'repository_name' => 'generated', + 'reviewer' => 'generated', + 'requester' => 'generated', + 'time_period' => 'generated', + 'request_status' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->secretScanning()->listOrgBypassRequests( org: 'generated', + repository_name: 'generated', + reviewer: 'generated', + requester: 'generated', + time_period: 'generated', + request_status: 'generated', + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/delegated-bypass#list-bypass-requests-for-secret-scanning-for-an-org). + + +### secret-scanning/list-org-bypass-requests + +List bypass requests for secret scanning for an org + +Using the `call` method: +```php +$client->call('LIST /orgs/{org}/bypass-requests/secret-scanning', [ + 'org' => 'generated', + 'repository_name' => 'generated', + 'reviewer' => 'generated', + 'requester' => 'generated', + 'time_period' => 'generated', + 'request_status' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->secretScanning()->listOrgBypassRequestsListing( org: 'generated', + repository_name: 'generated', + reviewer: 'generated', + requester: 'generated', + time_period: 'generated', + request_status: 'generated', + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/delegated-bypass#list-bypass-requests-for-secret-scanning-for-an-org). + + ### code-scanning/list-alerts-for-org List code scanning alerts for an organization @@ -17451,6 +17543,146 @@ $client->operations()->repos()->getRepoPushBypassRequest( owner: 'generat You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/repos/bypass-requests#get-a-repository-push-bypass-request). +### secret-scanning/list-repo-bypass-requests + +List bypass requests for secret scanning for a repository + +Using the `call` method: +```php +$client->call('GET /repos/{owner}/{repo}/bypass-requests/secret-scanning', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'reviewer' => 'generated', + 'requester' => 'generated', + 'time_period' => 'generated', + 'request_status' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->secretScanning()->listRepoBypassRequests( owner: 'generated', + repo: 'generated', + reviewer: 'generated', + requester: 'generated', + time_period: 'generated', + request_status: 'generated', + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/delegated-bypass#list-bypass-requests-for-secret-scanning-for-a-repository). + + +### secret-scanning/list-repo-bypass-requests + +List bypass requests for secret scanning for a repository + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/bypass-requests/secret-scanning', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'reviewer' => 'generated', + 'requester' => 'generated', + 'time_period' => 'generated', + 'request_status' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->secretScanning()->listRepoBypassRequestsListing( owner: 'generated', + repo: 'generated', + reviewer: 'generated', + requester: 'generated', + time_period: 'generated', + request_status: 'generated', + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/delegated-bypass#list-bypass-requests-for-secret-scanning-for-a-repository). + + +### secret-scanning/get-bypass-request + +Get a bypass request for secret scanning + +Using the `call` method: +```php +$client->call('GET /repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'bypass_request_number' => 21, +]); +``` + +Operations method: +```php +$client->operations()->secretScanning()->getBypassRequest( owner: 'generated', + repo: 'generated', + bypass_request_number: 21, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/delegated-bypass#get-a-bypass-request-for-secret-scanning). + + +### secret-scanning/review-bypass-request + +Review a bypass request for secret scanning + +Using the `call` method: +```php +$client->call('PATCH /repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'bypass_request_number' => 21, +]); +``` + +Operations method: +```php +$client->operations()->secretScanning()->reviewBypassRequest( owner: 'generated', + repo: 'generated', + bypass_request_number: 21, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/delegated-bypass#review-a-bypass-request-for-secret-scanning). + + +### secret-scanning/dismiss-bypass-response + +Dismiss a response on a bypass request for secret scanning + +Using the `call` method: +```php +$client->call('DELETE /repos/{owner}/{repo}/bypass-responses/secret-scanning/{bypass_response_id}', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'bypass_response_id' => 18, +]); +``` + +Operations method: +```php +$client->operations()->secretScanning()->dismissBypassResponse( owner: 'generated', + repo: 'generated', + bypass_response_id: 18, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/delegated-bypass#dismiss-a-response-on-a-bypass-request-for-secret-scanning). + + ### checks/create Create a check run diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index 99db3299e88..6534b68ce71 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "16de2a81f1c35833bd49594dda36d269", + "specHash": "1af67ef4f45d37f00bce6c1060039205", "generatedFiles": { "files": [ { @@ -5852,11 +5852,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/ClientInterface.php", - "hash": "4196fa26958d45154b59aeb9bafa4e68" + "hash": "91dbcb7b186fb0d64950014d3e35ece4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Client.php", - "hash": "08bd2378a36b3085fd510b6c26c8ba26" + "hash": "1fe9d7bc0c0928aa03f27d8887473ed1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/OperationsInterface.php", @@ -5880,7 +5880,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php", - "hash": "dc666d3a4680b3db77348bac1f3f48ca" + "hash": "6ed144052db56aa4030e0bf848ad7bc0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Actions.php", @@ -5896,7 +5896,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/SecretScanning.php", - "hash": "94da37f210f9fc8d7220b2d7e525770e" + "hash": "826aff866b5b3625c97fa4eddf74842d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Dependabot.php", @@ -26020,7 +26020,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/SecretScanning.php", - "hash": "615f39c0e3b2fa9baabfed35ed5cd4d4" + "hash": "9c2375d1b4242d14c6c1a5b798b99beb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeScanning.php", @@ -26176,7 +26176,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/SecretScanning.php", - "hash": "817cd8ac9abdb62366c3b64a7e433e49" + "hash": "9e0ba2a72bc0a679200d90ff05b961bb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Activity.php", @@ -26308,7 +26308,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/SecretScanning.php", - "hash": "f8f5cbefa604d03ab66b4de6c29ebf09" + "hash": "c0ea3e041b88191d3bf7f42e0b4b7cf0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Pulls.php", @@ -26428,7 +26428,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/EnterpriseAdmin.php", - "hash": "69392866bdbb02704ec0d6cd7dbb47e6" + "hash": "fc05d56368fe4b22eb50cb3819e2d9bb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Activity.php", @@ -26524,15 +26524,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "57ded608e938cdcda68cb8126ece8b48" + "hash": "01029eec14dbf5f992691e37bb0bc252" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "8e265f765978087244e8b8f3f68ae7eb" + "hash": "bd01de3910854902b698c61ded0cffd0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "ca07d7e5a86fa605d932e47f47a1b0a3" + "hash": "70dccc4e0436b1e50c540c2ce5765777" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -26600,7 +26600,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Seven.php", - "hash": "59dba89340683e33ac181ad78eb7e5cd" + "hash": "b9209fb3918b2cf2615368e7a25b9e62" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Nine.php", @@ -26624,7 +26624,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "5a9cba86764db2425754ad3505d9db81" + "hash": "9af9c77d6c62409dd538900a60af589e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Two.php", @@ -26632,7 +26632,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", - "hash": "eee4c2d95e5aed7eb4be7baa820e2cd3" + "hash": "48d3bb19d412fab2f20e554fd603f069" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", @@ -26660,7 +26660,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Seven.php", - "hash": "35ce09795e55d9a834f086db8e055283" + "hash": "d70286ead86be6a8958cd6dd23440fc2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php", @@ -26708,7 +26708,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Nine.php", - "hash": "64c1e7e45c86f287311e3c4e72dcefc8" + "hash": "6ea25821acb4654e4d47cf95adec0a75" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Three.php", @@ -26728,11 +26728,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Routers.php", - "hash": "a3f35c06c5b0328f6b977333de6af3d3" + "hash": "21a358415816817132239e233adc4bff" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operators.php", - "hash": "80a37ae90f2de53bc4cccaab801206fa" + "hash": "25ef609cac26ea138b27e334b71b9c40" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php", @@ -28904,7 +28904,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "802223b2d9635be2a3d1491c44f2dbed" + "hash": "63c22e14da289dc9480ee3f0f46af70d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php", @@ -29700,11 +29700,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "4589549fec8bfd220ad15aa38611a81d" + "hash": "548ae229119e46a6d8ef1c82ed2809de" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "00d30ffff5201893a463ed144d33b0c3" + "hash": "1a567adcd878248c79c2885f3e1d6257" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -31912,11 +31912,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurityConfiguration.php", - "hash": "d3834691eab40bbf468deddf60f19ec0" + "hash": "d02cd8337bede20dbe0c446ae2b82408" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurityDefaultConfigurations.php", - "hash": "f5d2f608956c4dd82e36bc2bb9288e3b" + "hash": "1e968379b0aaf10af701797996cffc59" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurityConfigurationRepositories.php", @@ -31932,11 +31932,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/CreateConfiguration\/Request\/ApplicationJson.php", - "hash": "5805bbed36305ed043a92b643a9cf1af" + "hash": "da710ea2d92dcf74a1bc534426a20fde" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/UpdateConfiguration\/Request\/ApplicationJson.php", - "hash": "d38169313fd2c354c3aca120add87898" + "hash": "de243cc4611bfa991c822e4bd9f00056" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/AttachConfiguration\/Request\/ApplicationJson.php", @@ -31948,7 +31948,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/CodeSecurity\/SetConfigurationAsDefault\/Response\/ApplicationJson\/Ok.php", - "hash": "0ff5f85b912aab461e0e0d0a3acc1e54" + "hash": "dc77dbe9831ba86a24343eb6afe6ea97" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeSecurity.php", @@ -31976,7 +31976,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations.php", - "hash": "bbc74bea922d887f3932a091438d0786" + "hash": "77a22615833db58052aefae4ecb0f845" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/Defaults.php", @@ -31984,7 +31984,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId.php", - "hash": "3530ceba8934fca9a82d486e7baca78f" + "hash": "b9a8602b932f161f883037433167a5c2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId\/Attach.php", @@ -31992,7 +31992,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId\/Defaults.php", - "hash": "75f95c17961c72fc3156b36c4e28ea1c" + "hash": "1ae940d2057bbaf48954ecc064e3836c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId\/Repositories.php", @@ -32448,11 +32448,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurityConfigurationForRepository.php", - "hash": "ccc8b5812823d7c92e9d721d0551de3f" + "hash": "d72cac6096992ec42f30b00ed9a8fbf8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeSecurityConfiguration.php", - "hash": "26dfbba81c8d7186a1998c8381bd3878" + "hash": "1d3793d2df7ff70b6403d2ab4ad2033e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleViolationError.php", @@ -33124,7 +33124,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsRequiredReviewerConfiguration.php", - "hash": "023c7cca6d338366e9ae2b983f7eb13c" + "hash": "bc84c463a57bd144ddea3d4462de576f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DependencyGraphSpdxSbom\/Sbom\/Relationships.php", @@ -33944,15 +33944,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/PushRuleBypassRequest\/Repository.php", - "hash": "1da05fc6e47fb845b1ac173e0cebfe52" + "hash": "9f7199a58321e18b62aaa70881a16f9b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/PushRuleBypassRequest\/Organization.php", - "hash": "4d7dae671b44d319ba2546a1bd5a83d4" + "hash": "bf8ccf963a8848e593a0a072ae183d55" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/PushRuleBypassRequest\/Requester.php", - "hash": "0098264bf2a56c6cf95813695654141a" + "hash": "6c98bf8ca072e64014516f65987ac531" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/PushRuleBypassRequest\/Data.php", @@ -33986,25 +33986,21 @@ "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/SetConfigurationAsDefaultForEnterprise\/Request\/ApplicationJson.php", "hash": "e5943d59c1e72062478e134246d465c3" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet07CEC6F7\/Tiet1DE9A5A0\/Tiet17BD6D01\/Tiet0890CA07.php", - "hash": "07348a95943c2ac90c1fc9b959cf8908" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/CodeSecurity\/SetConfigurationAsDefault\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "524a906c01ad312e155194d4ec5cba59" + "hash": "10519e54b8873ecb50cf649d4eb138ba" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/CodeSecurity\/SetConfigurationAsDefaultForEnterprise\/Response\/ApplicationJson\/Ok.php", - "hash": "7b90cbbc89e8adfb62445984f4b58d7f" + "hash": "cc17c92d077b84b3fc1354a9ad048eb1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/CodeSecurity\/Configurations.php", - "hash": "e70be522b36a14381714f1ced947e87c" + "hash": "b3bfb59b617954235e2612a099260c0c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/CodeSecurity\/Configurations\/ConfigurationId.php", - "hash": "e87061f55498510dd10f277bf8f68267" + "hash": "c487b8725ec8daafacc0aaaa3109e40f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/CodeSecurity\/Configurations\/ConfigurationId\/Attach.php", @@ -34012,7 +34008,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/CodeSecurity\/Configurations\/ConfigurationId\/Defaults.php", - "hash": "85f5b148fa83433491745fa2af242083" + "hash": "fb53f2eebb8d047c017afa6fc16a2a3c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/CodeSecurity\/Configurations\/ConfigurationId\/Repositories.php", @@ -35057,6 +35053,174 @@ { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietCF22D054\/Tiet02EB2DC0\/Tiet6BB5072C\/Tiet3B86314A.php", "hash": "aa4e99cc47f789f858586329ecfca850" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/PromoteCustomPropertyToEnterprise.php", + "hash": "7a8269ed186bf1e54fbc9c1f247217f4" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/EnterpriseAdmin\/PromoteCustomPropertyToEnterprise.php", + "hash": "bc4bfbe2a5ac6ade089d90589ff5d40c" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/EnterpriseAdmin\/PromoteCustomPropertyToEnterpriseTest.php", + "hash": "876bf1effe3179accd5a2f21cafb8537" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/SecretScanning\/ListOrgBypassRequests.php", + "hash": "38737cb09c7c07ebc95ba0582312bb62" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/ListOrgBypassRequests.php", + "hash": "7f07fb444f892272476820d37d4006b7" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/ListOrgBypassRequestsTest.php", + "hash": "43c8dd40b21a63d79179e6567bdeb55d" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/SecretScanning\/ListOrgBypassRequestsListing.php", + "hash": "f18dba4872dc665769bb1abda05abb48" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/ListOrgBypassRequestsListing.php", + "hash": "c0b64fd0123658755ed8a27d542b62b2" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/ListOrgBypassRequestsListingTest.php", + "hash": "7722ae0ba871317d13068dbc2f34baf3" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/SecretScanning\/ListRepoBypassRequests.php", + "hash": "875903f46386dba3f3aca2070de58d9a" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/ListRepoBypassRequests.php", + "hash": "23f919e725eb83ca7ec0842acf5d3fd4" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/ListRepoBypassRequestsTest.php", + "hash": "481be712789dcbfa92adb9daee1f9149" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/SecretScanning\/ListRepoBypassRequestsListing.php", + "hash": "9d05f24528622893a0b8534404c122d9" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/ListRepoBypassRequestsListing.php", + "hash": "260b8da419a3724bf1dd53d9e16c8a27" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/ListRepoBypassRequestsListingTest.php", + "hash": "867f82ec8e95541b1f37b470794b3730" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/SecretScanning\/GetBypassRequest.php", + "hash": "b2eb9c070db48caf243ad19dd7a7a688" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/GetBypassRequest.php", + "hash": "b6a7181c646008537f813d9f3919f13d" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/GetBypassRequestTest.php", + "hash": "f2aebfa4efb1ac24dd789bf0e2a836b2" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/SecretScanning\/ReviewBypassRequest.php", + "hash": "3d7e2100b114effa9cee364be377df1e" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/ReviewBypassRequest.php", + "hash": "bab3cbc31884170453b98f69e9e3d061" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/ReviewBypassRequestTest.php", + "hash": "2db77813e7251a0ee5981dedadc7d621" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/SecretScanning\/DismissBypassResponse.php", + "hash": "9b071a64bfac3f67c08a6f75ca791198" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/DismissBypassResponse.php", + "hash": "60395275ad2ace906dabaf76bf2fb4ae" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/DismissBypassResponseTest.php", + "hash": "6072a14b1ab4b0156ca8f69c1efff8dc" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsReviewer.php", + "hash": "bd8eb9718065cbcaeddfdfccf27975e7" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanningBypassRequest.php", + "hash": "e09b3cdbaab2cbaf7192ed010dbd95ce" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietB20D2C80\/Tiet2DE1169B\/Tiet4694D409\/TietDCABFA89.php", + "hash": "0f24a028ab88da3de215839f96fa97d2" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanningBypassRequest\/Repository.php", + "hash": "fa8c9314ea1b42b9a1e7c8fbf2ec639f" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet54B8342E\/Tiet6542C1A7\/Tiet1E0DE8CE\/Tiet5CE8363F.php", + "hash": "5acc42d06649285bc5cc99f83a5071e6" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanningBypassRequest\/Organization.php", + "hash": "3c25ba1091a65700c29b8df297e4486c" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietB2955C7D\/Tiet01E6C402\/TietEBB569CC\/Tiet27AEBBCF.php", + "hash": "5ebd408fc35bd5baa9870d4e97398abd" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanningBypassRequest\/Requester.php", + "hash": "d1be694f0b23ce73186bf3b2ba23b21f" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanningBypassRequest\/Data.php", + "hash": "9293375ae4c46980112e3f79bcf5aa41" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet40F01C12\/Tiet17FC06A8\/Tiet7006072F\/TietBCEFF0FF.php", + "hash": "77151429321b7443d4a99d7f92550bfe" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanning\/ReviewBypassRequest\/Request\/ApplicationJson.php", + "hash": "6f094637aff2cc929934e29cfebad259" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/SecretScanning\/ReviewBypassRequest\/Response\/ApplicationJson\/Ok.php", + "hash": "ac86f930bc22abb48f6e6c1acea72517" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/SecretScanning.php", + "hash": "ccff4363aaef706fef686a9f1f69c00d" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Properties\/Schema\/Organizations\/Org\/CustomPropertyName\/Promote.php", + "hash": "df593a9c17f30848cc6a736dbede91c4" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/BypassRequests\/SecretScanning.php", + "hash": "466165c3479fe2e8206a93d7cd4ced59" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/BypassRequests\/SecretScanning.php", + "hash": "072d471fe97f1c2e379d07a35b0beaed" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/BypassRequests\/SecretScanning\/BypassRequestNumber.php", + "hash": "3ac62e3fd55d72baae2e46a30ce709f1" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/BypassResponses\/SecretScanning\/BypassResponseId.php", + "hash": "6f4b15c5247146fc43975d6c4761b037" } ] }, diff --git a/clients/GitHubEnterpriseCloud/src/Client.php b/clients/GitHubEnterpriseCloud/src/Client.php index c6dda7f4e53..37d2519542a 100644 --- a/clients/GitHubEnterpriseCloud/src/Client.php +++ b/clients/GitHubEnterpriseCloud/src/Client.php @@ -27,7 +27,7 @@ public function __construct(AuthenticationInterface $authentication, Browser $br } // phpcs:disable - public function call(string $call, array $params = []): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Root|iterable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\HookDelivery|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Installation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InstallationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Authorization|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ClassroomAssignment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Classroom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsEnterprisePermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SelectedActions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GenerateRunnerJitconfigForEnterprise\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuthenticationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Runner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AnnouncementBanner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuditLogStreamKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAuditLogStreamConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachEnterpriseConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefaultForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseSecurityAnalysisSettings|string|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\HostedCompute\ListNetworkConfigurationsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\NetworkConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\NetworkSettings|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CustomProperty|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RulesetVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAllCostCenters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\AddResourceToCostCenter\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\RemoveResourceFromCostCenter\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackagesBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Feed|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BaseGist|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitignoreTemplate|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\License|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MarketplacePurchase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Thread|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EmptyObject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsOrg|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRepoRoles\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroups|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgHook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InteractionLimitResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotSeatDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Migration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Package|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackageVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfigurationWithSelectedRepositories|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Project|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RuleSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupMapping|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussionComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Reaction|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamProject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectColumn|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RateLimitOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Artifact|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Job|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRunUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Workflow|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Autolink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchWithProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranch|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StatusCheckPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PushRuleBypassRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuitePreference|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofix|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofixCommitsResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Commit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedCommitStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommunityProfile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComparison|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentDirectory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentFile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSymlink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FileCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Deployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Environment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ShortBlob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Blob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitRef|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTag|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTree|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Import|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PorterAuthor|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueEvent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeployKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Label|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Language|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\EnableLfsForRepo\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MergedUpstream|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Page|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuildStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuild|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageDeployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesHealthCheck|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestMergeResult|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Release|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseAsset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseNotesContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Stargazer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ParticipationStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Status|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositorySubscription|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TagProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Topic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CloneTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ViewTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseGroupList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\UserResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PrivateUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PublicUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceExportDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Key|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SshSigningKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hovercard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StarredRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository + public function call(string $call, array $params = []): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Root|iterable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\HookDelivery|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Installation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InstallationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Authorization|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ClassroomAssignment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Classroom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsEnterprisePermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SelectedActions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GenerateRunnerJitconfigForEnterprise\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuthenticationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Runner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AnnouncementBanner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuditLogStreamKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAuditLogStreamConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachEnterpriseConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefaultForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseSecurityAnalysisSettings|string|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\HostedCompute\ListNetworkConfigurationsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\NetworkConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\NetworkSettings|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CustomProperty|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RulesetVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAllCostCenters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\AddResourceToCostCenter\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\RemoveResourceFromCostCenter\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackagesBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Feed|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BaseGist|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitignoreTemplate|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\License|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MarketplacePurchase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Thread|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EmptyObject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsOrg|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRepoRoles\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroups|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgHook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InteractionLimitResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotSeatDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Migration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Package|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackageVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfigurationWithSelectedRepositories|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Project|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RuleSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupMapping|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussionComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Reaction|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamProject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectColumn|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RateLimitOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Artifact|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Job|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRunUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Workflow|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Autolink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchWithProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranch|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StatusCheckPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PushRuleBypassRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecretScanning\ReviewBypassRequest\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuitePreference|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofix|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofixCommitsResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Commit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedCommitStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommunityProfile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComparison|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentDirectory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentFile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSymlink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FileCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Deployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Environment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ShortBlob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Blob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitRef|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTag|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTree|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Import|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PorterAuthor|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueEvent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeployKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Label|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Language|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\EnableLfsForRepo\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MergedUpstream|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Page|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuildStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuild|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageDeployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesHealthCheck|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestMergeResult|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Release|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseAsset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseNotesContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Stargazer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ParticipationStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Status|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositorySubscription|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TagProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Topic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CloneTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ViewTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseGroupList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\UserResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PrivateUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PublicUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceExportDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Key|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SshSigningKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hovercard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StarredRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository { [$method, $path] = explode(' ', $call); $pathChunks = explode('/', $path); @@ -337,6 +337,12 @@ public function call(string $call, array $params = []): \ApiClients\Client\GitHu } return $this->router[Internal\Router\Put\Eight::class]->call($call, $params, $pathChunks); + } elseif ($pathChunksCount === 9) { + if (\array_key_exists(Internal\Router\Put\Nine::class, $this->router) === false) { + $this->router[Internal\Router\Put\Nine::class] = new Internal\Router\Put\Nine(routers: $this->routers); + } + + return $this->router[Internal\Router\Put\Nine::class]->call($call, $params, $pathChunks); } elseif ($pathChunksCount === 4) { if (\array_key_exists(Internal\Router\Put\Four::class, $this->router) === false) { $this->router[Internal\Router\Put\Four::class] = new Internal\Router\Put\Four(routers: $this->routers); @@ -349,12 +355,6 @@ public function call(string $call, array $params = []): \ApiClients\Client\GitHu } return $this->router[Internal\Router\Put\Two::class]->call($call, $params, $pathChunks); - } elseif ($pathChunksCount === 9) { - if (\array_key_exists(Internal\Router\Put\Nine::class, $this->router) === false) { - $this->router[Internal\Router\Put\Nine::class] = new Internal\Router\Put\Nine(routers: $this->routers); - } - - return $this->router[Internal\Router\Put\Nine::class]->call($call, $params, $pathChunks); } elseif ($pathChunksCount === 3) { if (\array_key_exists(Internal\Router\Put\Three::class, $this->router) === false) { $this->router[Internal\Router\Put\Three::class] = new Internal\Router\Put\Three(routers: $this->routers); diff --git a/clients/GitHubEnterpriseCloud/src/ClientInterface.php b/clients/GitHubEnterpriseCloud/src/ClientInterface.php index b785777662f..2cffab3d833 100644 --- a/clients/GitHubEnterpriseCloud/src/ClientInterface.php +++ b/clients/GitHubEnterpriseCloud/src/ClientInterface.php @@ -7,7 +7,7 @@ interface ClientInterface { // phpcs:disable - public function call(string $call, array $params = []): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Root|iterable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\HookDelivery|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Installation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InstallationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Authorization|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ClassroomAssignment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Classroom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsEnterprisePermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SelectedActions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GenerateRunnerJitconfigForEnterprise\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuthenticationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Runner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AnnouncementBanner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuditLogStreamKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAuditLogStreamConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachEnterpriseConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefaultForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseSecurityAnalysisSettings|string|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\HostedCompute\ListNetworkConfigurationsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\NetworkConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\NetworkSettings|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CustomProperty|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RulesetVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAllCostCenters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\AddResourceToCostCenter\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\RemoveResourceFromCostCenter\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackagesBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Feed|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BaseGist|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitignoreTemplate|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\License|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MarketplacePurchase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Thread|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EmptyObject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsOrg|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRepoRoles\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroups|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgHook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InteractionLimitResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotSeatDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Migration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Package|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackageVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfigurationWithSelectedRepositories|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Project|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RuleSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupMapping|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussionComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Reaction|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamProject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectColumn|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RateLimitOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Artifact|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Job|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRunUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Workflow|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Autolink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchWithProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranch|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StatusCheckPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PushRuleBypassRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuitePreference|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofix|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofixCommitsResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Commit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedCommitStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommunityProfile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComparison|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentDirectory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentFile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSymlink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FileCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Deployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Environment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ShortBlob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Blob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitRef|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTag|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTree|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Import|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PorterAuthor|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueEvent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeployKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Label|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Language|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\EnableLfsForRepo\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MergedUpstream|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Page|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuildStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuild|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageDeployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesHealthCheck|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestMergeResult|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Release|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseAsset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseNotesContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Stargazer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ParticipationStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Status|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositorySubscription|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TagProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Topic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CloneTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ViewTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseGroupList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\UserResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PrivateUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PublicUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceExportDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Key|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SshSigningKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hovercard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StarredRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository; + public function call(string $call, array $params = []): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Root|iterable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\HookDelivery|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Installation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InstallationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Authorization|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ClassroomAssignment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Classroom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeOfConduct|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerLimits|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsEnterprisePermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SelectedActions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsEnterprise|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GenerateRunnerJitconfigForEnterprise\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuthenticationToken|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Runner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\RemoveAllCustomLabelsFromSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AnnouncementBanner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AuditLogStreamKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAuditLogStreamConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachEnterpriseConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefaultForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseSecurityAnalysisSettings|string|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\HostedCompute\ListNetworkConfigurationsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\NetworkConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\NetworkSettings|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CustomProperty|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryRuleset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RulesetVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\AdvancedSecurityActiveCommitters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GetAllCostCenters|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\AddResourceToCostCenter\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Billing\RemoveResourceFromCostCenter\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackagesBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedBillingUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Feed|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GistComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BaseGist|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitignoreTemplate|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\License|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MarketplacePurchase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Thread|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListHostedRunnersForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\EmptyObject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RunnerGroupsOrg|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListCustomRepoRoles\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ExternalGroups|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgHook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ApiInsightsSummaryStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\InteractionLimitResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CopilotSeatDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Migration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Package|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PackageVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\ListOrgPrivateRegistries\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfigurationWithSelectedRepositories|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Project|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RuleSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupMapping|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamFull|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussionComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Reaction|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamMembership|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamProject|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectColumn|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RateLimitOverview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Artifact|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Job|\ApiClients\Client\GitHubEnterpriseCloud\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowRunUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsVariable|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Workflow|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\WorkflowUsage|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Autolink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchWithProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranch|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StatusCheckPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PushRuleBypassRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecretScanning\ReviewBypassRequest\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRun|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuite|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckSuitePreference|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofix|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAutofixCommitsResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryInvitation|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Commit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CombinedCommitStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommunityProfile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CommitComparison|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentDirectory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentFile|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSymlink|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\FileCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Deployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Environment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ShortBlob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Blob|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitCommit|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitRef|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTag|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GitTree|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hook|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Import|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PorterAuthor|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueEvent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\DeployKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Label|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Language|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\EnableLfsForRepo\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MergedUpstream|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Page|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuildStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageBuild|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PageDeployment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PagesHealthCheck|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewComment|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestMergeResult|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestSimple|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReview|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Release|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseAsset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseNotesContent|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningAlert|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningScanHistory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Stargazer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ParticipationStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Status|\ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositorySubscription|\ApiClients\Client\GitHubEnterpriseCloud\Schema\TagProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Topic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CloneTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ViewTraffic|\ApiClients\Client\GitHubEnterpriseCloud\Schema\MinimalRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseGroupList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimEnterpriseUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\UserResponse|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUserList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PrivateUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\PublicUser|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceExportDetails|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\GpgKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Key|\ApiClients\Client\GitHubEnterpriseCloud\Schema\SshSigningKey|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Hovercard|\ApiClients\Client\GitHubEnterpriseCloud\Schema\StarredRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository; public function operations(): OperationsInterface; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/CodeSecurity/Configurations.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/CodeSecurity/Configurations.php index 5ba3ead1a25..dd1d0c7ef7c 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/CodeSecurity/Configurations.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/CodeSecurity/Configurations.php @@ -348,6 +348,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_delegated_alert_dismissal'] ?? null; + + if ($value === null) { + $properties['secretScanningDelegatedAlertDismissal'] = null; + goto after_secretScanningDelegatedAlertDismissal; + } + + $properties['secretScanningDelegatedAlertDismissal'] = $value; + + after_secretScanningDelegatedAlertDismissal: + $value = $payload['private_vulnerability_reporting'] ?? null; if ($value === null) { @@ -905,6 +916,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningDelegatedAlertDismissal = $object->secretScanningDelegatedAlertDismissal; + + if ($secretScanningDelegatedAlertDismissal === null) { + goto after_secretScanningDelegatedAlertDismissal; + } + + after_secretScanningDelegatedAlertDismissal: $result['secret_scanning_delegated_alert_dismissal'] = $secretScanningDelegatedAlertDismissal; + $privateVulnerabilityReporting = $object->privateVulnerabilityReporting; if ($privateVulnerabilityReporting === null) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/CodeSecurity/Configurations/ConfigurationId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/CodeSecurity/Configurations/ConfigurationId.php index e77b0984f3b..e88c8f5a5ba 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/CodeSecurity/Configurations/ConfigurationId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/CodeSecurity/Configurations/ConfigurationId.php @@ -285,6 +285,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_delegated_alert_dismissal'] ?? null; + + if ($value === null) { + $properties['secretScanningDelegatedAlertDismissal'] = null; + goto after_secretScanningDelegatedAlertDismissal; + } + + $properties['secretScanningDelegatedAlertDismissal'] = $value; + + after_secretScanningDelegatedAlertDismissal: + $value = $payload['private_vulnerability_reporting'] ?? null; if ($value === null) { @@ -865,6 +876,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningDelegatedAlertDismissal = $object->secretScanningDelegatedAlertDismissal; + + if ($secretScanningDelegatedAlertDismissal === null) { + goto after_secretScanningDelegatedAlertDismissal; + } + + after_secretScanningDelegatedAlertDismissal: $result['secret_scanning_delegated_alert_dismissal'] = $secretScanningDelegatedAlertDismissal; + $privateVulnerabilityReporting = $object->privateVulnerabilityReporting; if ($privateVulnerabilityReporting === null) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/CodeSecurity/Configurations/ConfigurationId/Defaults.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/CodeSecurity/Configurations/ConfigurationId/Defaults.php index f5cbc531a91..983f3e0bee0 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/CodeSecurity/Configurations/ConfigurationId/Defaults.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/CodeSecurity/Configurations/ConfigurationId/Defaults.php @@ -335,6 +335,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_delegated_alert_dismissal'] ?? null; + + if ($value === null) { + $properties['secretScanningDelegatedAlertDismissal'] = null; + goto after_secretScanningDelegatedAlertDismissal; + } + + $properties['secretScanningDelegatedAlertDismissal'] = $value; + + after_secretScanningDelegatedAlertDismissal: + $value = $payload['private_vulnerability_reporting'] ?? null; if ($value === null) { @@ -855,6 +866,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningDelegatedAlertDismissal = $object->secretScanningDelegatedAlertDismissal; + + if ($secretScanningDelegatedAlertDismissal === null) { + goto after_secretScanningDelegatedAlertDismissal; + } + + after_secretScanningDelegatedAlertDismissal: $result['secret_scanning_delegated_alert_dismissal'] = $secretScanningDelegatedAlertDismissal; + $privateVulnerabilityReporting = $object->privateVulnerabilityReporting; if ($privateVulnerabilityReporting === null) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Properties/Schema/Organizations/Org/CustomPropertyName/Promote.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Properties/Schema/Organizations/Org/CustomPropertyName/Promote.php new file mode 100644 index 00000000000..12ec00e5380 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Properties/Schema/Organizations/Org/CustomPropertyName/Promote.php @@ -0,0 +1,491 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CustomProperty' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CustomProperty($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CustomProperty(array $payload): CustomProperty + { + $properties = []; + $missingFields = []; + try { + $value = $payload['property_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'property_name'; + goto after_propertyName; + } + + $properties['propertyName'] = $value; + + after_propertyName: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['source_type'] ?? null; + + if ($value === null) { + $properties['sourceType'] = null; + goto after_sourceType; + } + + $properties['sourceType'] = $value; + + after_sourceType: + + $value = $payload['value_type'] ?? null; + + if ($value === null) { + $missingFields[] = 'value_type'; + goto after_valueType; + } + + $properties['valueType'] = $value; + + after_valueType: + + $value = $payload['required'] ?? null; + + if ($value === null) { + $properties['required'] = null; + goto after_required; + } + + $properties['required'] = $value; + + after_required: + + $value = $payload['default_value'] ?? null; + + if ($value === null) { + $properties['defaultValue'] = null; + goto after_defaultValue; + } + + $properties['defaultValue'] = $value; + + after_defaultValue: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['allowed_values'] ?? null; + + if ($value === null) { + $properties['allowedValues'] = null; + goto after_allowedValues; + } + + $properties['allowedValues'] = $value; + + after_allowedValues: + + $value = $payload['values_editable_by'] ?? null; + + if ($value === null) { + $properties['valuesEditableBy'] = null; + goto after_valuesEditableBy; + } + + $properties['valuesEditableBy'] = $value; + + after_valuesEditableBy: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\CustomProperty', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(CustomProperty::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new CustomProperty(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\CustomProperty', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(array $payload): BasicError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $properties['message'] = null; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $properties['documentationUrl'] = null; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $properties['status'] = null; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new BasicError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + } + + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array + { + foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { + if (is_a($object, $valueType)) { + return [$accessor => $payloadType] + $this->{$method}($object); + } + } + + throw new LogicException('No type mapped for object of class: ' . $object::class); + } + + public function serializeObject(object $object): mixed + { + return $this->serializeObjectOfType($object, $object::class); + } + + /** + * @param T $object + * @param class-string $className + * + * @template T + */ + public function serializeObjectOfType(object $object, string $className): mixed + { + try { + return match ($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CustomProperty' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CustomProperty($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), + default => throw new LogicException("No serialization defined for $className"), + }; + } catch (Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeArrayItems(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeUuidToString(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CustomProperty(mixed $object): mixed + { + assert($object instanceof CustomProperty); + $result = []; + + $propertyName = $object->propertyName; + after_propertyName: $result['property_name'] = $propertyName; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $sourceType = $object->sourceType; + + if ($sourceType === null) { + goto after_sourceType; + } + + after_sourceType: $result['source_type'] = $sourceType; + + $valueType = $object->valueType; + after_valueType: $result['value_type'] = $valueType; + + $required = $object->required; + + if ($required === null) { + goto after_required; + } + + after_required: $result['required'] = $required; + + $defaultValue = $object->defaultValue; + + if ($defaultValue === null) { + goto after_defaultValue; + } + + static $defaultValueSerializer10; + + if ($defaultValueSerializer10 === null) { + $defaultValueSerializer10 = new SerializeArrayItems(...[]); + } + + $defaultValue = $defaultValueSerializer10->serialize($defaultValue, $this); + after_defaultValue: $result['default_value'] = $defaultValue; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $allowedValues = $object->allowedValues; + + if ($allowedValues === null) { + goto after_allowedValues; + } + + static $allowedValuesSerializer0; + + if ($allowedValuesSerializer0 === null) { + $allowedValuesSerializer0 = new SerializeArrayItems(...[]); + } + + $allowedValues = $allowedValuesSerializer0->serialize($allowedValues, $this); + after_allowedValues: $result['allowed_values'] = $allowedValues; + + $valuesEditableBy = $object->valuesEditableBy; + + if ($valuesEditableBy === null) { + goto after_valuesEditableBy; + } + + after_valuesEditableBy: $result['values_editable_by'] = $valuesEditableBy; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(mixed $object): mixed + { + assert($object instanceof BasicError); + $result = []; + + $message = $object->message; + + if ($message === null) { + goto after_message; + } + + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + + if ($documentationUrl === null) { + goto after_documentationUrl; + } + + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToHydrateObject + * + * @template T + */ + public function hydrateObjects(string $className, iterable $payloads): IterableList + { + return new IterableList($this->doHydrateObjects($className, $payloads)); + } + + private function doHydrateObjects(string $className, iterable $payloads): Generator + { + foreach ($payloads as $index => $payload) { + yield $index => $this->hydrateObject($className, $payload); + } + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToSerializeObject + * + * @template T + */ + public function serializeObjects(iterable $payloads): IterableList + { + return new IterableList($this->doSerializeObjects($payloads)); + } + + private function doSerializeObjects(iterable $objects): Generator + { + foreach ($objects as $index => $object) { + yield $index => $this->serializeObject($object); + } + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/BypassRequests/SecretScanning.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/BypassRequests/SecretScanning.php new file mode 100644 index 00000000000..215ebb64b4f --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/BypassRequests/SecretScanning.php @@ -0,0 +1,286 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(array $payload): BasicError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $properties['message'] = null; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $properties['documentationUrl'] = null; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $properties['status'] = null; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new BasicError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + } + + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array + { + foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { + if (is_a($object, $valueType)) { + return [$accessor => $payloadType] + $this->{$method}($object); + } + } + + throw new LogicException('No type mapped for object of class: ' . $object::class); + } + + public function serializeObject(object $object): mixed + { + return $this->serializeObjectOfType($object, $object::class); + } + + /** + * @param T $object + * @param class-string $className + * + * @template T + */ + public function serializeObjectOfType(object $object, string $className): mixed + { + try { + return match ($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), + default => throw new LogicException("No serialization defined for $className"), + }; + } catch (Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeArrayItems(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeUuidToString(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(mixed $object): mixed + { + assert($object instanceof BasicError); + $result = []; + + $message = $object->message; + + if ($message === null) { + goto after_message; + } + + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + + if ($documentationUrl === null) { + goto after_documentationUrl; + } + + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToHydrateObject + * + * @template T + */ + public function hydrateObjects(string $className, iterable $payloads): IterableList + { + return new IterableList($this->doHydrateObjects($className, $payloads)); + } + + private function doHydrateObjects(string $className, iterable $payloads): Generator + { + foreach ($payloads as $index => $payload) { + yield $index => $this->hydrateObject($className, $payload); + } + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToSerializeObject + * + * @template T + */ + public function serializeObjects(iterable $payloads): IterableList + { + return new IterableList($this->doSerializeObjects($payloads)); + } + + private function doSerializeObjects(iterable $objects): Generator + { + foreach ($objects as $index => $object) { + yield $index => $this->serializeObject($object); + } + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations.php index c7783ba5c10..3f8201580be 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations.php @@ -346,6 +346,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_delegated_alert_dismissal'] ?? null; + + if ($value === null) { + $properties['secretScanningDelegatedAlertDismissal'] = null; + goto after_secretScanningDelegatedAlertDismissal; + } + + $properties['secretScanningDelegatedAlertDismissal'] = $value; + + after_secretScanningDelegatedAlertDismissal: + $value = $payload['private_vulnerability_reporting'] ?? null; if ($value === null) { @@ -817,6 +828,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningDelegatedAlertDismissal = $object->secretScanningDelegatedAlertDismissal; + + if ($secretScanningDelegatedAlertDismissal === null) { + goto after_secretScanningDelegatedAlertDismissal; + } + + after_secretScanningDelegatedAlertDismissal: $result['secret_scanning_delegated_alert_dismissal'] = $secretScanningDelegatedAlertDismissal; + $privateVulnerabilityReporting = $object->privateVulnerabilityReporting; if ($privateVulnerabilityReporting === null) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations/ConfigurationId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations/ConfigurationId.php index ee1ce472c37..a90953e728b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations/ConfigurationId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations/ConfigurationId.php @@ -285,6 +285,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_delegated_alert_dismissal'] ?? null; + + if ($value === null) { + $properties['secretScanningDelegatedAlertDismissal'] = null; + goto after_secretScanningDelegatedAlertDismissal; + } + + $properties['secretScanningDelegatedAlertDismissal'] = $value; + + after_secretScanningDelegatedAlertDismissal: + $value = $payload['private_vulnerability_reporting'] ?? null; if ($value === null) { @@ -865,6 +876,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningDelegatedAlertDismissal = $object->secretScanningDelegatedAlertDismissal; + + if ($secretScanningDelegatedAlertDismissal === null) { + goto after_secretScanningDelegatedAlertDismissal; + } + + after_secretScanningDelegatedAlertDismissal: $result['secret_scanning_delegated_alert_dismissal'] = $secretScanningDelegatedAlertDismissal; + $privateVulnerabilityReporting = $object->privateVulnerabilityReporting; if ($privateVulnerabilityReporting === null) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations/ConfigurationId/Defaults.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations/ConfigurationId/Defaults.php index 7791b425f4b..5d41e7eccac 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations/ConfigurationId/Defaults.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations/ConfigurationId/Defaults.php @@ -335,6 +335,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_delegated_alert_dismissal'] ?? null; + + if ($value === null) { + $properties['secretScanningDelegatedAlertDismissal'] = null; + goto after_secretScanningDelegatedAlertDismissal; + } + + $properties['secretScanningDelegatedAlertDismissal'] = $value; + + after_secretScanningDelegatedAlertDismissal: + $value = $payload['private_vulnerability_reporting'] ?? null; if ($value === null) { @@ -855,6 +866,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningDelegatedAlertDismissal = $object->secretScanningDelegatedAlertDismissal; + + if ($secretScanningDelegatedAlertDismissal === null) { + goto after_secretScanningDelegatedAlertDismissal; + } + + after_secretScanningDelegatedAlertDismissal: $result['secret_scanning_delegated_alert_dismissal'] = $secretScanningDelegatedAlertDismissal; + $privateVulnerabilityReporting = $object->privateVulnerabilityReporting; if ($privateVulnerabilityReporting === null) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/BypassRequests/SecretScanning.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/BypassRequests/SecretScanning.php new file mode 100644 index 00000000000..a782e2fbea1 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/BypassRequests/SecretScanning.php @@ -0,0 +1,286 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(array $payload): BasicError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $properties['message'] = null; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $properties['documentationUrl'] = null; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $properties['status'] = null; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new BasicError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + } + + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array + { + foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { + if (is_a($object, $valueType)) { + return [$accessor => $payloadType] + $this->{$method}($object); + } + } + + throw new LogicException('No type mapped for object of class: ' . $object::class); + } + + public function serializeObject(object $object): mixed + { + return $this->serializeObjectOfType($object, $object::class); + } + + /** + * @param T $object + * @param class-string $className + * + * @template T + */ + public function serializeObjectOfType(object $object, string $className): mixed + { + try { + return match ($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), + default => throw new LogicException("No serialization defined for $className"), + }; + } catch (Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeArrayItems(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeUuidToString(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(mixed $object): mixed + { + assert($object instanceof BasicError); + $result = []; + + $message = $object->message; + + if ($message === null) { + goto after_message; + } + + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + + if ($documentationUrl === null) { + goto after_documentationUrl; + } + + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToHydrateObject + * + * @template T + */ + public function hydrateObjects(string $className, iterable $payloads): IterableList + { + return new IterableList($this->doHydrateObjects($className, $payloads)); + } + + private function doHydrateObjects(string $className, iterable $payloads): Generator + { + foreach ($payloads as $index => $payload) { + yield $index => $this->hydrateObject($className, $payload); + } + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToSerializeObject + * + * @template T + */ + public function serializeObjects(iterable $payloads): IterableList + { + return new IterableList($this->doSerializeObjects($payloads)); + } + + private function doSerializeObjects(iterable $objects): Generator + { + foreach ($objects as $index => $object) { + yield $index => $this->serializeObject($object); + } + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/BypassRequests/SecretScanning/BypassRequestNumber.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/BypassRequests/SecretScanning/BypassRequestNumber.php new file mode 100644 index 00000000000..2fc804f3ae2 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/BypassRequests/SecretScanning/BypassRequestNumber.php @@ -0,0 +1,1003 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest\Repository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Repository($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest\Organization' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Organization($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest\Requester' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Requester($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecretScanning\ReviewBypassRequest\Response\ApplicationJson\Ok' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️SecretScanning⚡️ReviewBypassRequest⚡️Response⚡️ApplicationJson⚡️Ok($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest(array $payload): SecretScanningBypassRequest + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $properties['id'] = null; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $properties['number'] = null; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $properties['repository'] = null; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $properties['organization'] = null; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Organization($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['requester'] ?? null; + + if ($value === null) { + $properties['requester'] = null; + goto after_requester; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'requester'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Requester($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['requester'] = $value; + + after_requester: + + $value = $payload['request_type'] ?? null; + + if ($value === null) { + $properties['requestType'] = null; + goto after_requestType; + } + + $properties['requestType'] = $value; + + after_requestType: + + $value = $payload['data'] ?? null; + + if ($value === null) { + $properties['data'] = null; + goto after_data; + } + + $properties['data'] = $value; + + after_data: + + $value = $payload['resource_identifier'] ?? null; + + if ($value === null) { + $properties['resourceIdentifier'] = null; + goto after_resourceIdentifier; + } + + $properties['resourceIdentifier'] = $value; + + after_resourceIdentifier: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $properties['status'] = null; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + + $value = $payload['requester_comment'] ?? null; + + if ($value === null) { + $properties['requesterComment'] = null; + goto after_requesterComment; + } + + $properties['requesterComment'] = $value; + + after_requesterComment: + + $value = $payload['expires_at'] ?? null; + + if ($value === null) { + $properties['expiresAt'] = null; + goto after_expiresAt; + } + + $properties['expiresAt'] = $value; + + after_expiresAt: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['responses'] ?? null; + + if ($value === null) { + $properties['responses'] = null; + goto after_responses; + } + + $properties['responses'] = $value; + + after_responses: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $properties['htmlUrl'] = null; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningBypassRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningBypassRequest(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Repository(array $payload): Repository + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $properties['id'] = null; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $properties['name'] = null; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $properties['fullName'] = null; + goto after_fullName; + } + + $properties['fullName'] = $value; + + after_fullName: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Repository(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest\Repository', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Organization(array $payload): Organization + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $properties['id'] = null; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $properties['name'] = null; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest\Organization', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Organization::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Organization(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest\Organization', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Requester(array $payload): Requester + { + $properties = []; + $missingFields = []; + try { + $value = $payload['actor_id'] ?? null; + + if ($value === null) { + $properties['actorId'] = null; + goto after_actorId; + } + + $properties['actorId'] = $value; + + after_actorId: + + $value = $payload['actor_name'] ?? null; + + if ($value === null) { + $properties['actorName'] = null; + goto after_actorName; + } + + $properties['actorName'] = $value; + + after_actorName: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest\Requester', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Requester::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Requester(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest\Requester', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(array $payload): BasicError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $properties['message'] = null; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $properties['documentationUrl'] = null; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $properties['status'] = null; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new BasicError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️SecretScanning⚡️ReviewBypassRequest⚡️Response⚡️ApplicationJson⚡️Ok(array $payload): Ok + { + $properties = []; + $missingFields = []; + try { + $value = $payload['bypass_review_id'] ?? null; + + if ($value === null) { + $properties['bypassReviewId'] = null; + goto after_bypassReviewId; + } + + $properties['bypassReviewId'] = $value; + + after_bypassReviewId: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecretScanning\ReviewBypassRequest\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Ok::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Ok(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecretScanning\ReviewBypassRequest\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError(array $payload): ValidationError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $missingFields[] = 'message'; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'documentation_url'; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['errors'] ?? null; + + if ($value === null) { + $properties['errors'] = null; + goto after_errors; + } + + $properties['errors'] = $value; + + after_errors: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ValidationError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ValidationError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError', $exception, stack: $this->hydrationStack); + } + } + + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array + { + foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { + if (is_a($object, $valueType)) { + return [$accessor => $payloadType] + $this->{$method}($object); + } + } + + throw new LogicException('No type mapped for object of class: ' . $object::class); + } + + public function serializeObject(object $object): mixed + { + return $this->serializeObjectOfType($object, $object::class); + } + + /** + * @param T $object + * @param class-string $className + * + * @template T + */ + public function serializeObjectOfType(object $object, string $className): mixed + { + try { + return match ($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest\Repository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Repository($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest\Organization' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Organization($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest\Requester' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Requester($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecretScanning\ReviewBypassRequest\Response\ApplicationJson\Ok' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️SecretScanning⚡️ReviewBypassRequest⚡️Response⚡️ApplicationJson⚡️Ok($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($object), + default => throw new LogicException("No serialization defined for $className"), + }; + } catch (Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeArrayItems(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeUuidToString(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest(mixed $object): mixed + { + assert($object instanceof SecretScanningBypassRequest); + $result = []; + + $id = $object->id; + + if ($id === null) { + goto after_id; + } + + after_id: $result['id'] = $id; + + $number = $object->number; + + if ($number === null) { + goto after_number; + } + + after_number: $result['number'] = $number; + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + + $repository = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + + $organization = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Organization($organization); + after_organization: $result['organization'] = $organization; + + $requester = $object->requester; + + if ($requester === null) { + goto after_requester; + } + + $requester = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Requester($requester); + after_requester: $result['requester'] = $requester; + + $requestType = $object->requestType; + + if ($requestType === null) { + goto after_requestType; + } + + after_requestType: $result['request_type'] = $requestType; + + $data = $object->data; + + if ($data === null) { + goto after_data; + } + + static $dataSerializer0; + + if ($dataSerializer0 === null) { + $dataSerializer0 = new SerializeArrayItems(...[]); + } + + $data = $dataSerializer0->serialize($data, $this); + after_data: $result['data'] = $data; + + $resourceIdentifier = $object->resourceIdentifier; + + if ($resourceIdentifier === null) { + goto after_resourceIdentifier; + } + + after_resourceIdentifier: $result['resource_identifier'] = $resourceIdentifier; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + $requesterComment = $object->requesterComment; + + if ($requesterComment === null) { + goto after_requesterComment; + } + + after_requesterComment: $result['requester_comment'] = $requesterComment; + + $expiresAt = $object->expiresAt; + + if ($expiresAt === null) { + goto after_expiresAt; + } + + after_expiresAt: $result['expires_at'] = $expiresAt; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $responses = $object->responses; + + if ($responses === null) { + goto after_responses; + } + + static $responsesSerializer0; + + if ($responsesSerializer0 === null) { + $responsesSerializer0 = new SerializeArrayItems(...[]); + } + + $responses = $responsesSerializer0->serialize($responses, $this); + after_responses: $result['responses'] = $responses; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + + if ($htmlUrl === null) { + goto after_htmlUrl; + } + + after_htmlUrl: $result['html_url'] = $htmlUrl; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Repository(mixed $object): mixed + { + assert($object instanceof Repository); + $result = []; + + $id = $object->id; + + if ($id === null) { + goto after_id; + } + + after_id: $result['id'] = $id; + + $name = $object->name; + + if ($name === null) { + goto after_name; + } + + after_name: $result['name'] = $name; + + $fullName = $object->fullName; + + if ($fullName === null) { + goto after_fullName; + } + + after_fullName: $result['full_name'] = $fullName; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Organization(mixed $object): mixed + { + assert($object instanceof Organization); + $result = []; + + $id = $object->id; + + if ($id === null) { + goto after_id; + } + + after_id: $result['id'] = $id; + + $name = $object->name; + + if ($name === null) { + goto after_name; + } + + after_name: $result['name'] = $name; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecretScanningBypassRequest⚡️Requester(mixed $object): mixed + { + assert($object instanceof Requester); + $result = []; + + $actorId = $object->actorId; + + if ($actorId === null) { + goto after_actorId; + } + + after_actorId: $result['actor_id'] = $actorId; + + $actorName = $object->actorName; + + if ($actorName === null) { + goto after_actorName; + } + + after_actorName: $result['actor_name'] = $actorName; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(mixed $object): mixed + { + assert($object instanceof BasicError); + $result = []; + + $message = $object->message; + + if ($message === null) { + goto after_message; + } + + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + + if ($documentationUrl === null) { + goto after_documentationUrl; + } + + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️SecretScanning⚡️ReviewBypassRequest⚡️Response⚡️ApplicationJson⚡️Ok(mixed $object): mixed + { + assert($object instanceof Ok); + $result = []; + + $bypassReviewId = $object->bypassReviewId; + + if ($bypassReviewId === null) { + goto after_bypassReviewId; + } + + after_bypassReviewId: $result['bypass_review_id'] = $bypassReviewId; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError(mixed $object): mixed + { + assert($object instanceof ValidationError); + $result = []; + + $message = $object->message; + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $errors = $object->errors; + + if ($errors === null) { + goto after_errors; + } + + static $errorsSerializer0; + + if ($errorsSerializer0 === null) { + $errorsSerializer0 = new SerializeArrayItems(...[]); + } + + $errors = $errorsSerializer0->serialize($errors, $this); + after_errors: $result['errors'] = $errors; + + return $result; + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToHydrateObject + * + * @template T + */ + public function hydrateObjects(string $className, iterable $payloads): IterableList + { + return new IterableList($this->doHydrateObjects($className, $payloads)); + } + + private function doHydrateObjects(string $className, iterable $payloads): Generator + { + foreach ($payloads as $index => $payload) { + yield $index => $this->hydrateObject($className, $payload); + } + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToSerializeObject + * + * @template T + */ + public function serializeObjects(iterable $payloads): IterableList + { + return new IterableList($this->doSerializeObjects($payloads)); + } + + private function doSerializeObjects(iterable $objects): Generator + { + foreach ($objects as $index => $object) { + yield $index => $this->serializeObject($object); + } + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/BypassResponses/SecretScanning/BypassResponseId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/BypassResponses/SecretScanning/BypassResponseId.php new file mode 100644 index 00000000000..44181252798 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/BypassResponses/SecretScanning/BypassResponseId.php @@ -0,0 +1,370 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(array $payload): BasicError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $properties['message'] = null; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $properties['documentationUrl'] = null; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $properties['status'] = null; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new BasicError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError(array $payload): ValidationError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $missingFields[] = 'message'; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'documentation_url'; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['errors'] ?? null; + + if ($value === null) { + $properties['errors'] = null; + goto after_errors; + } + + $properties['errors'] = $value; + + after_errors: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ValidationError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ValidationError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError', $exception, stack: $this->hydrationStack); + } + } + + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array + { + foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { + if (is_a($object, $valueType)) { + return [$accessor => $payloadType] + $this->{$method}($object); + } + } + + throw new LogicException('No type mapped for object of class: ' . $object::class); + } + + public function serializeObject(object $object): mixed + { + return $this->serializeObjectOfType($object, $object::class); + } + + /** + * @param T $object + * @param class-string $className + * + * @template T + */ + public function serializeObjectOfType(object $object, string $className): mixed + { + try { + return match ($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($object), + default => throw new LogicException("No serialization defined for $className"), + }; + } catch (Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeArrayItems(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeUuidToString(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(mixed $object): mixed + { + assert($object instanceof BasicError); + $result = []; + + $message = $object->message; + + if ($message === null) { + goto after_message; + } + + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + + if ($documentationUrl === null) { + goto after_documentationUrl; + } + + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError(mixed $object): mixed + { + assert($object instanceof ValidationError); + $result = []; + + $message = $object->message; + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $errors = $object->errors; + + if ($errors === null) { + goto after_errors; + } + + static $errorsSerializer0; + + if ($errorsSerializer0 === null) { + $errorsSerializer0 = new SerializeArrayItems(...[]); + } + + $errors = $errorsSerializer0->serialize($errors, $this); + after_errors: $result['errors'] = $errors; + + return $result; + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToHydrateObject + * + * @template T + */ + public function hydrateObjects(string $className, iterable $payloads): IterableList + { + return new IterableList($this->doHydrateObjects($className, $payloads)); + } + + private function doHydrateObjects(string $className, iterable $payloads): Generator + { + foreach ($payloads as $index => $payload) { + yield $index => $this->hydrateObject($className, $payload); + } + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToSerializeObject + * + * @template T + */ + public function serializeObjects(iterable $payloads): IterableList + { + return new IterableList($this->doSerializeObjects($payloads)); + } + + private function doSerializeObjects(iterable $objects): Generator + { + foreach ($objects as $index => $object) { + yield $index => $this->serializeObject($object); + } + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeSecurityConfiguration.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeSecurityConfiguration.php index cfa350c5603..6f853f0389e 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeSecurityConfiguration.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeSecurityConfiguration.php @@ -334,6 +334,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_delegated_alert_dismissal'] ?? null; + + if ($value === null) { + $properties['secretScanningDelegatedAlertDismissal'] = null; + goto after_secretScanningDelegatedAlertDismissal; + } + + $properties['secretScanningDelegatedAlertDismissal'] = $value; + + after_secretScanningDelegatedAlertDismissal: + $value = $payload['private_vulnerability_reporting'] ?? null; if ($value === null) { @@ -854,6 +865,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningDelegatedAlertDismissal = $object->secretScanningDelegatedAlertDismissal; + + if ($secretScanningDelegatedAlertDismissal === null) { + goto after_secretScanningDelegatedAlertDismissal; + } + + after_secretScanningDelegatedAlertDismissal: $result['secret_scanning_delegated_alert_dismissal'] = $secretScanningDelegatedAlertDismissal; + $privateVulnerabilityReporting = $object->privateVulnerabilityReporting; if ($privateVulnerabilityReporting === null) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php index 49675035e4a..644a1f7eb70 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php @@ -91,6 +91,7 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Enterprises\Enterprise\NetworkConfigurations\NetworkConfigurationId|null $operation🌀Enterprises🌀Enterprise🌀NetworkConfigurations🌀NetworkConfigurationId = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\NetworkSettings\NetworkSettingsId|null $operation🌀Enterprises🌀Enterprise🌀NetworkSettings🌀NetworkSettingsId = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\Properties\Schema|null $operation🌀Enterprises🌀Enterprise🌀Properties🌀Schema = null; + private Internal\Hydrator\Operation\Enterprises\Enterprise\Properties\Schema\Organizations\Org\CustomPropertyName\Promote|null $operation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀Organizations🌀Org🌀CustomPropertyName🌀Promote = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\Properties\Schema\CustomPropertyName|null $operation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀CustomPropertyName = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\Rulesets|null $operation🌀Enterprises🌀Enterprise🌀Rulesets = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\Rulesets\RulesetId|null $operation🌀Enterprises🌀Enterprise🌀Rulesets🌀RulesetId = null; @@ -189,6 +190,7 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Orgs\Org\Blocks|null $operation🌀Orgs🌀Org🌀Blocks = null; private Internal\Hydrator\Operation\Orgs\Org\Blocks\Username|null $operation🌀Orgs🌀Org🌀Blocks🌀Username = null; private Internal\Hydrator\Operation\Orgs\Org\BypassRequests\PushRules|null $operation🌀Orgs🌀Org🌀BypassRequests🌀PushRules = null; + private Internal\Hydrator\Operation\Orgs\Org\BypassRequests\SecretScanning|null $operation🌀Orgs🌀Org🌀BypassRequests🌀SecretScanning = null; private Internal\Hydrator\Operation\Orgs\Org\CodeScanning\Alerts|null $operation🌀Orgs🌀Org🌀CodeScanning🌀Alerts = null; private Internal\Hydrator\Operation\Orgs\Org\CodeSecurity\Configurations|null $operation🌀Orgs🌀Org🌀CodeSecurity🌀Configurations = null; private Internal\Hydrator\Operation\Orgs\Org\CodeSecurity\Configurations\Defaults|null $operation🌀Orgs🌀Org🌀CodeSecurity🌀Configurations🌀Defaults = null; @@ -427,6 +429,9 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Repos\Owner\Repo\Branches\Branch\Rename|null $operation🌀Repos🌀Owner🌀Repo🌀Branches🌀Branch🌀Rename = null; private Internal\Hydrator\Operation\Repos\Owner\Repo\BypassRequests\PushRules|null $operation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀PushRules = null; private Internal\Hydrator\Operation\Repos\Owner\Repo\BypassRequests\PushRules\BypassRequestNumber|null $operation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀PushRules🌀BypassRequestNumber = null; + private Internal\Hydrator\Operation\Repos\Owner\Repo\BypassRequests\SecretScanning|null $operation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning = null; + private Internal\Hydrator\Operation\Repos\Owner\Repo\BypassRequests\SecretScanning\BypassRequestNumber|null $operation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning🌀BypassRequestNumber = null; + private Internal\Hydrator\Operation\Repos\Owner\Repo\BypassResponses\SecretScanning\BypassResponseId|null $operation🌀Repos🌀Owner🌀Repo🌀BypassResponses🌀SecretScanning🌀BypassResponseId = null; private Internal\Hydrator\Operation\Repos\Owner\Repo\CheckRuns|null $operation🌀Repos🌀Owner🌀Repo🌀CheckRuns = null; private Internal\Hydrator\Operation\Repos\Owner\Repo\CheckRuns\CheckRunId|null $operation🌀Repos🌀Owner🌀Repo🌀CheckRuns🌀CheckRunId = null; private Internal\Hydrator\Operation\Repos\Owner\Repo\CheckRuns\CheckRunId\Annotations|null $operation🌀Repos🌀Owner🌀Repo🌀CheckRuns🌀CheckRunId🌀Annotations = null; @@ -902,7 +907,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Copilot\\ListCopilotSeatsForEnterprise\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Billing🌀Seats()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\HostedCompute\\ListNetworkConfigurationsForEnterprise\\Response\\ApplicationJson\\Ok', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\NetworkConfiguration' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀NetworkConfigurations()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\NetworkSettings' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀NetworkSettings🌀NetworkSettingsId()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CustomProperty' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀CustomPropertyName()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CustomProperty' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀Organizations🌀Org🌀CustomPropertyName🌀Promote()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryRuleset', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryRuleset\\Links', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryRuleset\\Links\\Self_', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryRuleset\\Links\\Html' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Rulesets()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RulesetVersion', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RulesetVersion\\Actor' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Rulesets🌀RulesetId🌀History🌀VersionId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsBillingUsage', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsBillingUsage\\MinutesUsedBreakdown' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Settings🌀Billing🌀Actions()->hydrateObject($className, $payload), @@ -1044,6 +1049,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchWithProtection', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Commit', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Commit\\Commit', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GitUser', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Commit\\Commit\\Tree', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Verification', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Commit\\Stats', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchWithProtection\\Links', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranchRequiredStatusCheck', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranchAdminEnforced', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranchPullRequestReview', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranchPullRequestReview\\DismissalRestrictions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranchPullRequestReview\\BypassPullRequestAllowances', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchRestrictionPolicy', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\RequiredLinearHistory', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\AllowForcePushes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\AllowDeletions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\BlockCreations', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\RequiredConversationResolution', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\RequiredSignatures', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\LockBranch', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\AllowForkSyncing' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Branches🌀Branch()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\StatusCheckPolicy', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\RequiredPullRequestReviews', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\RequiredPullRequestReviews\\DismissalRestrictions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\RequiredPullRequestReviews\\BypassPullRequestAllowances', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\RequiredSignatures', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\EnforceAdmins', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\RequiredLinearHistory', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\AllowForcePushes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\AllowDeletions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\RequiredConversationResolution', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\BlockCreations', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\LockBranch', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\AllowForkSyncing' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Branches🌀Branch🌀Protection()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\PushRuleBypassRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\PushRuleBypassRequest\\Repository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\PushRuleBypassRequest\\Organization', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\PushRuleBypassRequest\\Requester' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀PushRules🌀BypassRequestNumber()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecretScanningBypassRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecretScanningBypassRequest\\Repository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecretScanningBypassRequest\\Organization', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecretScanningBypassRequest\\Requester', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\SecretScanning\\ReviewBypassRequest\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning🌀BypassRequestNumber()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckRun', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckRun\\Output', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckRun\\CheckSuite', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\DeploymentSimple' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CheckRuns()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckSuite' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CheckSuites()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckSuitePreference', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckSuitePreference\\Preferences' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CheckSuites🌀Preferences()->hydrateObject($className, $payload), @@ -1312,7 +1318,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Copilot\\ListCopilotSeatsForEnterprise\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Billing🌀Seats()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\HostedCompute\\ListNetworkConfigurationsForEnterprise\\Response\\ApplicationJson\\Ok', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\NetworkConfiguration' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀NetworkConfigurations()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\NetworkSettings' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀NetworkSettings🌀NetworkSettingsId()->serializeObject($object), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CustomProperty' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀CustomPropertyName()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CustomProperty' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀Organizations🌀Org🌀CustomPropertyName🌀Promote()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryRuleset', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryRuleset\\Links', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryRuleset\\Links\\Self_', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RepositoryRuleset\\Links\\Html' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Rulesets()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RulesetVersion', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\RulesetVersion\\Actor' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Rulesets🌀RulesetId🌀History🌀VersionId()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsBillingUsage', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ActionsBillingUsage\\MinutesUsedBreakdown' => $this->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Settings🌀Billing🌀Actions()->serializeObject($object), @@ -1454,6 +1460,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchWithProtection', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Commit', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Commit\\Commit', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\GitUser', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Commit\\Commit\\Tree', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Verification', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Commit\\Stats', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchWithProtection\\Links', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranchRequiredStatusCheck', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranchAdminEnforced', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranchPullRequestReview', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranchPullRequestReview\\DismissalRestrictions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranchPullRequestReview\\BypassPullRequestAllowances', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchRestrictionPolicy', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\RequiredLinearHistory', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\AllowForcePushes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\AllowDeletions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\BlockCreations', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\RequiredConversationResolution', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\RequiredSignatures', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\LockBranch', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\BranchProtection\\AllowForkSyncing' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Branches🌀Branch()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\StatusCheckPolicy', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\RequiredPullRequestReviews', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\RequiredPullRequestReviews\\DismissalRestrictions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\RequiredPullRequestReviews\\BypassPullRequestAllowances', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\RequiredSignatures', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\EnforceAdmins', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\RequiredLinearHistory', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\AllowForcePushes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\AllowDeletions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\RequiredConversationResolution', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\BlockCreations', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\LockBranch', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ProtectedBranch\\AllowForkSyncing' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Branches🌀Branch🌀Protection()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\PushRuleBypassRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\PushRuleBypassRequest\\Repository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\PushRuleBypassRequest\\Organization', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\PushRuleBypassRequest\\Requester' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀PushRules🌀BypassRequestNumber()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecretScanningBypassRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecretScanningBypassRequest\\Repository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecretScanningBypassRequest\\Organization', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecretScanningBypassRequest\\Requester', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\SecretScanning\\ReviewBypassRequest\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning🌀BypassRequestNumber()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckRun', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckRun\\Output', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckRun\\CheckSuite', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\DeploymentSimple' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CheckRuns()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckSuite' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CheckSuites()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckSuitePreference', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\CheckSuitePreference\\Preferences' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CheckSuites🌀Preferences()->serializeObject($object), @@ -2390,6 +2397,15 @@ public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Propert return $this->operation🌀Enterprises🌀Enterprise🌀Properties🌀Schema; } + public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀Organizations🌀Org🌀CustomPropertyName🌀Promote(): Internal\Hydrator\Operation\Enterprises\Enterprise\Properties\Schema\Organizations\Org\CustomPropertyName\Promote + { + if ($this->operation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀Organizations🌀Org🌀CustomPropertyName🌀Promote instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Properties\Schema\Organizations\Org\CustomPropertyName\Promote === false) { + $this->operation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀Organizations🌀Org🌀CustomPropertyName🌀Promote = new Internal\Hydrator\Operation\Enterprises\Enterprise\Properties\Schema\Organizations\Org\CustomPropertyName\Promote(); + } + + return $this->operation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀Organizations🌀Org🌀CustomPropertyName🌀Promote; + } + public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀CustomPropertyName(): Internal\Hydrator\Operation\Enterprises\Enterprise\Properties\Schema\CustomPropertyName { if ($this->operation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀CustomPropertyName instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Properties\Schema\CustomPropertyName === false) { @@ -3272,6 +3288,15 @@ public function getObjectMapperOperation🌀Orgs🌀Org🌀BypassRequests🌀Pus return $this->operation🌀Orgs🌀Org🌀BypassRequests🌀PushRules; } + public function getObjectMapperOperation🌀Orgs🌀Org🌀BypassRequests🌀SecretScanning(): Internal\Hydrator\Operation\Orgs\Org\BypassRequests\SecretScanning + { + if ($this->operation🌀Orgs🌀Org🌀BypassRequests🌀SecretScanning instanceof Internal\Hydrator\Operation\Orgs\Org\BypassRequests\SecretScanning === false) { + $this->operation🌀Orgs🌀Org🌀BypassRequests🌀SecretScanning = new Internal\Hydrator\Operation\Orgs\Org\BypassRequests\SecretScanning(); + } + + return $this->operation🌀Orgs🌀Org🌀BypassRequests🌀SecretScanning; + } + public function getObjectMapperOperation🌀Orgs🌀Org🌀CodeScanning🌀Alerts(): Internal\Hydrator\Operation\Orgs\Org\CodeScanning\Alerts { if ($this->operation🌀Orgs🌀Org🌀CodeScanning🌀Alerts instanceof Internal\Hydrator\Operation\Orgs\Org\CodeScanning\Alerts === false) { @@ -5414,6 +5439,33 @@ public function getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassRequ return $this->operation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀PushRules🌀BypassRequestNumber; } + public function getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning(): Internal\Hydrator\Operation\Repos\Owner\Repo\BypassRequests\SecretScanning + { + if ($this->operation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning instanceof Internal\Hydrator\Operation\Repos\Owner\Repo\BypassRequests\SecretScanning === false) { + $this->operation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning = new Internal\Hydrator\Operation\Repos\Owner\Repo\BypassRequests\SecretScanning(); + } + + return $this->operation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning; + } + + public function getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning🌀BypassRequestNumber(): Internal\Hydrator\Operation\Repos\Owner\Repo\BypassRequests\SecretScanning\BypassRequestNumber + { + if ($this->operation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning🌀BypassRequestNumber instanceof Internal\Hydrator\Operation\Repos\Owner\Repo\BypassRequests\SecretScanning\BypassRequestNumber === false) { + $this->operation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning🌀BypassRequestNumber = new Internal\Hydrator\Operation\Repos\Owner\Repo\BypassRequests\SecretScanning\BypassRequestNumber(); + } + + return $this->operation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning🌀BypassRequestNumber; + } + + public function getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassResponses🌀SecretScanning🌀BypassResponseId(): Internal\Hydrator\Operation\Repos\Owner\Repo\BypassResponses\SecretScanning\BypassResponseId + { + if ($this->operation🌀Repos🌀Owner🌀Repo🌀BypassResponses🌀SecretScanning🌀BypassResponseId instanceof Internal\Hydrator\Operation\Repos\Owner\Repo\BypassResponses\SecretScanning\BypassResponseId === false) { + $this->operation🌀Repos🌀Owner🌀Repo🌀BypassResponses🌀SecretScanning🌀BypassResponseId = new Internal\Hydrator\Operation\Repos\Owner\Repo\BypassResponses\SecretScanning\BypassResponseId(); + } + + return $this->operation🌀Repos🌀Owner🌀Repo🌀BypassResponses🌀SecretScanning🌀BypassResponseId; + } + public function getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CheckRuns(): Internal\Hydrator\Operation\Repos\Owner\Repo\CheckRuns { if ($this->operation🌀Repos🌀Owner🌀Repo🌀CheckRuns instanceof Internal\Hydrator\Operation\Repos\Owner\Repo\CheckRuns === false) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/EnterpriseAdmin/PromoteCustomPropertyToEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/EnterpriseAdmin/PromoteCustomPropertyToEnterprise.php new file mode 100644 index 00000000000..289bb3ee08d --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/EnterpriseAdmin/PromoteCustomPropertyToEnterprise.php @@ -0,0 +1,82 @@ +enterprise = $enterprise; + $this->org = $org; + $this->customPropertyName = $customPropertyName; + } + + public function createRequest(): RequestInterface + { + return new Request('PUT', str_replace(['{enterprise}', '{org}', '{custom_property_name}'], [$this->enterprise, $this->org, $this->customPropertyName], '/enterprises/{enterprise}/properties/schema/organizations/{org}/{custom_property_name}/promote')); + } + + public function createResponse(ResponseInterface $response): Schema\CustomProperty + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CustomProperty::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\CustomProperty::class, $body); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/DismissBypassResponse.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/DismissBypassResponse.php new file mode 100644 index 00000000000..49d931668ff --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/DismissBypassResponse.php @@ -0,0 +1,99 @@ +owner = $owner; + $this->repo = $repo; + $this->bypassResponseId = $bypassResponseId; + } + + public function createRequest(): RequestInterface + { + return new Request('DELETE', str_replace(['{owner}', '{repo}', '{bypass_response_id}'], [$this->owner, $this->repo, $this->bypassResponseId], '/repos/{owner}/{repo}/bypass-responses/secret-scanning/{bypass_response_id}')); + } + + public function createResponse(ResponseInterface $response): WithoutBody + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Resource not found + **/ + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + /** + * Internal Error + **/ + + case 500: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + switch ($code) { + /** + * Review was successfully dismissed. + **/ + case 204: + return new WithoutBody(204, []); + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/GetBypassRequest.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/GetBypassRequest.php new file mode 100644 index 00000000000..aee6f95ad3f --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/GetBypassRequest.php @@ -0,0 +1,90 @@ +owner = $owner; + $this->repo = $repo; + $this->bypassRequestNumber = $bypassRequestNumber; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{owner}', '{repo}', '{bypass_request_number}'], [$this->owner, $this->repo, $this->bypassRequestNumber], '/repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}')); + } + + public function createResponse(ResponseInterface $response): Schema\SecretScanningBypassRequest + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * A single bypass request. + **/ + case 200: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SecretScanningBypassRequest::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\SecretScanningBypassRequest::class, $body); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Internal Error + **/ + + case 500: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/ListOrgBypassRequests.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/ListOrgBypassRequests.php new file mode 100644 index 00000000000..b81a5924ae2 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/ListOrgBypassRequests.php @@ -0,0 +1,113 @@ +org = $org; + $this->repositoryName = $repositoryName; + $this->reviewer = $reviewer; + $this->requester = $requester; + $this->timePeriod = $timePeriod; + $this->requestStatus = $requestStatus; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{org}', '{repository_name}', '{reviewer}', '{requester}', '{time_period}', '{request_status}', '{per_page}', '{page}'], [$this->org, $this->repositoryName, $this->reviewer, $this->requester, $this->timePeriod, $this->requestStatus, $this->perPage, $this->page], '/orgs/{org}/bypass-requests/secret-scanning' . '?repository_name={repository_name}&reviewer={reviewer}&requester={requester}&time_period={time_period}&request_status={request_status}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SecretScanningBypassRequest { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SecretScanningBypassRequest::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SecretScanningBypassRequest::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Internal Error + **/ + + case 500: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/ListOrgBypassRequestsListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/ListOrgBypassRequestsListing.php new file mode 100644 index 00000000000..906996c0843 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/ListOrgBypassRequestsListing.php @@ -0,0 +1,113 @@ +org = $org; + $this->repositoryName = $repositoryName; + $this->reviewer = $reviewer; + $this->requester = $requester; + $this->timePeriod = $timePeriod; + $this->requestStatus = $requestStatus; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{org}', '{repository_name}', '{reviewer}', '{requester}', '{time_period}', '{request_status}', '{per_page}', '{page}'], [$this->org, $this->repositoryName, $this->reviewer, $this->requester, $this->timePeriod, $this->requestStatus, $this->perPage, $this->page], '/orgs/{org}/bypass-requests/secret-scanning' . '?repository_name={repository_name}&reviewer={reviewer}&requester={requester}&time_period={time_period}&request_status={request_status}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SecretScanningBypassRequest { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SecretScanningBypassRequest::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SecretScanningBypassRequest::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Internal Error + **/ + + case 500: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/ListRepoBypassRequests.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/ListRepoBypassRequests.php new file mode 100644 index 00000000000..4ec9ee882aa --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/ListRepoBypassRequests.php @@ -0,0 +1,121 @@ +owner = $owner; + $this->repo = $repo; + $this->reviewer = $reviewer; + $this->requester = $requester; + $this->timePeriod = $timePeriod; + $this->requestStatus = $requestStatus; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{owner}', '{repo}', '{reviewer}', '{requester}', '{time_period}', '{request_status}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->reviewer, $this->requester, $this->timePeriod, $this->requestStatus, $this->perPage, $this->page], '/repos/{owner}/{repo}/bypass-requests/secret-scanning' . '?reviewer={reviewer}&requester={requester}&time_period={time_period}&request_status={request_status}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * A list of the bypass requests. + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SecretScanningBypassRequest { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SecretScanningBypassRequest::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SecretScanningBypassRequest::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Internal Error + **/ + + case 500: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/ListRepoBypassRequestsListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/ListRepoBypassRequestsListing.php new file mode 100644 index 00000000000..76714f6715d --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/ListRepoBypassRequestsListing.php @@ -0,0 +1,121 @@ +owner = $owner; + $this->repo = $repo; + $this->reviewer = $reviewer; + $this->requester = $requester; + $this->timePeriod = $timePeriod; + $this->requestStatus = $requestStatus; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{owner}', '{repo}', '{reviewer}', '{requester}', '{time_period}', '{request_status}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->reviewer, $this->requester, $this->timePeriod, $this->requestStatus, $this->perPage, $this->page], '/repos/{owner}/{repo}/bypass-requests/secret-scanning' . '?reviewer={reviewer}&requester={requester}&time_period={time_period}&request_status={request_status}&per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * A list of the bypass requests. + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\SecretScanningBypassRequest { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\SecretScanningBypassRequest::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\SecretScanningBypassRequest::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Internal Error + **/ + + case 500: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/ReviewBypassRequest.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/ReviewBypassRequest.php new file mode 100644 index 00000000000..8caa98a69f8 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/SecretScanning/ReviewBypassRequest.php @@ -0,0 +1,101 @@ +owner = $owner; + $this->repo = $repo; + $this->bypassRequestNumber = $bypassRequestNumber; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('PATCH', str_replace(['{owner}', '{repo}', '{bypass_request_number}'], [$this->owner, $this->repo, $this->bypassRequestNumber], '/repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): Schema\Operations\SecretScanning\ReviewBypassRequest\Response\ApplicationJson\Ok + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * The review of the bypass request. + **/ + case 200: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\SecretScanning\ReviewBypassRequest\Response\ApplicationJson\Ok::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Operations\SecretScanning\ReviewBypassRequest\Response\ApplicationJson\Ok::class, $body); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + /** + * Internal Error + **/ + + case 500: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/EnterpriseAdmin/PromoteCustomPropertyToEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/EnterpriseAdmin/PromoteCustomPropertyToEnterprise.php new file mode 100644 index 00000000000..9a9a88d2538 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/EnterpriseAdmin/PromoteCustomPropertyToEnterprise.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $enterprise, $org, $customPropertyName); + $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): CustomProperty { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/DismissBypassResponse.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/DismissBypassResponse.php new file mode 100644 index 00000000000..45b2a2428af --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/DismissBypassResponse.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $owner, $repo, $bypassResponseId); + $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): WithoutBody { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/GetBypassRequest.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/GetBypassRequest.php new file mode 100644 index 00000000000..68e799f3efd --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/GetBypassRequest.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $owner, $repo, $bypassRequestNumber); + $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): SecretScanningBypassRequest { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/ListOrgBypassRequests.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/ListOrgBypassRequests.php new file mode 100644 index 00000000000..10607e4ecd7 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/ListOrgBypassRequests.php @@ -0,0 +1,41 @@ + */ + public function call(string $org, string $repositoryName, string $reviewer, string $requester, string $timePeriod = 'day', string $requestStatus = 'all', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\SecretScanning\ListOrgBypassRequests($this->responseSchemaValidator, $this->hydrator, $org, $repositoryName, $reviewer, $requester, $timePeriod, $requestStatus, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/ListOrgBypassRequestsListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/ListOrgBypassRequestsListing.php new file mode 100644 index 00000000000..d6267f85845 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/ListOrgBypassRequestsListing.php @@ -0,0 +1,41 @@ + */ + public function call(string $org, string $repositoryName, string $reviewer, string $requester, string $timePeriod = 'day', string $requestStatus = 'all', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\SecretScanning\ListOrgBypassRequestsListing($this->responseSchemaValidator, $this->hydrator, $org, $repositoryName, $reviewer, $requester, $timePeriod, $requestStatus, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/ListRepoBypassRequests.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/ListRepoBypassRequests.php new file mode 100644 index 00000000000..c63814cafa6 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/ListRepoBypassRequests.php @@ -0,0 +1,41 @@ + */ + public function call(string $owner, string $repo, string $reviewer, string $requester, string $timePeriod = 'day', string $requestStatus = 'all', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\SecretScanning\ListRepoBypassRequests($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $reviewer, $requester, $timePeriod, $requestStatus, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/ListRepoBypassRequestsListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/ListRepoBypassRequestsListing.php new file mode 100644 index 00000000000..b48c575ecac --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/ListRepoBypassRequestsListing.php @@ -0,0 +1,41 @@ + */ + public function call(string $owner, string $repo, string $reviewer, string $requester, string $timePeriod = 'day', string $requestStatus = 'all', int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\SecretScanning\ListRepoBypassRequestsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $reviewer, $requester, $timePeriod, $requestStatus, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/ReviewBypassRequest.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/ReviewBypassRequest.php new file mode 100644 index 00000000000..43cac7d304f --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/ReviewBypassRequest.php @@ -0,0 +1,40 @@ +requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $bypassRequestNumber); + $request = $operation->createRequest($params); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Ok { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operators.php b/clients/GitHubEnterpriseCloud/src/Internal/Operators.php index d196320a9d3..2e7d9ec3dce 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operators.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operators.php @@ -138,6 +138,7 @@ final class Operators private Internal\Operator\HostedCompute\GetNetworkSettingsForEnterprise|null $hostedCompute👷GetNetworkSettingsForEnterprise = null; private Internal\Operator\EnterpriseAdmin\GetEnterpriseCustomProperties|null $enterpriseAdmin👷GetEnterpriseCustomProperties = null; private Internal\Operator\EnterpriseAdmin\CreateOrUpdateEnterpriseCustomProperties|null $enterpriseAdmin👷CreateOrUpdateEnterpriseCustomProperties = null; + private Internal\Operator\EnterpriseAdmin\PromoteCustomPropertyToEnterprise|null $enterpriseAdmin👷PromoteCustomPropertyToEnterprise = null; private Internal\Operator\EnterpriseAdmin\GetEnterpriseCustomProperty|null $enterpriseAdmin👷GetEnterpriseCustomProperty = null; private Internal\Operator\EnterpriseAdmin\CreateOrUpdateEnterpriseCustomProperty|null $enterpriseAdmin👷CreateOrUpdateEnterpriseCustomProperty = null; private Internal\Operator\EnterpriseAdmin\RemoveEnterpriseCustomProperty|null $enterpriseAdmin👷RemoveEnterpriseCustomProperty = null; @@ -310,6 +311,8 @@ final class Operators private Internal\Operator\Orgs\UnblockUser|null $orgs👷UnblockUser = null; private Internal\Operator\Orgs\ListPushBypassRequests|null $orgs👷ListPushBypassRequests = null; private Internal\Operator\Orgs\ListPushBypassRequestsListing|null $orgs👷ListPushBypassRequestsListing = null; + private Internal\Operator\SecretScanning\ListOrgBypassRequests|null $secretScanning👷ListOrgBypassRequests = null; + private Internal\Operator\SecretScanning\ListOrgBypassRequestsListing|null $secretScanning👷ListOrgBypassRequestsListing = null; private Internal\Operator\CodeScanning\ListAlertsForOrg|null $codeScanning👷ListAlertsForOrg = null; private Internal\Operator\CodeScanning\ListAlertsForOrgListing|null $codeScanning👷ListAlertsForOrgListing = null; private Internal\Operator\CodeSecurity\GetConfigurationsForOrg|null $codeSecurity👷GetConfigurationsForOrg = null; @@ -740,6 +743,11 @@ final class Operators private Internal\Operator\Repos\ListRepoPushBypassRequests|null $repos👷ListRepoPushBypassRequests = null; private Internal\Operator\Repos\ListRepoPushBypassRequestsListing|null $repos👷ListRepoPushBypassRequestsListing = null; private Internal\Operator\Repos\GetRepoPushBypassRequest|null $repos👷GetRepoPushBypassRequest = null; + private Internal\Operator\SecretScanning\ListRepoBypassRequests|null $secretScanning👷ListRepoBypassRequests = null; + private Internal\Operator\SecretScanning\ListRepoBypassRequestsListing|null $secretScanning👷ListRepoBypassRequestsListing = null; + private Internal\Operator\SecretScanning\GetBypassRequest|null $secretScanning👷GetBypassRequest = null; + private Internal\Operator\SecretScanning\ReviewBypassRequest|null $secretScanning👷ReviewBypassRequest = null; + private Internal\Operator\SecretScanning\DismissBypassResponse|null $secretScanning👷DismissBypassResponse = null; private Internal\Operator\Checks\Create|null $checks👷Create = null; private Internal\Operator\Checks\Get|null $checks👷Get = null; private Internal\Operator\Checks\Update|null $checks👷Update = null; @@ -2522,6 +2530,15 @@ public function enterpriseAdmin👷CreateOrUpdateEnterpriseCustomProperties(): I return $this->enterpriseAdmin👷CreateOrUpdateEnterpriseCustomProperties; } + public function enterpriseAdmin👷PromoteCustomPropertyToEnterprise(): Internal\Operator\EnterpriseAdmin\PromoteCustomPropertyToEnterprise + { + if ($this->enterpriseAdmin👷PromoteCustomPropertyToEnterprise instanceof Internal\Operator\EnterpriseAdmin\PromoteCustomPropertyToEnterprise === false) { + $this->enterpriseAdmin👷PromoteCustomPropertyToEnterprise = new Internal\Operator\EnterpriseAdmin\PromoteCustomPropertyToEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀Organizations🌀Org🌀CustomPropertyName🌀Promote()); + } + + return $this->enterpriseAdmin👷PromoteCustomPropertyToEnterprise; + } + public function enterpriseAdmin👷GetEnterpriseCustomProperty(): Internal\Operator\EnterpriseAdmin\GetEnterpriseCustomProperty { if ($this->enterpriseAdmin👷GetEnterpriseCustomProperty instanceof Internal\Operator\EnterpriseAdmin\GetEnterpriseCustomProperty === false) { @@ -4070,6 +4087,24 @@ public function orgs👷ListPushBypassRequestsListing(): Internal\Operator\Orgs\ return $this->orgs👷ListPushBypassRequestsListing; } + public function secretScanning👷ListOrgBypassRequests(): Internal\Operator\SecretScanning\ListOrgBypassRequests + { + if ($this->secretScanning👷ListOrgBypassRequests instanceof Internal\Operator\SecretScanning\ListOrgBypassRequests === false) { + $this->secretScanning👷ListOrgBypassRequests = new Internal\Operator\SecretScanning\ListOrgBypassRequests($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀BypassRequests🌀SecretScanning()); + } + + return $this->secretScanning👷ListOrgBypassRequests; + } + + public function secretScanning👷ListOrgBypassRequestsListing(): Internal\Operator\SecretScanning\ListOrgBypassRequestsListing + { + if ($this->secretScanning👷ListOrgBypassRequestsListing instanceof Internal\Operator\SecretScanning\ListOrgBypassRequestsListing === false) { + $this->secretScanning👷ListOrgBypassRequestsListing = new Internal\Operator\SecretScanning\ListOrgBypassRequestsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀BypassRequests🌀SecretScanning()); + } + + return $this->secretScanning👷ListOrgBypassRequestsListing; + } + public function codeScanning👷ListAlertsForOrg(): Internal\Operator\CodeScanning\ListAlertsForOrg { if ($this->codeScanning👷ListAlertsForOrg instanceof Internal\Operator\CodeScanning\ListAlertsForOrg === false) { @@ -7940,6 +7975,51 @@ public function repos👷GetRepoPushBypassRequest(): Internal\Operator\Repos\Get return $this->repos👷GetRepoPushBypassRequest; } + public function secretScanning👷ListRepoBypassRequests(): Internal\Operator\SecretScanning\ListRepoBypassRequests + { + if ($this->secretScanning👷ListRepoBypassRequests instanceof Internal\Operator\SecretScanning\ListRepoBypassRequests === false) { + $this->secretScanning👷ListRepoBypassRequests = new Internal\Operator\SecretScanning\ListRepoBypassRequests($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning()); + } + + return $this->secretScanning👷ListRepoBypassRequests; + } + + public function secretScanning👷ListRepoBypassRequestsListing(): Internal\Operator\SecretScanning\ListRepoBypassRequestsListing + { + if ($this->secretScanning👷ListRepoBypassRequestsListing instanceof Internal\Operator\SecretScanning\ListRepoBypassRequestsListing === false) { + $this->secretScanning👷ListRepoBypassRequestsListing = new Internal\Operator\SecretScanning\ListRepoBypassRequestsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning()); + } + + return $this->secretScanning👷ListRepoBypassRequestsListing; + } + + public function secretScanning👷GetBypassRequest(): Internal\Operator\SecretScanning\GetBypassRequest + { + if ($this->secretScanning👷GetBypassRequest instanceof Internal\Operator\SecretScanning\GetBypassRequest === false) { + $this->secretScanning👷GetBypassRequest = new Internal\Operator\SecretScanning\GetBypassRequest($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning🌀BypassRequestNumber()); + } + + return $this->secretScanning👷GetBypassRequest; + } + + public function secretScanning👷ReviewBypassRequest(): Internal\Operator\SecretScanning\ReviewBypassRequest + { + if ($this->secretScanning👷ReviewBypassRequest instanceof Internal\Operator\SecretScanning\ReviewBypassRequest === false) { + $this->secretScanning👷ReviewBypassRequest = new Internal\Operator\SecretScanning\ReviewBypassRequest($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning🌀BypassRequestNumber()); + } + + return $this->secretScanning👷ReviewBypassRequest; + } + + public function secretScanning👷DismissBypassResponse(): Internal\Operator\SecretScanning\DismissBypassResponse + { + if ($this->secretScanning👷DismissBypassResponse instanceof Internal\Operator\SecretScanning\DismissBypassResponse === false) { + $this->secretScanning👷DismissBypassResponse = new Internal\Operator\SecretScanning\DismissBypassResponse($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassResponses🌀SecretScanning🌀BypassResponseId()); + } + + return $this->secretScanning👷DismissBypassResponse; + } + public function checks👷Create(): Internal\Operator\Checks\Create { if ($this->checks👷Create instanceof Internal\Operator\Checks\Create === false) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/SecretScanning.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/SecretScanning.php new file mode 100644 index 00000000000..261291edddb --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/SecretScanning.php @@ -0,0 +1,47 @@ +browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassResponses🌀SecretScanning🌀BypassResponseId()); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['bypass_response_id']); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Seven.php index 6dc7324eeda..69b9f6aaebd 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Seven.php @@ -19,6 +19,7 @@ public function __construct(private Routers $routers) { } + /** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */ public function call(string $call, array $params, array $pathChunks): WithoutBody|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|CodeScanningAnalysisDeletion|Issue|BasicError|PullRequestSimple { if ($pathChunks[0] === '') { @@ -165,6 +166,14 @@ public function call(string $call, array $params, array $pathChunks): WithoutBod } } } + } elseif ($pathChunks[4] === 'bypass-responses') { + if ($pathChunks[5] === 'secret-scanning') { + if ($pathChunks[6] === '{bypass_response_id}') { + if ($call === 'DELETE /repos/{owner}/{repo}/bypass-responses/secret-scanning/{bypass_response_id}') { + return $this->routers->internal🔀Router🔀Delete🔀SecretScanning()->dismissBypassResponse($params); + } + } + } } elseif ($pathChunks[4] === 'code-scanning') { if ($pathChunks[5] === 'analyses') { if ($pathChunks[6] === '{analysis_id}') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php index 7ea767e37c0..b98c84c8491 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php @@ -59,7 +59,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|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 */ + /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Schema\BasicError|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|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|Ok|ActionsEnterprisePermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|AuditLogStreamKey|iterable|WithoutBody|NetworkConfiguration|NetworkSettings|RepositoryRuleset|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|Json|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|CopilotOrganizationDetails|OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|ExternalGroup|OrgHook|OrgMembership|Migration|OrganizationRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok\Application\Json|GroupMapping|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Import|Installation|InteractionLimitResponse|One|Language|LicenseContent|Page|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|CodespacesUserPublicKey|CodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|EmptyObject { if ($pathChunks[0] === '') { @@ -262,6 +262,10 @@ public function call(string $call, array $params, array $pathChunks): HookDelive if ($call === 'GET /orgs/{org}/bypass-requests/push-rules') { return $this->routers->internal🔀Router🔀Get🔀Orgs()->listPushBypassRequests($params); } + } elseif ($pathChunks[4] === 'secret-scanning') { + if ($call === 'GET /orgs/{org}/bypass-requests/secret-scanning') { + return $this->routers->internal🔀Router🔀Get🔀SecretScanning()->listOrgBypassRequests($params); + } } } elseif ($pathChunks[3] === 'code-scanning') { if ($pathChunks[4] === 'alerts') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/SecretScanning.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/SecretScanning.php index 12908e81155..27171717d18 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/SecretScanning.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/SecretScanning.php @@ -8,6 +8,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; use ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseSecurityAnalysisSettings; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningAlert; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningScanHistory; use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface; use ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody; @@ -119,6 +120,63 @@ public function listAlertsForEnterprise(array $params): iterable return $operator->call($arguments['enterprise'], $arguments['state'], $arguments['secret_type'], $arguments['resolution'], $arguments['before'], $arguments['after'], $arguments['validity'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['is_publicly_leaked'], $arguments['is_multi_repo']); } + /** @return iterable */ + public function listOrgBypassRequests(array $params): iterable + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('repository_name', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repository_name'); + } + + $arguments['repository_name'] = $params['repository_name']; + unset($params['repository_name']); + if (array_key_exists('reviewer', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: reviewer'); + } + + $arguments['reviewer'] = $params['reviewer']; + unset($params['reviewer']); + if (array_key_exists('requester', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: requester'); + } + + $arguments['requester'] = $params['requester']; + unset($params['requester']); + if (array_key_exists('time_period', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: time_period'); + } + + $arguments['time_period'] = $params['time_period']; + unset($params['time_period']); + if (array_key_exists('request_status', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: request_status'); + } + + $arguments['request_status'] = $params['request_status']; + unset($params['request_status']); + 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\SecretScanning\ListOrgBypassRequests($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀BypassRequests🌀SecretScanning()); + + return $operator->call($arguments['org'], $arguments['repository_name'], $arguments['reviewer'], $arguments['requester'], $arguments['time_period'], $arguments['request_status'], $arguments['per_page'], $arguments['page']); + } + /** @return Observable */ public function listAlertsForOrg(array $params): iterable { @@ -206,6 +264,63 @@ public function listAlertsForOrg(array $params): iterable return $operator->call($arguments['org'], $arguments['state'], $arguments['secret_type'], $arguments['resolution'], $arguments['before'], $arguments['after'], $arguments['validity'], $arguments['sort'], $arguments['direction'], $arguments['page'], $arguments['per_page'], $arguments['is_publicly_leaked'], $arguments['is_multi_repo']); } + /** @return iterable */ + public function listRepoBypassRequests(array $params): iterable + { + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('reviewer', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: reviewer'); + } + + $arguments['reviewer'] = $params['reviewer']; + unset($params['reviewer']); + if (array_key_exists('requester', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: requester'); + } + + $arguments['requester'] = $params['requester']; + unset($params['requester']); + if (array_key_exists('time_period', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: time_period'); + } + + $arguments['time_period'] = $params['time_period']; + unset($params['time_period']); + if (array_key_exists('request_status', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: request_status'); + } + + $arguments['request_status'] = $params['request_status']; + unset($params['request_status']); + 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\SecretScanning\ListRepoBypassRequests($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning()); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['reviewer'], $arguments['requester'], $arguments['time_period'], $arguments['request_status'], $arguments['per_page'], $arguments['page']); + } + /** @return Observable|WithoutBody */ public function listAlertsForRepo(array $params): iterable|WithoutBody { @@ -320,6 +435,32 @@ public function getScanHistory(array $params): SecretScanningScanHistory|Without return $operator->call($arguments['owner'], $arguments['repo']); } + public function getBypassRequest(array $params): SecretScanningBypassRequest + { + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('bypass_request_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: bypass_request_number'); + } + + $arguments['bypass_request_number'] = $params['bypass_request_number']; + unset($params['bypass_request_number']); + $operator = new Internal\Operator\SecretScanning\GetBypassRequest($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning🌀BypassRequestNumber()); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['bypass_request_number']); + } + /** @return */ public function getAlert(array $params): SecretScanningAlert|WithoutBody { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php index 5a3ed5f892e..d3014313a25 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php @@ -51,6 +51,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\Runner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimUser; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningAlert; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SelectedActions; use ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussion; use ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamDiscussionComment; @@ -69,8 +70,8 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ - public function call(string $call, array $params, array $pathChunks): Ok|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|iterable|RulesetVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|TeamDiscussion|TeamMembership|TeamProject|GroupMapping|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|PushRuleBypassRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|Blob|GitCommit|GitRef|GitTag|GitTree|WebhookConfig|IssueComment|IssueEvent|PageBuild|PagesDeploymentStatus|PullRequestReviewComment|PullRequestReviewRequest|ReleaseAsset|Release|RuleSuite|SecretScanningAlert|GroupResponse|UserResponse|ScimUser|TeamDiscussionComment|PackageVersion + /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Schema\SecretScanningBypassRequest|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + public function call(string $call, array $params, array $pathChunks): Ok|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|iterable|RulesetVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|TeamDiscussion|TeamMembership|TeamProject|GroupMapping|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|PushRuleBypassRequest|SecretScanningBypassRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|Blob|GitCommit|GitRef|GitTag|GitTree|WebhookConfig|IssueComment|IssueEvent|PageBuild|PagesDeploymentStatus|PullRequestReviewComment|PullRequestReviewRequest|ReleaseAsset|Release|RuleSuite|SecretScanningAlert|GroupResponse|UserResponse|ScimUser|TeamDiscussionComment|PackageVersion { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'enterprises') { @@ -413,6 +414,12 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|\A return $this->routers->internal🔀Router🔀Get🔀Repos()->getRepoPushBypassRequest($params); } } + } elseif ($pathChunks[5] === 'secret-scanning') { + if ($pathChunks[6] === '{bypass_request_number}') { + if ($call === 'GET /repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}') { + return $this->routers->internal🔀Router🔀Get🔀SecretScanning()->getBypassRequest($params); + } + } } } elseif ($pathChunks[4] === 'check-runs') { if ($pathChunks[5] === '{check_run_id}') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php index 282cda757e7..f5e4da0ce2f 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php @@ -90,7 +90,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|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|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): ActionsCacheUsageOrgEnterprise|ActionsHostedRunnerLimits|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForEnterprise\Response\ApplicationJson\Ok|ActionsHostedRunner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelectedOrganizationsEnabledGithubActionsEnterprise\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|GetAuditLogStreamConfig|CodeSecurityConfiguration|WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|CustomProperty|ActionsBillingUsage|AdvancedSecurityActiveCommitters|GetAllCostCenters|PackagesBillingUsage|CombinedBillingUsage|BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ApiInsightsSummaryStats|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|CopilotSeatDetails|Package|RuleSuite|NetworkConfiguration|NetworkSettings|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|SecretScanningScanHistory|RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|ScimEnterpriseGroupList|ScimEnterpriseUserList|ScimUserList|TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { @@ -642,6 +642,10 @@ public function call(string $call, array $params, array $pathChunks): ActionsCac if ($call === 'GET /repos/{owner}/{repo}/bypass-requests/push-rules') { return $this->routers->internal🔀Router🔀Get🔀Repos()->listRepoPushBypassRequests($params); } + } elseif ($pathChunks[5] === 'secret-scanning') { + if ($call === 'GET /repos/{owner}/{repo}/bypass-requests/secret-scanning') { + return $this->routers->internal🔀Router🔀Get🔀SecretScanning()->listRepoBypassRequests($params); + } } } elseif ($pathChunks[4] === 'check-runs') { if ($pathChunks[5] === '{check_run_id}') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php index f5de7c9eef4..b9c20334b7e 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php @@ -16,7 +16,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|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|Observable|Observable|Schema\BasicError|WithoutBody|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): iterable|BasicError|WithoutBody { if ($pathChunks[0] === '') { @@ -73,6 +73,10 @@ public function call(string $call, array $params, array $pathChunks): iterable|B if ($call === 'LIST /orgs/{org}/bypass-requests/push-rules') { return $this->routers->internal🔀Router🔀List🔀Orgs()->listPushBypassRequestsListing($params); } + } elseif ($pathChunks[4] === 'secret-scanning') { + if ($call === 'LIST /orgs/{org}/bypass-requests/secret-scanning') { + return $this->routers->internal🔀Router🔀List🔀SecretScanning()->listOrgBypassRequestsListing($params); + } } } elseif ($pathChunks[3] === 'code-scanning') { if ($pathChunks[4] === 'alerts') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/SecretScanning.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/SecretScanning.php index 51929256cde..106ee1db6e3 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/SecretScanning.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/SecretScanning.php @@ -21,6 +21,69 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + /** @return iterable */ + public function listOrgBypassRequestsListing(array $params): iterable + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('repository_name', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repository_name'); + } + + $arguments['repository_name'] = $params['repository_name']; + unset($params['repository_name']); + if (array_key_exists('reviewer', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: reviewer'); + } + + $arguments['reviewer'] = $params['reviewer']; + unset($params['reviewer']); + if (array_key_exists('requester', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: requester'); + } + + $arguments['requester'] = $params['requester']; + unset($params['requester']); + if (array_key_exists('time_period', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: time_period'); + } + + $arguments['time_period'] = $params['time_period']; + unset($params['time_period']); + if (array_key_exists('request_status', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: request_status'); + } + + $arguments['request_status'] = $params['request_status']; + unset($params['request_status']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + $arguments['page'] = 1; + do { + $operator = new Internal\Operator\SecretScanning\ListOrgBypassRequestsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀BypassRequests🌀SecretScanning()); + $items = [...$operator->call($arguments['org'], $arguments['repository_name'], $arguments['reviewer'], $arguments['requester'], $arguments['time_period'], $arguments['request_status'], $arguments['per_page'], $arguments['page'])]; + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + /** @return Observable */ public function listAlertsForOrgListing(array $params): iterable { @@ -114,6 +177,69 @@ public function listAlertsForOrgListing(array $params): iterable } while (count($items) > 0); } + /** @return iterable */ + public function listRepoBypassRequestsListing(array $params): iterable + { + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('reviewer', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: reviewer'); + } + + $arguments['reviewer'] = $params['reviewer']; + unset($params['reviewer']); + if (array_key_exists('requester', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: requester'); + } + + $arguments['requester'] = $params['requester']; + unset($params['requester']); + if (array_key_exists('time_period', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: time_period'); + } + + $arguments['time_period'] = $params['time_period']; + unset($params['time_period']); + if (array_key_exists('request_status', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: request_status'); + } + + $arguments['request_status'] = $params['request_status']; + unset($params['request_status']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + $arguments['page'] = 1; + do { + $operator = new Internal\Operator\SecretScanning\ListRepoBypassRequestsListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['reviewer'], $arguments['requester'], $arguments['time_period'], $arguments['request_status'], $arguments['per_page'], $arguments['page'])]; + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + /** @return Observable|WithoutBody */ public function listAlertsForRepoListing(array $params): iterable|WithoutBody { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php index 385af30987b..ddac2b26cf2 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { @@ -143,6 +143,10 @@ public function call(string $call, array $params, array $pathChunks): iterable|W if ($call === 'LIST /repos/{owner}/{repo}/bypass-requests/push-rules') { return $this->routers->internal🔀Router🔀List🔀Repos()->listRepoPushBypassRequestsListing($params); } + } elseif ($pathChunks[5] === 'secret-scanning') { + if ($call === 'LIST /repos/{owner}/{repo}/bypass-requests/secret-scanning') { + return $this->routers->internal🔀Router🔀List🔀SecretScanning()->listRepoBypassRequestsListing($params); + } } } elseif ($pathChunks[4] === 'code-scanning') { if ($pathChunks[5] === 'alerts') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/SecretScanning.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/SecretScanning.php index 86745ca0202..7c2ce7bc39a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/SecretScanning.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/SecretScanning.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Router\Patch; use ApiClients\Client\GitHubEnterpriseCloud\Internal; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecretScanning\ReviewBypassRequest\Response\ApplicationJson\Ok; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningAlert; use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface; use ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody; @@ -35,6 +36,32 @@ public function patchSecurityAnalysisSettingsForEnterprise(array $params): Witho return $operator->call($arguments['enterprise'], $params); } + public function reviewBypassRequest(array $params): Ok + { + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('bypass_request_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: bypass_request_number'); + } + + $arguments['bypass_request_number'] = $params['bypass_request_number']; + unset($params['bypass_request_number']); + $operator = new Internal\Operator\SecretScanning\ReviewBypassRequest($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀BypassRequests🌀SecretScanning🌀BypassRequestNumber()); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['bypass_request_number'], $params); + } + /** @return */ public function updateAlert(array $params): SecretScanningAlert|WithoutBody { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Seven.php index da0917855e1..638018cc5c7 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Seven.php @@ -11,6 +11,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupMapping; use ApiClients\Client\GitHubEnterpriseCloud\Schema\GroupResponse; use ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueComment; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecretScanning\ReviewBypassRequest\Response\ApplicationJson\Ok; use ApiClients\Client\GitHubEnterpriseCloud\Schema\PorterAuthor; use ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReviewComment; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ReleaseAsset; @@ -29,7 +30,8 @@ public function __construct(private Routers $routers) { } - public function call(string $call, array $params, array $pathChunks): TeamDiscussion|GroupMapping|WithoutBody|CodeScanningAlert|DependabotAlert|GitRef|WebhookConfig|PorterAuthor|IssueComment|PullRequestReviewComment|ReleaseAsset|SecretScanningAlert|GroupResponse|UserResponse|ScimUser|TeamDiscussionComment + /** @return |Schema\Operations\SecretScanning\ReviewBypassRequest\Response\ApplicationJson\Ok */ + public function call(string $call, array $params, array $pathChunks): TeamDiscussion|GroupMapping|WithoutBody|Ok|CodeScanningAlert|DependabotAlert|GitRef|WebhookConfig|PorterAuthor|IssueComment|PullRequestReviewComment|ReleaseAsset|SecretScanningAlert|GroupResponse|UserResponse|ScimUser|TeamDiscussionComment { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'orgs') { @@ -63,6 +65,14 @@ public function call(string $call, array $params, array $pathChunks): TeamDiscus } } } + } elseif ($pathChunks[4] === 'bypass-requests') { + if ($pathChunks[5] === 'secret-scanning') { + if ($pathChunks[6] === '{bypass_request_number}') { + if ($call === 'PATCH /repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}') { + return $this->routers->internal🔀Router🔀Patch🔀SecretScanning()->reviewBypassRequest($params); + } + } + } } elseif ($pathChunks[4] === 'code-scanning') { if ($pathChunks[5] === 'alerts') { if ($pathChunks[6] === '{alert_number}') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/EnterpriseAdmin.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/EnterpriseAdmin.php index 3955f70742c..4aa92c67509 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/EnterpriseAdmin.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/EnterpriseAdmin.php @@ -290,4 +290,30 @@ public function addSelfHostedRunnerToGroupForEnterprise(array $params): WithoutB return $operator->call($arguments['enterprise'], $arguments['runner_group_id'], $arguments['runner_id']); } + + public function promoteCustomPropertyToEnterprise(array $params): CustomProperty + { + $arguments = []; + if (array_key_exists('enterprise', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: enterprise'); + } + + $arguments['enterprise'] = $params['enterprise']; + unset($params['enterprise']); + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('custom_property_name', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: custom_property_name'); + } + + $arguments['custom_property_name'] = $params['custom_property_name']; + unset($params['custom_property_name']); + $operator = new Internal\Operator\EnterpriseAdmin\PromoteCustomPropertyToEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Properties🌀Schema🌀Organizations🌀Org🌀CustomPropertyName🌀Promote()); + + return $operator->call($arguments['enterprise'], $arguments['org'], $arguments['custom_property_name']); + } } diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Nine.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Nine.php index b1e7d10a755..0d7d31dfdcd 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Nine.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Nine.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Router\Put; use ApiClients\Client\GitHubEnterpriseCloud\Internal\Routers; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\CustomProperty; use ApiClients\Client\GitHubEnterpriseCloud\Schema\PullRequestReview; use InvalidArgumentException; @@ -14,11 +15,29 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable| */ - public function call(string $call, array $params, array $pathChunks): iterable|PullRequestReview + /** @return Schema\CustomProperty|Observable|Observable|Observable|Observable| */ + public function call(string $call, array $params, array $pathChunks): CustomProperty|iterable|PullRequestReview { if ($pathChunks[0] === '') { - if ($pathChunks[1] === 'repos') { + if ($pathChunks[1] === 'enterprises') { + if ($pathChunks[2] === '{enterprise}') { + if ($pathChunks[3] === 'properties') { + if ($pathChunks[4] === 'schema') { + if ($pathChunks[5] === 'organizations') { + if ($pathChunks[6] === '{org}') { + if ($pathChunks[7] === '{custom_property_name}') { + if ($pathChunks[8] === 'promote') { + if ($call === 'PUT /enterprises/{enterprise}/properties/schema/organizations/{org}/{custom_property_name}/promote') { + return $this->routers->internal🔀Router🔀Put🔀EnterpriseAdmin()->promoteCustomPropertyToEnterprise($params); + } + } + } + } + } + } + } + } + } elseif ($pathChunks[1] === 'repos') { if ($pathChunks[2] === '{owner}') { if ($pathChunks[3] === '{repo}') { if ($pathChunks[4] === 'branches') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Routers.php b/clients/GitHubEnterpriseCloud/src/Internal/Routers.php index d4361232bd0..51dfcda9450 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Routers.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Routers.php @@ -148,6 +148,7 @@ final class Routers private Internal\Router\Delete\Copilot|null $internal🔀Router🔀Delete🔀Copilot = null; private Internal\Router\Delete\Dependabot|null $internal🔀Router🔀Delete🔀Dependabot = null; private Internal\Router\Delete\Issues|null $internal🔀Router🔀Delete🔀Issues = null; + private Internal\Router\Delete\SecretScanning|null $internal🔀Router🔀Delete🔀SecretScanning = null; private Internal\Router\Delete\CodeScanning|null $internal🔀Router🔀Delete🔀CodeScanning = null; private Internal\Router\Delete\Git|null $internal🔀Router🔀Delete🔀Git = null; private Internal\Router\Delete\Pulls|null $internal🔀Router🔀Delete🔀Pulls = null; @@ -1414,6 +1415,15 @@ public function internal🔀Router🔀Delete🔀Issues(): Internal\Router\Delete return $this->internal🔀Router🔀Delete🔀Issues; } + public function internal🔀Router🔀Delete🔀SecretScanning(): Internal\Router\Delete\SecretScanning + { + if ($this->internal🔀Router🔀Delete🔀SecretScanning instanceof Internal\Router\Delete\SecretScanning === false) { + $this->internal🔀Router🔀Delete🔀SecretScanning = new Internal\Router\Delete\SecretScanning(browser: $this->browser, authentication: $this->authentication, requestSchemaValidator: $this->requestSchemaValidator, responseSchemaValidator: $this->responseSchemaValidator, hydrators: $this->hydrators); + } + + return $this->internal🔀Router🔀Delete🔀SecretScanning; + } + public function internal🔀Router🔀Delete🔀CodeScanning(): Internal\Router\Delete\CodeScanning { if ($this->internal🔀Router🔀Delete🔀CodeScanning instanceof Internal\Router\Delete\CodeScanning === false) { diff --git a/clients/GitHubEnterpriseCloud/src/Operation/EnterpriseAdmin.php b/clients/GitHubEnterpriseCloud/src/Operation/EnterpriseAdmin.php index 367071852c8..ca055f9245e 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/EnterpriseAdmin.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/EnterpriseAdmin.php @@ -311,6 +311,11 @@ public function createOrUpdateEnterpriseCustomProperties(string $enterprise, arr return $this->operators->enterpriseAdmin👷CreateOrUpdateEnterpriseCustomProperties()->call($enterprise, $params); } + public function promoteCustomPropertyToEnterprise(string $enterprise, string $org, string $customPropertyName): CustomProperty + { + return $this->operators->enterpriseAdmin👷PromoteCustomPropertyToEnterprise()->call($enterprise, $org, $customPropertyName); + } + /** @return */ public function getEnterpriseCustomProperty(string $enterprise, string $customPropertyName): CustomProperty { diff --git a/clients/GitHubEnterpriseCloud/src/Operation/SecretScanning.php b/clients/GitHubEnterpriseCloud/src/Operation/SecretScanning.php index c1fb9c317fd..ced7c92d0f3 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/SecretScanning.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/SecretScanning.php @@ -7,7 +7,9 @@ use ApiClients\Client\GitHubEnterpriseCloud\Internal; use ApiClients\Client\GitHubEnterpriseCloud\Schema; use ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseSecurityAnalysisSettings; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecretScanning\ReviewBypassRequest\Response\ApplicationJson\Ok; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningAlert; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningBypassRequest; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningPushProtectionBypass; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningScanHistory; use ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody; @@ -42,6 +44,18 @@ public function postSecurityProductEnablementForEnterprise(string $enterprise, s return $this->operators->secretScanning👷PostSecurityProductEnablementForEnterprise()->call($enterprise, $securityProduct, $enablement); } + /** @return iterable */ + public function listOrgBypassRequests(string $org, string $repositoryName, string $reviewer, string $requester, string $timePeriod, string $requestStatus, int $perPage, int $page): iterable + { + return $this->operators->secretScanning👷ListOrgBypassRequests()->call($org, $repositoryName, $reviewer, $requester, $timePeriod, $requestStatus, $perPage, $page); + } + + /** @return iterable */ + public function listOrgBypassRequestsListing(string $org, string $repositoryName, string $reviewer, string $requester, string $timePeriod, string $requestStatus, int $perPage, int $page): iterable + { + return $this->operators->secretScanning👷ListOrgBypassRequestsListing()->call($org, $repositoryName, $reviewer, $requester, $timePeriod, $requestStatus, $perPage, $page); + } + /** @return Observable */ public function listAlertsForOrg(string $org, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort, string $direction, int $page, int $perPage, bool $isPubliclyLeaked, bool $isMultiRepo): iterable { @@ -54,6 +68,33 @@ public function listAlertsForOrgListing(string $org, string $state, string $secr return $this->operators->secretScanning👷ListAlertsForOrgListing()->call($org, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage, $isPubliclyLeaked, $isMultiRepo); } + /** @return iterable */ + public function listRepoBypassRequests(string $owner, string $repo, string $reviewer, string $requester, string $timePeriod, string $requestStatus, int $perPage, int $page): iterable + { + return $this->operators->secretScanning👷ListRepoBypassRequests()->call($owner, $repo, $reviewer, $requester, $timePeriod, $requestStatus, $perPage, $page); + } + + /** @return iterable */ + public function listRepoBypassRequestsListing(string $owner, string $repo, string $reviewer, string $requester, string $timePeriod, string $requestStatus, int $perPage, int $page): iterable + { + return $this->operators->secretScanning👷ListRepoBypassRequestsListing()->call($owner, $repo, $reviewer, $requester, $timePeriod, $requestStatus, $perPage, $page); + } + + public function getBypassRequest(string $owner, string $repo, int $bypassRequestNumber): SecretScanningBypassRequest + { + return $this->operators->secretScanning👷GetBypassRequest()->call($owner, $repo, $bypassRequestNumber); + } + + public function reviewBypassRequest(string $owner, string $repo, int $bypassRequestNumber, array $params): Ok + { + return $this->operators->secretScanning👷ReviewBypassRequest()->call($owner, $repo, $bypassRequestNumber, $params); + } + + public function dismissBypassResponse(string $owner, string $repo, int $bypassResponseId): WithoutBody + { + return $this->operators->secretScanning👷DismissBypassResponse()->call($owner, $repo, $bypassResponseId); + } + /** @return Observable|WithoutBody */ public function listAlertsForRepo(string $owner, string $repo, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort, string $direction, int $page, int $perPage, bool $isPubliclyLeaked, bool $isMultiRepo): iterable|WithoutBody { diff --git a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index 908abbf5fa9..5de29682b4e 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -551,6 +551,10 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve('Observable'); } + if ($call === 'PUT /enterprises/{enterprise}/properties/schema/organizations/{org}/{custom_property_name}/promote') { + return $this->typeResolver->resolve('Schema\\CustomProperty'); + } + if ($call === 'GET /enterprises/{enterprise}/properties/schema/{custom_property_name}') { return $this->typeResolver->resolve(''); } @@ -1239,6 +1243,14 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve('Observable'); } + if ($call === 'GET /orgs/{org}/bypass-requests/secret-scanning') { + return $this->typeResolver->resolve('iterable'); + } + + if ($call === 'LIST /orgs/{org}/bypass-requests/secret-scanning') { + return $this->typeResolver->resolve('iterable'); + } + if ($call === 'GET /orgs/{org}/code-scanning/alerts') { return $this->typeResolver->resolve('Observable'); } @@ -2959,6 +2971,26 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve(''); } + if ($call === 'GET /repos/{owner}/{repo}/bypass-requests/secret-scanning') { + return $this->typeResolver->resolve('iterable'); + } + + if ($call === 'LIST /repos/{owner}/{repo}/bypass-requests/secret-scanning') { + return $this->typeResolver->resolve('iterable'); + } + + if ($call === 'GET /repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}') { + return $this->typeResolver->resolve('Schema\\SecretScanningBypassRequest'); + } + + if ($call === 'PATCH /repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}') { + return $this->typeResolver->resolve('Schema\\Operations\\SecretScanning\\ReviewBypassRequest\\Response\\ApplicationJson\\Ok'); + } + + if ($call === 'DELETE /repos/{owner}/{repo}/bypass-responses/secret-scanning/{bypass_response_id}') { + return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + } + if ($call === 'POST /repos/{owner}/{repo}/check-runs') { return $this->typeResolver->resolve(''); } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet07CEC6F7/Tiet1DE9A5A0/Tiet17BD6D01/Tiet0890CA07.php b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet40F01C12/Tiet17FC06A8/Tiet7006072F/TietBCEFF0FF.php similarity index 95% rename from clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet07CEC6F7/Tiet1DE9A5A0/Tiet17BD6D01/Tiet0890CA07.php rename to clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet40F01C12/Tiet17FC06A8/Tiet7006072F/TietBCEFF0FF.php index 1452ec096b4..35801e82014 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet07CEC6F7/Tiet1DE9A5A0/Tiet17BD6D01/Tiet0890CA07.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet40F01C12/Tiet17FC06A8/Tiet7006072F/TietBCEFF0FF.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\Tiet07CEC6F7\Tiet1DE9A5A0\Tiet17BD6D01; +namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\Tiet40F01C12\Tiet17FC06A8\Tiet7006072F; use ApiClients\Client\GitHubEnterpriseCloud\Schema; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class Tiet0890CA07 +abstract readonly class TietBCEFF0FF { public const SCHEMA_JSON = '{ "type": "object", @@ -214,6 +214,15 @@ "type": "string", "description": "The enablement status of secret scanning non-provider patterns" }, + "secret_scanning_delegated_alert_dismissal": { + "enum": [ + "enabled", + "disabled", + "not_set" + ], + "type": "string", + "description": "The enablement status of secret scanning delegated alert dismissal" + }, "private_vulnerability_reporting": { "enum": [ "enabled", @@ -293,6 +302,7 @@ }, "secret_scanning_validity_checks": "enabled", "secret_scanning_non_provider_patterns": "enabled", + "secret_scanning_delegated_alert_dismissal": "enabled", "private_vulnerability_reporting": "enabled", "enforcement": "enforced", "url": "https:\\/\\/example.com\\/", diff --git a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet54B8342E/Tiet6542C1A7/Tiet1E0DE8CE/Tiet5CE8363F.php b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet54B8342E/Tiet6542C1A7/Tiet1E0DE8CE/Tiet5CE8363F.php new file mode 100644 index 00000000000..20cf44f373f --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet54B8342E/Tiet6542C1A7/Tiet1E0DE8CE/Tiet5CE8363F.php @@ -0,0 +1,37 @@ + 'application/json'], json_encode(json_decode(Schema\CustomProperty::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PUT', '/enterprises/generated/properties/schema/organizations/generated/generated/promote', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\EnterpriseAdmin\PromoteCustomPropertyToEnterprise::OPERATION_MATCH, (static function (array $data): array { + $data['enterprise'] = 'generated'; + $data['org'] = 'generated'; + $data['custom_property_name'] = 'generated'; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\CustomProperty::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PUT', '/enterprises/generated/properties/schema/organizations/generated/generated/promote', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->enterpriseAdmin()->promoteCustomPropertyToEnterprise('generated', 'generated', 'generated'); + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PUT', '/enterprises/generated/properties/schema/organizations/generated/generated/promote', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\EnterpriseAdmin\PromoteCustomPropertyToEnterprise::OPERATION_MATCH, (static function (array $data): array { + $data['enterprise'] = 'generated'; + $data['org'] = 'generated'; + $data['custom_property_name'] = 'generated'; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PUT', '/enterprises/generated/properties/schema/organizations/generated/generated/promote', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->enterpriseAdmin()->promoteCustomPropertyToEnterprise('generated', 'generated', 'generated'); + } + + /** @test */ + public function call_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PUT', '/enterprises/generated/properties/schema/organizations/generated/generated/promote', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\EnterpriseAdmin\PromoteCustomPropertyToEnterprise::OPERATION_MATCH, (static function (array $data): array { + $data['enterprise'] = 'generated'; + $data['org'] = 'generated'; + $data['custom_property_name'] = 'generated'; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PUT', '/enterprises/generated/properties/schema/organizations/generated/generated/promote', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->enterpriseAdmin()->promoteCustomPropertyToEnterprise('generated', 'generated', 'generated'); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/DismissBypassResponseTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/DismissBypassResponseTest.php new file mode 100644 index 00000000000..16c8bb24e68 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/DismissBypassResponseTest.php @@ -0,0 +1,203 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/bypass-responses/secret-scanning/18', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\DismissBypassResponse::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['bypass_response_id'] = 18; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/bypass-responses/secret-scanning/18', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->dismissBypassResponse('generated', 'generated', 18); + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/bypass-responses/secret-scanning/18', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\DismissBypassResponse::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['bypass_response_id'] = 18; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/bypass-responses/secret-scanning/18', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->dismissBypassResponse('generated', 'generated', 18); + } + + /** @test */ + public function call_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/bypass-responses/secret-scanning/18', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\DismissBypassResponse::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['bypass_response_id'] = 18; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_422_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/bypass-responses/secret-scanning/18', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->dismissBypassResponse('generated', 'generated', 18); + } + + /** @test */ + public function call_httpCode_500_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/bypass-responses/secret-scanning/18', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\DismissBypassResponse::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['bypass_response_id'] = 18; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_500_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/bypass-responses/secret-scanning/18', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->dismissBypassResponse('generated', 'generated', 18); + } + + /** @test */ + public function call_httpCode_204_empty(): void + { + $response = new Response(204, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/bypass-responses/secret-scanning/18', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\DismissBypassResponse::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['bypass_response_id'] = 18; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_204_empty(): void + { + $response = new Response(204, []); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/bypass-responses/secret-scanning/18', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->dismissBypassResponse('generated', 'generated', 18); + self::assertArrayHasKey('code', $result); + self::assertSame(204, $result['code']); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/GetBypassRequestTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/GetBypassRequestTest.php new file mode 100644 index 00000000000..5486f72cbb0 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/GetBypassRequestTest.php @@ -0,0 +1,165 @@ + 'application/json'], json_encode(json_decode(Schema\SecretScanningBypassRequest::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\GetBypassRequest::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['bypass_request_number'] = 21; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\SecretScanningBypassRequest::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->getBypassRequest('generated', 'generated', 21); + } + + /** @test */ + public function call_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\GetBypassRequest::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['bypass_request_number'] = 21; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->getBypassRequest('generated', 'generated', 21); + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\GetBypassRequest::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['bypass_request_number'] = 21; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->getBypassRequest('generated', 'generated', 21); + } + + /** @test */ + public function call_httpCode_500_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\GetBypassRequest::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['bypass_request_number'] = 21; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_500_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->getBypassRequest('generated', 'generated', 21); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/ListOrgBypassRequestsListingTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/ListOrgBypassRequestsListingTest.php new file mode 100644 index 00000000000..098b18b5841 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/ListOrgBypassRequestsListingTest.php @@ -0,0 +1,113 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/bypass-requests/secret-scanning?repository_name=generated&reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\ListOrgBypassRequestsListing::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['repository_name'] = 'generated'; + $data['reviewer'] = 'generated'; + $data['requester'] = 'generated'; + $data['time_period'] = 'generated'; + $data['request_status'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/bypass-requests/secret-scanning?repository_name=generated&reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listOrgBypassRequestsListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_500_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/bypass-requests/secret-scanning?repository_name=generated&reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\ListOrgBypassRequestsListing::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['repository_name'] = 'generated'; + $data['reviewer'] = 'generated'; + $data['requester'] = 'generated'; + $data['time_period'] = 'generated'; + $data['request_status'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_500_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/bypass-requests/secret-scanning?repository_name=generated&reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listOrgBypassRequestsListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/ListOrgBypassRequestsTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/ListOrgBypassRequestsTest.php new file mode 100644 index 00000000000..01bbe6ce820 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/ListOrgBypassRequestsTest.php @@ -0,0 +1,105 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/bypass-requests/secret-scanning?repository_name=generated&reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\ListOrgBypassRequests::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['repository_name'] = 'generated'; + $data['reviewer'] = 'generated'; + $data['requester'] = 'generated'; + $data['time_period'] = 'generated'; + $data['request_status'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/bypass-requests/secret-scanning?repository_name=generated&reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listOrgBypassRequests('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 1); + } + + /** @test */ + public function call_httpCode_500_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/bypass-requests/secret-scanning?repository_name=generated&reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\ListOrgBypassRequests::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['repository_name'] = 'generated'; + $data['reviewer'] = 'generated'; + $data['requester'] = 'generated'; + $data['time_period'] = 'generated'; + $data['request_status'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_500_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/bypass-requests/secret-scanning?repository_name=generated&reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listOrgBypassRequests('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 1); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/ListRepoBypassRequestsListingTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/ListRepoBypassRequestsListingTest.php new file mode 100644 index 00000000000..b7fea2fffab --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/ListRepoBypassRequestsListingTest.php @@ -0,0 +1,158 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning?reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\ListRepoBypassRequestsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['reviewer'] = 'generated'; + $data['requester'] = 'generated'; + $data['time_period'] = 'generated'; + $data['request_status'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning?reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listRepoBypassRequestsListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning?reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\ListRepoBypassRequestsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['reviewer'] = 'generated'; + $data['requester'] = 'generated'; + $data['time_period'] = 'generated'; + $data['request_status'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning?reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listRepoBypassRequestsListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_500_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning?reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\ListRepoBypassRequestsListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['reviewer'] = 'generated'; + $data['requester'] = 'generated'; + $data['time_period'] = 'generated'; + $data['request_status'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_500_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning?reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listRepoBypassRequestsListing('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/ListRepoBypassRequestsTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/ListRepoBypassRequestsTest.php new file mode 100644 index 00000000000..63910f929b7 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/ListRepoBypassRequestsTest.php @@ -0,0 +1,146 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning?reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\ListRepoBypassRequests::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['reviewer'] = 'generated'; + $data['requester'] = 'generated'; + $data['time_period'] = 'generated'; + $data['request_status'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning?reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listRepoBypassRequests('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 1); + } + + /** @test */ + public function call_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning?reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\ListRepoBypassRequests::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['reviewer'] = 'generated'; + $data['requester'] = 'generated'; + $data['time_period'] = 'generated'; + $data['request_status'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_403_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning?reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listRepoBypassRequests('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 1); + } + + /** @test */ + public function call_httpCode_500_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning?reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\ListRepoBypassRequests::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['reviewer'] = 'generated'; + $data['requester'] = 'generated'; + $data['time_period'] = 'generated'; + $data['request_status'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_500_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/bypass-requests/secret-scanning?reviewer=generated&requester=generated&time_period=generated&request_status=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->listRepoBypassRequests('generated', 'generated', 'generated', 'generated', 'generated', 'generated', 8, 1); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/ReviewBypassRequestTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/ReviewBypassRequestTest.php new file mode 100644 index 00000000000..4fb6c41f97f --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/SecretScanning/ReviewBypassRequestTest.php @@ -0,0 +1,201 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ReviewBypassRequest\Response\ApplicationJson\Ok::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), json_encode(json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\ReviewBypassRequest::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['bypass_request_number'] = 21; + + return $data; + })(json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_200_requestContentType_application_json_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\SecretScanning\ReviewBypassRequest\Response\ApplicationJson\Ok::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), json_encode(json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->reviewBypassRequest('generated', 'generated', 21, json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_404_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), json_encode(json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\ReviewBypassRequest::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['bypass_request_number'] = 21; + + return $data; + })(json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_404_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), json_encode(json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->reviewBypassRequest('generated', 'generated', 21, json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_403_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), json_encode(json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\ReviewBypassRequest::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['bypass_request_number'] = 21; + + return $data; + })(json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_403_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), json_encode(json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->reviewBypassRequest('generated', 'generated', 21, json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_422_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), json_encode(json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\ReviewBypassRequest::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['bypass_request_number'] = 21; + + return $data; + })(json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_422_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), json_encode(json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->reviewBypassRequest('generated', 'generated', 21, json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_500_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), json_encode(json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\SecretScanning\ReviewBypassRequest::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['bypass_request_number'] = 21; + + return $data; + })(json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_500_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/bypass-requests/secret-scanning/21', Argument::type('array'), json_encode(json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->secretScanning()->reviewBypassRequest('generated', 'generated', 21, json_decode(Schema\SecretScanning\ReviewBypassRequest\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php index 35753c17200..5e8a889587e 100644 --- a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php @@ -144,6 +144,7 @@ function authHeader(): string assertType('', $client->call('GET /enterprises/{enterprise}/network-settings/{network_settings_id}')); assertType('Observable', $client->call('GET /enterprises/{enterprise}/properties/schema')); assertType('Observable', $client->call('PATCH /enterprises/{enterprise}/properties/schema')); +assertType('Schema\\CustomProperty', $client->call('PUT /enterprises/{enterprise}/properties/schema/organizations/{org}/{custom_property_name}/promote')); assertType('', $client->call('GET /enterprises/{enterprise}/properties/schema/{custom_property_name}')); assertType('', $client->call('PUT /enterprises/{enterprise}/properties/schema/{custom_property_name}')); assertType('', $client->call('DELETE /enterprises/{enterprise}/properties/schema/{custom_property_name}')); @@ -316,6 +317,8 @@ function authHeader(): string assertType('', $client->call('DELETE /orgs/{org}/blocks/{username}')); assertType('Observable', $client->call('GET /orgs/{org}/bypass-requests/push-rules')); assertType('Observable', $client->call('LIST /orgs/{org}/bypass-requests/push-rules')); +assertType('iterable', $client->call('GET /orgs/{org}/bypass-requests/secret-scanning')); +assertType('iterable', $client->call('LIST /orgs/{org}/bypass-requests/secret-scanning')); assertType('Observable', $client->call('GET /orgs/{org}/code-scanning/alerts')); assertType('Observable', $client->call('LIST /orgs/{org}/code-scanning/alerts')); assertType('Observable', $client->call('GET /orgs/{org}/code-security/configurations')); @@ -746,6 +749,11 @@ function authHeader(): string assertType('Observable', $client->call('GET /repos/{owner}/{repo}/bypass-requests/push-rules')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/bypass-requests/push-rules')); assertType('', $client->call('GET /repos/{owner}/{repo}/bypass-requests/push-rules/{bypass_request_number}')); +assertType('iterable', $client->call('GET /repos/{owner}/{repo}/bypass-requests/secret-scanning')); +assertType('iterable', $client->call('LIST /repos/{owner}/{repo}/bypass-requests/secret-scanning')); +assertType('Schema\\SecretScanningBypassRequest', $client->call('GET /repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}')); +assertType('Schema\\Operations\\SecretScanning\\ReviewBypassRequest\\Response\\ApplicationJson\\Ok', $client->call('PATCH /repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}')); +assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('DELETE /repos/{owner}/{repo}/bypass-responses/secret-scanning/{bypass_response_id}')); assertType('', $client->call('POST /repos/{owner}/{repo}/check-runs')); assertType('', $client->call('GET /repos/{owner}/{repo}/check-runs/{check_run_id}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}')); diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index e66a0bad5c4..3a933fc4a62 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -5369,6 +5369,45 @@ paths: enabledForGitHubApps: true category: enterprise-admin subcategory: custom-properties + "/enterprises/{enterprise}/properties/schema/organizations/{org}/{custom_property_name}/promote": + put: + summary: Promote a custom property to an enterprise + description: |- + > [!NOTE] + > This endpoint is in public preview and is subject to change. + + Promotes an existing organization custom property to an enterprise. + + To use this endpoint, the authenticated user must be an administrator for the enterprise. + tags: + - enterprise-admin + operationId: enterprise-admin/promote-custom-property-to-enterprise + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/custom-properties#promote-a-custom-property-to-an-enterprise + parameters: + - "$ref": "#/components/parameters/enterprise" + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/custom-property-name" + responses: + '200': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/custom-property" + examples: + default: + "$ref": "#/components/examples/custom-property" + '403': + "$ref": "#/components/responses/forbidden" + '404': + "$ref": "#/components/responses/not_found" + x-github: + githubCloudOnly: true + enabledForGitHubApps: true + category: enterprise-admin + subcategory: custom-properties "/enterprises/{enterprise}/properties/schema/{custom_property_name}": get: summary: Get a custom property for an enterprise @@ -8577,7 +8616,7 @@ paths: description: |- Gets information about an organization. - When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://docs.github.com/enterprise-cloud@latest//articles/securing-your-account-with-two-factor-authentication-2fa/). + When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, outside collaborators, guest collaborators, repository collaborators, or everyone with access to any repository within the organization to enable [two-factor authentication](https://docs.github.com/enterprise-cloud@latest//articles/securing-your-account-with-two-factor-authentication-2fa/). To see the full details about an organization, the authenticated user must be an organization owner. @@ -12072,6 +12111,50 @@ paths: "$ref": "#/components/responses/not_found" '500': "$ref": "#/components/responses/internal_error" + "/orgs/{org}/bypass-requests/secret-scanning": + get: + summary: List bypass requests for secret scanning for an org + description: |- + List requests to bypass secret scanning push protection in an org. + + Delegated bypass must be enabled on repositories in the org and the user must be a bypass reviewer to access this endpoint. + Personal access tokens (classic) need the `security_events` scope to use this endpoint. + tags: + - secret-scanning + operationId: secret-scanning/list-org-bypass-requests + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/delegated-bypass#list-bypass-requests-for-secret-scanning-for-an-org + x-github: + githubCloudOnly: true + enabledForGitHubApps: true + category: secret-scanning + subcategory: delegated-bypass + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/repository-name-in-query" + - "$ref": "#/components/parameters/bypass-reviewer-name" + - "$ref": "#/components/parameters/bypass-requester-name" + - "$ref": "#/components/parameters/time-period" + - "$ref": "#/components/parameters/bypass-request-status" + - "$ref": "#/components/parameters/per-page" + - "$ref": "#/components/parameters/page" + responses: + '200': + description: Response + content: + application/json: + schema: + type: array + items: + "$ref": "#/components/schemas/secret-scanning-bypass-request" + examples: + default: + "$ref": "#/components/examples/secret-scanning-bypass-request-items" + '404': + "$ref": "#/components/responses/not_found" + '500': + "$ref": "#/components/responses/internal_error" "/orgs/{org}/code-scanning/alerts": get: summary: List code scanning alerts for an organization @@ -12358,6 +12441,14 @@ paths: - disabled - not_set default: disabled + secret_scanning_delegated_alert_dismissal: + type: string + description: The enablement status of secret scanning delegated + alert dismissal + enum: + - enabled + - disabled + - not_set private_vulnerability_reporting: type: string description: The enablement status of private vulnerability reporting @@ -12678,6 +12769,14 @@ paths: - enabled - disabled - not_set + secret_scanning_delegated_alert_dismissal: + type: string + description: The enablement status of secret scanning delegated + alert dismissal + enum: + - enabled + - disabled + - not_set private_vulnerability_reporting: type: string description: The enablement status of private vulnerability reporting @@ -30338,6 +30437,210 @@ paths: "$ref": "#/components/responses/not_found" '500': "$ref": "#/components/responses/internal_error" + "/repos/{owner}/{repo}/bypass-requests/secret-scanning": + get: + summary: List bypass requests for secret scanning for a repository + description: |- + Lists requests to bypass secret scanning push protection in a repository. + + Delegated bypass must be enabled on the repository and the user must be a bypass reviewer to access this endpoint. + Personal access tokens (classic) need the `security_events` scope to use this endpoint. + tags: + - secret-scanning + operationId: secret-scanning/list-repo-bypass-requests + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/delegated-bypass#list-bypass-requests-for-secret-scanning-for-a-repository + x-github: + githubCloudOnly: true + enabledForGitHubApps: true + category: secret-scanning + subcategory: delegated-bypass + parameters: + - "$ref": "#/components/parameters/owner" + - "$ref": "#/components/parameters/repo" + - "$ref": "#/components/parameters/bypass-reviewer-name" + - "$ref": "#/components/parameters/bypass-requester-name" + - "$ref": "#/components/parameters/time-period" + - "$ref": "#/components/parameters/bypass-request-status" + - "$ref": "#/components/parameters/per-page" + - "$ref": "#/components/parameters/page" + responses: + '200': + description: A list of the bypass requests. + content: + application/json: + schema: + type: array + items: + "$ref": "#/components/schemas/secret-scanning-bypass-request" + examples: + default: + "$ref": "#/components/examples/secret-scanning-bypass-request-items" + '404': + "$ref": "#/components/responses/not_found" + '403': + "$ref": "#/components/responses/forbidden" + '500': + "$ref": "#/components/responses/internal_error" + "/repos/{owner}/{repo}/bypass-requests/secret-scanning/{bypass_request_number}": + get: + summary: Get a bypass request for secret scanning + description: |- + Gets a specific request to bypass secret scanning push protection in a repository. + + Delegated bypass must be enabled on the repository and the user must be a bypass reviewer to access this endpoint. + Personal access tokens (classic) need the `security_events` scope to use this endpoint. + tags: + - secret-scanning + operationId: secret-scanning/get-bypass-request + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/delegated-bypass#get-a-bypass-request-for-secret-scanning + x-github: + githubCloudOnly: true + enabledForGitHubApps: true + category: secret-scanning + subcategory: delegated-bypass + parameters: + - "$ref": "#/components/parameters/owner" + - "$ref": "#/components/parameters/repo" + - name: bypass_request_number + in: path + required: true + description: The number that identifies the bypass request in a repository. + schema: + type: integer + responses: + '200': + description: A single bypass request. + content: + application/json: + schema: + "$ref": "#/components/schemas/secret-scanning-bypass-request" + examples: + default: + "$ref": "#/components/examples/secret-scanning-bypass-request-item" + '404': + "$ref": "#/components/responses/not_found" + '403': + "$ref": "#/components/responses/forbidden" + '500': + "$ref": "#/components/responses/internal_error" + patch: + summary: Review a bypass request for secret scanning + description: |- + Approve or deny a request to bypass secret scanning push protection in a repository. + + Delegated bypass must be enabled on the repository and the user must be a bypass reviewer to access this endpoint. + Personal access tokens (classic) need the `security_events` scope to use this endpoint. + tags: + - secret-scanning + operationId: secret-scanning/review-bypass-request + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/delegated-bypass#review-a-bypass-request-for-secret-scanning + x-github: + githubCloudOnly: true + enabledForGitHubApps: true + category: secret-scanning + subcategory: delegated-bypass + parameters: + - "$ref": "#/components/parameters/owner" + - "$ref": "#/components/parameters/repo" + - name: bypass_request_number + in: path + required: true + description: The number that identifies the bypass request in a repository. + schema: + type: integer + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + status: + type: string + description: The review action to perform on the bypass request. + enum: + - approve + - reject + message: + type: string + description: A message to include with the review. Has a maximum + character length of 2048. + required: + - status + - message + examples: + default: + value: + status: reject + message: This secret has not been revoked. + responses: + '200': + description: The review of the bypass request. + content: + application/json: + schema: + type: object + properties: + bypass_review_id: + type: integer + description: ID of the bypass review. + examples: + default: + value: + bypass_review_id: 1 + '404': + "$ref": "#/components/responses/not_found" + '403': + "$ref": "#/components/responses/forbidden" + '422': + "$ref": "#/components/responses/validation_failed" + '500': + "$ref": "#/components/responses/internal_error" + "/repos/{owner}/{repo}/bypass-responses/secret-scanning/{bypass_response_id}": + delete: + summary: Dismiss a response on a bypass request for secret scanning + description: |- + Dissmiss a response given to a bypass request for secret scanning push protection in a repository. + + Delegated bypass must be enabled on the repository and the user must be a bypass reviewer to access this endpoint. + Personal access tokens (classic) need the `security_events` scope to use this endpoint. + tags: + - secret-scanning + operationId: secret-scanning/dismiss-bypass-response + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/delegated-bypass#dismiss-a-response-on-a-bypass-request-for-secret-scanning + x-github: + githubCloudOnly: true + enabledForGitHubApps: true + category: secret-scanning + subcategory: delegated-bypass + parameters: + - "$ref": "#/components/parameters/owner" + - "$ref": "#/components/parameters/repo" + - name: bypass_response_id + in: path + required: true + description: ID of the bypass response. + schema: + type: integer + responses: + '204': + description: Review was successfully dismissed. + '404': + "$ref": "#/components/responses/not_found" + '403': + "$ref": "#/components/responses/forbidden" + '422': + "$ref": "#/components/responses/validation_failed" + '500': + "$ref": "#/components/responses/internal_error" "/repos/{owner}/{repo}/check-runs": post: summary: Create a check run @@ -31567,7 +31870,7 @@ paths: description: |- Commits an autofix for a code scanning alert. - If an autofix is commited as a result of this request, then this endpoint will return a 201 Created response. + If an autofix is committed as a result of this request, then this endpoint will return a 201 Created response. OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. tags: @@ -80737,6 +81040,13 @@ components: - enabled - disabled - not_set + secret_scanning_delegated_alert_dismissal: + type: string + description: The enablement status of secret scanning delegated alert dismissal + enum: + - enabled + - disabled + - not_set private_vulnerability_reporting: type: string description: The enablement status of private vulnerability reporting @@ -82527,6 +82837,22 @@ components: type: string enum: - required_signatures + repository-rule-params-reviewer: + title: Reviewer + description: A required reviewing team + type: object + properties: + id: + type: integer + description: ID of the reviewer which must review changes to matching files. + type: + type: string + description: The type of the reviewer + enum: + - Team + required: + - id + - type repository-rule-params-required-reviewer-configuration: title: RequiredReviewerConfiguration description: A reviewing team, and file patterns describing which files they @@ -82545,13 +82871,11 @@ components: description: Minimum number of approvals required from the specified team. If set to zero, the team will be added to the pull request but approval is optional. - reviewer_id: - type: string - description: Node ID of the team which must review changes to matching files. + reviewer: + "$ref": "#/components/schemas/repository-rule-params-reviewer" required: - file_patterns - minimum_approvals - - reviewer_id repository-rule-pull-request: title: pull_request description: Require all commits be made to a non-target branch and submitted @@ -86484,6 +86808,132 @@ components: - created_at - updated_at - visibility + secret-scanning-bypass-request: + title: Secret scanning bypass request + description: A bypass request made by a user asking to be exempted from push + protection in this repository. + type: object + properties: + id: + type: integer + description: The unique identifier of the bypass request. + number: + type: integer + description: The number uniquely identifying the bypass request within its + repository. + repository: + type: object + description: The repository the bypass request is for. + properties: + id: + type: integer + description: The ID of the repository the bypass request is for. + name: + type: string + description: The name of the repository the bypass request is for. + full_name: + type: string + description: The full name of the repository the bypass request is for. + organization: + type: object + description: The organization associated with the repository the bypass + request is for. + properties: + id: + type: integer + description: The ID of the organization. + name: + type: string + description: The name of the organization. + requester: + type: object + description: The user who requested the bypass. + properties: + actor_id: + type: integer + description: The ID of the GitHub user who requested the bypass. + actor_name: + type: string + description: The name of the GitHub user who requested the bypass. + request_type: + type: string + description: The type of request. + data: + type: + - array + - 'null' + description: Data describing the push rules that are being requested to + be bypassed. + items: + type: object + properties: + secret_type: + type: string + description: The type of secret that secret scanning detected. + bypass_reason: + type: string + enum: + - used_in_tests + - false_positive + - fix_later + description: The reason the bypass was requested. + path: + type: string + description: The path in the repo where the secret was located during + the request. + branch: + type: string + description: The branch in the repo where the secret was located during + the request. + resource_identifier: + type: string + description: The unique identifier for the request type of the bypass request. + For example, a commit SHA. + examples: + - 827efc6d56897b048c772eb4087f854f46256132 + status: + type: string + description: The status of the bypass request. + enum: + - pending + - denied + - approved + - cancelled + - completed + - expired + - open + requester_comment: + type: + - string + - 'null' + description: The comment the requester provided when creating the bypass + request. + expires_at: + type: string + format: date-time + description: The date and time the bypass request will expire. + created_at: + type: string + format: date-time + description: The date and time the bypass request was created. + responses: + type: + - array + - 'null' + description: The responses to the bypass request. + items: + "$ref": "#/components/schemas/bypass-response" + url: + type: string + format: uri + examples: + - https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1 + html_url: + type: string + description: The URL to view the bypass request in a browser. + format: uri + examples: + - https://github.com/octo-org/smile/exemptions/1 code-scanning-alert-severity: type: string description: Severity of a code scanning alert. @@ -219723,6 +220173,72 @@ components: received_events_url: https://api.github.com/users/octocat/received_events type: User site_admin: false + secret-scanning-bypass-request-items: + value: + - id: 21 + number: 42 + repository: + id: 1 + name: smile + full_name: octo-org/smile + organization: + id: 1 + name: octo-org + requester: + actor_id: 12 + actor_name: monalisa + request_type: secret_scanning + data: + - secret_type: adafruit_io_key + bypass_reason: used_in_tests + path: "/tests/README.md:16:0" + branch: refs/heads/main + resource_identifier: 827efc6d56897b048c772eb4087f854f46256132 + status: denied + requester_comment: Test token used in the readme as an example + expires_at: '2024-07-08T08:43:03Z' + created_at: '2024-07-01T08:43:03Z' + responses: + - id: 42 + reviewer: + actor_id: 4 + actor_name: octocat + status: denied + created_at: '2024-07-02T08:43:04Z' + url: https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1 + html_url: https://github.com/octo-org/smile/exemptions/1 + - id: 12 + number: 24 + repository: + id: 1 + name: smile + full_name: octo-org/smile + organization: + id: 1 + name: octo-org + requester: + actor_id: 12 + actor_name: monalisa + request_type: secret_scanning + data: + - secret_type: adafruit_io_key + bypass_reason: fix_later + path: README.md:17:0 + branch: refs/heads/my-branch + resource_identifier: 827efc6d56897b048c772eb4087f854f46255555 + status: denied + requester_comment: Token is already revoked, I'll remove it later + expires_at: '2024-07-08T07:43:03Z' + created_at: '2024-07-01T07:43:03Z' + responses: + - id: 42 + reviewer: + actor_id: 4 + actor_name: octocat + status: denied + created_at: '2024-07-02T08:43:04Z' + url: https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/2 + html_url: https://github.com/octo-org/smile/exemptions/2 code-security-configuration-list: value: - id: 17 @@ -219748,6 +220264,7 @@ components: reviewer_type: TEAM secret_scanning_validity_checks: enabled secret_scanning_non_provider_patterns: enabled + secret_scanning_delegated_alert_dismissal: not_set private_vulnerability_reporting: enabled enforcement: enforced url: https://api.github.com/orgs/octo-org/code-security/configurations/17 @@ -219772,6 +220289,7 @@ components: secret_scanning_delegated_bypass: disabled secret_scanning_validity_checks: disabled secret_scanning_non_provider_patterns: disabled + secret_scanning_delegated_alert_dismissal: disabled private_vulnerability_reporting: enabled enforcement: enforced url: https://api.github.com/orgs/octo-org/code-security/configurations/1326 @@ -225903,6 +226421,40 @@ components: created_at: '2024-07-02T08:43:04Z' url: https://api.github.com/repos/octo-org/smile/bypass-requests/push-rules/2 html_url: https://github.com/octo-org/smile/exemptions/2 + secret-scanning-bypass-request-item: + value: + id: 21 + number: 42 + repository: + id: 1 + name: smile + full_name: octo-org/smile + organization: + id: 1 + name: octo-org + requester: + actor_id: 12 + actor_name: monalisa + request_type: secret_scanning + data: + - secret_type: adafruit_io_key + bypass_reason: used_in_tests + path: "/tests/README.md:16:0" + branch: refs/heads/main + resource_identifier: 827efc6d56897b048c772eb4087f854f46256132 + status: denied + requester_comment: Test token used in the readme as an example + expires_at: '2024-07-08T08:43:03Z' + created_at: '2024-07-01T08:43:03Z' + responses: + - id: 42 + reviewer: + actor_id: 4 + actor_name: octocat + status: denied + created_at: '2024-07-02T08:43:04Z' + url: https://api.github.com/repos/octo-org/smile/bypass-requests/secret-scanning/1 + html_url: https://github.com/octo-org/smile/exemptions/1 check-run-example-of-completed-conclusion: summary: Response for completed conclusion value: @@ -227491,6 +228043,7 @@ components: secret_scanning_delegated_bypass: disabled secret_scanning_validity_checks: disabled secret_scanning_non_provider_patterns: disabled + secret_scanning_delegated_alert_dismissal: disabled private_vulnerability_reporting: disabled enforcement: enforced url: https://api.github.com/orgs/octo-org/code-security/configurations/1325 @@ -241347,6 +241900,13 @@ components: required: true schema: type: string + org: + name: org + description: The organization name. The name is not case sensitive. + in: path + required: true + schema: + type: string custom-property-name: name: custom_property_name description: The custom property name @@ -241614,13 +242174,6 @@ components: required: false schema: type: integer - org: - name: org - description: The organization name. The name is not case sensitive. - in: path - required: true - schema: - type: string repository-id: name: repository_id description: The unique identifier of the repository.