From c50f01a84fec7a15f7306f6becde512b452030e0 Mon Sep 17 00:00:00 2001 From: WyriHaximus <147145+WyriHaximus@users.noreply.github.com> Date: Fri, 18 Oct 2024 17:17:27 +0000 Subject: [PATCH] [GitHub] Update to 1.1.4-a359c50c42a91cee9b6aa2cfcf93605d from 1.1.4-f0ef821141c0585bc8759f53f482f086 Detected Schema changes: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` ├─┬Paths │ ├──[➖] path (5043:3)❌ │ ├──[➖] path (4956:3)❌ │ ├──[➖] path (4691:3)❌ │ ├──[➖] path (5182:3)❌ │ ├──[➖] path (5092:3)❌ │ ├──[➖] path (4827:3)❌ │ ├─┬/repos/{owner}/{repo}/code-scanning/alerts │ │ └─┬GET │ │ ├──[➖] parameters (223851:13)❌ │ │ └──[➖] parameters (223842:13)❌ │ └─┬/repos/{owner}/{repo} │ └─┬PATCH │ └─┬Requestbody │ └─┬application/json │ └─┬Schema │ └─┬security_and_analysis │ └──[➖] properties (16765:21)❌ └─┬Components ├──[➖] parameters (224234:7)❌ ├──[➖] parameters (224227:7)❌ ├──[➖] examples (202345:7)❌ ├──[➖] examples (202292:7)❌ ├──[➖] examples (202329:7)❌ ├──[➖] schemas (71656:7)❌ ├─┬repository-ruleset │ └─┬_links │ └─┬html │ └──[🔀] type (74833:21)❌ └─┬security-and-analysis └──[➖] properties (70683:9)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 9 | 9 | | components | 8 | 8 | Date: 10/18/24 | Commit: New: etc/specs/GitHub/previous.spec.yaml, Original: etc/specs/GitHub/current.spec.yaml - ❌ **BREAKING Changes**: _17_ out of _17_ - **Modifications**: _1_ - **Removals**: _16_ - **Breaking Removals**: _16_ - **Breaking Modifications**: _1_ ERROR: breaking changes discovered --- clients/GitHub/README.md | 312 +++++ .../GitHub/etc/openapi-client-generator.state | 456 +++++-- clients/GitHub/src/Client.php | 2 +- clients/GitHub/src/ClientInterface.php | 2 +- .../Notifications/Threads/ThreadId.php | 78 ++ .../Orgs/Org/Actions/RunnerGroups.php | 494 +++++++ .../Actions/RunnerGroups/RunnerGroupId.php | 429 ++++++ .../RunnerGroupId/Repositories.php | 245 ++++ .../RunnerGroups/RunnerGroupId/Runners.php | 245 ++++ .../Codespaces/CodespaceName/Stop.php | 78 ++ .../Org/Packages/PackageType/PackageName.php | 78 ++ .../Hydrator/Operation/Orgs/Org/Repos.php | 78 ++ .../Hydrator/Operation/Repos/Owner/Repo.php | 78 ++ .../Repos/Owner/Repo/Actions/Runs/RunId.php | 78 ++ .../Runs/RunId/Attempts/AttemptNumber.php | 78 ++ .../Repos/Owner/Repo/CheckSuites.php | 78 ++ .../Owner/Repo/CheckSuites/CheckSuiteId.php | 78 ++ .../Owner/Repo/CheckSuites/Preferences.php | 78 ++ .../Operation/Repos/Owner/Repo/Codespaces.php | 78 ++ .../Owner/Repo/Collaborators/Username.php | 78 ++ .../Repos/Owner/Repo/Commits/Ref/Status.php | 78 ++ .../Operation/Repos/Owner/Repo/Forks.php | 78 ++ .../Owner/Repo/Invitations/InvitationId.php | 78 ++ .../Repo/Pulls/PullNumber/Codespaces.php | 78 ++ .../Repo/SecurityAdvisories/GhsaId/Forks.php | 78 ++ .../Operation/Repos/Owner/Repo/Transfer.php | 78 ++ .../TemplateOwner/TemplateRepo/Generate.php | 78 ++ .../Hydrator/Operation/User/Codespaces.php | 78 ++ .../User/Codespaces/CodespaceName.php | 78 ++ .../User/Codespaces/CodespaceName/Publish.php | 78 ++ .../User/Codespaces/CodespaceName/Start.php | 78 ++ .../User/Codespaces/CodespaceName/Stop.php | 78 ++ .../User/Packages/PackageType/PackageName.php | 78 ++ .../Hydrator/Operation/User/Repos.php | 78 ++ .../Packages/PackageType/PackageName.php | 78 ++ .../Internal/Hydrator/WebHook/CheckRun.php | 78 ++ .../Hydrator/WebHook/SecurityAndAnalysis.php | 78 ++ clients/GitHub/src/Internal/Hydrators.php | 70 +- ...RepoAccessToSelfHostedRunnerGroupInOrg.php | 51 + .../AddSelfHostedRunnerToGroupForOrg.php | 51 + .../CreateSelfHostedRunnerGroupForOrg.php | 62 + .../DeleteSelfHostedRunnerGroupFromOrg.php | 48 + .../GetSelfHostedRunnerGroupForOrg.php | 62 + ...RepoAccessToSelfHostedRunnerGroupInOrg.php | 68 + .../ListSelfHostedRunnerGroupsForOrg.php | 68 + .../ListSelfHostedRunnersInGroupForOrg.php | 68 + ...RepoAccessToSelfHostedRunnerGroupInOrg.php | 51 + .../RemoveSelfHostedRunnerFromGroupForOrg.php | 51 + ...RepoAccessToSelfHostedRunnerGroupInOrg.php | 54 + .../SetSelfHostedRunnersInGroupForOrg.php | 54 + .../UpdateSelfHostedRunnerGroupForOrg.php | 65 + .../CodeScanning/ListAlertsForRepo.php | 10 +- .../CodeScanning/ListAlertsForRepoListing.php | 10 +- ...RepoAccessToSelfHostedRunnerGroupInOrg.php | 38 + .../AddSelfHostedRunnerToGroupForOrg.php | 38 + .../CreateSelfHostedRunnerGroupForOrg.php | 40 + .../DeleteSelfHostedRunnerGroupFromOrg.php | 38 + .../GetSelfHostedRunnerGroupForOrg.php | 40 + ...RepoAccessToSelfHostedRunnerGroupInOrg.php | 40 + .../ListSelfHostedRunnerGroupsForOrg.php | 40 + .../ListSelfHostedRunnersInGroupForOrg.php | 40 + ...RepoAccessToSelfHostedRunnerGroupInOrg.php | 38 + .../RemoveSelfHostedRunnerFromGroupForOrg.php | 38 + ...RepoAccessToSelfHostedRunnerGroupInOrg.php | 39 + .../SetSelfHostedRunnersInGroupForOrg.php | 39 + .../UpdateSelfHostedRunnerGroupForOrg.php | 40 + .../CodeScanning/ListAlertsForRepo.php | 6 +- .../CodeScanning/ListAlertsForRepoListing.php | 6 +- .../Operator/Repos/GetOrgRulesets.php | 2 +- .../Operator/Repos/GetOrgRulesetsListing.php | 2 +- .../Operator/Repos/GetRepoRulesets.php | 2 +- .../Operator/Repos/GetRepoRulesetsListing.php | 2 +- clients/GitHub/src/Internal/Operators.php | 130 ++ .../src/Internal/Router/Delete/Actions.php | 72 + .../src/Internal/Router/Delete/Eight.php | 22 +- .../GitHub/src/Internal/Router/Delete/Six.php | 9 +- .../src/Internal/Router/Get/Actions.php | 121 +- .../src/Internal/Router/Get/CodeScanning.php | 16 +- .../GitHub/src/Internal/Router/Get/Five.php | 10 +- .../GitHub/src/Internal/Router/Get/Four.php | 2 +- .../GitHub/src/Internal/Router/Get/Repos.php | 4 +- .../GitHub/src/Internal/Router/Get/Seven.php | 18 +- .../GitHub/src/Internal/Router/Get/Six.php | 11 +- .../src/Internal/Router/List/CodeScanning.php | 16 +- .../GitHub/src/Internal/Router/List/Five.php | 2 +- .../GitHub/src/Internal/Router/List/Four.php | 2 +- .../GitHub/src/Internal/Router/List/Repos.php | 4 +- .../GitHub/src/Internal/Router/List/Six.php | 2 +- .../src/Internal/Router/Patch/Actions.php | 21 + .../GitHub/src/Internal/Router/Patch/Six.php | 12 +- .../src/Internal/Router/Post/Actions.php | 15 + .../GitHub/src/Internal/Router/Post/Five.php | 10 +- .../src/Internal/Router/Put/Actions.php | 92 ++ .../GitHub/src/Internal/Router/Put/Eight.php | 19 +- .../GitHub/src/Internal/Router/Put/Seven.php | 14 +- clients/GitHub/src/Operation/Actions.php | 66 + clients/GitHub/src/Operation/CodeScanning.php | 12 +- clients/GitHub/src/Operation/Repos.php | 8 +- .../src/PHPStan/ClientCallReturnTypes.php | 64 +- .../Request/ApplicationJson.php | 107 ++ .../Request/ApplicationJson.php | 43 + .../Request/ApplicationJson.php | 40 + .../Request/ApplicationJson.php | 79 ++ .../TietD2CC17F7/Tiet89BA197E.php} | 22 +- .../Tiet105F7589/TietF9914834.php} | 40 +- .../Tiet776DBC1D/Tiet418CCB6F.php} | 22 +- .../Schema/CheckRunWithSimpleCheckSuite.php | 15 + clients/GitHub/src/Schema/CheckSuite.php | 15 + .../src/Schema/CheckSuitePreference.php | 15 + .../src/Schema/CodeSearchResultItem.php | 15 + clients/GitHub/src/Schema/Codespace.php | 15 + .../Schema/CodespaceWithFullRepository.php | 15 + .../src/Schema/CombinedCommitStatus.php | 15 + .../src/Schema/CommitSearchResultItem.php | 15 + clients/GitHub/src/Schema/FullRepository.php | 15 + .../GitHub/src/Schema/MinimalRepository.php | 15 + .../Response/ApplicationJson/Ok.php | 1170 ++++++++++++++++ .../Response/ApplicationJson/Ok.php | 2 +- .../Response/ApplicationJson/Ok.php | 2 +- .../ApplicationJson/Ok/Application/Json.php | 2 +- .../Response/ApplicationJson/Ok.php | 141 ++ .../Response/ApplicationJson/Ok.php | 160 +++ .../Response/ApplicationJson/Ok.php | 2 +- .../ApplicationJson/Ok/Application/Json.php | 2 +- .../Response/ApplicationJson/Ok.php | 2 +- .../Response/ApplicationJson/Ok.php | 18 + .../Response/ApplicationJson/Ok.php | 2 +- .../ApplicationJson/Ok/Application/Json.php | 2 +- .../Response/ApplicationJson/Ok.php | 2 +- .../ApplicationJson/Ok/Application/Json.php | 2 +- .../Response/ApplicationJson/Ok.php | 2 +- .../Response/ApplicationJson/Ok.php | 2 +- .../ApplicationJson/Ok/Application/Json.php | 2 +- .../Response/ApplicationJson/Ok.php | 2 +- .../ApplicationJson/Ok/Application/Json.php | 2 +- .../Response/ApplicationJson/Ok.php | 2 +- .../ApplicationJson/Ok/Application/Json.php | 2 +- .../Response/ApplicationJson/Ok.php | 2 +- .../ApplicationJson/Ok/Application/Json.php | 2 +- .../Code/Response/ApplicationJson/Ok.php | 18 + .../Commits/Response/ApplicationJson/Ok.php | 18 + clients/GitHub/src/Schema/Package.php | 15 + .../Repos/Update/Request/ApplicationJson.php | 13 + .../ApplicationJson/SecurityAndAnalysis.php | 17 +- .../SecretScanningAiDetection.php | 31 + .../src/Schema/RepositoryInvitation.php | 15 + .../GitHub/src/Schema/RepositoryRuleset.php | 5 +- .../src/Schema/RepositoryRuleset/Links.php | 5 +- .../Schema/RepositoryRuleset/Links/Html.php | 5 +- clients/GitHub/src/Schema/RunnerGroupsOrg.php | 115 ++ .../GitHub/src/Schema/SecurityAndAnalysis.php | 18 +- .../SecretScanningAiDetection.php | 11 + .../GitHub/src/Schema/SimpleCheckSuite.php | 15 + clients/GitHub/src/Schema/Thread.php | 15 + .../src/Schema/WebhookCheckRunCompleted.php | 15 + .../src/Schema/WebhookCheckRunCreated.php | 15 + .../Schema/WebhookCheckRunRequestedAction.php | 15 + .../src/Schema/WebhookCheckRunRerequested.php | 15 + .../WebhookRepositoryRulesetCreated.php | 5 +- .../WebhookRepositoryRulesetDeleted.php | 5 +- .../Schema/WebhookRepositoryRulesetEdited.php | 5 +- .../src/Schema/WebhookSecurityAndAnalysis.php | 30 + .../WebhookSecurityAndAnalysis/Changes.php | 15 + .../Changes/From.php | 15 + clients/GitHub/src/Schema/WorkflowRun.php | 30 + .../CreateSelfHostedRunnerGroupForOrgTest.php | 54 + .../GetSelfHostedRunnerGroupForOrgTest.php | 55 + ...AccessToSelfHostedRunnerGroupInOrgTest.php | 57 + .../ListSelfHostedRunnerGroupsForOrgTest.php | 57 + ...ListSelfHostedRunnersInGroupForOrgTest.php | 57 + .../UpdateSelfHostedRunnerGroupForOrgTest.php | 55 + .../ListAlertsForRepoListingTest.php | 32 +- .../CodeScanning/ListAlertsForRepoTest.php | 32 +- .../tests/Types/ClientCallReturnTypes.php | 25 +- etc/specs/GitHub/current.spec.yaml | 1205 +++++++++++++---- 175 files changed, 10214 insertions(+), 518 deletions(-) create mode 100644 clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups.php create mode 100644 clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId.php create mode 100644 clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId/Repositories.php create mode 100644 clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId/Runners.php create mode 100644 clients/GitHub/src/Internal/Operation/Actions/AddRepoAccessToSelfHostedRunnerGroupInOrg.php create mode 100644 clients/GitHub/src/Internal/Operation/Actions/AddSelfHostedRunnerToGroupForOrg.php create mode 100644 clients/GitHub/src/Internal/Operation/Actions/CreateSelfHostedRunnerGroupForOrg.php create mode 100644 clients/GitHub/src/Internal/Operation/Actions/DeleteSelfHostedRunnerGroupFromOrg.php create mode 100644 clients/GitHub/src/Internal/Operation/Actions/GetSelfHostedRunnerGroupForOrg.php create mode 100644 clients/GitHub/src/Internal/Operation/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrg.php create mode 100644 clients/GitHub/src/Internal/Operation/Actions/ListSelfHostedRunnerGroupsForOrg.php create mode 100644 clients/GitHub/src/Internal/Operation/Actions/ListSelfHostedRunnersInGroupForOrg.php create mode 100644 clients/GitHub/src/Internal/Operation/Actions/RemoveRepoAccessToSelfHostedRunnerGroupInOrg.php create mode 100644 clients/GitHub/src/Internal/Operation/Actions/RemoveSelfHostedRunnerFromGroupForOrg.php create mode 100644 clients/GitHub/src/Internal/Operation/Actions/SetRepoAccessToSelfHostedRunnerGroupInOrg.php create mode 100644 clients/GitHub/src/Internal/Operation/Actions/SetSelfHostedRunnersInGroupForOrg.php create mode 100644 clients/GitHub/src/Internal/Operation/Actions/UpdateSelfHostedRunnerGroupForOrg.php create mode 100644 clients/GitHub/src/Internal/Operator/Actions/AddRepoAccessToSelfHostedRunnerGroupInOrg.php create mode 100644 clients/GitHub/src/Internal/Operator/Actions/AddSelfHostedRunnerToGroupForOrg.php create mode 100644 clients/GitHub/src/Internal/Operator/Actions/CreateSelfHostedRunnerGroupForOrg.php create mode 100644 clients/GitHub/src/Internal/Operator/Actions/DeleteSelfHostedRunnerGroupFromOrg.php create mode 100644 clients/GitHub/src/Internal/Operator/Actions/GetSelfHostedRunnerGroupForOrg.php create mode 100644 clients/GitHub/src/Internal/Operator/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrg.php create mode 100644 clients/GitHub/src/Internal/Operator/Actions/ListSelfHostedRunnerGroupsForOrg.php create mode 100644 clients/GitHub/src/Internal/Operator/Actions/ListSelfHostedRunnersInGroupForOrg.php create mode 100644 clients/GitHub/src/Internal/Operator/Actions/RemoveRepoAccessToSelfHostedRunnerGroupInOrg.php create mode 100644 clients/GitHub/src/Internal/Operator/Actions/RemoveSelfHostedRunnerFromGroupForOrg.php create mode 100644 clients/GitHub/src/Internal/Operator/Actions/SetRepoAccessToSelfHostedRunnerGroupInOrg.php create mode 100644 clients/GitHub/src/Internal/Operator/Actions/SetSelfHostedRunnersInGroupForOrg.php create mode 100644 clients/GitHub/src/Internal/Operator/Actions/UpdateSelfHostedRunnerGroupForOrg.php create mode 100644 clients/GitHub/src/Schema/Actions/CreateSelfHostedRunnerGroupForOrg/Request/ApplicationJson.php create mode 100644 clients/GitHub/src/Schema/Actions/SetRepoAccessToSelfHostedRunnerGroupInOrg/Request/ApplicationJson.php create mode 100644 clients/GitHub/src/Schema/Actions/SetSelfHostedRunnersInGroupForOrg/Request/ApplicationJson.php create mode 100644 clients/GitHub/src/Schema/Actions/UpdateSelfHostedRunnerGroupForOrg/Request/ApplicationJson.php rename clients/GitHub/src/Schema/AliasAbstract/{Tiet17613DC9/TietF76E0494/TietB0772899/Tiet91E3F984.php => Tiet01F27505/TietE0281FC4/TietD2CC17F7/Tiet89BA197E.php} (98%) rename clients/GitHub/src/Schema/AliasAbstract/{TietA5593530/TietD4C63CAD/Tiet95D73CC3/TietF1B17EC4.php => Tiet38F0B967/Tiet31DB077C/Tiet105F7589/TietF9914834.php} (98%) rename clients/GitHub/src/Schema/AliasAbstract/{TietF07AF25E/TietD2A72B52/Tiet57F3E90D/TietF0079343.php => TietAA7C777F/Tiet51DAFE76/Tiet776DBC1D/Tiet418CCB6F.php} (99%) create mode 100644 clients/GitHub/src/Schema/Operations/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrg/Response/ApplicationJson/Ok.php create mode 100644 clients/GitHub/src/Schema/Operations/Actions/ListSelfHostedRunnerGroupsForOrg/Response/ApplicationJson/Ok.php create mode 100644 clients/GitHub/src/Schema/Operations/Actions/ListSelfHostedRunnersInGroupForOrg/Response/ApplicationJson/Ok.php create mode 100644 clients/GitHub/src/Schema/Repos/Update/Request/ApplicationJson/SecurityAndAnalysis/SecretScanningAiDetection.php create mode 100644 clients/GitHub/src/Schema/RunnerGroupsOrg.php create mode 100644 clients/GitHub/src/Schema/SecurityAndAnalysis/SecretScanningAiDetection.php create mode 100644 clients/GitHub/tests/Internal/Operation/Actions/CreateSelfHostedRunnerGroupForOrgTest.php create mode 100644 clients/GitHub/tests/Internal/Operation/Actions/GetSelfHostedRunnerGroupForOrgTest.php create mode 100644 clients/GitHub/tests/Internal/Operation/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrgTest.php create mode 100644 clients/GitHub/tests/Internal/Operation/Actions/ListSelfHostedRunnerGroupsForOrgTest.php create mode 100644 clients/GitHub/tests/Internal/Operation/Actions/ListSelfHostedRunnersInGroupForOrgTest.php create mode 100644 clients/GitHub/tests/Internal/Operation/Actions/UpdateSelfHostedRunnerGroupForOrgTest.php diff --git a/clients/GitHub/README.md b/clients/GitHub/README.md index 7d4d9ce394f..8ebdf89731e 100644 --- a/clients/GitHub/README.md +++ b/clients/GitHub/README.md @@ -2830,6 +2830,310 @@ $client->operations()->actions()->setGithubActionsDefaultWorkflowPermissionsOrga You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/actions/permissions#set-default-workflow-permissions-for-an-organization). +### actions/list-self-hosted-runner-groups-for-org + +List self-hosted runner groups for an organization + +Using the `call` method: +```php +$client->call('GET /orgs/{org}/actions/runner-groups', [ + 'org' => 'generated', + 'visible_to_repository' => 'generated', + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->actions()->listSelfHostedRunnerGroupsForOrg( org: 'generated', + visible_to_repository: 'generated', + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/actions/self-hosted-runner-groups#list-self-hosted-runner-groups-for-an-organization). + + +### actions/create-self-hosted-runner-group-for-org + +Create a self-hosted runner group for an organization + +Using the `call` method: +```php +$client->call('POST /orgs/{org}/actions/runner-groups', [ + 'org' => 'generated', +]); +``` + +Operations method: +```php +$client->operations()->actions()->createSelfHostedRunnerGroupForOrg( org: 'generated', +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/actions/self-hosted-runner-groups#create-a-self-hosted-runner-group-for-an-organization). + + +### actions/get-self-hosted-runner-group-for-org + +Get a self-hosted runner group for an organization + +Using the `call` method: +```php +$client->call('GET /orgs/{org}/actions/runner-groups/{runner_group_id}', [ + 'org' => 'generated', + 'runner_group_id' => 15, +]); +``` + +Operations method: +```php +$client->operations()->actions()->getSelfHostedRunnerGroupForOrg( org: 'generated', + runner_group_id: 15, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/actions/self-hosted-runner-groups#get-a-self-hosted-runner-group-for-an-organization). + + +### actions/delete-self-hosted-runner-group-from-org + +Delete a self-hosted runner group from an organization + +Using the `call` method: +```php +$client->call('DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}', [ + 'org' => 'generated', + 'runner_group_id' => 15, +]); +``` + +Operations method: +```php +$client->operations()->actions()->deleteSelfHostedRunnerGroupFromOrg( org: 'generated', + runner_group_id: 15, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/actions/self-hosted-runner-groups#delete-a-self-hosted-runner-group-from-an-organization). + + +### actions/update-self-hosted-runner-group-for-org + +Update a self-hosted runner group for an organization + +Using the `call` method: +```php +$client->call('PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}', [ + 'org' => 'generated', + 'runner_group_id' => 15, +]); +``` + +Operations method: +```php +$client->operations()->actions()->updateSelfHostedRunnerGroupForOrg( org: 'generated', + runner_group_id: 15, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/actions/self-hosted-runner-groups#update-a-self-hosted-runner-group-for-an-organization). + + +### actions/list-repo-access-to-self-hosted-runner-group-in-org + +List repository access to a self-hosted runner group in an organization + +Using the `call` method: +```php +$client->call('GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories', [ + 'org' => 'generated', + 'runner_group_id' => 15, + 'page' => 1, + 'per_page' => 8, +]); +``` + +Operations method: +```php +$client->operations()->actions()->listRepoAccessToSelfHostedRunnerGroupInOrg( org: 'generated', + runner_group_id: 15, + page: 1, + per_page: 8, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/actions/self-hosted-runner-groups#list-repository-access-to-a-self-hosted-runner-group-in-an-organization). + + +### actions/set-repo-access-to-self-hosted-runner-group-in-org + +Set repository access for a self-hosted runner group in an organization + +Using the `call` method: +```php +$client->call('PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories', [ + 'org' => 'generated', + 'runner_group_id' => 15, +]); +``` + +Operations method: +```php +$client->operations()->actions()->setRepoAccessToSelfHostedRunnerGroupInOrg( org: 'generated', + runner_group_id: 15, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/actions/self-hosted-runner-groups#set-repository-access-for-a-self-hosted-runner-group-in-an-organization). + + +### actions/add-repo-access-to-self-hosted-runner-group-in-org + +Add repository access to a self-hosted runner group in an organization + +Using the `call` method: +```php +$client->call('PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}', [ + 'org' => 'generated', + 'runner_group_id' => 15, + 'repository_id' => 13, +]); +``` + +Operations method: +```php +$client->operations()->actions()->addRepoAccessToSelfHostedRunnerGroupInOrg( org: 'generated', + runner_group_id: 15, + repository_id: 13, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/actions/self-hosted-runner-groups#add-repository-access-to-a-self-hosted-runner-group-in-an-organization). + + +### actions/remove-repo-access-to-self-hosted-runner-group-in-org + +Remove repository access to a self-hosted runner group in an organization + +Using the `call` method: +```php +$client->call('DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}', [ + 'org' => 'generated', + 'runner_group_id' => 15, + 'repository_id' => 13, +]); +``` + +Operations method: +```php +$client->operations()->actions()->removeRepoAccessToSelfHostedRunnerGroupInOrg( org: 'generated', + runner_group_id: 15, + repository_id: 13, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/actions/self-hosted-runner-groups#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization). + + +### actions/list-self-hosted-runners-in-group-for-org + +List self-hosted runners in a group for an organization + +Using the `call` method: +```php +$client->call('GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners', [ + 'org' => 'generated', + 'runner_group_id' => 15, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->actions()->listSelfHostedRunnersInGroupForOrg( org: 'generated', + runner_group_id: 15, + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/actions/self-hosted-runner-groups#list-self-hosted-runners-in-a-group-for-an-organization). + + +### actions/set-self-hosted-runners-in-group-for-org + +Set self-hosted runners in a group for an organization + +Using the `call` method: +```php +$client->call('PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners', [ + 'org' => 'generated', + 'runner_group_id' => 15, +]); +``` + +Operations method: +```php +$client->operations()->actions()->setSelfHostedRunnersInGroupForOrg( org: 'generated', + runner_group_id: 15, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/actions/self-hosted-runner-groups#set-self-hosted-runners-in-a-group-for-an-organization). + + +### actions/add-self-hosted-runner-to-group-for-org + +Add a self-hosted runner to a group for an organization + +Using the `call` method: +```php +$client->call('PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}', [ + 'org' => 'generated', + 'runner_group_id' => 15, + 'runner_id' => 9, +]); +``` + +Operations method: +```php +$client->operations()->actions()->addSelfHostedRunnerToGroupForOrg( org: 'generated', + runner_group_id: 15, + runner_id: 9, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/actions/self-hosted-runner-groups#add-a-self-hosted-runner-to-a-group-for-an-organization). + + +### actions/remove-self-hosted-runner-from-group-for-org + +Remove a self-hosted runner from a group for an organization + +Using the `call` method: +```php +$client->call('DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}', [ + 'org' => 'generated', + 'runner_group_id' => 15, + 'runner_id' => 9, +]); +``` + +Operations method: +```php +$client->operations()->actions()->removeSelfHostedRunnerFromGroupForOrg( org: 'generated', + runner_group_id: 15, + runner_id: 9, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/actions/self-hosted-runner-groups#remove-a-self-hosted-runner-from-a-group-for-an-organization). + + ### actions/list-self-hosted-runners-for-org List self-hosted runners for an organization @@ -13000,6 +13304,8 @@ $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts', [ 'tool_guid' => , 'ref' => 'generated', 'pr' => 2, + 'before' => 'generated', + 'after' => 'generated', 'state' => 'generated', 'severity' => 'generated', 'page' => 1, @@ -13017,6 +13323,8 @@ $client->operations()->codeScanning()->listAlertsForRepo( owner: 'generat tool_guid: , ref: 'generated', pr: 2, + before: 'generated', + after: 'generated', state: 'generated', severity: 'generated', page: 1, @@ -13042,6 +13350,8 @@ $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts', [ 'tool_guid' => , 'ref' => 'generated', 'pr' => 2, + 'before' => 'generated', + 'after' => 'generated', 'state' => 'generated', 'severity' => 'generated', 'page' => 1, @@ -13059,6 +13369,8 @@ $client->operations()->codeScanning()->listAlertsForRepoListing( owner: ' tool_guid: , ref: 'generated', pr: 2, + before: 'generated', + after: 'generated', state: 'generated', severity: 'generated', page: 1, diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 059b7d5cf68..28d5490da24 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "f0ef821141c0585bc8759f53f482f086", + "specHash": "a359c50c42a91cee9b6aa2cfcf93605d", "generatedFiles": { "files": [ { @@ -260,15 +260,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecurityAndAnalysis.php", - "hash": "f72712f6a81ab954ee9f669038a2be4b" + "hash": "6336ff87ffca963b174ce444459472bf" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/MinimalRepository.php", - "hash": "ee60aa544c5cabb4ed384ab99ff304ff" + "hash": "046779250c765b66040e6c4fc919c1e1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Thread.php", - "hash": "a48c3b1923b1e3855cd6795bbdd935a6" + "hash": "47a9b7aa514a50924af05bc076f36657" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ThreadSubscription.php", @@ -448,7 +448,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Codespace.php", - "hash": "c515a831e15577f5a2766057ee2d1238" + "hash": "1f8f2aed150827aff653e21ca5d43402" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodespacesOrgSecret.php", @@ -468,7 +468,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Package.php", - "hash": "fe7a1e004cef4a5d24c0286880df8dde" + "hash": "8f46972d5c0f08bc134bf6d48cd0abb6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationInvitation.php", @@ -604,7 +604,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php", - "hash": "0548c1fc5ad7d9aa58fa85a028cb2724" + "hash": "0a99380d26f2cfe51a0446a6c0793588" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsBillingUsage.php", @@ -680,7 +680,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/FullRepository.php", - "hash": "b0f266c22fbd1b8c3f8e423ddf0476ac" + "hash": "47e235b4c651167d1858701386fba61f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Artifact.php", @@ -732,7 +732,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WorkflowRun.php", - "hash": "9838a93a867401545eaebc59053f21f7" + "hash": "48fe12bef8c066c2833184abadf6c511" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/EnvironmentApprovals.php", @@ -836,11 +836,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CheckSuite.php", - "hash": "981dbb1fa571139845d91406f8a357a7" + "hash": "9c0484f9a78c61c5ce12f81aadbf15f8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CheckSuitePreference.php", - "hash": "18e9cdc0fa3582614405258f3f7b1447" + "hash": "20edc2dc259493787636151ae5aa9f49" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertRuleSummary.php", @@ -928,7 +928,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryInvitation.php", - "hash": "dfe9dcabb1a8631f5027902211bb8665" + "hash": "8670d1bdc35e2c2ab165b57323269aa1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryCollaboratorPermission.php", @@ -960,7 +960,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CombinedCommitStatus.php", - "hash": "f5bdb8b52183e9b7aad3ef1f1730ca89" + "hash": "f452eef7f579b2ad011892468a052cb7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Status.php", @@ -1448,11 +1448,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSearchResultItem.php", - "hash": "c4a501da95809ff181e0bedec1ca7de6" + "hash": "4efa42c4c7209b2803bcbf31f83a9428" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CommitSearchResultItem.php", - "hash": "7a659a97221d2308399fe6be2e89ad45" + "hash": "7f0f335dde113276c1deaee62b265a1e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/IssueSearchResultItem.php", @@ -1492,7 +1492,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodespaceWithFullRepository.php", - "hash": "2dfc092b1d8270c0bcc83787be3b97a8" + "hash": "f7cb8f417e8c2af384da3233fef9e87d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Email.php", @@ -1540,11 +1540,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SimpleCheckSuite.php", - "hash": "2898ab9fff52805fa95093c333c7c7dc" + "hash": "8f15dd9346b8d24b048b080785d248d6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CheckRunWithSimpleCheckSuite.php", - "hash": "20e7265a0f447982c63e440d812a4216" + "hash": "dd2f621215909597bdc5d037f61bf56a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Discussion.php", @@ -1580,7 +1580,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCompleted.php", - "hash": "e5c657b148441f61c432026b97fc122d" + "hash": "8fc7bd75b7cb82b6c905f955ad28a2d0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCompletedFormEncoded.php", @@ -1588,7 +1588,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCreated.php", - "hash": "c5d65c42264429dfc15e5abdb50b6294" + "hash": "820309b821e753fecb05868fdfd0e153" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCreatedFormEncoded.php", @@ -1596,7 +1596,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRequestedAction.php", - "hash": "7e70f31331eb98876cc92c81c1f8a765" + "hash": "a9ade5091c3ca380861296180ada44bc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRequestedActionFormEncoded.php", @@ -1604,7 +1604,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRerequested.php", - "hash": "daeb58cee17b0cc1c57cede3ab9d9eca" + "hash": "f8762cefa7c4645cad2bef163d774e6f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRerequestedFormEncoded.php", @@ -2412,7 +2412,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAndAnalysis.php", - "hash": "0db79242f30562be913ae7e08fab9999" + "hash": "260d57e8824a77ef8c80a3f61c9fa06f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipCancelled.php", @@ -2724,7 +2724,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Links.php", - "hash": "bcc7456e61f16ac64ec3a16db70b5318" + "hash": "2126aff60ef3e843fc7a5abeedaea52f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Links\/Self_.php", @@ -4236,11 +4236,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAndAnalysis\/Changes.php", - "hash": "d76cd4a80a0bf4be980fc933307ade3d" + "hash": "c2e92e6d80cad3377d56bed24fb42fd9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAndAnalysis\/Changes\/From.php", - "hash": "6f3dffcddddbc3fa8aa9b070293b71e4" + "hash": "5e196a18e1e4d55c2083862ed1e45ba7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipEdited\/Changes.php", @@ -4520,7 +4520,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListSelectedReposForOrgSecret\/Response\/ApplicationJson\/Ok.php", - "hash": "f5b0d9d26538b6b6c7c01ed0c241cd32" + "hash": "38d7c86593037c176a0b8104c2b4ab37" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actions\/SetSelectedReposForOrgSecret\/Request\/ApplicationJson.php", @@ -4544,7 +4544,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListInOrganization\/Response\/ApplicationJson\/Ok.php", - "hash": "2fb74b0ae7b045dcbbf9052095cd80c9" + "hash": "e9ea382fe2042dee9a6cee5dd3bbf9f5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListOrgSecrets\/Response\/ApplicationJson\/Ok.php", @@ -4736,11 +4736,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/Update\/Request\/ApplicationJson.php", - "hash": "30fb978b37dd1434407b475e2c9cb5d2" + "hash": "608964aecaf3df7418ab5e377b0e6034" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/Update\/Request\/ApplicationJson\/SecurityAndAnalysis.php", - "hash": "18b7d05d3a41aa8ee164a2182c352935" + "hash": "21a9d9be69285f43bf714dcfa7c74fd3" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/Update\/Request\/ApplicationJson\/SecurityAndAnalysis\/AdvancedSecurity.php", @@ -4976,7 +4976,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Checks\/ListSuitesForRef\/Response\/ApplicationJson\/Ok.php", - "hash": "39775757dd2293966a7f80fde7983ab5" + "hash": "06efaf91c5ea0b940f44a52142c2af8a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Repos\/GetContent\/Response\/ApplicationJson\/Ok.php", @@ -5384,11 +5384,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/Code\/Response\/ApplicationJson\/Ok.php", - "hash": "b1c7651b0684ea468ac193702be1b0d2" + "hash": "035fc3695d07260e72c48ec217402ba9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/Commits\/Response\/ApplicationJson\/Ok.php", - "hash": "8f5a4ea9f3f5c12acea0800eafb852f0" + "hash": "c20623af4be41d9fe8c3b741d7ddf576" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/IssuesAndPullRequests\/Response\/ApplicationJson\/Ok.php", @@ -5516,11 +5516,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/ClientInterface.php", - "hash": "5600421d27371b8a1223bccd95955a94" + "hash": "9a3c58462e80584fb8c6c5c72589817e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Client.php", - "hash": "0f5c7c934be515ec19c532417cae2502" + "hash": "c78f8c6f8fa273c6432018dd0e5d7144" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/OperationsInterface.php", @@ -5580,7 +5580,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php", - "hash": "277e40b19d896803fe34e8e94f5afbaf" + "hash": "4d87b390f1da78eaa41497176cc76853" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Oidc.php", @@ -5588,7 +5588,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/CodeScanning.php", - "hash": "2c7c15d8ddde2bd3c6faa18ee78ce4ae" + "hash": "432ab799a3f9b4a3dc004db5a1cd63e9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Codespaces.php", @@ -5612,7 +5612,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "051cd6393628919848d5bab73f4446bb" + "hash": "23d814b1595b02a1889d455e0061953c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php", @@ -11144,59 +11144,59 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListSelectedReposForOrgVariable\/Response\/ApplicationJson\/Ok.php", - "hash": "02e0bcbb7dc0d5f4ba337d9b3eacf677" + "hash": "ef1173249da434bb4df8d8d9529b30fe" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListSelectedReposForOrgVariable\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "39022b80b76f2b3d772534e5e8012040" + "hash": "8b2bb4efbbdfdf933418b7433b172675" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListSelectedReposForOrgSecret\/Response\/ApplicationJson\/Ok.php", - "hash": "e47c06409d825da0f7c2ef106b018584" + "hash": "8fc18acac76c98260aae6b3755098d98" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListSelectedReposForOrgSecret\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "9fa9d222798aa8b9af287c6efa215ab4" + "hash": "24767827f727764232663733cae5bc6d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Dependabot\/ListSelectedReposForOrgSecret\/Response\/ApplicationJson\/Ok.php", - "hash": "6a7e9a2567dab0eba579cec51d1c0125" + "hash": "a4fc5ba3f5d2db45943d26a2f6d1dc7b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Dependabot\/ListSelectedReposForOrgSecret\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "438257e32cbdf33407515b2cd717396e" + "hash": "368399dc440b60eae18f2aa14ba5d2d1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListRepositoriesForSecretForAuthenticatedUser\/Response\/ApplicationJson\/Ok.php", - "hash": "5bcd89e439108f3d3553e6264b4e9321" + "hash": "a488fe89362386aea77d36ee640ee587" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListRepositoriesForSecretForAuthenticatedUser\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "629b69b02e6624c69815b98db55a73c7" + "hash": "95d664ecc269e418e47b76c6410b4e9b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/GetCodespacesForUserInOrg\/Response\/ApplicationJson\/Ok.php", - "hash": "71a8c5307cf0eed0077a25aaba66cf06" + "hash": "d0a51ecd70200f48f1940e25b26c32a2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/GetCodespacesForUserInOrg\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "d11e7d73c2ab15b1565ab729b691888e" + "hash": "75d1c30a861a29c37d459c1d19bb22b2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListInRepositoryForAuthenticatedUser\/Response\/ApplicationJson\/Ok.php", - "hash": "7222748bcfa0196fed04d3132f2c7e35" + "hash": "3014643825a27af71eb8b187605157b1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListInRepositoryForAuthenticatedUser\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "fc72ee7d132237922c6d9c6478d111ab" + "hash": "4023f1d4e443b5119247f4f483e5c345" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListForAuthenticatedUser\/Response\/ApplicationJson\/Ok.php", - "hash": "a102d8b88239a7fb3a1c9aa49f2633a1" + "hash": "0859a46a4330cced2bf0a3b2aa6c71f8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListForAuthenticatedUser\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "80444921f9c0d4f279596e627062155c" + "hash": "5f1381d4a64a2a9c6796e46c27f9ff6b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Apps\/ListInstallationsForAuthenticatedUser\/Response\/ApplicationJson\/Ok.php", @@ -11432,15 +11432,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListWorkflowRunsForRepo\/Response\/ApplicationJson\/Ok.php", - "hash": "ebbd00c2e8d85feeb8b0eb827f93f8ad" + "hash": "0883f4cdfec1ea7de762bc1d6c8059cf" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListWorkflowRuns\/Response\/ApplicationJson\/Ok.php", - "hash": "5734b6d5c025254ebbf8c65c60617554" + "hash": "f4475c2c43ed11bb077b8e767abf96b8" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListWorkflowRuns\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "a9310db8fc7074033dbf09a11afefea8" + "hash": "a738fb099a077259a378f07963225348" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListJobsForWorkflowRun\/Response\/ApplicationJson\/Ok.php", @@ -11628,7 +11628,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset\/Links\/Html.php", - "hash": "e2d5d17eb0ac849912f4133b2f5437ea" + "hash": "5d9d423675730b207104e0e29790bcb0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet4C203984\/Tiet86D11BF8\/Tiet9FC2225A\/Tiet026CAEC5.php", @@ -11792,15 +11792,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php", - "hash": "17989ef8a69b57913c65ef2bd400ce46" + "hash": "4510046072ccfa93bc49df7d2d12b97e" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php", - "hash": "dc5078cdcb03fba7bf028e7992c1e2b2" + "hash": "3e18ea4c1cca3b5768ed08560e145344" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php", - "hash": "1d6244469dae7a32f003a28518336e23" + "hash": "2a29f93f1d202e12906aa73b2395dab6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewApproved\/WorkflowRun\/Actor.php", @@ -15120,7 +15120,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetOrgRulesets.php", - "hash": "c1b9491afbbfeb0c1780da092ed219dd" + "hash": "2f08740831167028671425aa653d02f2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetOrgRulesetsTest.php", @@ -15132,7 +15132,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetOrgRulesetsListing.php", - "hash": "48dbf3810af9d5cfda666701a04716a4" + "hash": "340602ed145b7a9a42cfb31953189184" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetOrgRulesetsListingTest.php", @@ -17620,27 +17620,27 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepo.php", - "hash": "a69b3ba89a6cb68f054f7b1c91425b82" + "hash": "a607c23399f8d8a22120d55cfed22c33" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListAlertsForRepo.php", - "hash": "6398f78e91377952d326f9bbc98a5c80" + "hash": "44d263576cf5d6b247de2cbef18c12b2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepoTest.php", - "hash": "fb5bb3baabc7cdbe6ec6424537041df2" + "hash": "c5e54024fdee644906c071674497dbb9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepoListing.php", - "hash": "5c2cb1bc7cac3ac2d46cdc2f43604b0d" + "hash": "b5dd5fee61c382ec42481d858a38d563" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListAlertsForRepoListing.php", - "hash": "8ac241f71a05cf3fbd36f1676a39b172" + "hash": "47ca247a60b464dd13f9e51065d0b49b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepoListingTest.php", - "hash": "1cabd1a58167dfec9fd30e24f1fba7f2" + "hash": "a21b1836618aa20acab2bc59e6fb1684" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/CodeScanning\/GetAlert.php", @@ -21016,7 +21016,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRulesets.php", - "hash": "63f54855c1abc54938d3e76f0022b157" + "hash": "ea1c71f799b0cf2a9a21b8e3a41f1290" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRulesetsTest.php", @@ -21028,7 +21028,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetRepoRulesetsListing.php", - "hash": "1c0658faa66ba7e8e843ccd03c453b03" + "hash": "b0ef9db64e01b6f0b1797cb9948c436b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetRepoRulesetsListingTest.php", @@ -24460,7 +24460,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php", - "hash": "f6fc5c47a25e0c7aa3830069f5c6b15b" + "hash": "6d2836d0de401a5cf89f3a0cc8ce5f98" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php", @@ -24508,11 +24508,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Actions.php", - "hash": "4bfd8c4093fdf91b3df6588de460a12a" + "hash": "53fbda42100896abbc981bf1f6249c14" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeScanning.php", - "hash": "397c1058e013c6c3b6d13471578fa3b9" + "hash": "c94355cfeac0b6b87a72fefeea070de2" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Copilot.php", @@ -24576,7 +24576,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Actions.php", - "hash": "ce38796624b71753ce3a36b16a2eb01e" + "hash": "896667d2b5e83258ffc7442c847df018" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Codespaces.php", @@ -24672,7 +24672,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Actions.php", - "hash": "7248f49210604c9afee6a79e3a26089c" + "hash": "cf87578dddaee414cac75fcdc52c0768" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Checks.php", @@ -24736,7 +24736,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php", - "hash": "8ac3762840b7518082ff0791571013ac" + "hash": "f5ea065b264c97d6797480a75792ec1a" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php", @@ -24756,7 +24756,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/CodeScanning.php", - "hash": "cebc7adbf12eb4c44156edbfd0aaf81c" + "hash": "cc0f36ff47c98f87088daf5fe41c0325" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/SecretScanning.php", @@ -24828,7 +24828,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Actions.php", - "hash": "39b5c067ba2325de8d5412732ca696cb" + "hash": "670a7c0be62d720a604c8d1d78d51bec" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/CodeScanning.php", @@ -24868,7 +24868,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Actions.php", - "hash": "338a2f4f0fcbd2a9e459208577f1b87d" + "hash": "32506c20c90a63d87813758e087acf1f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Orgs.php", @@ -24948,19 +24948,19 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Four.php", - "hash": "47b25cd3d28cc3944541a5100a44428b" + "hash": "f248e13197b434832a0cbb6e3c9f1df4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "75ae89c5b320acc265942e34810063d8" + "hash": "3e02d8fbd97260d3185d45654c622467" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "b2a28a4c2a159a5554c4694f89317cfd" + "hash": "8afcc828871de73afd9d189b95dbb9de" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "408ae3b08980cd95b38a206cf253c48b" + "hash": "e705c19ddabdf0f6bea05b1906357a18" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -24984,7 +24984,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Five.php", - "hash": "541f02fd060ce314d93538b798a3977a" + "hash": "328bc96069e0740cd42a08bfaa45fd2f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Two.php", @@ -25024,7 +25024,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Six.php", - "hash": "aa1b8d377d9a8d5117dbd85316198d65" + "hash": "3910342610eba66e09b37756fbd9eaca" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Seven.php", @@ -25052,15 +25052,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Four.php", - "hash": "d884362f660768c44ec3cb877273ea4f" + "hash": "0bd1bbcad8e6f0a66a2ee13388a836ac" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "089c23b82d3036be6791c77247892fa4" + "hash": "847f3fb360c2b185cfe50d6fb2ad225b" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", - "hash": "308c392e37c1750ea31302f83f39951f" + "hash": "f51d517a7c9d7d058dbd769382a37fef" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", @@ -25096,11 +25096,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php", - "hash": "ca355d92539b542ef91be76d2fb5450d" + "hash": "0932bfe03c503c6299c7ed5dcde02ab7" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Eight.php", - "hash": "a1e5746ec598531eaf1b21603eb16aca" + "hash": "230cef39d38066f9eaabf4ba34af1fc6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Nine.php", @@ -25124,7 +25124,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Seven.php", - "hash": "1c063d73b3e6327c4b70db267d40488f" + "hash": "cb96764581875a02be2e7e1b03d7d130" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Six.php", @@ -25132,7 +25132,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Eight.php", - "hash": "86bf73194511c3e1cf0780077c0ec325" + "hash": "0abe241eee6ae653ce08b8a6ffaabcb0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Nine.php", @@ -25160,7 +25160,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operators.php", - "hash": "6414e56629281c294082d1ed24987d74" + "hash": "02f0e8d80d1579a92222b772333b2ab5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php", @@ -25348,7 +25348,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Notifications\/Threads\/ThreadId.php", - "hash": "0ce83edc20f9fa33c7e1e55fd7c31e41" + "hash": "2637143125cdcc7b52efcdf0f06c47d4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Notifications\/Threads\/ThreadId\/Subscription.php", @@ -25600,7 +25600,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Members\/Username\/Codespaces\/CodespaceName\/Stop.php", - "hash": "882c79d064b38ada4c485c0476ba0145" + "hash": "8fb2569b517b86bb80a81030336613af" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Members\/Username\/Copilot.php", @@ -25640,7 +25640,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Packages\/PackageType\/PackageName.php", - "hash": "f1448c5b580ba3781c7cedd580c12f04" + "hash": "9a162536da7731f77547a079d5b7c223" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Packages\/PackageType\/PackageName\/Restore.php", @@ -25692,7 +25692,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Repos.php", - "hash": "6a6ae06876c08e733070f947af1441c3" + "hash": "0a50e3c59e0ddee71a5d6a66e1edec8c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Rulesets.php", @@ -25812,7 +25812,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo.php", - "hash": "ebf3c8535c4ebebd56007efe51f2be9e" + "hash": "04c9d5c17922cbe4f837099665689bbe" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Artifacts.php", @@ -25904,7 +25904,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Runs\/RunId.php", - "hash": "9823ab077dc4939e2721fb27d73f349b" + "hash": "483b63770808a1644e32ddb07bb35164" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Runs\/RunId\/Approve.php", @@ -25916,7 +25916,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Runs\/RunId\/Attempts\/AttemptNumber.php", - "hash": "af1aa415f614c89eab77b81bff0e462c" + "hash": "23316b5bd86f49fde428e844b94277bf" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Runs\/RunId\/Attempts\/AttemptNumber\/Jobs.php", @@ -26072,15 +26072,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites.php", - "hash": "b0b19bdb0ba6361ae55820cfaf6fd3b9" + "hash": "1ca8aeea4199fc84fa6c1c4a293caba0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites\/Preferences.php", - "hash": "1e163451be2616e207237f2c5131ca45" + "hash": "da150301ca2e6cdadc7313ad2e3c4880" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites\/CheckSuiteId.php", - "hash": "bc1d24e0290043107a521b9134782496" + "hash": "574710afe087bcd9e41b046222f2b44f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites\/CheckSuiteId\/CheckRuns.php", @@ -26136,7 +26136,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Codespaces.php", - "hash": "7a73821b827b3a8771a8ef9fb8288a2d" + "hash": "83762629e271b5964731214d8c25dd6c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Codespaces\/Devcontainers.php", @@ -26168,7 +26168,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Collaborators\/Username.php", - "hash": "749d47825a1568cdbd1439918eb54fc2" + "hash": "0292fd0958c6dc28b4010a909f9b0bae" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Collaborators\/Username\/Permission.php", @@ -26208,7 +26208,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Commits\/Ref\/Status.php", - "hash": "b758709e21b50ae44e0536f514fd1baf" + "hash": "d815dd4d43fb3059c89cee5adf7756f6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Commits\/Ref\/Statuses.php", @@ -26312,7 +26312,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Forks.php", - "hash": "402e50b565d5a693b169e13c6e54f4a2" + "hash": "0a19592fbfc210def1efd6ccb22d45af" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Git\/Blobs.php", @@ -26420,7 +26420,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Invitations\/InvitationId.php", - "hash": "d099a99f010e0d43632a7e34d457dca9" + "hash": "333ebadac3a62b371c89c1a582e730d4" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues.php", @@ -26576,7 +26576,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Pulls\/PullNumber\/Codespaces.php", - "hash": "0c487ba96471337b39a20d196f6478d3" + "hash": "97fc5943774e593ed15be05841578ee9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Pulls\/PullNumber\/Comments.php", @@ -26760,11 +26760,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Transfer.php", - "hash": "230ca12314ca717d1998bf06e2473aad" + "hash": "1bb07b43bd1c642ea9906682ef4cd718" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/TemplateOwner\/TemplateRepo\/Generate.php", - "hash": "06ca669d01703a92306e76ca8ffe28d4" + "hash": "887e62f60bc0f427f871a7e7da71ed13" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repositories.php", @@ -26872,7 +26872,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Codespaces.php", - "hash": "45a5f541f0fd7e539c270a6576082117" + "hash": "2e17472d94605f0f58756601ca13e3e6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Codespaces\/Secrets.php", @@ -26896,7 +26896,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Codespaces\/CodespaceName.php", - "hash": "e1425111ac71b5f73a3f12a495630338" + "hash": "0119ea59023e1edf65ee69e82a2db774" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Codespaces\/CodespaceName\/Exports.php", @@ -26912,15 +26912,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Codespaces\/CodespaceName\/Publish.php", - "hash": "513555dfc49c1a03f26150aa482b4c35" + "hash": "ff667f6533735c7805921af95decbab1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Codespaces\/CodespaceName\/Start.php", - "hash": "d19d3bdb60776527fcf71578bf57bd69" + "hash": "b7383347b3b35ff3ffac99e8ea25d996" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Codespaces\/CodespaceName\/Stop.php", - "hash": "5cd4d0ee81786205eabb57fa229ed2a6" + "hash": "aa918b468625555d0e0f8261ebef94e6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Email\/Visibility.php", @@ -27020,7 +27020,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Packages\/PackageType\/PackageName.php", - "hash": "2832ad1b733657469b003231265877e4" + "hash": "c2b7290505f01df691cebb4c839e1a06" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Packages\/PackageType\/PackageName\/Restore.php", @@ -27048,7 +27048,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Repos.php", - "hash": "e722825b30f5fe26daa7495bbf611364" + "hash": "4777b985973119beead0ed0e65a4022f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/RepositoryInvitations.php", @@ -27112,7 +27112,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Users\/Username\/Packages\/PackageType\/PackageName.php", - "hash": "2b17f8508249dd0b85da00caaa33176e" + "hash": "edc4477c1335d10895ac52fac625f5e9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Users\/Username\/Packages\/PackageType\/PackageName\/Restore.php", @@ -27152,7 +27152,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "efacbae4d809e227253736215f55ce5c" + "hash": "f6c9fcb253adf0370dc52ed604dc0c62" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSimpleWebhooks.php", @@ -27736,11 +27736,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "f5c81d72072dc36f546288473c6cef6a" + "hash": "47a19606a91c347cb0df1e88f2925328" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "09d3f81ea6b7302920dbb397f2c52bd5" + "hash": "c9174db8b9be989f53b23dada0caa161" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -28040,7 +28040,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CheckRun.php", - "hash": "f6edb853e3473b5f81941256346376b5" + "hash": "824ee70dd5151422e14c5d6a92ce9ec1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CheckSuite.php", @@ -28276,7 +28276,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecurityAndAnalysis.php", - "hash": "1b6e7f5bcdda7f7b9dca19b05c2c1933" + "hash": "2b25f4a685bd40217d525534f0198df0" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Sponsorship.php", @@ -28468,7 +28468,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecurityAdvisories\/GhsaId\/Forks.php", - "hash": "8aba7d5d785d7216ee4e00774a9bca5a" + "hash": "af0117816f8f465b7bb6ef231dfb4922" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningLocationDiscussionTitle.php", @@ -30158,22 +30158,10 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecurityAndAnalysis\/SecretScanningNonProviderPatterns.php", "hash": "99a578ee6bdacc89665701e3a9a7c2c2" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet17613DC9\/TietF76E0494\/TietB0772899\/Tiet91E3F984.php", - "hash": "de26003569861f716458178801450c3a" - }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietF07AF25E\/TietD2A72B52\/Tiet57F3E90D\/TietF0079343.php", - "hash": "d8ac958e898844632dc87c5a6fab83fb" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/Update\/Request\/ApplicationJson\/SecurityAndAnalysis\/SecretScanningNonProviderPatterns.php", "hash": "3a700f417305af536688b450c75a78a8" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietA5593530\/TietD4C63CAD\/Tiet95D73CC3\/TietF1B17EC4.php", - "hash": "d3532c34c3e68099213cce4009785394" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/CodeSecurity\/DetachConfiguration.php", "hash": "e73f415e19fd297e7cff67ce040bfa7e" @@ -30453,6 +30441,202 @@ { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet6B82E311\/TietAB37E426\/Tiet938DAB86\/TietABDC4BA5.php", "hash": "82ffa7187f7f6bd092834767628b8a35" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/ListSelfHostedRunnerGroupsForOrg.php", + "hash": "2f2eaf5f2c431647b594bfa78d1bf946" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/ListSelfHostedRunnerGroupsForOrg.php", + "hash": "242483748b9f2c8c7f24c0a008b7bdcc" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/ListSelfHostedRunnerGroupsForOrgTest.php", + "hash": "c3de6f444a23b50414a5ef3f693afb3a" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/CreateSelfHostedRunnerGroupForOrg.php", + "hash": "a7f6a18683bc7c06c4a56604318166cd" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/CreateSelfHostedRunnerGroupForOrg.php", + "hash": "a3bcd8f501d42853a05b3067b08d0a67" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/CreateSelfHostedRunnerGroupForOrgTest.php", + "hash": "83b4d068e9fa350adc76399f8426ca0b" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/GetSelfHostedRunnerGroupForOrg.php", + "hash": "36ebb7fa04f4815153ee6a35d78509b7" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GetSelfHostedRunnerGroupForOrg.php", + "hash": "dc3e7bbc1f0ef52a46ddd017003f7a62" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GetSelfHostedRunnerGroupForOrgTest.php", + "hash": "77b677e81bd0f239c05fd656ed6a6469" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/DeleteSelfHostedRunnerGroupFromOrg.php", + "hash": "c0c16df63acd75a49b01a070b867d716" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/DeleteSelfHostedRunnerGroupFromOrg.php", + "hash": "163e578cf2e136cfb6f4221a44871e26" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/UpdateSelfHostedRunnerGroupForOrg.php", + "hash": "05bb49761b8f6b0e20cf6f7d4a834557" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/UpdateSelfHostedRunnerGroupForOrg.php", + "hash": "736cf26fee15cbee133ace7b2808c2e2" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/UpdateSelfHostedRunnerGroupForOrgTest.php", + "hash": "be2e88fbe025debf30e96ff2a8e10de0" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/ListRepoAccessToSelfHostedRunnerGroupInOrg.php", + "hash": "5c044e2c8d929df19c8bd3fb7c9b5a5f" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/ListRepoAccessToSelfHostedRunnerGroupInOrg.php", + "hash": "d036be2c149aa5d8355f40522f4e22f4" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/ListRepoAccessToSelfHostedRunnerGroupInOrgTest.php", + "hash": "41410d473e8cc6b77cfa853094f82d9d" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/SetRepoAccessToSelfHostedRunnerGroupInOrg.php", + "hash": "d9aa8df4711d5fb00667edddcdcbbd1c" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/SetRepoAccessToSelfHostedRunnerGroupInOrg.php", + "hash": "7fff22f06512f781aeccfc0c32e9586e" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/AddRepoAccessToSelfHostedRunnerGroupInOrg.php", + "hash": "6695d1b268191f2b14607e493465548f" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/AddRepoAccessToSelfHostedRunnerGroupInOrg.php", + "hash": "23418430cbe9f528659dad4732fdc4ec" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/RemoveRepoAccessToSelfHostedRunnerGroupInOrg.php", + "hash": "e8df704bd3d6210931fbd937cca5b9a2" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/RemoveRepoAccessToSelfHostedRunnerGroupInOrg.php", + "hash": "67973c3b0985780b0da60962cb7bca7b" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/ListSelfHostedRunnersInGroupForOrg.php", + "hash": "da1798086e57922beaf33b491970a25e" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/ListSelfHostedRunnersInGroupForOrg.php", + "hash": "72d22fbf505e28922047fec42baab960" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/ListSelfHostedRunnersInGroupForOrgTest.php", + "hash": "0b15ca79b2869734b96113c592ef033b" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/SetSelfHostedRunnersInGroupForOrg.php", + "hash": "103c080627a40a323b21c6a41439f76d" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/SetSelfHostedRunnersInGroupForOrg.php", + "hash": "1344ddbd6b57ed067f8c552c8e808a9f" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/AddSelfHostedRunnerToGroupForOrg.php", + "hash": "1d94aa287e3770d2cc7bd064ba6eab1a" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/AddSelfHostedRunnerToGroupForOrg.php", + "hash": "f4ebaa20d542642c05b31a9a817bbcda" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/RemoveSelfHostedRunnerFromGroupForOrg.php", + "hash": "305976550cc135f9547d227070ca6ab0" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/RemoveSelfHostedRunnerFromGroupForOrg.php", + "hash": "363b4b63599f61804de07a9141cddcdc" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RunnerGroupsOrg.php", + "hash": "64ec814c2ec5a63d45a7b8ab4650404d" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecurityAndAnalysis\/SecretScanningAiDetection.php", + "hash": "9b03614b9ffc39f98d249cf95df8e215" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListSelfHostedRunnerGroupsForOrg\/Response\/ApplicationJson\/Ok.php", + "hash": "9004a033e2568a4b1f7ee9b61f5a5ae7" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actions\/CreateSelfHostedRunnerGroupForOrg\/Request\/ApplicationJson.php", + "hash": "c6d32cd5185165deddcc71e588efa072" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actions\/UpdateSelfHostedRunnerGroupForOrg\/Request\/ApplicationJson.php", + "hash": "97b8b1dd5e1454765fe00c105357514d" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListRepoAccessToSelfHostedRunnerGroupInOrg\/Response\/ApplicationJson\/Ok.php", + "hash": "feef25b433309e3570523cb2c0d8654b" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actions\/SetRepoAccessToSelfHostedRunnerGroupInOrg\/Request\/ApplicationJson.php", + "hash": "0119e01f357852c794edbbf0ef42bdc5" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListSelfHostedRunnersInGroupForOrg\/Response\/ApplicationJson\/Ok.php", + "hash": "aa49bb2534c543391541d143b08e6597" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actions\/SetSelfHostedRunnersInGroupForOrg\/Request\/ApplicationJson.php", + "hash": "d3033183fdf2e1498d72a70c31c980ad" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet01F27505\/TietE0281FC4\/TietD2CC17F7\/Tiet89BA197E.php", + "hash": "e4628ceaf9451e2c5840b41228d808c5" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietAA7C777F\/Tiet51DAFE76\/Tiet776DBC1D\/Tiet418CCB6F.php", + "hash": "fbb466eaead33db694dae8b21893eb30" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/Update\/Request\/ApplicationJson\/SecurityAndAnalysis\/SecretScanningAiDetection.php", + "hash": "a88aa3c4c36259c662c628026883c858" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet38F0B967\/Tiet31DB077C\/Tiet105F7589\/TietF9914834.php", + "hash": "bcbe619f5862718e49e2466ccce6303f" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/RunnerGroups.php", + "hash": "2ed48b702d4dd4435db6423fe3212743" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/RunnerGroups\/RunnerGroupId.php", + "hash": "f16db830ead0d732cd986d408d129ebe" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/RunnerGroups\/RunnerGroupId\/Repositories.php", + "hash": "888297a5196cd11663e3e8b586996111" + }, + { + "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/RunnerGroups\/RunnerGroupId\/Runners.php", + "hash": "3749d611ab02592ca1fbb3cfc03b78d8" } ] }, diff --git a/clients/GitHub/src/Client.php b/clients/GitHub/src/Client.php index 58db05fcbbb..9011d92036f 100644 --- a/clients/GitHub/src/Client.php +++ b/clients/GitHub/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\GitHub\Schema\Root|iterable|\ApiClients\Client\GitHub\Schema\GlobalAdvisory|\ApiClients\Client\GitHub\Schema\Integration|\ApiClients\Client\GitHub\Schema\WebhookConfig|\ApiClients\Client\GitHub\Schema\HookDelivery|\ApiClients\Client\GitHub\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHub\Schema\Installation|\ApiClients\Client\GitHub\Schema\InstallationToken|\ApiClients\Client\GitHub\Schema\Authorization|\ApiClients\Client\GitHub\Schema\ClassroomAssignment|\ApiClients\Client\GitHub\Schema\Classroom|\ApiClients\Client\GitHub\Schema\CodeOfConduct|\ApiClients\Client\GitHub\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Feed|\ApiClients\Client\GitHub\Schema\GistSimple|\ApiClients\Client\GitHub\Schema\GistComment|\ApiClients\Client\GitHub\Schema\BaseGist|\ApiClients\Client\GitHub\Schema\GitignoreTemplate|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\License|string|\ApiClients\Client\GitHub\Schema\MarketplacePurchase|\ApiClients\Client\GitHub\Schema\ApiOverview|\ApiClients\Client\GitHub\Schema\BasicError|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Thread|\ApiClients\Client\GitHub\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHub\Schema\OrganizationFull|\ApiClients\Client\GitHub\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OidcCustomSub|\ApiClients\Client\GitHub\Schema\EmptyObject|\ApiClients\Client\GitHub\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\SelectedActions|\ApiClients\Client\GitHub\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\AuthenticationToken|\ApiClients\Client\GitHub\Schema\Runner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\OrgHook|\ApiClients\Client\GitHub\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\InteractionLimitResponse|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\OrganizationInvitation|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Codespace|\ApiClients\Client\GitHub\Schema\CopilotSeatDetails|\ApiClients\Client\GitHub\Schema\OrgMembership|\ApiClients\Client\GitHub\Schema\Migration|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationRole|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Package|\ApiClients\Client\GitHub\Schema\PackageVersion|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Project|\ApiClients\Client\GitHub\Schema\CustomProperty|\ApiClients\Client\GitHub\Schema\FullRepository|\ApiClients\Client\GitHub\Schema\RepositoryRuleset|\ApiClients\Client\GitHub\Schema\RuleSuite|\ApiClients\Client\GitHub\Schema\ActionsBillingUsage|\ApiClients\Client\GitHub\Schema\PackagesBillingUsage|\ApiClients\Client\GitHub\Schema\CombinedBillingUsage|\ApiClients\Client\GitHub\Schema\TeamFull|\ApiClients\Client\GitHub\Schema\TeamDiscussion|\ApiClients\Client\GitHub\Schema\TeamDiscussionComment|\ApiClients\Client\GitHub\Schema\Reaction|\ApiClients\Client\GitHub\Schema\TeamMembership|\ApiClients\Client\GitHub\Schema\TeamProject|\ApiClients\Client\GitHub\Schema\TeamRepository|\ApiClients\Client\GitHub\Schema\ProjectCard|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectColumn|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\RateLimitOverview|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Artifact|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHub\Schema\ActionsCacheList|\ApiClients\Client\GitHub\Schema\Job|\ApiClients\Client\GitHub\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\WorkflowRun|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowRunUsage|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Workflow|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowUsage|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Autolink|\ApiClients\Client\GitHub\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHub\Schema\BranchWithProtection|\ApiClients\Client\GitHub\Schema\BranchProtection|\ApiClients\Client\GitHub\Schema\ProtectedBranch|\ApiClients\Client\GitHub\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHub\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHub\Schema\StatusCheckPolicy|\ApiClients\Client\GitHub\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHub\Schema\CheckRun|\ApiClients\Client\GitHub\Schema\CheckSuite|\ApiClients\Client\GitHub\Schema\CheckSuitePreference|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeScanningAlert|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHub\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHub\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHub\Schema\CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHub\Schema\RepositoryInvitation|\ApiClients\Client\GitHub\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\CommitComment|\ApiClients\Client\GitHub\Schema\Commit|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CombinedCommitStatus|\ApiClients\Client\GitHub\Schema\CommunityProfile|\ApiClients\Client\GitHub\Schema\CommitComparison|\ApiClients\Client\GitHub\Schema\ContentDirectory|\ApiClients\Client\GitHub\Schema\ContentFile|\ApiClients\Client\GitHub\Schema\ContentSymlink|\ApiClients\Client\GitHub\Schema\ContentSubmodule|\ApiClients\Client\GitHub\Schema\FileCommit|\ApiClients\Client\GitHub\Schema\DependabotAlert|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotSecret|\ApiClients\Client\GitHub\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHub\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Deployment|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\DeploymentStatus|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Environment|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ShortBlob|\ApiClients\Client\GitHub\Schema\Blob|\ApiClients\Client\GitHub\Schema\GitCommit|\ApiClients\Client\GitHub\Schema\GitRef|\ApiClients\Client\GitHub\Schema\GitTag|\ApiClients\Client\GitHub\Schema\GitTree|\ApiClients\Client\GitHub\Schema\Hook|\ApiClients\Client\GitHub\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Import|\ApiClients\Client\GitHub\Schema\PorterAuthor|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Issue|\ApiClients\Client\GitHub\Schema\IssueComment|\ApiClients\Client\GitHub\Schema\IssueEvent|\ApiClients\Client\GitHub\Schema\DeployKey|\ApiClients\Client\GitHub\Schema\Label|\ApiClients\Client\GitHub\Schema\Language|\ApiClients\Client\GitHub\Schema\LicenseContent|\ApiClients\Client\GitHub\Schema\MergedUpstream|\ApiClients\Client\GitHub\Schema\Milestone|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Page|\ApiClients\Client\GitHub\Schema\PageBuildStatus|\ApiClients\Client\GitHub\Schema\PageBuild|\ApiClients\Client\GitHub\Schema\PageDeployment|\ApiClients\Client\GitHub\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHub\Schema\PagesHealthCheck|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PullRequest|\ApiClients\Client\GitHub\Schema\PullRequestReviewComment|\ApiClients\Client\GitHub\Schema\PullRequestMergeResult|\ApiClients\Client\GitHub\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHub\Schema\PullRequestSimple|\ApiClients\Client\GitHub\Schema\PullRequestReview|\ApiClients\Client\GitHub\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Release|\ApiClients\Client\GitHub\Schema\ReleaseAsset|\ApiClients\Client\GitHub\Schema\ReleaseNotesContent|\ApiClients\Client\GitHub\Schema\SecretScanningAlert|\ApiClients\Client\GitHub\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHub\Schema\RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\SimpleUser|\ApiClients\Client\GitHub\Schema\Stargazer|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ParticipationStats|\ApiClients\Client\GitHub\Schema\Status|\ApiClients\Client\GitHub\Schema\RepositorySubscription|\ApiClients\Client\GitHub\Schema\TagProtection|\ApiClients\Client\GitHub\Schema\Topic|\ApiClients\Client\GitHub\Schema\CloneTraffic|\ApiClients\Client\GitHub\Schema\ViewTraffic|\ApiClients\Client\GitHub\Schema\MinimalRepository|\ApiClients\Client\GitHub\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PrivateUser|\ApiClients\Client\GitHub\Schema\PublicUser|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceExportDetails|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHub\Schema\GpgKey|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Key|\ApiClients\Client\GitHub\Schema\SshSigningKey|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Hovercard|\ApiClients\Client\GitHub\Schema\StarredRepository|\ApiClients\Client\GitHub\Schema\Repository + public function call(string $call, array $params = []): \ApiClients\Client\GitHub\Schema\Root|iterable|\ApiClients\Client\GitHub\Schema\GlobalAdvisory|\ApiClients\Client\GitHub\Schema\Integration|\ApiClients\Client\GitHub\Schema\WebhookConfig|\ApiClients\Client\GitHub\Schema\HookDelivery|\ApiClients\Client\GitHub\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHub\Schema\Installation|\ApiClients\Client\GitHub\Schema\InstallationToken|\ApiClients\Client\GitHub\Schema\Authorization|\ApiClients\Client\GitHub\Schema\ClassroomAssignment|\ApiClients\Client\GitHub\Schema\Classroom|\ApiClients\Client\GitHub\Schema\CodeOfConduct|\ApiClients\Client\GitHub\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Feed|\ApiClients\Client\GitHub\Schema\GistSimple|\ApiClients\Client\GitHub\Schema\GistComment|\ApiClients\Client\GitHub\Schema\BaseGist|\ApiClients\Client\GitHub\Schema\GitignoreTemplate|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\License|string|\ApiClients\Client\GitHub\Schema\MarketplacePurchase|\ApiClients\Client\GitHub\Schema\ApiOverview|\ApiClients\Client\GitHub\Schema\BasicError|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Thread|\ApiClients\Client\GitHub\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHub\Schema\OrganizationFull|\ApiClients\Client\GitHub\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OidcCustomSub|\ApiClients\Client\GitHub\Schema\EmptyObject|\ApiClients\Client\GitHub\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\SelectedActions|\ApiClients\Client\GitHub\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RunnerGroupsOrg|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\AuthenticationToken|\ApiClients\Client\GitHub\Schema\Runner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\OrgHook|\ApiClients\Client\GitHub\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\InteractionLimitResponse|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\OrganizationInvitation|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Codespace|\ApiClients\Client\GitHub\Schema\CopilotSeatDetails|\ApiClients\Client\GitHub\Schema\OrgMembership|\ApiClients\Client\GitHub\Schema\Migration|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationRole|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Package|\ApiClients\Client\GitHub\Schema\PackageVersion|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Project|\ApiClients\Client\GitHub\Schema\CustomProperty|\ApiClients\Client\GitHub\Schema\FullRepository|\ApiClients\Client\GitHub\Schema\RepositoryRuleset|\ApiClients\Client\GitHub\Schema\RuleSuite|\ApiClients\Client\GitHub\Schema\ActionsBillingUsage|\ApiClients\Client\GitHub\Schema\PackagesBillingUsage|\ApiClients\Client\GitHub\Schema\CombinedBillingUsage|\ApiClients\Client\GitHub\Schema\TeamFull|\ApiClients\Client\GitHub\Schema\TeamDiscussion|\ApiClients\Client\GitHub\Schema\TeamDiscussionComment|\ApiClients\Client\GitHub\Schema\Reaction|\ApiClients\Client\GitHub\Schema\TeamMembership|\ApiClients\Client\GitHub\Schema\TeamProject|\ApiClients\Client\GitHub\Schema\TeamRepository|\ApiClients\Client\GitHub\Schema\ProjectCard|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectColumn|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\RateLimitOverview|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Artifact|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHub\Schema\ActionsCacheList|\ApiClients\Client\GitHub\Schema\Job|\ApiClients\Client\GitHub\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\WorkflowRun|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowRunUsage|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Workflow|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowUsage|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Autolink|\ApiClients\Client\GitHub\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHub\Schema\BranchWithProtection|\ApiClients\Client\GitHub\Schema\BranchProtection|\ApiClients\Client\GitHub\Schema\ProtectedBranch|\ApiClients\Client\GitHub\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHub\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHub\Schema\StatusCheckPolicy|\ApiClients\Client\GitHub\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHub\Schema\CheckRun|\ApiClients\Client\GitHub\Schema\CheckSuite|\ApiClients\Client\GitHub\Schema\CheckSuitePreference|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeScanningAlert|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHub\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHub\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHub\Schema\CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHub\Schema\RepositoryInvitation|\ApiClients\Client\GitHub\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\CommitComment|\ApiClients\Client\GitHub\Schema\Commit|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CombinedCommitStatus|\ApiClients\Client\GitHub\Schema\CommunityProfile|\ApiClients\Client\GitHub\Schema\CommitComparison|\ApiClients\Client\GitHub\Schema\ContentDirectory|\ApiClients\Client\GitHub\Schema\ContentFile|\ApiClients\Client\GitHub\Schema\ContentSymlink|\ApiClients\Client\GitHub\Schema\ContentSubmodule|\ApiClients\Client\GitHub\Schema\FileCommit|\ApiClients\Client\GitHub\Schema\DependabotAlert|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotSecret|\ApiClients\Client\GitHub\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHub\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Deployment|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\DeploymentStatus|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Environment|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ShortBlob|\ApiClients\Client\GitHub\Schema\Blob|\ApiClients\Client\GitHub\Schema\GitCommit|\ApiClients\Client\GitHub\Schema\GitRef|\ApiClients\Client\GitHub\Schema\GitTag|\ApiClients\Client\GitHub\Schema\GitTree|\ApiClients\Client\GitHub\Schema\Hook|\ApiClients\Client\GitHub\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Import|\ApiClients\Client\GitHub\Schema\PorterAuthor|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Issue|\ApiClients\Client\GitHub\Schema\IssueComment|\ApiClients\Client\GitHub\Schema\IssueEvent|\ApiClients\Client\GitHub\Schema\DeployKey|\ApiClients\Client\GitHub\Schema\Label|\ApiClients\Client\GitHub\Schema\Language|\ApiClients\Client\GitHub\Schema\LicenseContent|\ApiClients\Client\GitHub\Schema\MergedUpstream|\ApiClients\Client\GitHub\Schema\Milestone|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Page|\ApiClients\Client\GitHub\Schema\PageBuildStatus|\ApiClients\Client\GitHub\Schema\PageBuild|\ApiClients\Client\GitHub\Schema\PageDeployment|\ApiClients\Client\GitHub\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHub\Schema\PagesHealthCheck|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PullRequest|\ApiClients\Client\GitHub\Schema\PullRequestReviewComment|\ApiClients\Client\GitHub\Schema\PullRequestMergeResult|\ApiClients\Client\GitHub\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHub\Schema\PullRequestSimple|\ApiClients\Client\GitHub\Schema\PullRequestReview|\ApiClients\Client\GitHub\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Release|\ApiClients\Client\GitHub\Schema\ReleaseAsset|\ApiClients\Client\GitHub\Schema\ReleaseNotesContent|\ApiClients\Client\GitHub\Schema\SecretScanningAlert|\ApiClients\Client\GitHub\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHub\Schema\RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\SimpleUser|\ApiClients\Client\GitHub\Schema\Stargazer|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ParticipationStats|\ApiClients\Client\GitHub\Schema\Status|\ApiClients\Client\GitHub\Schema\RepositorySubscription|\ApiClients\Client\GitHub\Schema\TagProtection|\ApiClients\Client\GitHub\Schema\Topic|\ApiClients\Client\GitHub\Schema\CloneTraffic|\ApiClients\Client\GitHub\Schema\ViewTraffic|\ApiClients\Client\GitHub\Schema\MinimalRepository|\ApiClients\Client\GitHub\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PrivateUser|\ApiClients\Client\GitHub\Schema\PublicUser|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceExportDetails|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHub\Schema\GpgKey|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Key|\ApiClients\Client\GitHub\Schema\SshSigningKey|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Hovercard|\ApiClients\Client\GitHub\Schema\StarredRepository|\ApiClients\Client\GitHub\Schema\Repository { [$method, $path] = explode(' ', $call); $pathChunks = explode('/', $path); diff --git a/clients/GitHub/src/ClientInterface.php b/clients/GitHub/src/ClientInterface.php index 4b7389abc89..2003a23f119 100644 --- a/clients/GitHub/src/ClientInterface.php +++ b/clients/GitHub/src/ClientInterface.php @@ -7,7 +7,7 @@ interface ClientInterface { // phpcs:disable - public function call(string $call, array $params = []): \ApiClients\Client\GitHub\Schema\Root|iterable|\ApiClients\Client\GitHub\Schema\GlobalAdvisory|\ApiClients\Client\GitHub\Schema\Integration|\ApiClients\Client\GitHub\Schema\WebhookConfig|\ApiClients\Client\GitHub\Schema\HookDelivery|\ApiClients\Client\GitHub\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHub\Schema\Installation|\ApiClients\Client\GitHub\Schema\InstallationToken|\ApiClients\Client\GitHub\Schema\Authorization|\ApiClients\Client\GitHub\Schema\ClassroomAssignment|\ApiClients\Client\GitHub\Schema\Classroom|\ApiClients\Client\GitHub\Schema\CodeOfConduct|\ApiClients\Client\GitHub\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Feed|\ApiClients\Client\GitHub\Schema\GistSimple|\ApiClients\Client\GitHub\Schema\GistComment|\ApiClients\Client\GitHub\Schema\BaseGist|\ApiClients\Client\GitHub\Schema\GitignoreTemplate|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\License|string|\ApiClients\Client\GitHub\Schema\MarketplacePurchase|\ApiClients\Client\GitHub\Schema\ApiOverview|\ApiClients\Client\GitHub\Schema\BasicError|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Thread|\ApiClients\Client\GitHub\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHub\Schema\OrganizationFull|\ApiClients\Client\GitHub\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OidcCustomSub|\ApiClients\Client\GitHub\Schema\EmptyObject|\ApiClients\Client\GitHub\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\SelectedActions|\ApiClients\Client\GitHub\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\AuthenticationToken|\ApiClients\Client\GitHub\Schema\Runner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\OrgHook|\ApiClients\Client\GitHub\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\InteractionLimitResponse|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\OrganizationInvitation|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Codespace|\ApiClients\Client\GitHub\Schema\CopilotSeatDetails|\ApiClients\Client\GitHub\Schema\OrgMembership|\ApiClients\Client\GitHub\Schema\Migration|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationRole|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Package|\ApiClients\Client\GitHub\Schema\PackageVersion|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Project|\ApiClients\Client\GitHub\Schema\CustomProperty|\ApiClients\Client\GitHub\Schema\FullRepository|\ApiClients\Client\GitHub\Schema\RepositoryRuleset|\ApiClients\Client\GitHub\Schema\RuleSuite|\ApiClients\Client\GitHub\Schema\ActionsBillingUsage|\ApiClients\Client\GitHub\Schema\PackagesBillingUsage|\ApiClients\Client\GitHub\Schema\CombinedBillingUsage|\ApiClients\Client\GitHub\Schema\TeamFull|\ApiClients\Client\GitHub\Schema\TeamDiscussion|\ApiClients\Client\GitHub\Schema\TeamDiscussionComment|\ApiClients\Client\GitHub\Schema\Reaction|\ApiClients\Client\GitHub\Schema\TeamMembership|\ApiClients\Client\GitHub\Schema\TeamProject|\ApiClients\Client\GitHub\Schema\TeamRepository|\ApiClients\Client\GitHub\Schema\ProjectCard|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectColumn|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\RateLimitOverview|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Artifact|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHub\Schema\ActionsCacheList|\ApiClients\Client\GitHub\Schema\Job|\ApiClients\Client\GitHub\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\WorkflowRun|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowRunUsage|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Workflow|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowUsage|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Autolink|\ApiClients\Client\GitHub\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHub\Schema\BranchWithProtection|\ApiClients\Client\GitHub\Schema\BranchProtection|\ApiClients\Client\GitHub\Schema\ProtectedBranch|\ApiClients\Client\GitHub\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHub\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHub\Schema\StatusCheckPolicy|\ApiClients\Client\GitHub\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHub\Schema\CheckRun|\ApiClients\Client\GitHub\Schema\CheckSuite|\ApiClients\Client\GitHub\Schema\CheckSuitePreference|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeScanningAlert|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHub\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHub\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHub\Schema\CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHub\Schema\RepositoryInvitation|\ApiClients\Client\GitHub\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\CommitComment|\ApiClients\Client\GitHub\Schema\Commit|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CombinedCommitStatus|\ApiClients\Client\GitHub\Schema\CommunityProfile|\ApiClients\Client\GitHub\Schema\CommitComparison|\ApiClients\Client\GitHub\Schema\ContentDirectory|\ApiClients\Client\GitHub\Schema\ContentFile|\ApiClients\Client\GitHub\Schema\ContentSymlink|\ApiClients\Client\GitHub\Schema\ContentSubmodule|\ApiClients\Client\GitHub\Schema\FileCommit|\ApiClients\Client\GitHub\Schema\DependabotAlert|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotSecret|\ApiClients\Client\GitHub\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHub\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Deployment|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\DeploymentStatus|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Environment|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ShortBlob|\ApiClients\Client\GitHub\Schema\Blob|\ApiClients\Client\GitHub\Schema\GitCommit|\ApiClients\Client\GitHub\Schema\GitRef|\ApiClients\Client\GitHub\Schema\GitTag|\ApiClients\Client\GitHub\Schema\GitTree|\ApiClients\Client\GitHub\Schema\Hook|\ApiClients\Client\GitHub\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Import|\ApiClients\Client\GitHub\Schema\PorterAuthor|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Issue|\ApiClients\Client\GitHub\Schema\IssueComment|\ApiClients\Client\GitHub\Schema\IssueEvent|\ApiClients\Client\GitHub\Schema\DeployKey|\ApiClients\Client\GitHub\Schema\Label|\ApiClients\Client\GitHub\Schema\Language|\ApiClients\Client\GitHub\Schema\LicenseContent|\ApiClients\Client\GitHub\Schema\MergedUpstream|\ApiClients\Client\GitHub\Schema\Milestone|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Page|\ApiClients\Client\GitHub\Schema\PageBuildStatus|\ApiClients\Client\GitHub\Schema\PageBuild|\ApiClients\Client\GitHub\Schema\PageDeployment|\ApiClients\Client\GitHub\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHub\Schema\PagesHealthCheck|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PullRequest|\ApiClients\Client\GitHub\Schema\PullRequestReviewComment|\ApiClients\Client\GitHub\Schema\PullRequestMergeResult|\ApiClients\Client\GitHub\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHub\Schema\PullRequestSimple|\ApiClients\Client\GitHub\Schema\PullRequestReview|\ApiClients\Client\GitHub\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Release|\ApiClients\Client\GitHub\Schema\ReleaseAsset|\ApiClients\Client\GitHub\Schema\ReleaseNotesContent|\ApiClients\Client\GitHub\Schema\SecretScanningAlert|\ApiClients\Client\GitHub\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHub\Schema\RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\SimpleUser|\ApiClients\Client\GitHub\Schema\Stargazer|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ParticipationStats|\ApiClients\Client\GitHub\Schema\Status|\ApiClients\Client\GitHub\Schema\RepositorySubscription|\ApiClients\Client\GitHub\Schema\TagProtection|\ApiClients\Client\GitHub\Schema\Topic|\ApiClients\Client\GitHub\Schema\CloneTraffic|\ApiClients\Client\GitHub\Schema\ViewTraffic|\ApiClients\Client\GitHub\Schema\MinimalRepository|\ApiClients\Client\GitHub\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PrivateUser|\ApiClients\Client\GitHub\Schema\PublicUser|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceExportDetails|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHub\Schema\GpgKey|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Key|\ApiClients\Client\GitHub\Schema\SshSigningKey|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Hovercard|\ApiClients\Client\GitHub\Schema\StarredRepository|\ApiClients\Client\GitHub\Schema\Repository; + public function call(string $call, array $params = []): \ApiClients\Client\GitHub\Schema\Root|iterable|\ApiClients\Client\GitHub\Schema\GlobalAdvisory|\ApiClients\Client\GitHub\Schema\Integration|\ApiClients\Client\GitHub\Schema\WebhookConfig|\ApiClients\Client\GitHub\Schema\HookDelivery|\ApiClients\Client\GitHub\Schema\Operations\Apps\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|\ApiClients\Client\GitHub\Schema\Installation|\ApiClients\Client\GitHub\Schema\InstallationToken|\ApiClients\Client\GitHub\Schema\Authorization|\ApiClients\Client\GitHub\Schema\ClassroomAssignment|\ApiClients\Client\GitHub\Schema\Classroom|\ApiClients\Client\GitHub\Schema\CodeOfConduct|\ApiClients\Client\GitHub\Schema\Operations\Emojis\Get\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Feed|\ApiClients\Client\GitHub\Schema\GistSimple|\ApiClients\Client\GitHub\Schema\GistComment|\ApiClients\Client\GitHub\Schema\BaseGist|\ApiClients\Client\GitHub\Schema\GitignoreTemplate|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListReposAccessibleToInstallation\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\License|string|\ApiClients\Client\GitHub\Schema\MarketplacePurchase|\ApiClients\Client\GitHub\Schema\ApiOverview|\ApiClients\Client\GitHub\Schema\BasicError|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Thread|\ApiClients\Client\GitHub\Schema\ThreadSubscription|\Psr\Http\Message\ResponseInterface|\ApiClients\Client\GitHub\Schema\OrganizationFull|\ApiClients\Client\GitHub\Schema\Operations\Orgs\Delete\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OidcCustomSub|\ApiClients\Client\GitHub\Schema\EmptyObject|\ApiClients\Client\GitHub\Schema\ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\SelectedActions|\ApiClients\Client\GitHub\Schema\ActionsGetDefaultWorkflowPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RunnerGroupsOrg|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\AuthenticationToken|\ApiClients\Client\GitHub\Schema\Runner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeSecurityConfiguration|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\AttachConfiguration\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInOrganization\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForTeams\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForTeams\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Copilot\AddCopilotSeatsForUsers\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Copilot\CancelCopilotSeatAssignmentForUsers\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotPublicKey|\ApiClients\Client\GitHub\Schema\OrganizationDependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\OrgHook|\ApiClients\Client\GitHub\Schema\Operations\Orgs\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\InteractionLimitResponse|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForOrg\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\OrganizationInvitation|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\GetCodespacesForUserInOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Codespace|\ApiClients\Client\GitHub\Schema\CopilotSeatDetails|\ApiClients\Client\GitHub\Schema\OrgMembership|\ApiClients\Client\GitHub\Schema\Migration|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\OrganizationRole|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ConvertMemberToOutsideCollaborator\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Package|\ApiClients\Client\GitHub\Schema\PackageVersion|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ReviewPatGrantRequestsInBulk\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Orgs\UpdatePatAccesses\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Project|\ApiClients\Client\GitHub\Schema\CustomProperty|\ApiClients\Client\GitHub\Schema\FullRepository|\ApiClients\Client\GitHub\Schema\RepositoryRuleset|\ApiClients\Client\GitHub\Schema\RuleSuite|\ApiClients\Client\GitHub\Schema\ActionsBillingUsage|\ApiClients\Client\GitHub\Schema\PackagesBillingUsage|\ApiClients\Client\GitHub\Schema\CombinedBillingUsage|\ApiClients\Client\GitHub\Schema\TeamFull|\ApiClients\Client\GitHub\Schema\TeamDiscussion|\ApiClients\Client\GitHub\Schema\TeamDiscussionComment|\ApiClients\Client\GitHub\Schema\Reaction|\ApiClients\Client\GitHub\Schema\TeamMembership|\ApiClients\Client\GitHub\Schema\TeamProject|\ApiClients\Client\GitHub\Schema\TeamRepository|\ApiClients\Client\GitHub\Schema\ProjectCard|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveCard\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectColumn|\ApiClients\Client\GitHub\Schema\Operations\Projects\MoveColumn\Response\ApplicationJson\Created\Application\Json|\ApiClients\Client\GitHub\Schema\ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\RateLimitOverview|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Artifact|\ApiClients\Client\GitHub\Schema\ActionsCacheUsageByRepository|\ApiClients\Client\GitHub\Schema\ActionsCacheList|\ApiClients\Client\GitHub\Schema\Job|\ApiClients\Client\GitHub\Schema\OidcCustomSubRepo|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\ActionsWorkflowAccessToRepository|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\WorkflowRun|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunArtifacts\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRunAttempt\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowRunUsage|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsSecret|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ActionsVariable|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Workflow|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\WorkflowUsage|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateAttestation\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Autolink|\ApiClients\Client\GitHub\Schema\CheckAutomatedSecurityFixes|\ApiClients\Client\GitHub\Schema\BranchWithProtection|\ApiClients\Client\GitHub\Schema\BranchProtection|\ApiClients\Client\GitHub\Schema\ProtectedBranch|\ApiClients\Client\GitHub\Schema\ProtectedBranchAdminEnforced|\ApiClients\Client\GitHub\Schema\ProtectedBranchPullRequestReview|\ApiClients\Client\GitHub\Schema\StatusCheckPolicy|\ApiClients\Client\GitHub\Schema\BranchRestrictionPolicy|\ApiClients\Client\GitHub\Schema\CheckRun|\ApiClients\Client\GitHub\Schema\CheckSuite|\ApiClients\Client\GitHub\Schema\CheckSuitePreference|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodeScanningAlert|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningAnalysisDeletion|\ApiClients\Client\GitHub\Schema\CodeScanningCodeqlDatabase|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysis|\ApiClients\Client\GitHub\Schema\CodeScanningVariantAnalysisRepoTask|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetup|\ApiClients\Client\GitHub\Schema\CodeScanningDefaultSetupUpdateResponse|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsReceipt|\ApiClients\Client\GitHub\Schema\CodeScanningSarifsStatus|\ApiClients\Client\GitHub\Schema\CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHub\Schema\CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\RepoCodespacesSecret|\ApiClients\Client\GitHub\Schema\RepositoryInvitation|\ApiClients\Client\GitHub\Schema\RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\CommitComment|\ApiClients\Client\GitHub\Schema\Commit|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CombinedCommitStatus|\ApiClients\Client\GitHub\Schema\CommunityProfile|\ApiClients\Client\GitHub\Schema\CommitComparison|\ApiClients\Client\GitHub\Schema\ContentDirectory|\ApiClients\Client\GitHub\Schema\ContentFile|\ApiClients\Client\GitHub\Schema\ContentSymlink|\ApiClients\Client\GitHub\Schema\ContentSubmodule|\ApiClients\Client\GitHub\Schema\FileCommit|\ApiClients\Client\GitHub\Schema\DependabotAlert|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DependabotSecret|\ApiClients\Client\GitHub\Schema\DependencyGraphSpdxSbom|\ApiClients\Client\GitHub\Schema\Operations\DependencyGraph\CreateRepositorySnapshot\Response\ApplicationJson\Created|\ApiClients\Client\GitHub\Schema\Deployment|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\DeploymentStatus|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Environment|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentBranchPolicy|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\DeploymentProtectionRule|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListCustomDeploymentRuleIntegrations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\ShortBlob|\ApiClients\Client\GitHub\Schema\Blob|\ApiClients\Client\GitHub\Schema\GitCommit|\ApiClients\Client\GitHub\Schema\GitRef|\ApiClients\Client\GitHub\Schema\GitTag|\ApiClients\Client\GitHub\Schema\GitTree|\ApiClients\Client\GitHub\Schema\Hook|\ApiClients\Client\GitHub\Schema\Operations\Repos\RedeliverWebhookDelivery\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Import|\ApiClients\Client\GitHub\Schema\PorterAuthor|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Issue|\ApiClients\Client\GitHub\Schema\IssueComment|\ApiClients\Client\GitHub\Schema\IssueEvent|\ApiClients\Client\GitHub\Schema\DeployKey|\ApiClients\Client\GitHub\Schema\Label|\ApiClients\Client\GitHub\Schema\Language|\ApiClients\Client\GitHub\Schema\LicenseContent|\ApiClients\Client\GitHub\Schema\MergedUpstream|\ApiClients\Client\GitHub\Schema\Milestone|\ApiClients\Client\GitHub\Schema\Operations\Activity\MarkRepoNotificationsAsRead\Response\ApplicationJson\Accepted|\ApiClients\Client\GitHub\Schema\Page|\ApiClients\Client\GitHub\Schema\PageBuildStatus|\ApiClients\Client\GitHub\Schema\PageBuild|\ApiClients\Client\GitHub\Schema\PageDeployment|\ApiClients\Client\GitHub\Schema\PagesDeploymentStatus|\ApiClients\Client\GitHub\Schema\PagesHealthCheck|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PullRequest|\ApiClients\Client\GitHub\Schema\PullRequestReviewComment|\ApiClients\Client\GitHub\Schema\PullRequestMergeResult|\ApiClients\Client\GitHub\Schema\PullRequestReviewRequest|\ApiClients\Client\GitHub\Schema\PullRequestSimple|\ApiClients\Client\GitHub\Schema\PullRequestReview|\ApiClients\Client\GitHub\Schema\Operations\Pulls\UpdateBranch\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Release|\ApiClients\Client\GitHub\Schema\ReleaseAsset|\ApiClients\Client\GitHub\Schema\ReleaseNotesContent|\ApiClients\Client\GitHub\Schema\SecretScanningAlert|\ApiClients\Client\GitHub\Schema\SecretScanningPushProtectionBypass|\ApiClients\Client\GitHub\Schema\RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\SimpleUser|\ApiClients\Client\GitHub\Schema\Stargazer|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\ParticipationStats|\ApiClients\Client\GitHub\Schema\Status|\ApiClients\Client\GitHub\Schema\RepositorySubscription|\ApiClients\Client\GitHub\Schema\TagProtection|\ApiClients\Client\GitHub\Schema\Topic|\ApiClients\Client\GitHub\Schema\CloneTraffic|\ApiClients\Client\GitHub\Schema\ViewTraffic|\ApiClients\Client\GitHub\Schema\MinimalRepository|\ApiClients\Client\GitHub\Schema\Operations\Search\Code\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Commits\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\IssuesAndPullRequests\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Labels\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Repos\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Topics\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Search\Users\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\PrivateUser|\ApiClients\Client\GitHub\Schema\PublicUser|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\CodespacesUserPublicKey|\ApiClients\Client\GitHub\Schema\CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\DeleteForAuthenticatedUser\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceExportDetails|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository|\ApiClients\Client\GitHub\Schema\GpgKey|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json\One|\ApiClients\Client\GitHub\Schema\Key|\ApiClients\Client\GitHub\Schema\SshSigningKey|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Hovercard|\ApiClients\Client\GitHub\Schema\StarredRepository|\ApiClients\Client\GitHub\Schema\Repository; public function operations(): OperationsInterface; diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Notifications/Threads/ThreadId.php b/clients/GitHub/src/Internal/Hydrator/Operation/Notifications/Threads/ThreadId.php index 2bd21b0afb8..844556691f7 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Notifications/Threads/ThreadId.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Notifications/Threads/ThreadId.php @@ -13,6 +13,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -65,6 +66,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\Thread\Subject' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Thread⚡️Subject($payload), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -1804,6 +1806,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -1969,6 +1991,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Thread⚡️Subject(array $payload): Subject { $properties = []; @@ -2138,6 +2190,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\Thread\Subject' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Thread⚡️Subject($object), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), @@ -3005,6 +3058,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3088,6 +3150,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Thread⚡️Subject(mixed $object): mixed { assert($object instanceof Subject); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups.php b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups.php new file mode 100644 index 00000000000..fcbd26233c9 --- /dev/null +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups.php @@ -0,0 +1,494 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Actions⚡️ListSelfHostedRunnerGroupsForOrg⚡️Response⚡️ApplicationJson⚡️Ok($payload), + 'ApiClients\Client\GitHub\Schema\RunnerGroupsOrg' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RunnerGroupsOrg($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Actions⚡️ListSelfHostedRunnerGroupsForOrg⚡️Response⚡️ApplicationJson⚡️Ok(array $payload): Ok + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['runner_groups'] ?? null; + + if ($value === null) { + $missingFields[] = 'runner_groups'; + goto after_runnerGroups; + } + + $properties['runnerGroups'] = $value; + + after_runnerGroups: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\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\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RunnerGroupsOrg(array $payload): RunnerGroupsOrg + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['default'] ?? null; + + if ($value === null) { + $missingFields[] = 'default'; + goto after_default; + } + + $properties['default'] = $value; + + after_default: + + $value = $payload['selected_repositories_url'] ?? null; + + if ($value === null) { + $properties['selectedRepositoriesUrl'] = null; + goto after_selectedRepositoriesUrl; + } + + $properties['selectedRepositoriesUrl'] = $value; + + after_selectedRepositoriesUrl: + + $value = $payload['runners_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'runners_url'; + goto after_runnersUrl; + } + + $properties['runnersUrl'] = $value; + + after_runnersUrl: + + $value = $payload['hosted_runners_url'] ?? null; + + if ($value === null) { + $properties['hostedRunnersUrl'] = null; + goto after_hostedRunnersUrl; + } + + $properties['hostedRunnersUrl'] = $value; + + after_hostedRunnersUrl: + + $value = $payload['inherited'] ?? null; + + if ($value === null) { + $missingFields[] = 'inherited'; + goto after_inherited; + } + + $properties['inherited'] = $value; + + after_inherited: + + $value = $payload['inherited_allows_public_repositories'] ?? null; + + if ($value === null) { + $properties['inheritedAllowsPublicRepositories'] = null; + goto after_inheritedAllowsPublicRepositories; + } + + $properties['inheritedAllowsPublicRepositories'] = $value; + + after_inheritedAllowsPublicRepositories: + + $value = $payload['allows_public_repositories'] ?? null; + + if ($value === null) { + $missingFields[] = 'allows_public_repositories'; + goto after_allowsPublicRepositories; + } + + $properties['allowsPublicRepositories'] = $value; + + after_allowsPublicRepositories: + + $value = $payload['workflow_restrictions_read_only'] ?? null; + + if ($value === null) { + $properties['workflowRestrictionsReadOnly'] = null; + goto after_workflowRestrictionsReadOnly; + } + + $properties['workflowRestrictionsReadOnly'] = $value; + + after_workflowRestrictionsReadOnly: + + $value = $payload['restricted_to_workflows'] ?? null; + + if ($value === null) { + $properties['restrictedToWorkflows'] = null; + goto after_restrictedToWorkflows; + } + + $properties['restrictedToWorkflows'] = $value; + + after_restrictedToWorkflows: + + $value = $payload['selected_workflows'] ?? null; + + if ($value === null) { + $properties['selectedWorkflows'] = null; + goto after_selectedWorkflows; + } + + $properties['selectedWorkflows'] = $value; + + after_selectedWorkflows: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\RunnerGroupsOrg', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(RunnerGroupsOrg::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new RunnerGroupsOrg(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\RunnerGroupsOrg', $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\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Actions⚡️ListSelfHostedRunnerGroupsForOrg⚡️Response⚡️ApplicationJson⚡️Ok($object), + 'ApiClients\Client\GitHub\Schema\RunnerGroupsOrg' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RunnerGroupsOrg($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⚡️GitHub⚡️Schema⚡️Operations⚡️Actions⚡️ListSelfHostedRunnerGroupsForOrg⚡️Response⚡️ApplicationJson⚡️Ok(mixed $object): mixed + { + assert($object instanceof Ok); + $result = []; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $runnerGroups = $object->runnerGroups; + static $runnerGroupsSerializer0; + + if ($runnerGroupsSerializer0 === null) { + $runnerGroupsSerializer0 = new SerializeArrayItems(...[]); + } + + $runnerGroups = $runnerGroupsSerializer0->serialize($runnerGroups, $this); + after_runnerGroups: $result['runner_groups'] = $runnerGroups; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RunnerGroupsOrg(mixed $object): mixed + { + assert($object instanceof RunnerGroupsOrg); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $name = $object->name; + after_name: $result['name'] = $name; + + $visibility = $object->visibility; + after_visibility: $result['visibility'] = $visibility; + + $default = $object->default; + after_default: $result['default'] = $default; + + $selectedRepositoriesUrl = $object->selectedRepositoriesUrl; + + if ($selectedRepositoriesUrl === null) { + goto after_selectedRepositoriesUrl; + } + + after_selectedRepositoriesUrl: $result['selected_repositories_url'] = $selectedRepositoriesUrl; + + $runnersUrl = $object->runnersUrl; + after_runnersUrl: $result['runners_url'] = $runnersUrl; + + $hostedRunnersUrl = $object->hostedRunnersUrl; + + if ($hostedRunnersUrl === null) { + goto after_hostedRunnersUrl; + } + + after_hostedRunnersUrl: $result['hosted_runners_url'] = $hostedRunnersUrl; + + $inherited = $object->inherited; + after_inherited: $result['inherited'] = $inherited; + + $inheritedAllowsPublicRepositories = $object->inheritedAllowsPublicRepositories; + + if ($inheritedAllowsPublicRepositories === null) { + goto after_inheritedAllowsPublicRepositories; + } + + after_inheritedAllowsPublicRepositories: $result['inherited_allows_public_repositories'] = $inheritedAllowsPublicRepositories; + + $allowsPublicRepositories = $object->allowsPublicRepositories; + after_allowsPublicRepositories: $result['allows_public_repositories'] = $allowsPublicRepositories; + + $workflowRestrictionsReadOnly = $object->workflowRestrictionsReadOnly; + + if ($workflowRestrictionsReadOnly === null) { + goto after_workflowRestrictionsReadOnly; + } + + after_workflowRestrictionsReadOnly: $result['workflow_restrictions_read_only'] = $workflowRestrictionsReadOnly; + + $restrictedToWorkflows = $object->restrictedToWorkflows; + + if ($restrictedToWorkflows === null) { + goto after_restrictedToWorkflows; + } + + after_restrictedToWorkflows: $result['restricted_to_workflows'] = $restrictedToWorkflows; + + $selectedWorkflows = $object->selectedWorkflows; + + if ($selectedWorkflows === null) { + goto after_selectedWorkflows; + } + + static $selectedWorkflowsSerializer0; + + if ($selectedWorkflowsSerializer0 === null) { + $selectedWorkflowsSerializer0 = new SerializeArrayItems(...[]); + } + + $selectedWorkflows = $selectedWorkflowsSerializer0->serialize($selectedWorkflows, $this); + after_selectedWorkflows: $result['selected_workflows'] = $selectedWorkflows; + + 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/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId.php b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId.php new file mode 100644 index 00000000000..058c50ace00 --- /dev/null +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId.php @@ -0,0 +1,429 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHub\Schema\RunnerGroupsOrg' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RunnerGroupsOrg($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RunnerGroupsOrg(array $payload): RunnerGroupsOrg + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $missingFields[] = 'visibility'; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['default'] ?? null; + + if ($value === null) { + $missingFields[] = 'default'; + goto after_default; + } + + $properties['default'] = $value; + + after_default: + + $value = $payload['selected_repositories_url'] ?? null; + + if ($value === null) { + $properties['selectedRepositoriesUrl'] = null; + goto after_selectedRepositoriesUrl; + } + + $properties['selectedRepositoriesUrl'] = $value; + + after_selectedRepositoriesUrl: + + $value = $payload['runners_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'runners_url'; + goto after_runnersUrl; + } + + $properties['runnersUrl'] = $value; + + after_runnersUrl: + + $value = $payload['hosted_runners_url'] ?? null; + + if ($value === null) { + $properties['hostedRunnersUrl'] = null; + goto after_hostedRunnersUrl; + } + + $properties['hostedRunnersUrl'] = $value; + + after_hostedRunnersUrl: + + $value = $payload['inherited'] ?? null; + + if ($value === null) { + $missingFields[] = 'inherited'; + goto after_inherited; + } + + $properties['inherited'] = $value; + + after_inherited: + + $value = $payload['inherited_allows_public_repositories'] ?? null; + + if ($value === null) { + $properties['inheritedAllowsPublicRepositories'] = null; + goto after_inheritedAllowsPublicRepositories; + } + + $properties['inheritedAllowsPublicRepositories'] = $value; + + after_inheritedAllowsPublicRepositories: + + $value = $payload['allows_public_repositories'] ?? null; + + if ($value === null) { + $missingFields[] = 'allows_public_repositories'; + goto after_allowsPublicRepositories; + } + + $properties['allowsPublicRepositories'] = $value; + + after_allowsPublicRepositories: + + $value = $payload['workflow_restrictions_read_only'] ?? null; + + if ($value === null) { + $properties['workflowRestrictionsReadOnly'] = null; + goto after_workflowRestrictionsReadOnly; + } + + $properties['workflowRestrictionsReadOnly'] = $value; + + after_workflowRestrictionsReadOnly: + + $value = $payload['restricted_to_workflows'] ?? null; + + if ($value === null) { + $properties['restrictedToWorkflows'] = null; + goto after_restrictedToWorkflows; + } + + $properties['restrictedToWorkflows'] = $value; + + after_restrictedToWorkflows: + + $value = $payload['selected_workflows'] ?? null; + + if ($value === null) { + $properties['selectedWorkflows'] = null; + goto after_selectedWorkflows; + } + + $properties['selectedWorkflows'] = $value; + + after_selectedWorkflows: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\RunnerGroupsOrg', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(RunnerGroupsOrg::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new RunnerGroupsOrg(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\RunnerGroupsOrg', $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\GitHub\Schema\RunnerGroupsOrg' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RunnerGroupsOrg($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⚡️GitHub⚡️Schema⚡️RunnerGroupsOrg(mixed $object): mixed + { + assert($object instanceof RunnerGroupsOrg); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $name = $object->name; + after_name: $result['name'] = $name; + + $visibility = $object->visibility; + after_visibility: $result['visibility'] = $visibility; + + $default = $object->default; + after_default: $result['default'] = $default; + + $selectedRepositoriesUrl = $object->selectedRepositoriesUrl; + + if ($selectedRepositoriesUrl === null) { + goto after_selectedRepositoriesUrl; + } + + after_selectedRepositoriesUrl: $result['selected_repositories_url'] = $selectedRepositoriesUrl; + + $runnersUrl = $object->runnersUrl; + after_runnersUrl: $result['runners_url'] = $runnersUrl; + + $hostedRunnersUrl = $object->hostedRunnersUrl; + + if ($hostedRunnersUrl === null) { + goto after_hostedRunnersUrl; + } + + after_hostedRunnersUrl: $result['hosted_runners_url'] = $hostedRunnersUrl; + + $inherited = $object->inherited; + after_inherited: $result['inherited'] = $inherited; + + $inheritedAllowsPublicRepositories = $object->inheritedAllowsPublicRepositories; + + if ($inheritedAllowsPublicRepositories === null) { + goto after_inheritedAllowsPublicRepositories; + } + + after_inheritedAllowsPublicRepositories: $result['inherited_allows_public_repositories'] = $inheritedAllowsPublicRepositories; + + $allowsPublicRepositories = $object->allowsPublicRepositories; + after_allowsPublicRepositories: $result['allows_public_repositories'] = $allowsPublicRepositories; + + $workflowRestrictionsReadOnly = $object->workflowRestrictionsReadOnly; + + if ($workflowRestrictionsReadOnly === null) { + goto after_workflowRestrictionsReadOnly; + } + + after_workflowRestrictionsReadOnly: $result['workflow_restrictions_read_only'] = $workflowRestrictionsReadOnly; + + $restrictedToWorkflows = $object->restrictedToWorkflows; + + if ($restrictedToWorkflows === null) { + goto after_restrictedToWorkflows; + } + + after_restrictedToWorkflows: $result['restricted_to_workflows'] = $restrictedToWorkflows; + + $selectedWorkflows = $object->selectedWorkflows; + + if ($selectedWorkflows === null) { + goto after_selectedWorkflows; + } + + static $selectedWorkflowsSerializer0; + + if ($selectedWorkflowsSerializer0 === null) { + $selectedWorkflowsSerializer0 = new SerializeArrayItems(...[]); + } + + $selectedWorkflows = $selectedWorkflowsSerializer0->serialize($selectedWorkflows, $this); + after_selectedWorkflows: $result['selected_workflows'] = $selectedWorkflows; + + 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/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId/Repositories.php b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId/Repositories.php new file mode 100644 index 00000000000..77605256384 --- /dev/null +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId/Repositories.php @@ -0,0 +1,245 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Actions⚡️ListRepoAccessToSelfHostedRunnerGroupInOrg⚡️Response⚡️ApplicationJson⚡️Ok($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Actions⚡️ListRepoAccessToSelfHostedRunnerGroupInOrg⚡️Response⚡️ApplicationJson⚡️Ok(array $payload): Ok + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['repositories'] ?? null; + + if ($value === null) { + $missingFields[] = 'repositories'; + goto after_repositories; + } + + $properties['repositories'] = $value; + + after_repositories: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\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\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack); + } + } + + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array + { + foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { + if (is_a($object, $valueType)) { + return [$accessor => $payloadType] + $this->{$method}($object); + } + } + + throw new LogicException('No type mapped for object of class: ' . $object::class); + } + + public function serializeObject(object $object): mixed + { + return $this->serializeObjectOfType($object, $object::class); + } + + /** + * @param T $object + * @param class-string $className + * + * @template T + */ + public function serializeObjectOfType(object $object, string $className): mixed + { + try { + return match ($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Actions⚡️ListRepoAccessToSelfHostedRunnerGroupInOrg⚡️Response⚡️ApplicationJson⚡️Ok($object), + default => throw new LogicException("No serialization defined for $className"), + }; + } catch (Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeArrayItems(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeUuidToString(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Actions⚡️ListRepoAccessToSelfHostedRunnerGroupInOrg⚡️Response⚡️ApplicationJson⚡️Ok(mixed $object): mixed + { + assert($object instanceof Ok); + $result = []; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $repositories = $object->repositories; + static $repositoriesSerializer0; + + if ($repositoriesSerializer0 === null) { + $repositoriesSerializer0 = new SerializeArrayItems(...[]); + } + + $repositories = $repositoriesSerializer0->serialize($repositories, $this); + after_repositories: $result['repositories'] = $repositories; + + 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/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId/Runners.php b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId/Runners.php new file mode 100644 index 00000000000..deea466fde6 --- /dev/null +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/RunnerGroups/RunnerGroupId/Runners.php @@ -0,0 +1,245 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Actions⚡️ListSelfHostedRunnersInGroupForOrg⚡️Response⚡️ApplicationJson⚡️Ok($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Actions⚡️ListSelfHostedRunnersInGroupForOrg⚡️Response⚡️ApplicationJson⚡️Ok(array $payload): Ok + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['runners'] ?? null; + + if ($value === null) { + $missingFields[] = 'runners'; + goto after_runners; + } + + $properties['runners'] = $value; + + after_runners: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\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\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack); + } + } + + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array + { + foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { + if (is_a($object, $valueType)) { + return [$accessor => $payloadType] + $this->{$method}($object); + } + } + + throw new LogicException('No type mapped for object of class: ' . $object::class); + } + + public function serializeObject(object $object): mixed + { + return $this->serializeObjectOfType($object, $object::class); + } + + /** + * @param T $object + * @param class-string $className + * + * @template T + */ + public function serializeObjectOfType(object $object, string $className): mixed + { + try { + return match ($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Actions⚡️ListSelfHostedRunnersInGroupForOrg⚡️Response⚡️ApplicationJson⚡️Ok($object), + default => throw new LogicException("No serialization defined for $className"), + }; + } catch (Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeArrayItems(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeUuidToString(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Actions⚡️ListSelfHostedRunnersInGroupForOrg⚡️Response⚡️ApplicationJson⚡️Ok(mixed $object): mixed + { + assert($object instanceof Ok); + $result = []; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $runners = $object->runners; + static $runnersSerializer0; + + if ($runnersSerializer0 === null) { + $runnersSerializer0 = new SerializeArrayItems(...[]); + } + + $runners = $runnersSerializer0->serialize($runners, $this); + after_runners: $result['runners'] = $runners; + + return $result; + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToHydrateObject + * + * @template T + */ + public function hydrateObjects(string $className, iterable $payloads): IterableList + { + return new IterableList($this->doHydrateObjects($className, $payloads)); + } + + private function doHydrateObjects(string $className, iterable $payloads): Generator + { + foreach ($payloads as $index => $payload) { + yield $index => $this->hydrateObject($className, $payload); + } + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToSerializeObject + * + * @template T + */ + public function serializeObjects(iterable $payloads): IterableList + { + return new IterableList($this->doSerializeObjects($payloads)); + } + + private function doSerializeObjects(iterable $objects): Generator + { + foreach ($objects as $index => $object) { + yield $index => $this->serializeObject($object); + } + } +} diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Members/Username/Codespaces/CodespaceName/Stop.php b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Members/Username/Codespaces/CodespaceName/Stop.php index cf201316323..51cb1cde75e 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Members/Username/Codespaces/CodespaceName/Stop.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Members/Username/Codespaces/CodespaceName/Stop.php @@ -17,6 +17,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -67,6 +68,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHub\Schema\Codespace\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️GitStatus($payload), 'ApiClients\Client\GitHub\Schema\Codespace\RuntimeConstraints' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️RuntimeConstraints($payload), @@ -2097,6 +2099,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -2262,6 +2284,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(array $payload): CodespaceMachine { $properties = []; @@ -2568,6 +2620,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHub\Schema\Codespace\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️GitStatus($object), 'ApiClients\Client\GitHub\Schema\Codespace\RuntimeConstraints' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️RuntimeConstraints($object), @@ -3587,6 +3640,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3670,6 +3732,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(mixed $object): mixed { assert($object instanceof CodespaceMachine); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Packages/PackageType/PackageName.php b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Packages/PackageType/PackageName.php index 7be3b486b75..333f05bc7ef 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Packages/PackageType/PackageName.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Packages/PackageType/PackageName.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -64,6 +65,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -1824,6 +1826,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -1989,6 +2011,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(array $payload): BasicError { $properties = []; @@ -2095,6 +2147,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -2972,6 +3025,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3055,6 +3117,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(mixed $object): mixed { assert($object instanceof BasicError); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Repos.php b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Repos.php index 4aa98944fdf..4f00e40fdda 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Repos.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Repos.php @@ -15,6 +15,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -67,6 +68,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), 'ApiClients\Client\GitHub\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($payload), 'ApiClients\Client\GitHub\Schema\FullRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️FullRepository⚡️CustomProperties($payload), @@ -3057,6 +3059,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -3222,6 +3244,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(array $payload): BasicError { $properties = []; @@ -3401,6 +3453,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), 'ApiClients\Client\GitHub\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($object), default => throw new LogicException("No serialization defined for $className"), @@ -4690,6 +4743,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -4773,6 +4835,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(mixed $object): mixed { assert($object instanceof BasicError); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo.php index d322deaad35..02809255765 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo.php @@ -16,6 +16,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -68,6 +69,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), 'ApiClients\Client\GitHub\Schema\Operations\Repos\Delete\Response\ApplicationJson\Forbidden\Application\Json' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Repos⚡️Delete⚡️Response⚡️ApplicationJson⚡️Forbidden⚡️Application⚡️Json($payload), 'ApiClients\Client\GitHub\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($payload), @@ -3059,6 +3061,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -3224,6 +3246,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(array $payload): BasicError { $properties = []; @@ -3444,6 +3496,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), 'ApiClients\Client\GitHub\Schema\Operations\Repos\Delete\Response\ApplicationJson\Forbidden\Application\Json' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Operations⚡️Repos⚡️Delete⚡️Response⚡️ApplicationJson⚡️Forbidden⚡️Application⚡️Json($object), 'ApiClients\Client\GitHub\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($object), @@ -4734,6 +4787,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -4817,6 +4879,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(mixed $object): mixed { assert($object instanceof BasicError); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId.php index 4c62f4c9dac..920d58fe2bc 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId.php @@ -12,6 +12,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleCommit; @@ -69,6 +70,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } @@ -2315,6 +2317,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -2480,6 +2502,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array { foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { @@ -2526,6 +2578,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3625,6 +3678,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3708,6 +3770,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId/Attempts/AttemptNumber.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId/Attempts/AttemptNumber.php index d28b60cf954..faba748d88a 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId/Attempts/AttemptNumber.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId/Attempts/AttemptNumber.php @@ -12,6 +12,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleCommit; @@ -69,6 +70,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } @@ -2315,6 +2317,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -2480,6 +2502,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array { foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { @@ -2526,6 +2578,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3625,6 +3678,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3708,6 +3770,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php index acbf25a4e46..34908120a6a 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleCommit; @@ -69,6 +70,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\SimpleCommit' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit($payload), 'ApiClients\Client\GitHub\Schema\SimpleCommit\Author' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit⚡️Author($payload), 'ApiClients\Client\GitHub\Schema\SimpleCommit\Committer' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit⚡️Committer($payload), @@ -2226,6 +2228,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -2391,6 +2413,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit(array $payload): SimpleCommit { $properties = []; @@ -2621,6 +2673,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\SimpleCommit' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit($object), 'ApiClients\Client\GitHub\Schema\SimpleCommit\Author' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit⚡️Author($object), 'ApiClients\Client\GitHub\Schema\SimpleCommit\Committer' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit⚡️Committer($object), @@ -3738,6 +3791,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3821,6 +3883,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit(mixed $object): mixed { assert($object instanceof SimpleCommit); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php index 8e440892260..8f05f98a351 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleCommit; @@ -69,6 +70,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\SimpleCommit' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit($payload), 'ApiClients\Client\GitHub\Schema\SimpleCommit\Author' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit⚡️Author($payload), 'ApiClients\Client\GitHub\Schema\SimpleCommit\Committer' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit⚡️Committer($payload), @@ -2226,6 +2228,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -2391,6 +2413,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit(array $payload): SimpleCommit { $properties = []; @@ -2621,6 +2673,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\SimpleCommit' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit($object), 'ApiClients\Client\GitHub\Schema\SimpleCommit\Author' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit⚡️Author($object), 'ApiClients\Client\GitHub\Schema\SimpleCommit\Committer' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit⚡️Committer($object), @@ -3738,6 +3791,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3821,6 +3883,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleCommit(mixed $object): mixed { assert($object instanceof SimpleCommit); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/Preferences.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/Preferences.php index 86c44b56fa4..c27f93f0a2e 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/Preferences.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/Preferences.php @@ -13,6 +13,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -64,6 +65,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } @@ -1754,6 +1756,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -1919,6 +1941,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array { foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { @@ -1963,6 +2015,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -2825,6 +2878,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -2908,6 +2970,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Codespaces.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Codespaces.php index 88cd960c46b..67a6e8999a3 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Codespaces.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Codespaces.php @@ -20,6 +20,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -72,6 +73,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHub\Schema\Codespace\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️GitStatus($payload), 'ApiClients\Client\GitHub\Schema\Codespace\RuntimeConstraints' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️RuntimeConstraints($payload), @@ -2207,6 +2209,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -2372,6 +2394,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(array $payload): CodespaceMachine { $properties = []; @@ -2754,6 +2806,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHub\Schema\Codespace\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️GitStatus($object), 'ApiClients\Client\GitHub\Schema\Codespace\RuntimeConstraints' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️RuntimeConstraints($object), @@ -3835,6 +3888,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3918,6 +3980,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(mixed $object): mixed { assert($object instanceof CodespaceMachine); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Collaborators/Username.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Collaborators/Username.php index d805e820288..f37d1c529b1 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Collaborators/Username.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Collaborators/Username.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -65,6 +66,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($payload), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -1824,6 +1826,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -1989,6 +2011,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError(array $payload): ValidationError { $properties = []; @@ -2147,6 +2199,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($object), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), @@ -3028,6 +3081,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3111,6 +3173,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError(mixed $object): mixed { assert($object instanceof ValidationError); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Commits/Ref/Status.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Commits/Ref/Status.php index fad42fa977a..8364cb0e590 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Commits/Ref/Status.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Commits/Ref/Status.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -64,6 +65,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -1771,6 +1773,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -1936,6 +1958,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(array $payload): BasicError { $properties = []; @@ -2042,6 +2094,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -2903,6 +2956,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -2986,6 +3048,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(mixed $object): mixed { assert($object instanceof BasicError); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Forks.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Forks.php index 94b58142f70..e9ec4320797 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Forks.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Forks.php @@ -16,6 +16,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -70,6 +71,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($payload), 'ApiClients\Client\GitHub\Schema\FullRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️FullRepository⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -3207,6 +3209,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -3372,6 +3394,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError(array $payload): ValidationError { $properties = []; @@ -3490,6 +3542,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -4881,6 +4934,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -4964,6 +5026,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError(mixed $object): mixed { assert($object instanceof ValidationError); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Invitations/InvitationId.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Invitations/InvitationId.php index 8d596f337c1..248d34b60ad 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Invitations/InvitationId.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Invitations/InvitationId.php @@ -13,6 +13,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -63,6 +64,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } @@ -1820,6 +1822,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -1985,6 +2007,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array { foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { @@ -2028,6 +2080,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -2907,6 +2960,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -2990,6 +3052,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Pulls/PullNumber/Codespaces.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Pulls/PullNumber/Codespaces.php index 42e722bfc6f..2931f7ac295 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Pulls/PullNumber/Codespaces.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Pulls/PullNumber/Codespaces.php @@ -18,6 +18,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -68,6 +69,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHub\Schema\Codespace\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️GitStatus($payload), 'ApiClients\Client\GitHub\Schema\Codespace\RuntimeConstraints' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️RuntimeConstraints($payload), @@ -2099,6 +2101,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -2264,6 +2286,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(array $payload): CodespaceMachine { $properties = []; @@ -2622,6 +2674,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHub\Schema\Codespace\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️GitStatus($object), 'ApiClients\Client\GitHub\Schema\Codespace\RuntimeConstraints' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️RuntimeConstraints($object), @@ -3642,6 +3695,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3725,6 +3787,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(mixed $object): mixed { assert($object instanceof CodespaceMachine); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecurityAdvisories/GhsaId/Forks.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecurityAdvisories/GhsaId/Forks.php index 537e8537918..fc3e5c546ab 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecurityAdvisories/GhsaId/Forks.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecurityAdvisories/GhsaId/Forks.php @@ -16,6 +16,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -68,6 +69,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), 'ApiClients\Client\GitHub\Schema\ScimError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError($payload), 'ApiClients\Client\GitHub\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($payload), @@ -3059,6 +3061,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -3224,6 +3246,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(array $payload): BasicError { $properties = []; @@ -3488,6 +3540,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), 'ApiClients\Client\GitHub\Schema\ScimError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError($object), 'ApiClients\Client\GitHub\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($object), @@ -4778,6 +4831,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -4861,6 +4923,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(mixed $object): mixed { assert($object instanceof BasicError); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Transfer.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Transfer.php index fbb13937618..fe6eb7a5eee 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Transfer.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Transfer.php @@ -12,6 +12,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -61,6 +62,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } @@ -1662,6 +1664,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -1827,6 +1849,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array { foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { @@ -1869,6 +1921,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -2692,6 +2745,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -2775,6 +2837,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/TemplateOwner/TemplateRepo/Generate.php b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/TemplateOwner/TemplateRepo/Generate.php index 436f67f979e..bcf286f48f1 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Repos/TemplateOwner/TemplateRepo/Generate.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Repos/TemplateOwner/TemplateRepo/Generate.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -65,6 +66,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\FullRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️FullRepository⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -3053,6 +3055,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -3218,6 +3240,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️FullRepository⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -3282,6 +3334,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -4569,6 +4622,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -4652,6 +4714,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces.php b/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces.php index b84be06f06f..86f464c1b2e 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces.php @@ -19,6 +19,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -71,6 +72,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHub\Schema\Codespace\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️GitStatus($payload), 'ApiClients\Client\GitHub\Schema\Codespace\RuntimeConstraints' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️RuntimeConstraints($payload), @@ -2205,6 +2207,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -2370,6 +2392,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(array $payload): CodespaceMachine { $properties = []; @@ -2667,6 +2719,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHub\Schema\Codespace\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️GitStatus($object), 'ApiClients\Client\GitHub\Schema\Codespace\RuntimeConstraints' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️RuntimeConstraints($object), @@ -3747,6 +3800,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3830,6 +3892,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(mixed $object): mixed { assert($object instanceof CodespaceMachine); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName.php b/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName.php index 2288d4aebf9..4a65865bbc3 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName.php @@ -17,6 +17,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -67,6 +68,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHub\Schema\Codespace\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️GitStatus($payload), 'ApiClients\Client\GitHub\Schema\Codespace\RuntimeConstraints' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️RuntimeConstraints($payload), @@ -2097,6 +2099,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -2262,6 +2284,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(array $payload): CodespaceMachine { $properties = []; @@ -2568,6 +2620,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHub\Schema\Codespace\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️GitStatus($object), 'ApiClients\Client\GitHub\Schema\Codespace\RuntimeConstraints' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️RuntimeConstraints($object), @@ -3587,6 +3640,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3670,6 +3732,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(mixed $object): mixed { assert($object instanceof CodespaceMachine); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Publish.php b/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Publish.php index 9fc84790072..6957b154e4a 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Publish.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Publish.php @@ -19,6 +19,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -72,6 +73,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceWithFullRepository⚡️GitStatus($payload), 'ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository\RuntimeConstraints' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceWithFullRepository⚡️RuntimeConstraints($payload), @@ -3479,6 +3481,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -3644,6 +3666,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(array $payload): CodespaceMachine { $properties = []; @@ -4024,6 +4076,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceWithFullRepository⚡️GitStatus($object), 'ApiClients\Client\GitHub\Schema\CodespaceWithFullRepository\RuntimeConstraints' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceWithFullRepository⚡️RuntimeConstraints($object), @@ -5500,6 +5553,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -5583,6 +5645,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(mixed $object): mixed { assert($object instanceof CodespaceMachine); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Start.php b/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Start.php index 42312b16ff6..15c171df79f 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Start.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Start.php @@ -18,6 +18,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -68,6 +69,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHub\Schema\Codespace\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️GitStatus($payload), 'ApiClients\Client\GitHub\Schema\Codespace\RuntimeConstraints' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️RuntimeConstraints($payload), @@ -2099,6 +2101,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -2264,6 +2286,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(array $payload): CodespaceMachine { $properties = []; @@ -2655,6 +2707,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHub\Schema\Codespace\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️GitStatus($object), 'ApiClients\Client\GitHub\Schema\Codespace\RuntimeConstraints' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️RuntimeConstraints($object), @@ -3675,6 +3728,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3758,6 +3820,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(mixed $object): mixed { assert($object instanceof CodespaceMachine); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Stop.php b/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Stop.php index 98eeb7ea8f4..823157df326 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Stop.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Stop.php @@ -17,6 +17,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -67,6 +68,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHub\Schema\Codespace\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️GitStatus($payload), 'ApiClients\Client\GitHub\Schema\Codespace\RuntimeConstraints' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️RuntimeConstraints($payload), @@ -2097,6 +2099,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -2262,6 +2284,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(array $payload): CodespaceMachine { $properties = []; @@ -2568,6 +2620,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHub\Schema\Codespace\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️GitStatus($object), 'ApiClients\Client\GitHub\Schema\Codespace\RuntimeConstraints' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Codespace⚡️RuntimeConstraints($object), @@ -3587,6 +3640,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3670,6 +3732,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CodespaceMachine(mixed $object): mixed { assert($object instanceof CodespaceMachine); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/User/Packages/PackageType/PackageName.php b/clients/GitHub/src/Internal/Hydrator/Operation/User/Packages/PackageType/PackageName.php index 6adfd75e4cc..6335f05e24f 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/User/Packages/PackageType/PackageName.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/User/Packages/PackageType/PackageName.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -64,6 +65,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -1824,6 +1826,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -1989,6 +2011,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(array $payload): BasicError { $properties = []; @@ -2095,6 +2147,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -2972,6 +3025,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3055,6 +3117,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(mixed $object): mixed { assert($object instanceof BasicError); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/User/Repos.php b/clients/GitHub/src/Internal/Hydrator/Operation/User/Repos.php index 05abb1f0fda..d9e8b6c8d41 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/User/Repos.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/User/Repos.php @@ -16,6 +16,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -70,6 +71,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\ScimError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError($payload), 'ApiClients\Client\GitHub\Schema\FullRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️FullRepository⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -3174,6 +3176,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -3339,6 +3361,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError(array $payload): ScimError { $properties = []; @@ -3490,6 +3542,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\ScimError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -4847,6 +4900,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -4930,6 +4992,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError(mixed $object): mixed { assert($object instanceof ScimError); diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Users/Username/Packages/PackageType/PackageName.php b/clients/GitHub/src/Internal/Hydrator/Operation/Users/Username/Packages/PackageType/PackageName.php index d616da868c9..1309e5aaee4 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Users/Username/Packages/PackageType/PackageName.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Users/Username/Packages/PackageType/PackageName.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleUser; @@ -64,6 +65,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -1824,6 +1826,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -1989,6 +2011,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(array $payload): BasicError { $properties = []; @@ -2095,6 +2147,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -2972,6 +3025,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -3055,6 +3117,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError(mixed $object): mixed { assert($object instanceof BasicError); diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/CheckRun.php b/clients/GitHub/src/Internal/Hydrator/WebHook/CheckRun.php index 6d025805c5e..034dce2f6a3 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/CheckRun.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/CheckRun.php @@ -22,6 +22,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleCheckSuite; @@ -87,6 +88,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\DeploymentSimple' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DeploymentSimple($payload), 'ApiClients\Client\GitHub\Schema\CheckRunWithSimpleCheckSuite\Output' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CheckRunWithSimpleCheckSuite⚡️Output($payload), 'ApiClients\Client\GitHub\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($payload), @@ -2568,6 +2570,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -2733,6 +2755,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DeploymentSimple(array $payload): DeploymentSimple { $properties = []; @@ -6425,6 +6477,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\DeploymentSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DeploymentSimple($object), 'ApiClients\Client\GitHub\Schema\CheckRunWithSimpleCheckSuite\Output' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CheckRunWithSimpleCheckSuite⚡️Output($object), 'ApiClients\Client\GitHub\Schema\SimpleInstallation' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($object), @@ -7687,6 +7740,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -7770,6 +7832,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DeploymentSimple(mixed $object): mixed { assert($object instanceof DeploymentSimple); diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php b/clients/GitHub/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php index 8beb381244c..e2c4d7736bb 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php @@ -15,6 +15,7 @@ use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHub\Schema\SimpleInstallation; @@ -66,6 +67,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHub\Schema\EnterpriseWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks($payload), 'ApiClients\Client\GitHub\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($payload), @@ -402,6 +404,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu $properties['secretScanningNonProviderPatterns'] = $value; after_secretScanningNonProviderPatterns: + + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack); } @@ -567,6 +589,36 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secu } } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks(array $payload): EnterpriseWebhooks { $properties = []; @@ -3827,6 +3879,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHub\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHub\Schema\EnterpriseWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks($object), 'ApiClients\Client\GitHub\Schema\SimpleInstallation' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($object), 'ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($object), @@ -4035,6 +4088,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + return $result; } @@ -4118,6 +4180,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks(mixed $object): mixed { assert($object instanceof EnterpriseWebhooks); diff --git a/clients/GitHub/src/Internal/Hydrators.php b/clients/GitHub/src/Internal/Hydrators.php index a16ca82f10e..fd8d425b4dd 100644 --- a/clients/GitHub/src/Internal/Hydrators.php +++ b/clients/GitHub/src/Internal/Hydrators.php @@ -86,6 +86,12 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Orgs\Org\Actions\Permissions\Repositories\RepositoryId|null $operation🌀Orgs🌀Org🌀Actions🌀Permissions🌀Repositories🌀RepositoryId = null; private Internal\Hydrator\Operation\Orgs\Org\Actions\Permissions\SelectedActions|null $operation🌀Orgs🌀Org🌀Actions🌀Permissions🌀SelectedActions = null; private Internal\Hydrator\Operation\Orgs\Org\Actions\Permissions\Workflow|null $operation🌀Orgs🌀Org🌀Actions🌀Permissions🌀Workflow = null; + private Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups|null $operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups = null; + private Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId|null $operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId = null; + private Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Repositories|null $operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories = null; + private Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Repositories\RepositoryId|null $operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories🌀RepositoryId = null; + private Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Runners|null $operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners = null; + private Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Runners\RunnerId|null $operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners🌀RunnerId = null; private Internal\Hydrator\Operation\Orgs\Org\Actions\Runners|null $operation🌀Orgs🌀Org🌀Actions🌀Runners = null; private Internal\Hydrator\Operation\Orgs\Org\Actions\Runners\Downloads|null $operation🌀Orgs🌀Org🌀Actions🌀Runners🌀Downloads = null; private Internal\Hydrator\Operation\Orgs\Org\Actions\Runners\GenerateJitconfig|null $operation🌀Orgs🌀Org🌀Actions🌀Runners🌀GenerateJitconfig = null; @@ -748,7 +754,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHub\\Schema\\MarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\MarketplacePurchase\\MarketplacePendingChange', '\\ApiClients\\Client\\GitHub\\Schema\\MarketplaceListingPlan', '\\ApiClients\\Client\\GitHub\\Schema\\MarketplacePurchase\\MarketplacePurchase' => $this->getObjectMapperOperation🌀MarketplaceListing🌀Accounts🌀AccountId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\ApiOverview', '\\ApiClients\\Client\\GitHub\\Schema\\ApiOverview\\SshKeyFingerprints', '\\ApiClients\\Client\\GitHub\\Schema\\ApiOverview\\Domains', '\\ApiClients\\Client\\GitHub\\Schema\\ApiOverview\\Domains\\ArtifactAttestations' => $this->getObjectMapperOperation🌀Meta()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Activity\\MarkNotificationsAsRead\\Response\\ApplicationJson\\Accepted' => $this->getObjectMapperOperation🌀Notifications()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHub\\Schema\\Thread', '\\ApiClients\\Client\\GitHub\\Schema\\MinimalRepository', '\\ApiClients\\Client\\GitHub\\Schema\\MinimalRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\MinimalRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\AdvancedSecurity', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\DependabotSecurityUpdates', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\SecretScanning', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\SecretScanningPushProtection', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\SecretScanningNonProviderPatterns', '\\ApiClients\\Client\\GitHub\\Schema\\Thread\\Subject' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀ThreadId()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHub\\Schema\\Thread', '\\ApiClients\\Client\\GitHub\\Schema\\MinimalRepository', '\\ApiClients\\Client\\GitHub\\Schema\\MinimalRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\MinimalRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\AdvancedSecurity', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\DependabotSecurityUpdates', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\SecretScanning', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\SecretScanningPushProtection', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\SecretScanningNonProviderPatterns', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\SecretScanningAiDetection', '\\ApiClients\\Client\\GitHub\\Schema\\Thread\\Subject' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀ThreadId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\ThreadSubscription' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀ThreadId🌀Subscription()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\OrganizationFull', '\\ApiClients\\Client\\GitHub\\Schema\\OrganizationFull\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Orgs\\Delete\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\ActionsCacheUsageOrgEnterprise' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Cache🌀Usage()->hydrateObject($className, $payload), @@ -758,6 +764,9 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Actions\\ListSelectedRepositoriesEnabledGithubActionsOrganization\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Permissions🌀Repositories()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\SelectedActions' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Permissions🌀SelectedActions()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\ActionsGetDefaultWorkflowPermissions' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Permissions🌀Workflow()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Actions\\ListSelfHostedRunnerGroupsForOrg\\Response\\ApplicationJson\\Ok', '\\ApiClients\\Client\\GitHub\\Schema\\RunnerGroupsOrg' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Actions\\ListRepoAccessToSelfHostedRunnerGroupInOrg\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Actions\\ListSelfHostedRunnersInGroupForOrg\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Actions\\ListSelfHostedRunnersForOrg\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Runners()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Actions\\GenerateRunnerJitconfigForOrg\\Response\\ApplicationJson\\Created', '\\ApiClients\\Client\\GitHub\\Schema\\Runner' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Runners🌀GenerateJitconfig()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\AuthenticationToken', '\\ApiClients\\Client\\GitHub\\Schema\\AuthenticationToken\\Permissions' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Runners🌀RegistrationToken()->hydrateObject($className, $payload), @@ -1103,7 +1112,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHub\\Schema\\MarketplacePurchase', '\\ApiClients\\Client\\GitHub\\Schema\\MarketplacePurchase\\MarketplacePendingChange', '\\ApiClients\\Client\\GitHub\\Schema\\MarketplaceListingPlan', '\\ApiClients\\Client\\GitHub\\Schema\\MarketplacePurchase\\MarketplacePurchase' => $this->getObjectMapperOperation🌀MarketplaceListing🌀Accounts🌀AccountId()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\ApiOverview', '\\ApiClients\\Client\\GitHub\\Schema\\ApiOverview\\SshKeyFingerprints', '\\ApiClients\\Client\\GitHub\\Schema\\ApiOverview\\Domains', '\\ApiClients\\Client\\GitHub\\Schema\\ApiOverview\\Domains\\ArtifactAttestations' => $this->getObjectMapperOperation🌀Meta()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Activity\\MarkNotificationsAsRead\\Response\\ApplicationJson\\Accepted' => $this->getObjectMapperOperation🌀Notifications()->serializeObject($object), - '\\ApiClients\\Client\\GitHub\\Schema\\Thread', '\\ApiClients\\Client\\GitHub\\Schema\\MinimalRepository', '\\ApiClients\\Client\\GitHub\\Schema\\MinimalRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\MinimalRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\AdvancedSecurity', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\DependabotSecurityUpdates', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\SecretScanning', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\SecretScanningPushProtection', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\SecretScanningNonProviderPatterns', '\\ApiClients\\Client\\GitHub\\Schema\\Thread\\Subject' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀ThreadId()->serializeObject($object), + '\\ApiClients\\Client\\GitHub\\Schema\\Thread', '\\ApiClients\\Client\\GitHub\\Schema\\MinimalRepository', '\\ApiClients\\Client\\GitHub\\Schema\\MinimalRepository\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\MinimalRepository\\License', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\AdvancedSecurity', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\DependabotSecurityUpdates', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\SecretScanning', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\SecretScanningPushProtection', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\SecretScanningNonProviderPatterns', '\\ApiClients\\Client\\GitHub\\Schema\\SecurityAndAnalysis\\SecretScanningAiDetection', '\\ApiClients\\Client\\GitHub\\Schema\\Thread\\Subject' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀ThreadId()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\ThreadSubscription' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀ThreadId🌀Subscription()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\OrganizationFull', '\\ApiClients\\Client\\GitHub\\Schema\\OrganizationFull\\Plan', '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Orgs\\Delete\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\ActionsCacheUsageOrgEnterprise' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Cache🌀Usage()->serializeObject($object), @@ -1113,6 +1122,9 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Actions\\ListSelectedRepositoriesEnabledGithubActionsOrganization\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Permissions🌀Repositories()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\SelectedActions' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Permissions🌀SelectedActions()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\ActionsGetDefaultWorkflowPermissions' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Permissions🌀Workflow()->serializeObject($object), + '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Actions\\ListSelfHostedRunnerGroupsForOrg\\Response\\ApplicationJson\\Ok', '\\ApiClients\\Client\\GitHub\\Schema\\RunnerGroupsOrg' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups()->serializeObject($object), + '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Actions\\ListRepoAccessToSelfHostedRunnerGroupInOrg\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories()->serializeObject($object), + '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Actions\\ListSelfHostedRunnersInGroupForOrg\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Actions\\ListSelfHostedRunnersForOrg\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Runners()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\Operations\\Actions\\GenerateRunnerJitconfigForOrg\\Response\\ApplicationJson\\Created', '\\ApiClients\\Client\\GitHub\\Schema\\Runner' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Runners🌀GenerateJitconfig()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\AuthenticationToken', '\\ApiClients\\Client\\GitHub\\Schema\\AuthenticationToken\\Permissions' => $this->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Runners🌀RegistrationToken()->serializeObject($object), @@ -2097,6 +2109,60 @@ public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Permission return $this->operation🌀Orgs🌀Org🌀Actions🌀Permissions🌀Workflow; } + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups(): Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups + { + if ($this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups === false) { + $this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups = new Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups(); + } + + return $this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups; + } + + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId(): Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId + { + if ($this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId === false) { + $this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId = new Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId(); + } + + return $this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId; + } + + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories(): Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Repositories + { + if ($this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Repositories === false) { + $this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories = new Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Repositories(); + } + + return $this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories; + } + + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories🌀RepositoryId(): Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Repositories\RepositoryId + { + if ($this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories🌀RepositoryId instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Repositories\RepositoryId === false) { + $this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories🌀RepositoryId = new Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Repositories\RepositoryId(); + } + + return $this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories🌀RepositoryId; + } + + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners(): Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Runners + { + if ($this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Runners === false) { + $this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners = new Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Runners(); + } + + return $this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners; + } + + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners🌀RunnerId(): Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Runners\RunnerId + { + if ($this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners🌀RunnerId instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Runners\RunnerId === false) { + $this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners🌀RunnerId = new Internal\Hydrator\Operation\Orgs\Org\Actions\RunnerGroups\RunnerGroupId\Runners\RunnerId(); + } + + return $this->operation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners🌀RunnerId; + } + public function getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀Runners(): Internal\Hydrator\Operation\Orgs\Org\Actions\Runners { if ($this->operation🌀Orgs🌀Org🌀Actions🌀Runners instanceof Internal\Hydrator\Operation\Orgs\Org\Actions\Runners === false) { diff --git a/clients/GitHub/src/Internal/Operation/Actions/AddRepoAccessToSelfHostedRunnerGroupInOrg.php b/clients/GitHub/src/Internal/Operation/Actions/AddRepoAccessToSelfHostedRunnerGroupInOrg.php new file mode 100644 index 00000000000..fceef85fb50 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Actions/AddRepoAccessToSelfHostedRunnerGroupInOrg.php @@ -0,0 +1,51 @@ +org = $org; + $this->runnerGroupId = $runnerGroupId; + $this->repositoryId = $repositoryId; + } + + public function createRequest(): RequestInterface + { + return new Request('PUT', str_replace(['{org}', '{runner_group_id}', '{repository_id}'], [$this->org, $this->runnerGroupId, $this->repositoryId], '/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}')); + } + + public function createResponse(ResponseInterface $response): WithoutBody + { + $code = $response->getStatusCode(); + switch ($code) { + /** + * Response + **/ + case 204: + return new WithoutBody(204, []); + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Actions/AddSelfHostedRunnerToGroupForOrg.php b/clients/GitHub/src/Internal/Operation/Actions/AddSelfHostedRunnerToGroupForOrg.php new file mode 100644 index 00000000000..0579881d5ba --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Actions/AddSelfHostedRunnerToGroupForOrg.php @@ -0,0 +1,51 @@ +org = $org; + $this->runnerGroupId = $runnerGroupId; + $this->runnerId = $runnerId; + } + + public function createRequest(): RequestInterface + { + return new Request('PUT', str_replace(['{org}', '{runner_group_id}', '{runner_id}'], [$this->org, $this->runnerGroupId, $this->runnerId], '/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}')); + } + + public function createResponse(ResponseInterface $response): WithoutBody + { + $code = $response->getStatusCode(); + switch ($code) { + /** + * Response + **/ + case 204: + return new WithoutBody(204, []); + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Actions/CreateSelfHostedRunnerGroupForOrg.php b/clients/GitHub/src/Internal/Operation/Actions/CreateSelfHostedRunnerGroupForOrg.php new file mode 100644 index 00000000000..e636df89ac5 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Actions/CreateSelfHostedRunnerGroupForOrg.php @@ -0,0 +1,62 @@ +org = $org; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\Actions\CreateSelfHostedRunnerGroupForOrg\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('POST', str_replace(['{org}'], [$this->org], '/orgs/{org}/actions/runner-groups'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): Schema\RunnerGroupsOrg + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 201: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RunnerGroupsOrg::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\RunnerGroupsOrg::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Actions/DeleteSelfHostedRunnerGroupFromOrg.php b/clients/GitHub/src/Internal/Operation/Actions/DeleteSelfHostedRunnerGroupFromOrg.php new file mode 100644 index 00000000000..384ad48f483 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Actions/DeleteSelfHostedRunnerGroupFromOrg.php @@ -0,0 +1,48 @@ +org = $org; + $this->runnerGroupId = $runnerGroupId; + } + + public function createRequest(): RequestInterface + { + return new Request('DELETE', str_replace(['{org}', '{runner_group_id}'], [$this->org, $this->runnerGroupId], '/orgs/{org}/actions/runner-groups/{runner_group_id}')); + } + + public function createResponse(ResponseInterface $response): WithoutBody + { + $code = $response->getStatusCode(); + switch ($code) { + /** + * Response + **/ + case 204: + return new WithoutBody(204, []); + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Actions/GetSelfHostedRunnerGroupForOrg.php b/clients/GitHub/src/Internal/Operation/Actions/GetSelfHostedRunnerGroupForOrg.php new file mode 100644 index 00000000000..9dad9780755 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Actions/GetSelfHostedRunnerGroupForOrg.php @@ -0,0 +1,62 @@ +org = $org; + $this->runnerGroupId = $runnerGroupId; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{org}', '{runner_group_id}'], [$this->org, $this->runnerGroupId], '/orgs/{org}/actions/runner-groups/{runner_group_id}')); + } + + public function createResponse(ResponseInterface $response): Schema\RunnerGroupsOrg + { + $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\RunnerGroupsOrg::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\RunnerGroupsOrg::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrg.php b/clients/GitHub/src/Internal/Operation/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrg.php new file mode 100644 index 00000000000..ecc06f1070e --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrg.php @@ -0,0 +1,68 @@ +org = $org; + $this->runnerGroupId = $runnerGroupId; + $this->page = $page; + $this->perPage = $perPage; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{org}', '{runner_group_id}', '{page}', '{per_page}'], [$this->org, $this->runnerGroupId, $this->page, $this->perPage], '/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories' . '?page={page}&per_page={per_page}')); + } + + public function createResponse(ResponseInterface $response): Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Actions/ListSelfHostedRunnerGroupsForOrg.php b/clients/GitHub/src/Internal/Operation/Actions/ListSelfHostedRunnerGroupsForOrg.php new file mode 100644 index 00000000000..0a758715c6b --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Actions/ListSelfHostedRunnerGroupsForOrg.php @@ -0,0 +1,68 @@ +org = $org; + $this->visibleToRepository = $visibleToRepository; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{org}', '{visible_to_repository}', '{per_page}', '{page}'], [$this->org, $this->visibleToRepository, $this->perPage, $this->page], '/orgs/{org}/actions/runner-groups' . '?visible_to_repository={visible_to_repository}&per_page={per_page}&page={page}')); + } + + public function createResponse(ResponseInterface $response): Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Actions/ListSelfHostedRunnersInGroupForOrg.php b/clients/GitHub/src/Internal/Operation/Actions/ListSelfHostedRunnersInGroupForOrg.php new file mode 100644 index 00000000000..0c1cedf5f42 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Actions/ListSelfHostedRunnersInGroupForOrg.php @@ -0,0 +1,68 @@ +org = $org; + $this->runnerGroupId = $runnerGroupId; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{org}', '{runner_group_id}', '{per_page}', '{page}'], [$this->org, $this->runnerGroupId, $this->perPage, $this->page], '/orgs/{org}/actions/runner-groups/{runner_group_id}/runners' . '?per_page={per_page}&page={page}')); + } + + public function createResponse(ResponseInterface $response): Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Actions/RemoveRepoAccessToSelfHostedRunnerGroupInOrg.php b/clients/GitHub/src/Internal/Operation/Actions/RemoveRepoAccessToSelfHostedRunnerGroupInOrg.php new file mode 100644 index 00000000000..f494ae4b141 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Actions/RemoveRepoAccessToSelfHostedRunnerGroupInOrg.php @@ -0,0 +1,51 @@ +org = $org; + $this->runnerGroupId = $runnerGroupId; + $this->repositoryId = $repositoryId; + } + + public function createRequest(): RequestInterface + { + return new Request('DELETE', str_replace(['{org}', '{runner_group_id}', '{repository_id}'], [$this->org, $this->runnerGroupId, $this->repositoryId], '/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}')); + } + + public function createResponse(ResponseInterface $response): WithoutBody + { + $code = $response->getStatusCode(); + switch ($code) { + /** + * Response + **/ + case 204: + return new WithoutBody(204, []); + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Actions/RemoveSelfHostedRunnerFromGroupForOrg.php b/clients/GitHub/src/Internal/Operation/Actions/RemoveSelfHostedRunnerFromGroupForOrg.php new file mode 100644 index 00000000000..b5cb2a59a68 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Actions/RemoveSelfHostedRunnerFromGroupForOrg.php @@ -0,0 +1,51 @@ +org = $org; + $this->runnerGroupId = $runnerGroupId; + $this->runnerId = $runnerId; + } + + public function createRequest(): RequestInterface + { + return new Request('DELETE', str_replace(['{org}', '{runner_group_id}', '{runner_id}'], [$this->org, $this->runnerGroupId, $this->runnerId], '/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}')); + } + + public function createResponse(ResponseInterface $response): WithoutBody + { + $code = $response->getStatusCode(); + switch ($code) { + /** + * Response + **/ + case 204: + return new WithoutBody(204, []); + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Actions/SetRepoAccessToSelfHostedRunnerGroupInOrg.php b/clients/GitHub/src/Internal/Operation/Actions/SetRepoAccessToSelfHostedRunnerGroupInOrg.php new file mode 100644 index 00000000000..2aabbeddc50 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Actions/SetRepoAccessToSelfHostedRunnerGroupInOrg.php @@ -0,0 +1,54 @@ +org = $org; + $this->runnerGroupId = $runnerGroupId; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\Actions\SetRepoAccessToSelfHostedRunnerGroupInOrg\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('PUT', str_replace(['{org}', '{runner_group_id}'], [$this->org, $this->runnerGroupId], '/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): WithoutBody + { + $code = $response->getStatusCode(); + switch ($code) { + /** + * Response + **/ + case 204: + return new WithoutBody(204, []); + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Actions/SetSelfHostedRunnersInGroupForOrg.php b/clients/GitHub/src/Internal/Operation/Actions/SetSelfHostedRunnersInGroupForOrg.php new file mode 100644 index 00000000000..71728e5495a --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Actions/SetSelfHostedRunnersInGroupForOrg.php @@ -0,0 +1,54 @@ +org = $org; + $this->runnerGroupId = $runnerGroupId; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\Actions\SetSelfHostedRunnersInGroupForOrg\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('PUT', str_replace(['{org}', '{runner_group_id}'], [$this->org, $this->runnerGroupId], '/orgs/{org}/actions/runner-groups/{runner_group_id}/runners'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): WithoutBody + { + $code = $response->getStatusCode(); + switch ($code) { + /** + * Response + **/ + case 204: + return new WithoutBody(204, []); + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/Actions/UpdateSelfHostedRunnerGroupForOrg.php b/clients/GitHub/src/Internal/Operation/Actions/UpdateSelfHostedRunnerGroupForOrg.php new file mode 100644 index 00000000000..e19baf32a94 --- /dev/null +++ b/clients/GitHub/src/Internal/Operation/Actions/UpdateSelfHostedRunnerGroupForOrg.php @@ -0,0 +1,65 @@ +org = $org; + $this->runnerGroupId = $runnerGroupId; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\Actions\UpdateSelfHostedRunnerGroupForOrg\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('PATCH', str_replace(['{org}', '{runner_group_id}'], [$this->org, $this->runnerGroupId], '/orgs/{org}/actions/runner-groups/{runner_group_id}'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): Schema\RunnerGroupsOrg + { + $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\RunnerGroupsOrg::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\RunnerGroupsOrg::class, $body); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepo.php b/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepo.php index 404df886f08..8b3ecdffa83 100644 --- a/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepo.php +++ b/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepo.php @@ -38,6 +38,10 @@ final class ListAlertsForRepo private string $ref; /**The number of the pull request for the results you want to list. **/ private int $pr; + /**A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ + private string $before; + /**A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ + private string $after; /**If specified, only code scanning alerts with this state will be returned. **/ private string $state; /**If specified, only code scanning alerts with this severity will be returned. **/ @@ -51,7 +55,7 @@ final class ListAlertsForRepo /**The property by which to sort the results. **/ private string $sort; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $before, string $after, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') { $this->owner = $owner; $this->repo = $repo; @@ -59,6 +63,8 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali $this->toolGuid = $toolGuid; $this->ref = $ref; $this->pr = $pr; + $this->before = $before; + $this->after = $after; $this->state = $state; $this->severity = $severity; $this->page = $page; @@ -69,7 +75,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{pr}', '{state}', '{severity}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->pr, $this->state, $this->severity, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/alerts' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&pr={pr}&state={state}&severity={severity}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{pr}', '{before}', '{after}', '{state}', '{severity}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->pr, $this->before, $this->after, $this->state, $this->severity, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/alerts' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&pr={pr}&before={before}&after={after}&state={state}&severity={severity}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); } /** @return Observable|WithoutBody */ diff --git a/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepoListing.php b/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepoListing.php index f4827c6747a..93e966c3d2b 100644 --- a/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepoListing.php +++ b/clients/GitHub/src/Internal/Operation/CodeScanning/ListAlertsForRepoListing.php @@ -38,6 +38,10 @@ final class ListAlertsForRepoListing private string $ref; /**The number of the pull request for the results you want to list. **/ private int $pr; + /**A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ + private string $before; + /**A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/ + private string $after; /**If specified, only code scanning alerts with this state will be returned. **/ private string $state; /**If specified, only code scanning alerts with this severity will be returned. **/ @@ -51,7 +55,7 @@ final class ListAlertsForRepoListing /**The property by which to sort the results. **/ private string $sort; - public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') + public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\CodeScanning\Alerts $hydrator, string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $before, string $after, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created') { $this->owner = $owner; $this->repo = $repo; @@ -59,6 +63,8 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali $this->toolGuid = $toolGuid; $this->ref = $ref; $this->pr = $pr; + $this->before = $before; + $this->after = $after; $this->state = $state; $this->severity = $severity; $this->page = $page; @@ -69,7 +75,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali public function createRequest(): RequestInterface { - return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{pr}', '{state}', '{severity}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->pr, $this->state, $this->severity, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/alerts' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&pr={pr}&state={state}&severity={severity}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); + return new Request('GET', str_replace(['{owner}', '{repo}', '{tool_name}', '{tool_guid}', '{ref}', '{pr}', '{before}', '{after}', '{state}', '{severity}', '{page}', '{per_page}', '{direction}', '{sort}'], [$this->owner, $this->repo, $this->toolName, $this->toolGuid, $this->ref, $this->pr, $this->before, $this->after, $this->state, $this->severity, $this->page, $this->perPage, $this->direction, $this->sort], '/repos/{owner}/{repo}/code-scanning/alerts' . '?tool_name={tool_name}&tool_guid={tool_guid}&ref={ref}&pr={pr}&before={before}&after={after}&state={state}&severity={severity}&page={page}&per_page={per_page}&direction={direction}&sort={sort}')); } /** @return Observable|WithoutBody */ diff --git a/clients/GitHub/src/Internal/Operator/Actions/AddRepoAccessToSelfHostedRunnerGroupInOrg.php b/clients/GitHub/src/Internal/Operator/Actions/AddRepoAccessToSelfHostedRunnerGroupInOrg.php new file mode 100644 index 00000000000..3cdb444b640 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Actions/AddRepoAccessToSelfHostedRunnerGroupInOrg.php @@ -0,0 +1,38 @@ +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/GitHub/src/Internal/Operator/Actions/AddSelfHostedRunnerToGroupForOrg.php b/clients/GitHub/src/Internal/Operator/Actions/AddSelfHostedRunnerToGroupForOrg.php new file mode 100644 index 00000000000..95090389519 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Actions/AddSelfHostedRunnerToGroupForOrg.php @@ -0,0 +1,38 @@ +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/GitHub/src/Internal/Operator/Actions/CreateSelfHostedRunnerGroupForOrg.php b/clients/GitHub/src/Internal/Operator/Actions/CreateSelfHostedRunnerGroupForOrg.php new file mode 100644 index 00000000000..f36d87566f9 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Actions/CreateSelfHostedRunnerGroupForOrg.php @@ -0,0 +1,40 @@ +requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org); + $request = $operation->createRequest($params); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): RunnerGroupsOrg { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operator/Actions/DeleteSelfHostedRunnerGroupFromOrg.php b/clients/GitHub/src/Internal/Operator/Actions/DeleteSelfHostedRunnerGroupFromOrg.php new file mode 100644 index 00000000000..d78969e7b25 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Actions/DeleteSelfHostedRunnerGroupFromOrg.php @@ -0,0 +1,38 @@ +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/GitHub/src/Internal/Operator/Actions/GetSelfHostedRunnerGroupForOrg.php b/clients/GitHub/src/Internal/Operator/Actions/GetSelfHostedRunnerGroupForOrg.php new file mode 100644 index 00000000000..e238b245f81 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Actions/GetSelfHostedRunnerGroupForOrg.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $org, $runnerGroupId); + $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): RunnerGroupsOrg { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operator/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrg.php b/clients/GitHub/src/Internal/Operator/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrg.php new file mode 100644 index 00000000000..ece0be8c36c --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrg.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $org, $runnerGroupId, $page, $perPage); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Ok { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operator/Actions/ListSelfHostedRunnerGroupsForOrg.php b/clients/GitHub/src/Internal/Operator/Actions/ListSelfHostedRunnerGroupsForOrg.php new file mode 100644 index 00000000000..db030a20daf --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Actions/ListSelfHostedRunnerGroupsForOrg.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $org, $visibleToRepository, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Ok { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operator/Actions/ListSelfHostedRunnersInGroupForOrg.php b/clients/GitHub/src/Internal/Operator/Actions/ListSelfHostedRunnersInGroupForOrg.php new file mode 100644 index 00000000000..711327908b2 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Actions/ListSelfHostedRunnersInGroupForOrg.php @@ -0,0 +1,40 @@ +responseSchemaValidator, $this->hydrator, $org, $runnerGroupId, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Ok { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operator/Actions/RemoveRepoAccessToSelfHostedRunnerGroupInOrg.php b/clients/GitHub/src/Internal/Operator/Actions/RemoveRepoAccessToSelfHostedRunnerGroupInOrg.php new file mode 100644 index 00000000000..284e98c045b --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Actions/RemoveRepoAccessToSelfHostedRunnerGroupInOrg.php @@ -0,0 +1,38 @@ +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/GitHub/src/Internal/Operator/Actions/RemoveSelfHostedRunnerFromGroupForOrg.php b/clients/GitHub/src/Internal/Operator/Actions/RemoveSelfHostedRunnerFromGroupForOrg.php new file mode 100644 index 00000000000..a8861d23df3 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Actions/RemoveSelfHostedRunnerFromGroupForOrg.php @@ -0,0 +1,38 @@ +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/GitHub/src/Internal/Operator/Actions/SetRepoAccessToSelfHostedRunnerGroupInOrg.php b/clients/GitHub/src/Internal/Operator/Actions/SetRepoAccessToSelfHostedRunnerGroupInOrg.php new file mode 100644 index 00000000000..cc5cdb7db89 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Actions/SetRepoAccessToSelfHostedRunnerGroupInOrg.php @@ -0,0 +1,39 @@ +requestSchemaValidator, $org, $runnerGroupId); + $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): WithoutBody { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operator/Actions/SetSelfHostedRunnersInGroupForOrg.php b/clients/GitHub/src/Internal/Operator/Actions/SetSelfHostedRunnersInGroupForOrg.php new file mode 100644 index 00000000000..bd03ce11b55 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Actions/SetSelfHostedRunnersInGroupForOrg.php @@ -0,0 +1,39 @@ +requestSchemaValidator, $org, $runnerGroupId); + $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): WithoutBody { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operator/Actions/UpdateSelfHostedRunnerGroupForOrg.php b/clients/GitHub/src/Internal/Operator/Actions/UpdateSelfHostedRunnerGroupForOrg.php new file mode 100644 index 00000000000..f798851ec47 --- /dev/null +++ b/clients/GitHub/src/Internal/Operator/Actions/UpdateSelfHostedRunnerGroupForOrg.php @@ -0,0 +1,40 @@ +requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org, $runnerGroupId); + $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): RunnerGroupsOrg { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php b/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php index 9f3b4d2813a..586e0ac9f28 100644 --- a/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php +++ b/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php @@ -25,10 +25,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|WithoutBody */ - public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable|WithoutBody + /** @return iterable|WithoutBody */ + public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $before, string $after, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable|WithoutBody { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $pr, $state, $severity, $page, $perPage, $direction, $sort); + $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $pr, $before, $after, $state, $severity, $page, $perPage, $direction, $sort); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|WithoutBody { return $operation->createResponse($response); diff --git a/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php b/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php index 63b40cbafc7..b1f83519b29 100644 --- a/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php +++ b/clients/GitHub/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php @@ -25,10 +25,10 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return Observable|WithoutBody */ - public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable|WithoutBody + /** @return iterable|WithoutBody */ + public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $before, string $after, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable|WithoutBody { - $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListAlertsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $pr, $state, $severity, $page, $perPage, $direction, $sort); + $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\ListAlertsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $pr, $before, $after, $state, $severity, $page, $perPage, $direction, $sort); $request = $operation->createRequest(); $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable|WithoutBody { return $operation->createResponse($response); diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetOrgRulesets.php b/clients/GitHub/src/Internal/Operator/Repos/GetOrgRulesets.php index 8109fb8e877..8cd4e3a0487 100644 --- a/clients/GitHub/src/Internal/Operator/Repos/GetOrgRulesets.php +++ b/clients/GitHub/src/Internal/Operator/Repos/GetOrgRulesets.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $targets, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Repos\GetOrgRulesets($this->responseSchemaValidator, $this->hydrator, $org, $targets, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetOrgRulesetsListing.php b/clients/GitHub/src/Internal/Operator/Repos/GetOrgRulesetsListing.php index 0d7fa30106c..c3c9742b5ec 100644 --- a/clients/GitHub/src/Internal/Operator/Repos/GetOrgRulesetsListing.php +++ b/clients/GitHub/src/Internal/Operator/Repos/GetOrgRulesetsListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $targets, int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Repos\GetOrgRulesetsListing($this->responseSchemaValidator, $this->hydrator, $org, $targets, $perPage, $page); diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesets.php b/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesets.php index 2f5144cc916..c9303915ac6 100644 --- a/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesets.php +++ b/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesets.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $targets, int $perPage = 30, int $page = 1, bool $includesParents = true): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Repos\GetRepoRulesets($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $targets, $perPage, $page, $includesParents); diff --git a/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetsListing.php b/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetsListing.php index dcb4f75f5f5..6626a049c67 100644 --- a/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetsListing.php +++ b/clients/GitHub/src/Internal/Operator/Repos/GetRepoRulesetsListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $owner, string $repo, string $targets, int $perPage = 30, int $page = 1, bool $includesParents = true): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\Repos\GetRepoRulesetsListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $targets, $perPage, $page, $includesParents); diff --git a/clients/GitHub/src/Internal/Operators.php b/clients/GitHub/src/Internal/Operators.php index 71b8a0a56bf..062740de0fa 100644 --- a/clients/GitHub/src/Internal/Operators.php +++ b/clients/GitHub/src/Internal/Operators.php @@ -135,6 +135,19 @@ final class Operators private Internal\Operator\Actions\SetAllowedActionsOrganization|null $actions👷SetAllowedActionsOrganization = null; private Internal\Operator\Actions\GetGithubActionsDefaultWorkflowPermissionsOrganization|null $actions👷GetGithubActionsDefaultWorkflowPermissionsOrganization = null; private Internal\Operator\Actions\SetGithubActionsDefaultWorkflowPermissionsOrganization|null $actions👷SetGithubActionsDefaultWorkflowPermissionsOrganization = null; + private Internal\Operator\Actions\ListSelfHostedRunnerGroupsForOrg|null $actions👷ListSelfHostedRunnerGroupsForOrg = null; + private Internal\Operator\Actions\CreateSelfHostedRunnerGroupForOrg|null $actions👷CreateSelfHostedRunnerGroupForOrg = null; + private Internal\Operator\Actions\GetSelfHostedRunnerGroupForOrg|null $actions👷GetSelfHostedRunnerGroupForOrg = null; + private Internal\Operator\Actions\DeleteSelfHostedRunnerGroupFromOrg|null $actions👷DeleteSelfHostedRunnerGroupFromOrg = null; + private Internal\Operator\Actions\UpdateSelfHostedRunnerGroupForOrg|null $actions👷UpdateSelfHostedRunnerGroupForOrg = null; + private Internal\Operator\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg|null $actions👷ListRepoAccessToSelfHostedRunnerGroupInOrg = null; + private Internal\Operator\Actions\SetRepoAccessToSelfHostedRunnerGroupInOrg|null $actions👷SetRepoAccessToSelfHostedRunnerGroupInOrg = null; + private Internal\Operator\Actions\AddRepoAccessToSelfHostedRunnerGroupInOrg|null $actions👷AddRepoAccessToSelfHostedRunnerGroupInOrg = null; + private Internal\Operator\Actions\RemoveRepoAccessToSelfHostedRunnerGroupInOrg|null $actions👷RemoveRepoAccessToSelfHostedRunnerGroupInOrg = null; + private Internal\Operator\Actions\ListSelfHostedRunnersInGroupForOrg|null $actions👷ListSelfHostedRunnersInGroupForOrg = null; + private Internal\Operator\Actions\SetSelfHostedRunnersInGroupForOrg|null $actions👷SetSelfHostedRunnersInGroupForOrg = null; + private Internal\Operator\Actions\AddSelfHostedRunnerToGroupForOrg|null $actions👷AddSelfHostedRunnerToGroupForOrg = null; + private Internal\Operator\Actions\RemoveSelfHostedRunnerFromGroupForOrg|null $actions👷RemoveSelfHostedRunnerFromGroupForOrg = null; private Internal\Operator\Actions\ListSelfHostedRunnersForOrg|null $actions👷ListSelfHostedRunnersForOrg = null; private Internal\Operator\Actions\ListRunnerApplicationsForOrg|null $actions👷ListRunnerApplicationsForOrg = null; private Internal\Operator\Actions\GenerateRunnerJitconfigForOrg|null $actions👷GenerateRunnerJitconfigForOrg = null; @@ -2260,6 +2273,123 @@ public function actions👷SetGithubActionsDefaultWorkflowPermissionsOrganizatio return $this->actions👷SetGithubActionsDefaultWorkflowPermissionsOrganization; } + public function actions👷ListSelfHostedRunnerGroupsForOrg(): Internal\Operator\Actions\ListSelfHostedRunnerGroupsForOrg + { + if ($this->actions👷ListSelfHostedRunnerGroupsForOrg instanceof Internal\Operator\Actions\ListSelfHostedRunnerGroupsForOrg === false) { + $this->actions👷ListSelfHostedRunnerGroupsForOrg = new Internal\Operator\Actions\ListSelfHostedRunnerGroupsForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups()); + } + + return $this->actions👷ListSelfHostedRunnerGroupsForOrg; + } + + public function actions👷CreateSelfHostedRunnerGroupForOrg(): Internal\Operator\Actions\CreateSelfHostedRunnerGroupForOrg + { + if ($this->actions👷CreateSelfHostedRunnerGroupForOrg instanceof Internal\Operator\Actions\CreateSelfHostedRunnerGroupForOrg === false) { + $this->actions👷CreateSelfHostedRunnerGroupForOrg = new Internal\Operator\Actions\CreateSelfHostedRunnerGroupForOrg($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups()); + } + + return $this->actions👷CreateSelfHostedRunnerGroupForOrg; + } + + public function actions👷GetSelfHostedRunnerGroupForOrg(): Internal\Operator\Actions\GetSelfHostedRunnerGroupForOrg + { + if ($this->actions👷GetSelfHostedRunnerGroupForOrg instanceof Internal\Operator\Actions\GetSelfHostedRunnerGroupForOrg === false) { + $this->actions👷GetSelfHostedRunnerGroupForOrg = new Internal\Operator\Actions\GetSelfHostedRunnerGroupForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId()); + } + + return $this->actions👷GetSelfHostedRunnerGroupForOrg; + } + + public function actions👷DeleteSelfHostedRunnerGroupFromOrg(): Internal\Operator\Actions\DeleteSelfHostedRunnerGroupFromOrg + { + if ($this->actions👷DeleteSelfHostedRunnerGroupFromOrg instanceof Internal\Operator\Actions\DeleteSelfHostedRunnerGroupFromOrg === false) { + $this->actions👷DeleteSelfHostedRunnerGroupFromOrg = new Internal\Operator\Actions\DeleteSelfHostedRunnerGroupFromOrg($this->browser, $this->authentication); + } + + return $this->actions👷DeleteSelfHostedRunnerGroupFromOrg; + } + + public function actions👷UpdateSelfHostedRunnerGroupForOrg(): Internal\Operator\Actions\UpdateSelfHostedRunnerGroupForOrg + { + if ($this->actions👷UpdateSelfHostedRunnerGroupForOrg instanceof Internal\Operator\Actions\UpdateSelfHostedRunnerGroupForOrg === false) { + $this->actions👷UpdateSelfHostedRunnerGroupForOrg = new Internal\Operator\Actions\UpdateSelfHostedRunnerGroupForOrg($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId()); + } + + return $this->actions👷UpdateSelfHostedRunnerGroupForOrg; + } + + public function actions👷ListRepoAccessToSelfHostedRunnerGroupInOrg(): Internal\Operator\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg + { + if ($this->actions👷ListRepoAccessToSelfHostedRunnerGroupInOrg instanceof Internal\Operator\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg === false) { + $this->actions👷ListRepoAccessToSelfHostedRunnerGroupInOrg = new Internal\Operator\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories()); + } + + return $this->actions👷ListRepoAccessToSelfHostedRunnerGroupInOrg; + } + + public function actions👷SetRepoAccessToSelfHostedRunnerGroupInOrg(): Internal\Operator\Actions\SetRepoAccessToSelfHostedRunnerGroupInOrg + { + if ($this->actions👷SetRepoAccessToSelfHostedRunnerGroupInOrg instanceof Internal\Operator\Actions\SetRepoAccessToSelfHostedRunnerGroupInOrg === false) { + $this->actions👷SetRepoAccessToSelfHostedRunnerGroupInOrg = new Internal\Operator\Actions\SetRepoAccessToSelfHostedRunnerGroupInOrg($this->browser, $this->authentication, $this->requestSchemaValidator); + } + + return $this->actions👷SetRepoAccessToSelfHostedRunnerGroupInOrg; + } + + public function actions👷AddRepoAccessToSelfHostedRunnerGroupInOrg(): Internal\Operator\Actions\AddRepoAccessToSelfHostedRunnerGroupInOrg + { + if ($this->actions👷AddRepoAccessToSelfHostedRunnerGroupInOrg instanceof Internal\Operator\Actions\AddRepoAccessToSelfHostedRunnerGroupInOrg === false) { + $this->actions👷AddRepoAccessToSelfHostedRunnerGroupInOrg = new Internal\Operator\Actions\AddRepoAccessToSelfHostedRunnerGroupInOrg($this->browser, $this->authentication); + } + + return $this->actions👷AddRepoAccessToSelfHostedRunnerGroupInOrg; + } + + public function actions👷RemoveRepoAccessToSelfHostedRunnerGroupInOrg(): Internal\Operator\Actions\RemoveRepoAccessToSelfHostedRunnerGroupInOrg + { + if ($this->actions👷RemoveRepoAccessToSelfHostedRunnerGroupInOrg instanceof Internal\Operator\Actions\RemoveRepoAccessToSelfHostedRunnerGroupInOrg === false) { + $this->actions👷RemoveRepoAccessToSelfHostedRunnerGroupInOrg = new Internal\Operator\Actions\RemoveRepoAccessToSelfHostedRunnerGroupInOrg($this->browser, $this->authentication); + } + + return $this->actions👷RemoveRepoAccessToSelfHostedRunnerGroupInOrg; + } + + public function actions👷ListSelfHostedRunnersInGroupForOrg(): Internal\Operator\Actions\ListSelfHostedRunnersInGroupForOrg + { + if ($this->actions👷ListSelfHostedRunnersInGroupForOrg instanceof Internal\Operator\Actions\ListSelfHostedRunnersInGroupForOrg === false) { + $this->actions👷ListSelfHostedRunnersInGroupForOrg = new Internal\Operator\Actions\ListSelfHostedRunnersInGroupForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners()); + } + + return $this->actions👷ListSelfHostedRunnersInGroupForOrg; + } + + public function actions👷SetSelfHostedRunnersInGroupForOrg(): Internal\Operator\Actions\SetSelfHostedRunnersInGroupForOrg + { + if ($this->actions👷SetSelfHostedRunnersInGroupForOrg instanceof Internal\Operator\Actions\SetSelfHostedRunnersInGroupForOrg === false) { + $this->actions👷SetSelfHostedRunnersInGroupForOrg = new Internal\Operator\Actions\SetSelfHostedRunnersInGroupForOrg($this->browser, $this->authentication, $this->requestSchemaValidator); + } + + return $this->actions👷SetSelfHostedRunnersInGroupForOrg; + } + + public function actions👷AddSelfHostedRunnerToGroupForOrg(): Internal\Operator\Actions\AddSelfHostedRunnerToGroupForOrg + { + if ($this->actions👷AddSelfHostedRunnerToGroupForOrg instanceof Internal\Operator\Actions\AddSelfHostedRunnerToGroupForOrg === false) { + $this->actions👷AddSelfHostedRunnerToGroupForOrg = new Internal\Operator\Actions\AddSelfHostedRunnerToGroupForOrg($this->browser, $this->authentication); + } + + return $this->actions👷AddSelfHostedRunnerToGroupForOrg; + } + + public function actions👷RemoveSelfHostedRunnerFromGroupForOrg(): Internal\Operator\Actions\RemoveSelfHostedRunnerFromGroupForOrg + { + if ($this->actions👷RemoveSelfHostedRunnerFromGroupForOrg instanceof Internal\Operator\Actions\RemoveSelfHostedRunnerFromGroupForOrg === false) { + $this->actions👷RemoveSelfHostedRunnerFromGroupForOrg = new Internal\Operator\Actions\RemoveSelfHostedRunnerFromGroupForOrg($this->browser, $this->authentication); + } + + return $this->actions👷RemoveSelfHostedRunnerFromGroupForOrg; + } + public function actions👷ListSelfHostedRunnersForOrg(): Internal\Operator\Actions\ListSelfHostedRunnersForOrg { if ($this->actions👷ListSelfHostedRunnersForOrg instanceof Internal\Operator\Actions\ListSelfHostedRunnersForOrg === false) { diff --git a/clients/GitHub/src/Internal/Router/Delete/Actions.php b/clients/GitHub/src/Internal/Router/Delete/Actions.php index caffb4c2567..4e7720613d8 100644 --- a/clients/GitHub/src/Internal/Router/Delete/Actions.php +++ b/clients/GitHub/src/Internal/Router/Delete/Actions.php @@ -226,6 +226,26 @@ public function deleteRepoVariable(array $params): WithoutBody return $operator->call($arguments['owner'], $arguments['repo'], $arguments['name']); } + public function deleteSelfHostedRunnerGroupFromOrg(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('runner_group_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); + } + + $arguments['runner_group_id'] = $params['runner_group_id']; + unset($params['runner_group_id']); + $operator = new Internal\Operator\Actions\DeleteSelfHostedRunnerGroupFromOrg($this->browser, $this->authentication); + + return $operator->call($arguments['org'], $arguments['runner_group_id']); + } + /** @return */ public function deleteSelfHostedRunnerFromOrg(array $params): WithoutBody { @@ -322,6 +342,58 @@ public function deleteActionsCacheByKey(array $params): ActionsCacheList return $operator->call($arguments['owner'], $arguments['repo'], $arguments['key'], $arguments['ref']); } + public function removeRepoAccessToSelfHostedRunnerGroupInOrg(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('runner_group_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); + } + + $arguments['runner_group_id'] = $params['runner_group_id']; + unset($params['runner_group_id']); + if (array_key_exists('repository_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repository_id'); + } + + $arguments['repository_id'] = $params['repository_id']; + unset($params['repository_id']); + $operator = new Internal\Operator\Actions\RemoveRepoAccessToSelfHostedRunnerGroupInOrg($this->browser, $this->authentication); + + return $operator->call($arguments['org'], $arguments['runner_group_id'], $arguments['repository_id']); + } + + public function removeSelfHostedRunnerFromGroupForOrg(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('runner_group_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); + } + + $arguments['runner_group_id'] = $params['runner_group_id']; + unset($params['runner_group_id']); + if (array_key_exists('runner_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_id'); + } + + $arguments['runner_id'] = $params['runner_id']; + unset($params['runner_id']); + $operator = new Internal\Operator\Actions\RemoveSelfHostedRunnerFromGroupForOrg($this->browser, $this->authentication); + + return $operator->call($arguments['org'], $arguments['runner_group_id'], $arguments['runner_id']); + } + /** @return */ public function removeCustomLabelFromSelfHostedRunnerForOrg(array $params): Ok { diff --git a/clients/GitHub/src/Internal/Router/Delete/Eight.php b/clients/GitHub/src/Internal/Router/Delete/Eight.php index 6a3f06e6519..721a61c2e0c 100644 --- a/clients/GitHub/src/Internal/Router/Delete/Eight.php +++ b/clients/GitHub/src/Internal/Router/Delete/Eight.php @@ -18,14 +18,30 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Schema\BasicError */ - public function call(string $call, array $params, array $pathChunks): Ok|WithoutBody|Json|iterable|BasicError|PullRequestReview + /** @return \ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody||Observable|Schema\BasicError */ + public function call(string $call, array $params, array $pathChunks): WithoutBody|Ok|Json|iterable|BasicError|PullRequestReview { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'orgs') { if ($pathChunks[2] === '{org}') { if ($pathChunks[3] === 'actions') { - if ($pathChunks[4] === 'runners') { + if ($pathChunks[4] === 'runner-groups') { + if ($pathChunks[5] === '{runner_group_id}') { + if ($pathChunks[6] === 'repositories') { + if ($pathChunks[7] === '{repository_id}') { + if ($call === 'DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}') { + return $this->routers->internal🔀Router🔀Delete🔀Actions()->removeRepoAccessToSelfHostedRunnerGroupInOrg($params); + } + } + } elseif ($pathChunks[6] === 'runners') { + if ($pathChunks[7] === '{runner_id}') { + if ($call === 'DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}') { + return $this->routers->internal🔀Router🔀Delete🔀Actions()->removeSelfHostedRunnerFromGroupForOrg($params); + } + } + } + } + } elseif ($pathChunks[4] === 'runners') { if ($pathChunks[5] === '{runner_id}') { if ($pathChunks[6] === 'labels') { if ($pathChunks[7] === '{name}') { diff --git a/clients/GitHub/src/Internal/Router/Delete/Six.php b/clients/GitHub/src/Internal/Router/Delete/Six.php index 11e7028dcba..ff153a79401 100644 --- a/clients/GitHub/src/Internal/Router/Delete/Six.php +++ b/clients/GitHub/src/Internal/Router/Delete/Six.php @@ -18,13 +18,20 @@ public function __construct(private Routers $routers) { } + /** @return \ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody| */ public function call(string $call, array $params, array $pathChunks): WithoutBody|Ok|Json|ActionsCacheList|FileCommit { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'orgs') { if ($pathChunks[2] === '{org}') { if ($pathChunks[3] === 'actions') { - if ($pathChunks[4] === 'runners') { + if ($pathChunks[4] === 'runner-groups') { + if ($pathChunks[5] === '{runner_group_id}') { + if ($call === 'DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}') { + return $this->routers->internal🔀Router🔀Delete🔀Actions()->deleteSelfHostedRunnerGroupFromOrg($params); + } + } + } elseif ($pathChunks[4] === 'runners') { if ($pathChunks[5] === '{runner_id}') { if ($call === 'DELETE /orgs/{org}/actions/runners/{runner_id}') { return $this->routers->internal🔀Router🔀Delete🔀Actions()->deleteSelfHostedRunnerFromOrg($params); diff --git a/clients/GitHub/src/Internal/Router/Get/Actions.php b/clients/GitHub/src/Internal/Router/Get/Actions.php index 8765043919b..9bf66885505 100644 --- a/clients/GitHub/src/Internal/Router/Get/Actions.php +++ b/clients/GitHub/src/Internal/Router/Get/Actions.php @@ -19,11 +19,12 @@ use ApiClients\Client\GitHub\Schema\Artifact; use ApiClients\Client\GitHub\Schema\Job; use ApiClients\Client\GitHub\Schema\OidcCustomSubRepo; -use ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok; +use ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok; use ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json; use ApiClients\Client\GitHub\Schema\OrganizationActionsSecret; use ApiClients\Client\GitHub\Schema\OrganizationActionsVariable; use ApiClients\Client\GitHub\Schema\Runner; +use ApiClients\Client\GitHub\Schema\RunnerGroupsOrg; use ApiClients\Client\GitHub\Schema\SelectedActions; use ApiClients\Client\GitHub\Schema\Workflow; use ApiClients\Client\GitHub\Schema\WorkflowRun; @@ -58,8 +59,40 @@ public function getGithubActionsPermissionsOrganization(array $params): ActionsO return $operator->call($arguments['org']); } + public function listSelfHostedRunnerGroupsForOrg(array $params): Ok + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('visible_to_repository', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: visible_to_repository'); + } + + $arguments['visible_to_repository'] = $params['visible_to_repository']; + unset($params['visible_to_repository']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + $operator = new Internal\Operator\Actions\ListSelfHostedRunnerGroupsForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups()); + + return $operator->call($arguments['org'], $arguments['visible_to_repository'], $arguments['per_page'], $arguments['page']); + } + /** @return */ - public function listSelfHostedRunnersForOrg(array $params): Ok + public function listSelfHostedRunnersForOrg(array $params): \ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok { $arguments = []; if (array_key_exists('name', $params) === false) { @@ -244,6 +277,26 @@ public function getGithubActionsDefaultWorkflowPermissionsOrganization(array $pa return $operator->call($arguments['org']); } + public function getSelfHostedRunnerGroupForOrg(array $params): RunnerGroupsOrg + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('runner_group_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); + } + + $arguments['runner_group_id'] = $params['runner_group_id']; + unset($params['runner_group_id']); + $operator = new Internal\Operator\Actions\GetSelfHostedRunnerGroupForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId()); + + return $operator->call($arguments['org'], $arguments['runner_group_id']); + } + /** @return Observable */ public function listRunnerApplicationsForOrg(array $params): iterable { @@ -739,6 +792,70 @@ public function listRepoWorkflows(array $params): \ApiClients\Client\GitHub\Sche return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } + public function listRepoAccessToSelfHostedRunnerGroupInOrg(array $params): \ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('runner_group_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); + } + + $arguments['runner_group_id'] = $params['runner_group_id']; + unset($params['runner_group_id']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + $operator = new Internal\Operator\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Repositories()); + + return $operator->call($arguments['org'], $arguments['runner_group_id'], $arguments['page'], $arguments['per_page']); + } + + public function listSelfHostedRunnersInGroupForOrg(array $params): \ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('runner_group_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); + } + + $arguments['runner_group_id'] = $params['runner_group_id']; + unset($params['runner_group_id']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + $operator = new Internal\Operator\Actions\ListSelfHostedRunnersInGroupForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId🌀Runners()); + + return $operator->call($arguments['org'], $arguments['runner_group_id'], $arguments['per_page'], $arguments['page']); + } + /** @return */ public function listLabelsForSelfHostedRunnerForOrg(array $params): \ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok { diff --git a/clients/GitHub/src/Internal/Router/Get/CodeScanning.php b/clients/GitHub/src/Internal/Router/Get/CodeScanning.php index ca276ea0ba0..ea14df0c3ba 100644 --- a/clients/GitHub/src/Internal/Router/Get/CodeScanning.php +++ b/clients/GitHub/src/Internal/Router/Get/CodeScanning.php @@ -102,7 +102,7 @@ public function listAlertsForOrg(array $params): iterable return $operator->call($arguments['org'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['before'], $arguments['after'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function listAlertsForRepo(array $params): iterable|WithoutBody { $arguments = []; @@ -142,6 +142,18 @@ public function listAlertsForRepo(array $params): iterable|WithoutBody $arguments['pr'] = $params['pr']; unset($params['pr']); + if (array_key_exists('before', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: before'); + } + + $arguments['before'] = $params['before']; + unset($params['before']); + if (array_key_exists('after', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: after'); + } + + $arguments['after'] = $params['after']; + unset($params['after']); if (array_key_exists('state', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: state'); } @@ -180,7 +192,7 @@ public function listAlertsForRepo(array $params): iterable|WithoutBody unset($params['sort']); $operator = new Internal\Operator\CodeScanning\ListAlertsForRepo($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Alerts()); - return $operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['pr'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['pr'], $arguments['before'], $arguments['after'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); } /** @return Observable */ diff --git a/clients/GitHub/src/Internal/Router/Get/Five.php b/clients/GitHub/src/Internal/Router/Get/Five.php index db2561f9412..714ae971f76 100644 --- a/clients/GitHub/src/Internal/Router/Get/Five.php +++ b/clients/GitHub/src/Internal/Router/Get/Five.php @@ -23,7 +23,7 @@ use ApiClients\Client\GitHub\Schema\LicenseContent; use ApiClients\Client\GitHub\Schema\MarketplacePurchase; use ApiClients\Client\GitHub\Schema\Migration; -use ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok; +use ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok; use ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json; use ApiClients\Client\GitHub\Schema\Operations\Interactions\GetRestrictionsForRepo\Response\ApplicationJson\Ok\Application\Json\One; use ApiClients\Client\GitHub\Schema\OrganizationRole; @@ -51,8 +51,8 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable */ - public function call(string $call, array $params, array $pathChunks): HookDelivery|iterable|WithoutBody|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|ActionsOrganizationPermissions|Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|OrgHook|OrgMembership|Migration|OrganizationRole|RepositoryRuleset|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Import|Installation|InteractionLimitResponse|One|Language|LicenseContent|Page|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|CodespacesUserPublicKey|CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|EmptyObject + /** @return |Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + public function call(string $call, array $params, array $pathChunks): HookDelivery|iterable|WithoutBody|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|ActionsOrganizationPermissions|Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|CopilotOrganizationDetails|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|OrgHook|OrgMembership|Migration|OrganizationRole|RepositoryRuleset|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Import|Installation|InteractionLimitResponse|One|Language|LicenseContent|Page|\ApiClients\Client\GitHub\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|CodespacesUserPublicKey|CodespacesSecret|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package|\ApiClients\Client\GitHub\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|EmptyObject { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'app') { @@ -142,6 +142,10 @@ public function call(string $call, array $params, array $pathChunks): HookDelive if ($call === 'GET /orgs/{org}/actions/permissions') { return $this->routers->internal🔀Router🔀Get🔀Actions()->getGithubActionsPermissionsOrganization($params); } + } elseif ($pathChunks[4] === 'runner-groups') { + if ($call === 'GET /orgs/{org}/actions/runner-groups') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->listSelfHostedRunnerGroupsForOrg($params); + } } elseif ($pathChunks[4] === 'runners') { if ($call === 'GET /orgs/{org}/actions/runners') { return $this->routers->internal🔀Router🔀Get🔀Actions()->listSelfHostedRunnersForOrg($params); diff --git a/clients/GitHub/src/Internal/Router/Get/Four.php b/clients/GitHub/src/Internal/Router/Get/Four.php index e9fddd1a861..7c40facd4ed 100644 --- a/clients/GitHub/src/Internal/Router/Get/Four.php +++ b/clients/GitHub/src/Internal/Router/Get/Four.php @@ -34,7 +34,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|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|Observable */ + /** @return |Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): WebhookConfig|iterable|Installation|WithoutBody|GistSimple|GitignoreTemplate|MarketplacePurchase|Thread|Ok|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListAppInstallations\Response\ApplicationJson\Ok|InteractionLimitResponse|One|\ApiClients\Client\GitHub\Schema\Operations\Orgs\ListOrgRoles\Response\ApplicationJson\Ok|ProjectColumn|FullRepository|BasicError|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSecretsForAuthenticatedUser\Response\ApplicationJson\Ok|Codespace|GpgKey|Key|Migration|SshSigningKey|Hovercard|StarredRepository|Repository { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Get/Repos.php b/clients/GitHub/src/Internal/Router/Get/Repos.php index 90da80cd645..00feb112c83 100644 --- a/clients/GitHub/src/Internal/Router/Get/Repos.php +++ b/clients/GitHub/src/Internal/Router/Get/Repos.php @@ -210,7 +210,7 @@ public function listForOrg(array $params): iterable return $operator->call($arguments['org'], $arguments['direction'], $arguments['type'], $arguments['sort'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function getOrgRulesets(array $params): iterable { $arguments = []; @@ -1074,7 +1074,7 @@ public function listReleases(array $params): iterable return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function getRepoRulesets(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/Seven.php b/clients/GitHub/src/Internal/Router/Get/Seven.php index 7a1ed5999cd..a736eb888bd 100644 --- a/clients/GitHub/src/Internal/Router/Get/Seven.php +++ b/clients/GitHub/src/Internal/Router/Get/Seven.php @@ -32,7 +32,7 @@ use ApiClients\Client\GitHub\Schema\IssueEvent; use ApiClients\Client\GitHub\Schema\Job; use ApiClients\Client\GitHub\Schema\OidcCustomSub; -use ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok; +use ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok; use ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json; use ApiClients\Client\GitHub\Schema\PackageVersion; use ApiClients\Client\GitHub\Schema\PageBuild; @@ -63,8 +63,8 @@ public function __construct(private Routers $routers) { } - /** @return Observable||Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ - public function call(string $call, array $params, array $pathChunks): iterable|OidcCustomSub|Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|Json|WithoutBody|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|TeamDiscussion|TeamMembership|TeamProject|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\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|TeamDiscussionComment|PackageVersion + /** @return Observable||Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + public function call(string $call, array $params, array $pathChunks): iterable|OidcCustomSub|Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|Json|WithoutBody|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|TeamDiscussion|TeamMembership|TeamProject|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\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|TeamDiscussionComment|PackageVersion { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'enterprises') { @@ -92,6 +92,18 @@ public function call(string $call, array $params, array $pathChunks): iterable|O } } } + } elseif ($pathChunks[4] === 'runner-groups') { + if ($pathChunks[5] === '{runner_group_id}') { + if ($pathChunks[6] === 'repositories') { + if ($call === 'GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->listRepoAccessToSelfHostedRunnerGroupInOrg($params); + } + } elseif ($pathChunks[6] === 'runners') { + if ($call === 'GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->listSelfHostedRunnersInGroupForOrg($params); + } + } + } } elseif ($pathChunks[4] === 'runners') { if ($pathChunks[5] === '{runner_id}') { if ($pathChunks[6] === 'labels') { diff --git a/clients/GitHub/src/Internal/Router/Get/Six.php b/clients/GitHub/src/Internal/Router/Get/Six.php index e60a802fe22..512a3cf0a2d 100644 --- a/clients/GitHub/src/Internal/Router/Get/Six.php +++ b/clients/GitHub/src/Internal/Router/Get/Six.php @@ -61,6 +61,7 @@ use ApiClients\Client\GitHub\Schema\RepositoryRuleset; use ApiClients\Client\GitHub\Schema\RuleSuite; use ApiClients\Client\GitHub\Schema\Runner; +use ApiClients\Client\GitHub\Schema\RunnerGroupsOrg; use ApiClients\Client\GitHub\Schema\SelectedActions; use ApiClients\Client\GitHub\Schema\TeamRepository; use ApiClients\Client\GitHub\Schema\ViewTraffic; @@ -74,8 +75,8 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|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): Ok|iterable|ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|WithoutBody|CodeSecurityConfiguration|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ActionsBillingUsage|PackagesBillingUsage|CombinedBillingUsage|ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|TeamRepository|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails + /** @return |Observable|Schema\RunnerGroupsOrg|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|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): Ok|iterable|ActionsCacheUsageOrgEnterprise|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsOrg|Runner|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|WithoutBody|CodeSecurityConfiguration|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ActionsBillingUsage|PackagesBillingUsage|CombinedBillingUsage|ProjectCollaboratorPermission|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHub\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHub\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|TeamRepository|\ApiClients\Client\GitHub\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'enterprises') { @@ -129,6 +130,12 @@ public function call(string $call, array $params, array $pathChunks): Ok|iterabl return $this->routers->internal🔀Router🔀Get🔀Actions()->getGithubActionsDefaultWorkflowPermissionsOrganization($params); } } + } elseif ($pathChunks[4] === 'runner-groups') { + if ($pathChunks[5] === '{runner_group_id}') { + if ($call === 'GET /orgs/{org}/actions/runner-groups/{runner_group_id}') { + return $this->routers->internal🔀Router🔀Get🔀Actions()->getSelfHostedRunnerGroupForOrg($params); + } + } } elseif ($pathChunks[4] === 'runners') { if ($pathChunks[5] === 'downloads') { if ($call === 'GET /orgs/{org}/actions/runners/downloads') { diff --git a/clients/GitHub/src/Internal/Router/List/CodeScanning.php b/clients/GitHub/src/Internal/Router/List/CodeScanning.php index 4b3ea93238d..b362058944c 100644 --- a/clients/GitHub/src/Internal/Router/List/CodeScanning.php +++ b/clients/GitHub/src/Internal/Router/List/CodeScanning.php @@ -102,7 +102,7 @@ public function listAlertsForOrgListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable|WithoutBody */ + /** @return iterable|WithoutBody */ public function listAlertsForRepoListing(array $params): iterable|WithoutBody { $arguments = []; @@ -142,6 +142,18 @@ public function listAlertsForRepoListing(array $params): iterable|WithoutBody $arguments['pr'] = $params['pr']; unset($params['pr']); + if (array_key_exists('before', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: before'); + } + + $arguments['before'] = $params['before']; + unset($params['before']); + if (array_key_exists('after', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: after'); + } + + $arguments['after'] = $params['after']; + unset($params['after']); if (array_key_exists('state', $params) === false) { throw new InvalidArgumentException('Missing mandatory field: state'); } @@ -181,7 +193,7 @@ public function listAlertsForRepoListing(array $params): iterable|WithoutBody $arguments['page'] = 1; do { $operator = new Internal\Operator\CodeScanning\ListAlertsForRepoListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀CodeScanning🌀Alerts()); - $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['pr'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort'])]; + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['ref'], $arguments['pr'], $arguments['before'], $arguments['after'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort'])]; yield from $items; diff --git a/clients/GitHub/src/Internal/Router/List/Five.php b/clients/GitHub/src/Internal/Router/List/Five.php index 5f89d759c70..54dd93858a9 100644 --- a/clients/GitHub/src/Internal/Router/List/Five.php +++ b/clients/GitHub/src/Internal/Router/List/Five.php @@ -16,7 +16,7 @@ public function __construct(private Routers $routers) { } - /** @return 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|iterable|Observable|Observable */ + /** @return Observable|Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Four.php b/clients/GitHub/src/Internal/Router/List/Four.php index 5deb70e437d..45048521c93 100644 --- a/clients/GitHub/src/Internal/Router/List/Four.php +++ b/clients/GitHub/src/Internal/Router/List/Four.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Repos.php b/clients/GitHub/src/Internal/Router/List/Repos.php index 24408d450ce..9a727c8045a 100644 --- a/clients/GitHub/src/Internal/Router/List/Repos.php +++ b/clients/GitHub/src/Internal/Router/List/Repos.php @@ -169,7 +169,7 @@ public function listForOrgListing(array $params): iterable } while (count($items) > 0); } - /** @return iterable */ + /** @return Observable */ public function getOrgRulesetsListing(array $params): iterable { $arguments = []; @@ -841,7 +841,7 @@ public function listReleasesListing(array $params): iterable } while (count($items) > 0); } - /** @return iterable */ + /** @return Observable */ public function getRepoRulesetsListing(array $params): iterable { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/List/Six.php b/clients/GitHub/src/Internal/Router/List/Six.php index e2afcb66c84..fb1f7b524aa 100644 --- a/clients/GitHub/src/Internal/Router/List/Six.php +++ b/clients/GitHub/src/Internal/Router/List/Six.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|iterable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Patch/Actions.php b/clients/GitHub/src/Internal/Router/Patch/Actions.php index 12efd808d46..f2a8fbe82af 100644 --- a/clients/GitHub/src/Internal/Router/Patch/Actions.php +++ b/clients/GitHub/src/Internal/Router/Patch/Actions.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHub\Internal\Router\Patch; use ApiClients\Client\GitHub\Internal; +use ApiClients\Client\GitHub\Schema\RunnerGroupsOrg; use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface; use ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody; use InvalidArgumentException; @@ -19,6 +20,26 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } + public function updateSelfHostedRunnerGroupForOrg(array $params): RunnerGroupsOrg + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('runner_group_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); + } + + $arguments['runner_group_id'] = $params['runner_group_id']; + unset($params['runner_group_id']); + $operator = new Internal\Operator\Actions\UpdateSelfHostedRunnerGroupForOrg($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups🌀RunnerGroupId()); + + return $operator->call($arguments['org'], $arguments['runner_group_id'], $params); + } + /** @return */ public function updateOrgVariable(array $params): WithoutBody { diff --git a/clients/GitHub/src/Internal/Router/Patch/Six.php b/clients/GitHub/src/Internal/Router/Patch/Six.php index cf867fad50f..979549dc7f6 100644 --- a/clients/GitHub/src/Internal/Router/Patch/Six.php +++ b/clients/GitHub/src/Internal/Router/Patch/Six.php @@ -21,6 +21,7 @@ use ApiClients\Client\GitHub\Schema\Release; use ApiClients\Client\GitHub\Schema\RepositoryAdvisory; use ApiClients\Client\GitHub\Schema\RepositoryInvitation; +use ApiClients\Client\GitHub\Schema\RunnerGroupsOrg; use ApiClients\Client\GitHub\Schema\WebhookConfig; use ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody; use InvalidArgumentException; @@ -31,13 +32,20 @@ public function __construct(private Routers $routers) { } - public function call(string $call, array $params, array $pathChunks): WithoutBody|CodeSecurityConfiguration|WebhookConfig|CheckRun|CheckSuitePreference|EmptyObject|CodeScanningDefaultSetupUpdateResponse|CommitComment|Hook|Import|RepositoryInvitation|Issue|BasicError|Label|Milestone|PullRequest|Release|RepositoryAdvisory + /** @return Schema\RunnerGroupsOrg| */ + public function call(string $call, array $params, array $pathChunks): RunnerGroupsOrg|WithoutBody|CodeSecurityConfiguration|WebhookConfig|CheckRun|CheckSuitePreference|EmptyObject|CodeScanningDefaultSetupUpdateResponse|CommitComment|Hook|Import|RepositoryInvitation|Issue|BasicError|Label|Milestone|PullRequest|Release|RepositoryAdvisory { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'orgs') { if ($pathChunks[2] === '{org}') { if ($pathChunks[3] === 'actions') { - if ($pathChunks[4] === 'variables') { + if ($pathChunks[4] === 'runner-groups') { + if ($pathChunks[5] === '{runner_group_id}') { + if ($call === 'PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}') { + return $this->routers->internal🔀Router🔀Patch🔀Actions()->updateSelfHostedRunnerGroupForOrg($params); + } + } + } elseif ($pathChunks[4] === 'variables') { if ($pathChunks[5] === '{name}') { if ($call === 'PATCH /orgs/{org}/actions/variables/{name}') { return $this->routers->internal🔀Router🔀Patch🔀Actions()->updateOrgVariable($params); diff --git a/clients/GitHub/src/Internal/Router/Post/Actions.php b/clients/GitHub/src/Internal/Router/Post/Actions.php index 1a2f114c965..64f3fe97ee2 100644 --- a/clients/GitHub/src/Internal/Router/Post/Actions.php +++ b/clients/GitHub/src/Internal/Router/Post/Actions.php @@ -10,6 +10,7 @@ use ApiClients\Client\GitHub\Schema\EmptyObject; use ApiClients\Client\GitHub\Schema\Operations\Actions\GenerateRunnerJitconfigForOrg\Response\ApplicationJson\Created; use ApiClients\Client\GitHub\Schema\Operations\Actions\ListLabelsForSelfHostedRunnerForOrg\Response\ApplicationJson\Ok; +use ApiClients\Client\GitHub\Schema\RunnerGroupsOrg; use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface; use ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody; use InvalidArgumentException; @@ -90,6 +91,20 @@ public function createRepoVariable(array $params): EmptyObject return $operator->call($arguments['owner'], $arguments['repo'], $params); } + public function createSelfHostedRunnerGroupForOrg(array $params): RunnerGroupsOrg + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + $operator = new Internal\Operator\Actions\CreateSelfHostedRunnerGroupForOrg($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Actions🌀RunnerGroups()); + + return $operator->call($arguments['org'], $params); + } + /** @return */ public function createOrgVariable(array $params): EmptyObject { diff --git a/clients/GitHub/src/Internal/Router/Post/Five.php b/clients/GitHub/src/Internal/Router/Post/Five.php index 034c64c1648..55d5d2ef5ba 100644 --- a/clients/GitHub/src/Internal/Router/Post/Five.php +++ b/clients/GitHub/src/Internal/Router/Post/Five.php @@ -34,6 +34,7 @@ use ApiClients\Client\GitHub\Schema\Release; use ApiClients\Client\GitHub\Schema\RepositoryAdvisory; use ApiClients\Client\GitHub\Schema\RepositoryRuleset; +use ApiClients\Client\GitHub\Schema\RunnerGroupsOrg; use ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody; use InvalidArgumentException; @@ -43,7 +44,8 @@ public function __construct(private Routers $routers) { } - public function call(string $call, array $params, array $pathChunks): InstallationToken|Authorization|EmptyObject|CodeSecurityConfiguration|WithoutBody|ProjectCard|Json|Created|Autolink|CheckRun|CheckSuite|Codespace|Deployment|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|FullRepository|Hook|Issue|DeployKey|Label|MergedUpstream|Commit|Milestone|Page|Project|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|MinimalRepository|CodespaceExportDetails|CodespaceWithFullRepository + /** @return |Schema\RunnerGroupsOrg */ + public function call(string $call, array $params, array $pathChunks): InstallationToken|Authorization|RunnerGroupsOrg|EmptyObject|CodeSecurityConfiguration|WithoutBody|ProjectCard|Json|Created|Autolink|CheckRun|CheckSuite|Codespace|Deployment|\ApiClients\Client\GitHub\Schema\Operations\Repos\CreateDeployment\Response\ApplicationJson\Accepted\Application\Json|FullRepository|Hook|Issue|DeployKey|Label|MergedUpstream|Commit|Milestone|Page|Project|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|MinimalRepository|CodespaceExportDetails|CodespaceWithFullRepository { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'app') { @@ -69,7 +71,11 @@ public function call(string $call, array $params, array $pathChunks): Installati } elseif ($pathChunks[1] === 'orgs') { if ($pathChunks[2] === '{org}') { if ($pathChunks[3] === 'actions') { - if ($pathChunks[4] === 'variables') { + if ($pathChunks[4] === 'runner-groups') { + if ($call === 'POST /orgs/{org}/actions/runner-groups') { + return $this->routers->internal🔀Router🔀Post🔀Actions()->createSelfHostedRunnerGroupForOrg($params); + } + } elseif ($pathChunks[4] === 'variables') { if ($call === 'POST /orgs/{org}/actions/variables') { return $this->routers->internal🔀Router🔀Post🔀Actions()->createOrgVariable($params); } diff --git a/clients/GitHub/src/Internal/Router/Put/Actions.php b/clients/GitHub/src/Internal/Router/Put/Actions.php index 03967b913aa..aba4162d74a 100644 --- a/clients/GitHub/src/Internal/Router/Put/Actions.php +++ b/clients/GitHub/src/Internal/Router/Put/Actions.php @@ -57,6 +57,46 @@ public function enableSelectedRepositoryGithubActionsOrganization(array $params) return $operator->call($arguments['org'], $arguments['repository_id']); } + public function setRepoAccessToSelfHostedRunnerGroupInOrg(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('runner_group_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); + } + + $arguments['runner_group_id'] = $params['runner_group_id']; + unset($params['runner_group_id']); + $operator = new Internal\Operator\Actions\SetRepoAccessToSelfHostedRunnerGroupInOrg($this->browser, $this->authentication, $this->requestSchemaValidator); + + return $operator->call($arguments['org'], $arguments['runner_group_id'], $params); + } + + public function setSelfHostedRunnersInGroupForOrg(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('runner_group_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); + } + + $arguments['runner_group_id'] = $params['runner_group_id']; + unset($params['runner_group_id']); + $operator = new Internal\Operator\Actions\SetSelfHostedRunnersInGroupForOrg($this->browser, $this->authentication, $this->requestSchemaValidator); + + return $operator->call($arguments['org'], $arguments['runner_group_id'], $params); + } + /** @return */ public function setCustomLabelsForSelfHostedRunnerForOrg(array $params): Ok { @@ -297,6 +337,58 @@ public function setGithubActionsPermissionsRepository(array $params): WithoutBod return $operator->call($arguments['owner'], $arguments['repo'], $params); } + public function addRepoAccessToSelfHostedRunnerGroupInOrg(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('runner_group_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); + } + + $arguments['runner_group_id'] = $params['runner_group_id']; + unset($params['runner_group_id']); + if (array_key_exists('repository_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repository_id'); + } + + $arguments['repository_id'] = $params['repository_id']; + unset($params['repository_id']); + $operator = new Internal\Operator\Actions\AddRepoAccessToSelfHostedRunnerGroupInOrg($this->browser, $this->authentication); + + return $operator->call($arguments['org'], $arguments['runner_group_id'], $arguments['repository_id']); + } + + public function addSelfHostedRunnerToGroupForOrg(array $params): WithoutBody + { + $arguments = []; + if (array_key_exists('org', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: org'); + } + + $arguments['org'] = $params['org']; + unset($params['org']); + if (array_key_exists('runner_group_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_group_id'); + } + + $arguments['runner_group_id'] = $params['runner_group_id']; + unset($params['runner_group_id']); + if (array_key_exists('runner_id', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: runner_id'); + } + + $arguments['runner_id'] = $params['runner_id']; + unset($params['runner_id']); + $operator = new Internal\Operator\Actions\AddSelfHostedRunnerToGroupForOrg($this->browser, $this->authentication); + + return $operator->call($arguments['org'], $arguments['runner_group_id'], $arguments['runner_id']); + } + /** @return */ public function addSelectedRepoToOrgSecret(array $params): WithoutBody { diff --git a/clients/GitHub/src/Internal/Router/Put/Eight.php b/clients/GitHub/src/Internal/Router/Put/Eight.php index 3d2a8265f3e..820b53502d7 100644 --- a/clients/GitHub/src/Internal/Router/Put/Eight.php +++ b/clients/GitHub/src/Internal/Router/Put/Eight.php @@ -18,13 +18,30 @@ public function __construct(private Routers $routers) { } + /** @return \ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody| */ public function call(string $call, array $params, array $pathChunks): WithoutBody|EmptyObject|Ok|DeploymentBranchPolicy|PullRequestReview { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'orgs') { if ($pathChunks[2] === '{org}') { if ($pathChunks[3] === 'actions') { - if ($pathChunks[4] === 'secrets') { + if ($pathChunks[4] === 'runner-groups') { + if ($pathChunks[5] === '{runner_group_id}') { + if ($pathChunks[6] === 'repositories') { + if ($pathChunks[7] === '{repository_id}') { + if ($call === 'PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}') { + return $this->routers->internal🔀Router🔀Put🔀Actions()->addRepoAccessToSelfHostedRunnerGroupInOrg($params); + } + } + } elseif ($pathChunks[6] === 'runners') { + if ($pathChunks[7] === '{runner_id}') { + if ($call === 'PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}') { + return $this->routers->internal🔀Router🔀Put🔀Actions()->addSelfHostedRunnerToGroupForOrg($params); + } + } + } + } + } elseif ($pathChunks[4] === 'secrets') { if ($pathChunks[5] === '{secret_name}') { if ($pathChunks[6] === 'repositories') { if ($pathChunks[7] === '{repository_id}') { diff --git a/clients/GitHub/src/Internal/Router/Put/Seven.php b/clients/GitHub/src/Internal/Router/Put/Seven.php index 5d9c3dba6f1..c42a5dd1b48 100644 --- a/clients/GitHub/src/Internal/Router/Put/Seven.php +++ b/clients/GitHub/src/Internal/Router/Put/Seven.php @@ -21,7 +21,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Schema\BasicError */ + /** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable|Schema\BasicError */ public function call(string $call, array $params, array $pathChunks): EmptyObject|WithoutBody|Ok|\ApiClients\Client\GitHub\Schema\Operations\CodeSecurity\SetConfigurationAsDefault\Response\ApplicationJson\Ok|TeamMembership|ProtectedBranch|iterable|BasicError|PullRequestMergeResult|Json { if ($pathChunks[0] === '') { @@ -44,6 +44,18 @@ public function call(string $call, array $params, array $pathChunks): EmptyObjec } } } + } elseif ($pathChunks[4] === 'runner-groups') { + if ($pathChunks[5] === '{runner_group_id}') { + if ($pathChunks[6] === 'repositories') { + if ($call === 'PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories') { + return $this->routers->internal🔀Router🔀Put🔀Actions()->setRepoAccessToSelfHostedRunnerGroupInOrg($params); + } + } elseif ($pathChunks[6] === 'runners') { + if ($call === 'PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners') { + return $this->routers->internal🔀Router🔀Put🔀Actions()->setSelfHostedRunnersInGroupForOrg($params); + } + } + } } elseif ($pathChunks[4] === 'runners') { if ($pathChunks[5] === '{runner_id}') { if ($pathChunks[6] === 'labels') { diff --git a/clients/GitHub/src/Operation/Actions.php b/clients/GitHub/src/Operation/Actions.php index 7e573d95659..5ad007601b6 100644 --- a/clients/GitHub/src/Operation/Actions.php +++ b/clients/GitHub/src/Operation/Actions.php @@ -27,6 +27,7 @@ use ApiClients\Client\GitHub\Schema\OrganizationActionsSecret; use ApiClients\Client\GitHub\Schema\OrganizationActionsVariable; use ApiClients\Client\GitHub\Schema\Runner; +use ApiClients\Client\GitHub\Schema\RunnerGroupsOrg; use ApiClients\Client\GitHub\Schema\SelectedActions; use ApiClients\Client\GitHub\Schema\Workflow; use ApiClients\Client\GitHub\Schema\WorkflowRun; @@ -112,6 +113,71 @@ public function setGithubActionsDefaultWorkflowPermissionsOrganization(string $o return $this->operators->actions👷SetGithubActionsDefaultWorkflowPermissionsOrganization()->call($org, $params); } + public function listSelfHostedRunnerGroupsForOrg(string $org, string $visibleToRepository, int $perPage, int $page): \ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok + { + return $this->operators->actions👷ListSelfHostedRunnerGroupsForOrg()->call($org, $visibleToRepository, $perPage, $page); + } + + public function createSelfHostedRunnerGroupForOrg(string $org, array $params): RunnerGroupsOrg + { + return $this->operators->actions👷CreateSelfHostedRunnerGroupForOrg()->call($org, $params); + } + + public function getSelfHostedRunnerGroupForOrg(string $org, int $runnerGroupId): RunnerGroupsOrg + { + return $this->operators->actions👷GetSelfHostedRunnerGroupForOrg()->call($org, $runnerGroupId); + } + + public function deleteSelfHostedRunnerGroupFromOrg(string $org, int $runnerGroupId): WithoutBody + { + return $this->operators->actions👷DeleteSelfHostedRunnerGroupFromOrg()->call($org, $runnerGroupId); + } + + public function updateSelfHostedRunnerGroupForOrg(string $org, int $runnerGroupId, array $params): RunnerGroupsOrg + { + return $this->operators->actions👷UpdateSelfHostedRunnerGroupForOrg()->call($org, $runnerGroupId, $params); + } + + public function listRepoAccessToSelfHostedRunnerGroupInOrg(string $org, int $runnerGroupId, int $page, int $perPage): \ApiClients\Client\GitHub\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok + { + return $this->operators->actions👷ListRepoAccessToSelfHostedRunnerGroupInOrg()->call($org, $runnerGroupId, $page, $perPage); + } + + public function setRepoAccessToSelfHostedRunnerGroupInOrg(string $org, int $runnerGroupId, array $params): WithoutBody + { + return $this->operators->actions👷SetRepoAccessToSelfHostedRunnerGroupInOrg()->call($org, $runnerGroupId, $params); + } + + public function addRepoAccessToSelfHostedRunnerGroupInOrg(string $org, int $runnerGroupId, int $repositoryId): WithoutBody + { + return $this->operators->actions👷AddRepoAccessToSelfHostedRunnerGroupInOrg()->call($org, $runnerGroupId, $repositoryId); + } + + public function removeRepoAccessToSelfHostedRunnerGroupInOrg(string $org, int $runnerGroupId, int $repositoryId): WithoutBody + { + return $this->operators->actions👷RemoveRepoAccessToSelfHostedRunnerGroupInOrg()->call($org, $runnerGroupId, $repositoryId); + } + + public function listSelfHostedRunnersInGroupForOrg(string $org, int $runnerGroupId, int $perPage, int $page): \ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok + { + return $this->operators->actions👷ListSelfHostedRunnersInGroupForOrg()->call($org, $runnerGroupId, $perPage, $page); + } + + public function setSelfHostedRunnersInGroupForOrg(string $org, int $runnerGroupId, array $params): WithoutBody + { + return $this->operators->actions👷SetSelfHostedRunnersInGroupForOrg()->call($org, $runnerGroupId, $params); + } + + public function addSelfHostedRunnerToGroupForOrg(string $org, int $runnerGroupId, int $runnerId): WithoutBody + { + return $this->operators->actions👷AddSelfHostedRunnerToGroupForOrg()->call($org, $runnerGroupId, $runnerId); + } + + public function removeSelfHostedRunnerFromGroupForOrg(string $org, int $runnerGroupId, int $runnerId): WithoutBody + { + return $this->operators->actions👷RemoveSelfHostedRunnerFromGroupForOrg()->call($org, $runnerGroupId, $runnerId); + } + /** @return */ public function listSelfHostedRunnersForOrg(string $name, string $org, int $perPage, int $page): \ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok { diff --git a/clients/GitHub/src/Operation/CodeScanning.php b/clients/GitHub/src/Operation/CodeScanning.php index b3f656dbad9..9c3e0b0ab40 100644 --- a/clients/GitHub/src/Operation/CodeScanning.php +++ b/clients/GitHub/src/Operation/CodeScanning.php @@ -37,16 +37,16 @@ public function listAlertsForOrgListing(string $org, string $toolName, string|nu return $this->operators->codeScanning👷ListAlertsForOrgListing()->call($org, $toolName, $toolGuid, $before, $after, $state, $severity, $page, $perPage, $direction, $sort); } - /** @return Observable|WithoutBody */ - public function listAlertsForRepo(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page, int $perPage, string $direction, string $sort): iterable|WithoutBody + /** @return iterable|WithoutBody */ + public function listAlertsForRepo(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $before, string $after, string $state, string $severity, int $page, int $perPage, string $direction, string $sort): iterable|WithoutBody { - return $this->operators->codeScanning👷ListAlertsForRepo()->call($owner, $repo, $toolName, $toolGuid, $ref, $pr, $state, $severity, $page, $perPage, $direction, $sort); + return $this->operators->codeScanning👷ListAlertsForRepo()->call($owner, $repo, $toolName, $toolGuid, $ref, $pr, $before, $after, $state, $severity, $page, $perPage, $direction, $sort); } - /** @return Observable|WithoutBody */ - public function listAlertsForRepoListing(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $state, string $severity, int $page, int $perPage, string $direction, string $sort): iterable|WithoutBody + /** @return iterable|WithoutBody */ + public function listAlertsForRepoListing(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $before, string $after, string $state, string $severity, int $page, int $perPage, string $direction, string $sort): iterable|WithoutBody { - return $this->operators->codeScanning👷ListAlertsForRepoListing()->call($owner, $repo, $toolName, $toolGuid, $ref, $pr, $state, $severity, $page, $perPage, $direction, $sort); + return $this->operators->codeScanning👷ListAlertsForRepoListing()->call($owner, $repo, $toolName, $toolGuid, $ref, $pr, $before, $after, $state, $severity, $page, $perPage, $direction, $sort); } /** @return */ diff --git a/clients/GitHub/src/Operation/Repos.php b/clients/GitHub/src/Operation/Repos.php index 07d8a5aac4d..a0e1e3d4b4d 100644 --- a/clients/GitHub/src/Operation/Repos.php +++ b/clients/GitHub/src/Operation/Repos.php @@ -89,13 +89,13 @@ public function createInOrg(string $org, array $params): FullRepository return $this->operators->repos👷CreateInOrg()->call($org, $params); } - /** @return iterable */ + /** @return Observable */ public function getOrgRulesets(string $org, string $targets, int $perPage, int $page): iterable { return $this->operators->repos👷GetOrgRulesets()->call($org, $targets, $perPage, $page); } - /** @return iterable */ + /** @return Observable */ public function getOrgRulesetsListing(string $org, string $targets, int $perPage, int $page): iterable { return $this->operators->repos👷GetOrgRulesetsListing()->call($org, $targets, $perPage, $page); @@ -1163,13 +1163,13 @@ public function getBranchRulesListing(string $owner, string $repo, string $branc return $this->operators->repos👷GetBranchRulesListing()->call($owner, $repo, $branch, $perPage, $page); } - /** @return iterable */ + /** @return Observable */ public function getRepoRulesets(string $owner, string $repo, string $targets, int $perPage, int $page, bool $includesParents): iterable { return $this->operators->repos👷GetRepoRulesets()->call($owner, $repo, $targets, $perPage, $page, $includesParents); } - /** @return iterable */ + /** @return Observable */ public function getRepoRulesetsListing(string $owner, string $repo, string $targets, int $perPage, int $page, bool $includesParents): iterable { return $this->operators->repos👷GetRepoRulesetsListing()->call($owner, $repo, $targets, $perPage, $page, $includesParents); diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index 2661ae7ad58..944d42e1a75 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -539,6 +539,58 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve(''); } + if ($call === 'GET /orgs/{org}/actions/runner-groups') { + return $this->typeResolver->resolve('Schema\\Operations\\Actions\\ListSelfHostedRunnerGroupsForOrg\\Response\\ApplicationJson\\Ok'); + } + + if ($call === 'POST /orgs/{org}/actions/runner-groups') { + return $this->typeResolver->resolve('Schema\\RunnerGroupsOrg'); + } + + if ($call === 'GET /orgs/{org}/actions/runner-groups/{runner_group_id}') { + return $this->typeResolver->resolve('Schema\\RunnerGroupsOrg'); + } + + if ($call === 'DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}') { + return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + } + + if ($call === 'PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}') { + return $this->typeResolver->resolve('Schema\\RunnerGroupsOrg'); + } + + if ($call === 'GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories') { + return $this->typeResolver->resolve('Schema\\Operations\\Actions\\ListRepoAccessToSelfHostedRunnerGroupInOrg\\Response\\ApplicationJson\\Ok'); + } + + if ($call === 'PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories') { + return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + } + + if ($call === 'PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}') { + return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + } + + if ($call === 'DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}') { + return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + } + + if ($call === 'GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners') { + return $this->typeResolver->resolve('Schema\\Operations\\Actions\\ListSelfHostedRunnersInGroupForOrg\\Response\\ApplicationJson\\Ok'); + } + + if ($call === 'PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners') { + return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + } + + if ($call === 'PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}') { + return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + } + + if ($call === 'DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}') { + return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + } + if ($call === 'GET /orgs/{org}/actions/runners') { return $this->typeResolver->resolve(''); } @@ -1288,11 +1340,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/rulesets') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /orgs/{org}/rulesets') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'POST /orgs/{org}/rulesets') { @@ -2204,11 +2256,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/alerts') { - return $this->typeResolver->resolve('Observable|WithoutBody'); + return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); } if ($call === 'LIST /repos/{owner}/{repo}/code-scanning/alerts') { - return $this->typeResolver->resolve('Observable|WithoutBody'); + return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}') { @@ -3440,11 +3492,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/rulesets') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /repos/{owner}/{repo}/rulesets') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'POST /repos/{owner}/{repo}/rulesets') { diff --git a/clients/GitHub/src/Schema/Actions/CreateSelfHostedRunnerGroupForOrg/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Actions/CreateSelfHostedRunnerGroupForOrg/Request/ApplicationJson.php new file mode 100644 index 00000000000..a7696b8845b --- /dev/null +++ b/clients/GitHub/src/Schema/Actions/CreateSelfHostedRunnerGroupForOrg/Request/ApplicationJson.php @@ -0,0 +1,107 @@ + 'application/json'], json_encode(json_decode(Schema\RunnerGroupsOrg::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/orgs/generated/actions/runner-groups', Argument::type('array'), json_encode(json_decode(Schema\Actions\CreateSelfHostedRunnerGroupForOrg\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\CreateSelfHostedRunnerGroupForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + + return $data; + })(json_decode(Schema\Actions\CreateSelfHostedRunnerGroupForOrg\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_201_requestContentType_application_json_responseContentType_application_json_zero(): void + { + $response = new Response(201, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\RunnerGroupsOrg::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/orgs/generated/actions/runner-groups', Argument::type('array'), json_encode(json_decode(Schema\Actions\CreateSelfHostedRunnerGroupForOrg\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->createSelfHostedRunnerGroupForOrg('generated', json_decode(Schema\Actions\CreateSelfHostedRunnerGroupForOrg\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } +} diff --git a/clients/GitHub/tests/Internal/Operation/Actions/GetSelfHostedRunnerGroupForOrgTest.php b/clients/GitHub/tests/Internal/Operation/Actions/GetSelfHostedRunnerGroupForOrgTest.php new file mode 100644 index 00000000000..3ebdb368a35 --- /dev/null +++ b/clients/GitHub/tests/Internal/Operation/Actions/GetSelfHostedRunnerGroupForOrgTest.php @@ -0,0 +1,55 @@ + 'application/json'], json_encode(json_decode(Schema\RunnerGroupsOrg::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/actions/runner-groups/15', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\GetSelfHostedRunnerGroupForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['runner_group_id'] = 15; + + 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\RunnerGroupsOrg::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/actions/runner-groups/15', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->getSelfHostedRunnerGroupForOrg('generated', 15); + } +} diff --git a/clients/GitHub/tests/Internal/Operation/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrgTest.php b/clients/GitHub/tests/Internal/Operation/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrgTest.php new file mode 100644 index 00000000000..eecc25d909d --- /dev/null +++ b/clients/GitHub/tests/Internal/Operation/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrgTest.php @@ -0,0 +1,57 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/actions/runner-groups/15/repositories?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['runner_group_id'] = 15; + $data['page'] = 1; + $data['per_page'] = 8; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/actions/runner-groups/15/repositories?page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->listRepoAccessToSelfHostedRunnerGroupInOrg('generated', 15, 1, 8); + } +} diff --git a/clients/GitHub/tests/Internal/Operation/Actions/ListSelfHostedRunnerGroupsForOrgTest.php b/clients/GitHub/tests/Internal/Operation/Actions/ListSelfHostedRunnerGroupsForOrgTest.php new file mode 100644 index 00000000000..0e357885c74 --- /dev/null +++ b/clients/GitHub/tests/Internal/Operation/Actions/ListSelfHostedRunnerGroupsForOrgTest.php @@ -0,0 +1,57 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/actions/runner-groups?visible_to_repository=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\Actions\ListSelfHostedRunnerGroupsForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['visible_to_repository'] = 'generated'; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/actions/runner-groups?visible_to_repository=generated&per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->listSelfHostedRunnerGroupsForOrg('generated', 'generated', 8, 1); + } +} diff --git a/clients/GitHub/tests/Internal/Operation/Actions/ListSelfHostedRunnersInGroupForOrgTest.php b/clients/GitHub/tests/Internal/Operation/Actions/ListSelfHostedRunnersInGroupForOrgTest.php new file mode 100644 index 00000000000..dfdc336c085 --- /dev/null +++ b/clients/GitHub/tests/Internal/Operation/Actions/ListSelfHostedRunnersInGroupForOrgTest.php @@ -0,0 +1,57 @@ + 'application/json'], json_encode(json_decode(Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/actions/runner-groups/15/runners?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\ListSelfHostedRunnersInGroupForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['runner_group_id'] = 15; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_200_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/orgs/generated/actions/runner-groups/15/runners?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->listSelfHostedRunnersInGroupForOrg('generated', 15, 8, 1); + } +} diff --git a/clients/GitHub/tests/Internal/Operation/Actions/UpdateSelfHostedRunnerGroupForOrgTest.php b/clients/GitHub/tests/Internal/Operation/Actions/UpdateSelfHostedRunnerGroupForOrgTest.php new file mode 100644 index 00000000000..0520c8a0375 --- /dev/null +++ b/clients/GitHub/tests/Internal/Operation/Actions/UpdateSelfHostedRunnerGroupForOrgTest.php @@ -0,0 +1,55 @@ + 'application/json'], json_encode(json_decode(Schema\RunnerGroupsOrg::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/orgs/generated/actions/runner-groups/15', Argument::type('array'), json_encode(json_decode(Schema\Actions\UpdateSelfHostedRunnerGroupForOrg\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Actions\UpdateSelfHostedRunnerGroupForOrg::OPERATION_MATCH, (static function (array $data): array { + $data['org'] = 'generated'; + $data['runner_group_id'] = 15; + + return $data; + })(json_decode(Schema\Actions\UpdateSelfHostedRunnerGroupForOrg\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\RunnerGroupsOrg::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/orgs/generated/actions/runner-groups/15', Argument::type('array'), json_encode(json_decode(Schema\Actions\UpdateSelfHostedRunnerGroupForOrg\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->actions()->updateSelfHostedRunnerGroupForOrg('generated', 15, json_decode(Schema\Actions\UpdateSelfHostedRunnerGroupForOrg\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } +} diff --git a/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoListingTest.php b/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoListingTest.php index 87201863178..6dbd43679e8 100644 --- a/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoListingTest.php +++ b/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoListingTest.php @@ -31,7 +31,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -40,6 +40,8 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $data['tool_guid'] = null; $data['ref'] = 'generated'; $data['pr'] = 2; + $data['before'] = 'generated'; + $data['after'] = 'generated'; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -63,9 +65,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); foreach ($result as $item) { } } @@ -80,7 +82,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -89,6 +91,8 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['tool_guid'] = null; $data['ref'] = 'generated'; $data['pr'] = 2; + $data['before'] = 'generated'; + $data['after'] = 'generated'; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -112,9 +116,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); foreach ($result as $item) { } } @@ -129,7 +133,7 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -138,6 +142,8 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $data['tool_guid'] = null; $data['ref'] = 'generated'; $data['pr'] = 2; + $data['before'] = 'generated'; + $data['after'] = 'generated'; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -161,9 +167,9 @@ public function operations_httpCode_503_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); foreach ($result as $item) { } } @@ -177,7 +183,7 @@ public function call_httpCode_304_empty(): void $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepoListing::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -186,6 +192,8 @@ public function call_httpCode_304_empty(): void $data['tool_guid'] = null; $data['ref'] = 'generated'; $data['pr'] = 2; + $data['before'] = 'generated'; + $data['after'] = 'generated'; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -208,9 +216,9 @@ public function operations_httpCode_304_empty(): void $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepoListing('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); foreach ($result as $item) { diff --git a/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoTest.php b/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoTest.php index bb04b7c832f..ba837d17346 100644 --- a/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoTest.php +++ b/clients/GitHub/tests/Internal/Operation/CodeScanning/ListAlertsForRepoTest.php @@ -31,7 +31,7 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -40,6 +40,8 @@ public function call_httpCode_403_responseContentType_application_json_zero(): v $data['tool_guid'] = null; $data['ref'] = 'generated'; $data['pr'] = 2; + $data['before'] = 'generated'; + $data['after'] = 'generated'; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -61,9 +63,9 @@ public function operations_httpCode_403_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -76,7 +78,7 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -85,6 +87,8 @@ public function call_httpCode_404_responseContentType_application_json_zero(): v $data['tool_guid'] = null; $data['ref'] = 'generated'; $data['pr'] = 2; + $data['before'] = 'generated'; + $data['after'] = 'generated'; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -106,9 +110,9 @@ public function operations_httpCode_404_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -121,7 +125,7 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -130,6 +134,8 @@ public function call_httpCode_503_responseContentType_application_json_zero(): v $data['tool_guid'] = null; $data['ref'] = 'generated'; $data['pr'] = 2; + $data['before'] = 'generated'; + $data['after'] = 'generated'; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -151,9 +157,9 @@ public function operations_httpCode_503_responseContentType_application_json_zer $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); } /** @test */ @@ -165,7 +171,7 @@ public function call_httpCode_304_empty(): void $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); $result = $client->call(Internal\Operation\CodeScanning\ListAlertsForRepo::OPERATION_MATCH, (static function (array $data): array { $data['owner'] = 'generated'; @@ -174,6 +180,8 @@ public function call_httpCode_304_empty(): void $data['tool_guid'] = null; $data['ref'] = 'generated'; $data['pr'] = 2; + $data['before'] = 'generated'; + $data['after'] = 'generated'; $data['state'] = 'generated'; $data['severity'] = 'generated'; $data['page'] = 1; @@ -194,9 +202,9 @@ public function operations_httpCode_304_empty(): void $browser = $this->prophesize(Browser::class); $browser->withBase(Argument::any())->willReturn($browser->reveal()); $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $browser->request('GET', '/repos/generated/generated/code-scanning/alerts?tool_name=generated&tool_guid=&ref=generated&pr=2&before=generated&after=generated&state=generated&severity=generated&page=1&per_page=8&direction=generated&sort=generated', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 1, 8, 'generated', 'generated'); + $result = $client->operations()->codeScanning()->listAlertsForRepo('generated', 'generated', 'generated', null, 'generated', 2, 'generated', 'generated', 'generated', 'generated', 1, 8, 'generated', 'generated'); self::assertArrayHasKey('code', $result); self::assertSame(304, $result['code']); } diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index e8791199230..39f3d12538d 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -141,6 +141,19 @@ function authHeader(): string assertType('', $client->call('PUT /orgs/{org}/actions/permissions/selected-actions')); assertType('', $client->call('GET /orgs/{org}/actions/permissions/workflow')); assertType('', $client->call('PUT /orgs/{org}/actions/permissions/workflow')); +assertType('Schema\\Operations\\Actions\\ListSelfHostedRunnerGroupsForOrg\\Response\\ApplicationJson\\Ok', $client->call('GET /orgs/{org}/actions/runner-groups')); +assertType('Schema\\RunnerGroupsOrg', $client->call('POST /orgs/{org}/actions/runner-groups')); +assertType('Schema\\RunnerGroupsOrg', $client->call('GET /orgs/{org}/actions/runner-groups/{runner_group_id}')); +assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}')); +assertType('Schema\\RunnerGroupsOrg', $client->call('PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}')); +assertType('Schema\\Operations\\Actions\\ListRepoAccessToSelfHostedRunnerGroupInOrg\\Response\\ApplicationJson\\Ok', $client->call('GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories')); +assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories')); +assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}')); +assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}')); +assertType('Schema\\Operations\\Actions\\ListSelfHostedRunnersInGroupForOrg\\Response\\ApplicationJson\\Ok', $client->call('GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners')); +assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners')); +assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}')); +assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}')); assertType('', $client->call('GET /orgs/{org}/actions/runners')); assertType('Observable', $client->call('GET /orgs/{org}/actions/runners/downloads')); assertType('', $client->call('POST /orgs/{org}/actions/runners/generate-jitconfig')); @@ -328,8 +341,8 @@ function authHeader(): string assertType('Observable', $client->call('GET /orgs/{org}/repos')); assertType('Observable', $client->call('LIST /orgs/{org}/repos')); assertType('', $client->call('POST /orgs/{org}/repos')); -assertType('iterable', $client->call('GET /orgs/{org}/rulesets')); -assertType('iterable', $client->call('LIST /orgs/{org}/rulesets')); +assertType('Observable', $client->call('GET /orgs/{org}/rulesets')); +assertType('Observable', $client->call('LIST /orgs/{org}/rulesets')); assertType('', $client->call('POST /orgs/{org}/rulesets')); assertType('Observable', $client->call('GET /orgs/{org}/rulesets/rule-suites')); assertType('Observable', $client->call('LIST /orgs/{org}/rulesets/rule-suites')); @@ -557,8 +570,8 @@ function authHeader(): string assertType('', $client->call('GET /repos/{owner}/{repo}/check-suites/{check_suite_id}')); assertType('', $client->call('GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs')); assertType('', $client->call('POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest')); -assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts')); -assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts')); +assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts')); +assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts')); assertType('', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances')); @@ -866,8 +879,8 @@ function authHeader(): string assertType('', $client->call('DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/rules/branches/{branch}')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/rules/branches/{branch}')); -assertType('iterable', $client->call('GET /repos/{owner}/{repo}/rulesets')); -assertType('iterable', $client->call('LIST /repos/{owner}/{repo}/rulesets')); +assertType('Observable', $client->call('GET /repos/{owner}/{repo}/rulesets')); +assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/rulesets')); assertType('', $client->call('POST /repos/{owner}/{repo}/rulesets')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/rulesets/rule-suites')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/rulesets/rule-suites')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 8d75bc65c29..739ed62a116 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -4688,6 +4688,546 @@ paths: enabledForGitHubApps: true category: actions subcategory: permissions + "/orgs/{org}/actions/runner-groups": + get: + summary: List self-hosted runner groups for an organization + description: |- + Lists all self-hosted runner groups configured in an organization and inherited from an enterprise. + + OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + operationId: actions/list-self-hosted-runner-groups-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/actions/self-hosted-runner-groups#list-self-hosted-runner-groups-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/per-page" + - "$ref": "#/components/parameters/page" + - "$ref": "#/components/parameters/visible-to-repository" + responses: + '200': + description: Response + content: + application/json: + schema: + type: object + required: + - total_count + - runner_groups + properties: + total_count: + type: number + runner_groups: + type: array + items: + "$ref": "#/components/schemas/runner-groups-org" + examples: + default: + "$ref": "#/components/examples/runner-groups-org" + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: self-hosted-runner-groups + post: + summary: Create a self-hosted runner group for an organization + description: |- + Creates a new self-hosted runner group for an organization. + + OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + operationId: actions/create-self-hosted-runner-group-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/actions/self-hosted-runner-groups#create-a-self-hosted-runner-group-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + name: + description: Name of the runner group. + type: string + visibility: + description: Visibility of a runner group. You can select all repositories, + select individual repositories, or limit access to private repositories. + type: string + enum: + - selected + - all + - private + default: all + selected_repository_ids: + description: List of repository IDs that can access the runner group. + type: array + items: + type: integer + description: Unique identifier of the repository. + runners: + description: List of runner IDs to add to the runner group. + type: array + items: + type: integer + description: Unique identifier of the runner. + allows_public_repositories: + description: Whether the runner group can be used by `public` repositories. + type: boolean + default: false + restricted_to_workflows: + description: If `true`, the runner group will be restricted to running + only the workflows specified in the `selected_workflows` array. + type: boolean + default: false + selected_workflows: + description: List of workflows the runner group should be allowed + to run. This setting will be ignored unless `restricted_to_workflows` + is set to `true`. + type: array + items: + type: string + description: Name of workflow the runner group should be allowed + to run. Note that a ref, tag, or long SHA is required. + examples: + - octo-org/octo-repo/.github/workflows/deploy.yaml@main + required: + - name + examples: + default: + value: + name: Expensive hardware runners + visibility: selected + selected_repository_ids: + - 32 + - 91 + runners: + - 9 + - 2 + responses: + '201': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/runner-groups-org" + examples: + default: + "$ref": "#/components/examples/runner-group" + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: self-hosted-runner-groups + "/orgs/{org}/actions/runner-groups/{runner_group_id}": + get: + summary: Get a self-hosted runner group for an organization + description: |- + Gets a specific self-hosted runner group for an organization. + + OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + operationId: actions/get-self-hosted-runner-group-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/actions/self-hosted-runner-groups#get-a-self-hosted-runner-group-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/runner-group-id" + responses: + '200': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/runner-groups-org" + examples: + default: + "$ref": "#/components/examples/runner-group-item" + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: self-hosted-runner-groups + patch: + summary: Update a self-hosted runner group for an organization + description: |- + Updates the `name` and `visibility` of a self-hosted runner group in an organization. + + OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + operationId: actions/update-self-hosted-runner-group-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/actions/self-hosted-runner-groups#update-a-self-hosted-runner-group-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/runner-group-id" + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + name: + description: Name of the runner group. + type: string + visibility: + description: Visibility of a runner group. You can select all repositories, + select individual repositories, or all private repositories. + type: string + enum: + - selected + - all + - private + allows_public_repositories: + description: Whether the runner group can be used by `public` repositories. + type: boolean + default: false + restricted_to_workflows: + description: If `true`, the runner group will be restricted to running + only the workflows specified in the `selected_workflows` array. + type: boolean + default: false + selected_workflows: + description: List of workflows the runner group should be allowed + to run. This setting will be ignored unless `restricted_to_workflows` + is set to `true`. + type: array + items: + type: string + description: Name of workflow the runner group should be allowed + to run. Note that a ref, tag, or long SHA is required. + examples: + - octo-org/octo-repo/.github/workflows/deploy.yaml@main + required: + - name + examples: + default: + value: + name: Expensive hardware runners + visibility: selected + responses: + '200': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/runner-groups-org" + examples: + default: + "$ref": "#/components/examples/runner-group" + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: self-hosted-runner-groups + delete: + summary: Delete a self-hosted runner group from an organization + description: |- + Deletes a self-hosted runner group for an organization. + + OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + operationId: actions/delete-self-hosted-runner-group-from-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/actions/self-hosted-runner-groups#delete-a-self-hosted-runner-group-from-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/runner-group-id" + responses: + '204': + description: Response + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: self-hosted-runner-groups + "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": + get: + summary: List repository access to a self-hosted runner group in an organization + description: |- + Lists the repositories with access to a self-hosted runner group configured in an organization. + + OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + operationId: actions/list-repo-access-to-self-hosted-runner-group-in-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/actions/self-hosted-runner-groups#list-repository-access-to-a-self-hosted-runner-group-in-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/runner-group-id" + - "$ref": "#/components/parameters/page" + - "$ref": "#/components/parameters/per-page" + responses: + '200': + description: Response + content: + application/json: + schema: + type: object + required: + - total_count + - repositories + properties: + total_count: + type: number + repositories: + type: array + items: + "$ref": "#/components/schemas/minimal-repository" + examples: + default: + "$ref": "#/components/examples/minimal-repository-paginated" + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: self-hosted-runner-groups + put: + summary: Set repository access for a self-hosted runner group in an organization + description: |- + Replaces the list of repositories that have access to a self-hosted runner group configured in an organization. + + OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + operationId: actions/set-repo-access-to-self-hosted-runner-group-in-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/actions/self-hosted-runner-groups#set-repository-access-for-a-self-hosted-runner-group-in-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/runner-group-id" + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + selected_repository_ids: + description: List of repository IDs that can access the runner group. + type: array + items: + type: integer + description: Unique identifier of the repository. + required: + - selected_repository_ids + examples: + default: + value: + selected_repository_ids: + - 32 + - 91 + responses: + '204': + description: Response + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: self-hosted-runner-groups + "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}": + put: + summary: Add repository access to a self-hosted runner group in an organization + description: |- + Adds a repository to the list of repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." + + OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + operationId: actions/add-repo-access-to-self-hosted-runner-group-in-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/actions/self-hosted-runner-groups#add-repository-access-to-a-self-hosted-runner-group-in-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/runner-group-id" + - "$ref": "#/components/parameters/repository-id" + responses: + '204': + description: Response + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: self-hosted-runner-groups + delete: + summary: Remove repository access to a self-hosted runner group in an organization + description: |- + Removes a repository from the list of selected repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." + + OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + operationId: actions/remove-repo-access-to-self-hosted-runner-group-in-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/actions/self-hosted-runner-groups#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/runner-group-id" + - "$ref": "#/components/parameters/repository-id" + responses: + '204': + description: Response + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: self-hosted-runner-groups + "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners": + get: + summary: List self-hosted runners in a group for an organization + description: |- + Lists self-hosted runners that are in a specific organization group. + + OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + operationId: actions/list-self-hosted-runners-in-group-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/actions/self-hosted-runner-groups#list-self-hosted-runners-in-a-group-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/runner-group-id" + - "$ref": "#/components/parameters/per-page" + - "$ref": "#/components/parameters/page" + responses: + '200': + description: Response + content: + application/json: + schema: + type: object + required: + - total_count + - runners + properties: + total_count: + type: number + runners: + type: array + items: + "$ref": "#/components/schemas/runner" + examples: + default: + "$ref": "#/components/examples/runner-paginated" + headers: + Link: + "$ref": "#/components/headers/link" + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: self-hosted-runner-groups + put: + summary: Set self-hosted runners in a group for an organization + description: |- + Replaces the list of self-hosted runners that are part of an organization runner group. + + OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + operationId: actions/set-self-hosted-runners-in-group-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/actions/self-hosted-runner-groups#set-self-hosted-runners-in-a-group-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/runner-group-id" + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + runners: + description: List of runner IDs to add to the runner group. + type: array + items: + type: integer + description: Unique identifier of the runner. + required: + - runners + examples: + default: + value: + runners: + - 9 + - 2 + responses: + '204': + description: Response + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: self-hosted-runner-groups + "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": + put: + summary: Add a self-hosted runner to a group for an organization + description: |- + Adds a self-hosted runner to a runner group configured in an organization. + + OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + operationId: actions/add-self-hosted-runner-to-group-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/actions/self-hosted-runner-groups#add-a-self-hosted-runner-to-a-group-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/runner-group-id" + - "$ref": "#/components/parameters/runner-id" + responses: + '204': + description: Response + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: self-hosted-runner-groups + delete: + summary: Remove a self-hosted runner from a group for an organization + description: |- + Removes a self-hosted runner from a group configured in an organization. The runner is then returned to the default group. + + OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + operationId: actions/remove-self-hosted-runner-from-group-for-org + tags: + - actions + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/actions/self-hosted-runner-groups#remove-a-self-hosted-runner-from-a-group-for-an-organization + parameters: + - "$ref": "#/components/parameters/org" + - "$ref": "#/components/parameters/runner-group-id" + - "$ref": "#/components/parameters/runner-id" + responses: + '204': + description: Response + x-github: + enabledForGitHubApps: true + githubCloudOnly: false + category: actions + subcategory: self-hosted-runner-groups "/orgs/{org}/actions/runners": get: summary: List self-hosted runners for an organization @@ -16222,6 +16762,16 @@ paths: status: type: string description: Can be `enabled` or `disabled`. + secret_scanning_ai_detection: + type: object + description: Use the `status` property to enable or disable + secret scanning AI detection for this repository. For more + information, see "[Responsible detection of generic secrets + with AI](https://docs.github.com/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)." + properties: + status: + type: string + description: Can be `enabled` or `disabled`. secret_scanning_non_provider_patterns: type: object description: Use the `status` property to enable or disable @@ -22828,6 +23378,8 @@ paths: - "$ref": "#/components/parameters/git-ref" - "$ref": "#/components/parameters/pr-alias" - "$ref": "#/components/parameters/direction" + - "$ref": "#/components/parameters/pagination-before" + - "$ref": "#/components/parameters/pagination-after" - name: sort description: The property by which to sort the results. in: query @@ -70128,6 +70680,14 @@ components: enum: - enabled - disabled + secret_scanning_ai_detection: + type: object + properties: + status: + type: string + enum: + - enabled + - disabled minimal-repository: title: Minimal Repository description: Minimal Repository @@ -71092,6 +71652,60 @@ components: "$ref": "#/components/schemas/actions-default-workflow-permissions" can_approve_pull_request_reviews: "$ref": "#/components/schemas/actions-can-approve-pull-request-reviews" + runner-groups-org: + type: object + properties: + id: + type: number + name: + type: string + visibility: + type: string + default: + type: boolean + selected_repositories_url: + description: Link to the selected repositories resource for this runner + group. Not present unless visibility was set to `selected` + type: string + runners_url: + type: string + hosted_runners_url: + type: string + inherited: + type: boolean + inherited_allows_public_repositories: + type: boolean + allows_public_repositories: + type: boolean + workflow_restrictions_read_only: + description: If `true`, the `restricted_to_workflows` and `selected_workflows` + fields cannot be modified. + type: boolean + default: false + restricted_to_workflows: + description: If `true`, the runner group will be restricted to running only + the workflows specified in the `selected_workflows` array. + type: boolean + default: false + selected_workflows: + description: List of workflows the runner group should be allowed to run. + This setting will be ignored unless `restricted_to_workflows` is set to + `true`. + type: array + items: + type: string + description: Name of workflow the runner group should be allowed to run. + Note that a ref, tag, or long SHA is required. + examples: + - octo-org/octo-repo/.github/workflows/deploy.yaml@main + required: + - id + - name + - visibility + - default + - runners_url + - inherited + - allows_public_repositories runner-label: title: Self hosted runner label description: A label for a self hosted runner @@ -74830,7 +75444,9 @@ components: type: string description: The URL of the ruleset html: - type: object + type: + - object + - 'null' properties: href: type: string @@ -201641,13 +202257,329 @@ components: admin: false push: false pull: true - allow_rebase_merge: true - template_repository: + allow_rebase_merge: true + template_repository: + temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O + allow_squash_merge: true + allow_auto_merge: false + delete_branch_on_merge: true + allow_merge_commit: true + subscribers_count: 42 + network_count: 0 + license: + key: mit + name: MIT License + url: https://api.github.com/licenses/mit + spdx_id: MIT + node_id: MDc6TGljZW5zZW1pdA== + html_url: https://github.com/licenses/mit + forks: 1 + open_issues: 1 + watchers: 1 + selected-actions: + value: + github_owned_allowed: true + verified_allowed: false + patterns_allowed: + - monalisa/octocat@* + - docker/* + actions-default-workflow-permissions: + summary: Give read-only permission, and allow approving PRs. + value: + default_workflow_permissions: read + can_approve_pull_request_reviews: true + runner-groups-org: + value: + total_count: 3 + runner_groups: + - id: 1 + name: Default + visibility: all + default: true + runners_url: https://api.github.com/orgs/octo-org/actions/runner_groups/1/runners + inherited: false + allows_public_repositories: true + restricted_to_workflows: false + selected_workflows: [] + workflow_restrictions_read_only: false + - id: 2 + name: octo-runner-group + visibility: selected + default: false + selected_repositories_url: https://api.github.com/orgs/octo-org/actions/runner_groups/2/repositories + runners_url: https://api.github.com/orgs/octo-org/actions/runner_groups/2/runners + inherited: true + allows_public_repositories: true + restricted_to_workflows: true + selected_workflows: + - octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main + workflow_restrictions_read_only: true + - id: 3 + name: expensive-hardware + visibility: private + default: false + runners_url: https://api.github.com/orgs/octo-org/actions/runner_groups/3/runners + inherited: false + allows_public_repositories: true + restricted_to_workflows: false + selected_workflows: + - octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main + workflow_restrictions_read_only: false + runner-group: + value: + id: 2 + name: octo-runner-group + visibility: selected + default: false + selected_repositories_url: https://api.github.com/orgs/octo-org/actions/runner-groups/2/repositories + runners_url: https://api.github.com/orgs/octo-org/actions/runner_groups/2/runners + hosted_runners_url: https://api.github.com/orgs/octo-org/actions/runner_groups/2/hosted-runners + network_configuration_id: EC486D5D793175D7E3B29C27318D5C1AAE49A7833FC85F2E82C3D2C54AC7D3BA + inherited: false + allows_public_repositories: true + restricted_to_workflows: true + selected_workflows: + - octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main + workflow_restrictions_read_only: false + runner-group-item: + value: + id: 2 + name: octo-runner-group + visibility: selected + default: false + selected_repositories_url: https://api.github.com/orgs/octo-org/actions/runner_groups/2/repositories + runners_url: https://api.github.com/orgs/octo-org/actions/runner_groups/2/runners + hosted_runners_url: https://api.github.com/orgs/octo-org/actions/runner_groups/2/hosted-runners + network_configuration_id: EC486D5D793175D7E3B29C27318D5C1AAE49A7833FC85F2E82C3D2C54AC7D3BA + inherited: false + allows_public_repositories: true + restricted_to_workflows: true + selected_workflows: + - octo-org/octo-repo/.github/workflows/deploy.yaml@refs/heads/main + workflow_restrictions_read_only: false + minimal-repository-paginated: + value: + total_count: 1 + repositories: + - id: 1296269 + node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 + name: Hello-World + full_name: octocat/Hello-World + owner: + login: octocat + id: 1 + node_id: MDQ6VXNlcjE= + avatar_url: https://github.com/images/error/octocat_happy.gif + gravatar_id: '' + url: https://api.github.com/users/octocat + html_url: https://github.com/octocat + followers_url: https://api.github.com/users/octocat/followers + following_url: https://api.github.com/users/octocat/following{/other_user} + gists_url: https://api.github.com/users/octocat/gists{/gist_id} + starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/octocat/subscriptions + organizations_url: https://api.github.com/users/octocat/orgs + repos_url: https://api.github.com/users/octocat/repos + events_url: https://api.github.com/users/octocat/events{/privacy} + received_events_url: https://api.github.com/users/octocat/received_events + type: User + site_admin: false + private: false + html_url: https://github.com/octocat/Hello-World + description: This your first repo! + fork: false + url: https://api.github.com/repos/octocat/Hello-World + archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref} + assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user} + blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha} + branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch} + collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator} + comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number} + commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha} + compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head} + contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path} + contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors + deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments + downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads + events_url: https://api.github.com/repos/octocat/Hello-World/events + forks_url: https://api.github.com/repos/octocat/Hello-World/forks + git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha} + git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha} + git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha} + git_url: git:github.com/octocat/Hello-World.git + issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number} + issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number} + issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number} + keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id} + labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name} + languages_url: https://api.github.com/repos/octocat/Hello-World/languages + merges_url: https://api.github.com/repos/octocat/Hello-World/merges + milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number} + notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating} + pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number} + releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id} + ssh_url: git@github.com:octocat/Hello-World.git + stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers + statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha} + subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers + subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription + tags_url: https://api.github.com/repos/octocat/Hello-World/tags + teams_url: https://api.github.com/repos/octocat/Hello-World/teams + trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha} + clone_url: https://github.com/octocat/Hello-World.git + mirror_url: git:git.example.com/octocat/Hello-World + hooks_url: https://api.github.com/repos/octocat/Hello-World/hooks + svn_url: https://svn.github.com/octocat/Hello-World + homepage: https://github.com + language: + forks_count: 9 + stargazers_count: 80 + watchers_count: 80 + size: 108 + default_branch: master + open_issues_count: 0 + is_template: true + topics: + - octocat + - atom + - electron + - api + has_issues: true + has_projects: true + has_wiki: true + has_pages: false + has_downloads: true + archived: false + disabled: false + visibility: public + pushed_at: '2011-01-26T19:06:43Z' + created_at: '2011-01-26T19:01:12Z' + updated_at: '2011-01-26T19:14:43Z' + permissions: + admin: false + push: false + pull: true + template_repository: + id: 1296269 + node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 + name: Hello-World + full_name: octocat/Hello-World + owner: + login: octocat + id: 1 + node_id: MDQ6VXNlcjE= + avatar_url: https://github.com/images/error/octocat_happy.gif + gravatar_id: '' + url: https://api.github.com/users/octocat + html_url: https://github.com/octocat + followers_url: https://api.github.com/users/octocat/followers + following_url: https://api.github.com/users/octocat/following{/other_user} + gists_url: https://api.github.com/users/octocat/gists{/gist_id} + starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} + subscriptions_url: https://api.github.com/users/octocat/subscriptions + organizations_url: https://api.github.com/users/octocat/orgs + repos_url: https://api.github.com/users/octocat/repos + events_url: https://api.github.com/users/octocat/events{/privacy} + received_events_url: https://api.github.com/users/octocat/received_events + type: User + site_admin: false + private: false + html_url: https://github.com/octocat/Hello-World + description: This your first repo! + fork: false + url: https://api.github.com/repos/octocat/Hello-World + archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref} + assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user} + blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha} + branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch} + collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator} + comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number} + commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha} + compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head} + contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path} + contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors + deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments + downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads + events_url: https://api.github.com/repos/octocat/Hello-World/events + forks_url: https://api.github.com/repos/octocat/Hello-World/forks + git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha} + git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha} + git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha} + git_url: git:github.com/octocat/Hello-World.git + issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number} + issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number} + issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number} + keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id} + labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name} + languages_url: https://api.github.com/repos/octocat/Hello-World/languages + merges_url: https://api.github.com/repos/octocat/Hello-World/merges + milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number} + notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating} + pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number} + releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id} + ssh_url: git@github.com:octocat/Hello-World.git + stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers + statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha} + subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers + subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription + tags_url: https://api.github.com/repos/octocat/Hello-World/tags + teams_url: https://api.github.com/repos/octocat/Hello-World/teams + trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha} + clone_url: https://github.com/octocat/Hello-World.git + mirror_url: git:git.example.com/octocat/Hello-World + hooks_url: https://api.github.com/repos/octocat/Hello-World/hooks + svn_url: https://svn.github.com/octocat/Hello-World + homepage: https://github.com + organization: + language: + forks: 9 + forks_count: 9 + stargazers_count: 80 + watchers_count: 80 + watchers: 80 + size: 108 + default_branch: master + open_issues: 0 + open_issues_count: 0 + is_template: true + license: + key: mit + name: MIT License + url: https://api.github.com/licenses/mit + spdx_id: MIT + node_id: MDc6TGljZW5zZW1pdA== + html_url: https://api.github.com/licenses/mit + topics: + - octocat + - atom + - electron + - api + has_issues: true + has_projects: true + has_wiki: true + has_pages: false + has_downloads: true + archived: false + disabled: false + visibility: public + pushed_at: '2011-01-26T19:06:43Z' + created_at: '2011-01-26T19:01:12Z' + updated_at: '2011-01-26T19:14:43Z' + permissions: + admin: false + push: false + pull: true + allow_rebase_merge: true + template_repository: + temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O + allow_squash_merge: true + allow_auto_merge: false + delete_branch_on_merge: true + allow_merge_commit: true + subscribers_count: 42 + network_count: 0 temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O - allow_squash_merge: true - allow_auto_merge: false delete_branch_on_merge: true - allow_merge_commit: true subscribers_count: 42 network_count: 0 license: @@ -201656,22 +202588,9 @@ components: url: https://api.github.com/licenses/mit spdx_id: MIT node_id: MDc6TGljZW5zZW1pdA== - html_url: https://github.com/licenses/mit forks: 1 open_issues: 1 watchers: 1 - selected-actions: - value: - github_owned_allowed: true - verified_allowed: false - patterns_allowed: - - monalisa/octocat@* - - docker/* - actions-default-workflow-permissions: - summary: Give read-only permission, and allow approving PRs. - value: - default_workflow_permissions: read - can_approve_pull_request_reviews: true runner-paginated: value: total_count: 2 @@ -219065,240 +219984,6 @@ components: updated_at: '2020-01-10T14:59:22Z' visibility: selected selected_repositories_url: https://api.github.com/user/codespaces/secrets/CODESPACE_GH_SECRET/repositories - minimal-repository-paginated: - value: - total_count: 1 - repositories: - - id: 1296269 - node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 - name: Hello-World - full_name: octocat/Hello-World - owner: - login: octocat - id: 1 - node_id: MDQ6VXNlcjE= - avatar_url: https://github.com/images/error/octocat_happy.gif - gravatar_id: '' - url: https://api.github.com/users/octocat - html_url: https://github.com/octocat - followers_url: https://api.github.com/users/octocat/followers - following_url: https://api.github.com/users/octocat/following{/other_user} - gists_url: https://api.github.com/users/octocat/gists{/gist_id} - starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} - subscriptions_url: https://api.github.com/users/octocat/subscriptions - organizations_url: https://api.github.com/users/octocat/orgs - repos_url: https://api.github.com/users/octocat/repos - events_url: https://api.github.com/users/octocat/events{/privacy} - received_events_url: https://api.github.com/users/octocat/received_events - type: User - site_admin: false - private: false - html_url: https://github.com/octocat/Hello-World - description: This your first repo! - fork: false - url: https://api.github.com/repos/octocat/Hello-World - archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref} - assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user} - blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha} - branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch} - collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator} - comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number} - commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha} - compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head} - contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path} - contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors - deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments - downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads - events_url: https://api.github.com/repos/octocat/Hello-World/events - forks_url: https://api.github.com/repos/octocat/Hello-World/forks - git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha} - git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha} - git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha} - git_url: git:github.com/octocat/Hello-World.git - issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number} - issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number} - issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number} - keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id} - labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name} - languages_url: https://api.github.com/repos/octocat/Hello-World/languages - merges_url: https://api.github.com/repos/octocat/Hello-World/merges - milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number} - notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating} - pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number} - releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id} - ssh_url: git@github.com:octocat/Hello-World.git - stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers - statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha} - subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers - subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription - tags_url: https://api.github.com/repos/octocat/Hello-World/tags - teams_url: https://api.github.com/repos/octocat/Hello-World/teams - trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha} - clone_url: https://github.com/octocat/Hello-World.git - mirror_url: git:git.example.com/octocat/Hello-World - hooks_url: https://api.github.com/repos/octocat/Hello-World/hooks - svn_url: https://svn.github.com/octocat/Hello-World - homepage: https://github.com - language: - forks_count: 9 - stargazers_count: 80 - watchers_count: 80 - size: 108 - default_branch: master - open_issues_count: 0 - is_template: true - topics: - - octocat - - atom - - electron - - api - has_issues: true - has_projects: true - has_wiki: true - has_pages: false - has_downloads: true - archived: false - disabled: false - visibility: public - pushed_at: '2011-01-26T19:06:43Z' - created_at: '2011-01-26T19:01:12Z' - updated_at: '2011-01-26T19:14:43Z' - permissions: - admin: false - push: false - pull: true - template_repository: - id: 1296269 - node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 - name: Hello-World - full_name: octocat/Hello-World - owner: - login: octocat - id: 1 - node_id: MDQ6VXNlcjE= - avatar_url: https://github.com/images/error/octocat_happy.gif - gravatar_id: '' - url: https://api.github.com/users/octocat - html_url: https://github.com/octocat - followers_url: https://api.github.com/users/octocat/followers - following_url: https://api.github.com/users/octocat/following{/other_user} - gists_url: https://api.github.com/users/octocat/gists{/gist_id} - starred_url: https://api.github.com/users/octocat/starred{/owner}{/repo} - subscriptions_url: https://api.github.com/users/octocat/subscriptions - organizations_url: https://api.github.com/users/octocat/orgs - repos_url: https://api.github.com/users/octocat/repos - events_url: https://api.github.com/users/octocat/events{/privacy} - received_events_url: https://api.github.com/users/octocat/received_events - type: User - site_admin: false - private: false - html_url: https://github.com/octocat/Hello-World - description: This your first repo! - fork: false - url: https://api.github.com/repos/octocat/Hello-World - archive_url: https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref} - assignees_url: https://api.github.com/repos/octocat/Hello-World/assignees{/user} - blobs_url: https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha} - branches_url: https://api.github.com/repos/octocat/Hello-World/branches{/branch} - collaborators_url: https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator} - comments_url: https://api.github.com/repos/octocat/Hello-World/comments{/number} - commits_url: https://api.github.com/repos/octocat/Hello-World/commits{/sha} - compare_url: https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head} - contents_url: https://api.github.com/repos/octocat/Hello-World/contents/{+path} - contributors_url: https://api.github.com/repos/octocat/Hello-World/contributors - deployments_url: https://api.github.com/repos/octocat/Hello-World/deployments - downloads_url: https://api.github.com/repos/octocat/Hello-World/downloads - events_url: https://api.github.com/repos/octocat/Hello-World/events - forks_url: https://api.github.com/repos/octocat/Hello-World/forks - git_commits_url: https://api.github.com/repos/octocat/Hello-World/git/commits{/sha} - git_refs_url: https://api.github.com/repos/octocat/Hello-World/git/refs{/sha} - git_tags_url: https://api.github.com/repos/octocat/Hello-World/git/tags{/sha} - git_url: git:github.com/octocat/Hello-World.git - issue_comment_url: https://api.github.com/repos/octocat/Hello-World/issues/comments{/number} - issue_events_url: https://api.github.com/repos/octocat/Hello-World/issues/events{/number} - issues_url: https://api.github.com/repos/octocat/Hello-World/issues{/number} - keys_url: https://api.github.com/repos/octocat/Hello-World/keys{/key_id} - labels_url: https://api.github.com/repos/octocat/Hello-World/labels{/name} - languages_url: https://api.github.com/repos/octocat/Hello-World/languages - merges_url: https://api.github.com/repos/octocat/Hello-World/merges - milestones_url: https://api.github.com/repos/octocat/Hello-World/milestones{/number} - notifications_url: https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating} - pulls_url: https://api.github.com/repos/octocat/Hello-World/pulls{/number} - releases_url: https://api.github.com/repos/octocat/Hello-World/releases{/id} - ssh_url: git@github.com:octocat/Hello-World.git - stargazers_url: https://api.github.com/repos/octocat/Hello-World/stargazers - statuses_url: https://api.github.com/repos/octocat/Hello-World/statuses/{sha} - subscribers_url: https://api.github.com/repos/octocat/Hello-World/subscribers - subscription_url: https://api.github.com/repos/octocat/Hello-World/subscription - tags_url: https://api.github.com/repos/octocat/Hello-World/tags - teams_url: https://api.github.com/repos/octocat/Hello-World/teams - trees_url: https://api.github.com/repos/octocat/Hello-World/git/trees{/sha} - clone_url: https://github.com/octocat/Hello-World.git - mirror_url: git:git.example.com/octocat/Hello-World - hooks_url: https://api.github.com/repos/octocat/Hello-World/hooks - svn_url: https://svn.github.com/octocat/Hello-World - homepage: https://github.com - organization: - language: - forks: 9 - forks_count: 9 - stargazers_count: 80 - watchers_count: 80 - watchers: 80 - size: 108 - default_branch: master - open_issues: 0 - open_issues_count: 0 - is_template: true - license: - key: mit - name: MIT License - url: https://api.github.com/licenses/mit - spdx_id: MIT - node_id: MDc6TGljZW5zZW1pdA== - html_url: https://api.github.com/licenses/mit - topics: - - octocat - - atom - - electron - - api - has_issues: true - has_projects: true - has_wiki: true - has_pages: false - has_downloads: true - archived: false - disabled: false - visibility: public - pushed_at: '2011-01-26T19:06:43Z' - created_at: '2011-01-26T19:01:12Z' - updated_at: '2011-01-26T19:14:43Z' - permissions: - admin: false - push: false - pull: true - allow_rebase_merge: true - template_repository: - temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O - allow_squash_merge: true - allow_auto_merge: false - delete_branch_on_merge: true - allow_merge_commit: true - subscribers_count: 42 - network_count: 0 - temp_clone_token: ABTLWHOULUVAXGTRYU7OC2876QJ2O - delete_branch_on_merge: true - subscribers_count: 42 - network_count: 0 - license: - key: mit - name: MIT License - url: https://api.github.com/licenses/mit - spdx_id: MIT - node_id: MDc6TGljZW5zZW1pdA== - forks: 1 - open_issues: 1 - watchers: 1 user-export-details: value: state: succeeded @@ -223538,6 +224223,20 @@ components: required: true schema: type: integer + visible-to-repository: + name: visible_to_repository + description: Only return runner groups that are allowed to be used by this repository. + in: query + required: false + schema: + type: string + runner-group-id: + name: runner_group_id + description: Unique identifier of the self-hosted runner group. + in: path + required: true + schema: + type: integer runner-id: name: runner_id description: Unique identifier of the self-hosted runner.