diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 484c497a582..c8f4a14d004 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "864f215bcb7fda8ed79c1295fb5a81d2", + "specHash": "70c15d3e8826de45231fa16fc40897e0", "generatedFiles": { "files": [ { @@ -5532,7 +5532,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/SecretScanning.php", - "hash": "7f50cc5ea564fc5d7844ba24209d3e63" + "hash": "91aebb408135c1eeda46c62b1578a527" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Activity.php", @@ -5572,7 +5572,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/CodeScanning.php", - "hash": "bff68a3edb7a8c46c33716e7f56300f3" + "hash": "114259a2fc517cfc88cf0ba2f0872373" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Codespaces.php", @@ -12332,7 +12332,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/ListAlertsForEnterprise.php", - "hash": "41c927430ffa2540ebe7f835cdc98cc1" + "hash": "6ff1f101a2fc2ce58e347d095c27a591" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/ListAlertsForEnterpriseTest.php", @@ -15072,7 +15072,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/ListAlertsForOrg.php", - "hash": "616f754cc16989b17a971e7ece5f94b8" + "hash": "5055095bcefa6d8312f2b28a20b22686" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/ListAlertsForOrgTest.php", @@ -15084,7 +15084,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/ListAlertsForOrgListing.php", - "hash": "5c95a871bce5ad2b98fbf050cf1f528e" + "hash": "5d481946b23b0bacfcd8a582de4047cd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/ListAlertsForOrgListingTest.php", @@ -17540,7 +17540,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/UpdateAlert.php", - "hash": "ad03cff54583a7524b8e0142621329c8" + "hash": "49bdc4726a22d56e4eb37e74f53b6872" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/UpdateAlertTest.php", @@ -20968,7 +20968,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/ListAlertsForRepo.php", - "hash": "3aac065ae25320bd3a6bf79d75ee4d36" + "hash": "fd02451b5ef91af3c0ae767a378e9c63" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/ListAlertsForRepoTest.php", @@ -20980,7 +20980,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/ListAlertsForRepoListing.php", - "hash": "a17f9b8afc868944a6a494b8caeaaf3b" + "hash": "f2fbe0a1dbdad5a5a36888c369afed43" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/ListAlertsForRepoListingTest.php", @@ -24384,7 +24384,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/SecretScanning.php", - "hash": "8e825afdbf25f991a93494a8fa7289ac" + "hash": "dffa3ec1289d153acc0a8324215d4ec5" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Actions.php", @@ -24560,7 +24560,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/CodeScanning.php", - "hash": "c5c5ec0dfc0b0f2fe4999d671afcc071" + "hash": "006bc67df112b0d0f5d2b91c59cae38c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Issues.php", @@ -24640,7 +24640,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/SecretScanning.php", - "hash": "d6748a3281d1140c626e6f4f1858de30" + "hash": "972ff5051c257536310f274406ba0ec1" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Pulls.php", @@ -24832,11 +24832,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "fd7918dfc4ecf521698e287b0abd1e41" + "hash": "f5ec8d2962554a8e1637fe776cd73689" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "f441783f2cf7cce11cc619f974772c8c" + "hash": "1f657d72925483e30400b4d03125ecaa" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -24908,7 +24908,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Seven.php", - "hash": "769b9d953ada4cf572f9a4915c0e9b3b" + "hash": "65d699bf86ed52845ce7befdef35c421" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Nine.php", @@ -24936,11 +24936,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "c41274c51f0be3c276a995d5583aeceb" + "hash": "7516af6b41f8a9d3b475684f306347be" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", - "hash": "f1757875ca543b4c0bbb51eb471a518d" + "hash": "a5061ea4823a62a9b695f2069666686c" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", @@ -27612,11 +27612,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "5dc346406dd56d37bfa4e119b03c895d" + "hash": "0d3db6688c9fae3081f04b53c53152cc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "4087c0a3207a4644727a24448548daa4" + "hash": "5c629eef52f39ab563b41d080fb37095" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -31540,7 +31540,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsHostedRunnerPoolImage.php", - "hash": "4d24d4ba4e62acc83e556ebf5596b879" + "hash": "7de942b3723fc90401c816e17e6fcc89" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsHostedRunnerMachineSpec.php", @@ -31552,7 +31552,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsHostedRunner.php", - "hash": "876cfedefd2e189e9ffb2e4db88cb304" + "hash": "57968b5bdd61285fd2b8962640a94666" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsHostedRunnerImage.php", @@ -31568,15 +31568,15 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListHostedRunnersForOrg\/Response\/ApplicationJson\/Ok.php", - "hash": "54ff03317476d52b6e8edb59dd4a9ff6" + "hash": "0be9be3ed8c51cdab75e077606afeab9" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actions\/CreateHostedRunnerForOrg\/Request\/ApplicationJson.php", - "hash": "59f5ef35df86b699c44a275c16765ad0" + "hash": "137560b5643650e71e29fa1974fd5af6" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actions\/CreateHostedRunnerForOrg\/Request\/ApplicationJson\/Image.php", - "hash": "e8389afcb4f43ace309c140caba7bc8f" + "hash": "20eb8668a9e9610ea401f7ed6795edbd" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietC564D611\/Tiet7E69EF5F\/Tiet7C05F65C\/Tiet87EB6EC8.php", @@ -31604,11 +31604,11 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actions\/UpdateHostedRunnerForOrg\/Request\/ApplicationJson.php", - "hash": "84d696b2183a47cddcb31f01f3c04535" + "hash": "1c70d6043e2bf8662e5e8175d2460369" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListGithubHostedRunnersInGroupForOrg\/Response\/ApplicationJson\/Ok.php", - "hash": "34e72a80bb7f5d7a68f4ab56d1d43ed2" + "hash": "5965c65c0e9ff6814197a5d9f8677cbc" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet67EF09F8\/Tiet8959F0C4\/Tiet45DBD47E\/Tiet2C497E99.php", @@ -31616,7 +31616,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/HostedRunners.php", - "hash": "16a77ff4a46527d257a5a1724b50cb04" + "hash": "e91ae7162a53f49cf975b1a183833620" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/HostedRunners\/Images\/GithubOwned.php", @@ -31640,7 +31640,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/HostedRunners\/HostedRunnerId.php", - "hash": "ccd5d2c9ef0ca98755d525cb424612e0" + "hash": "411dc0d2dfbd13a182dadb94c3605b6f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/RunnerGroups\/RunnerGroupId\/HostedRunners.php", diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners.php b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners.php index 3bea651ceae..1d5112cdc50 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners.php @@ -298,17 +298,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Acti $properties['source'] = $value; after_source: - - $value = $payload['version'] ?? null; - - if ($value === null) { - $missingFields[] = 'version'; - goto after_version; - } - - $properties['version'] = $value; - - after_version: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\ActionsHostedRunnerPoolImage', $exception, stack: $this->hydrationStack); } @@ -597,9 +586,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $source = $object->source; after_source: $result['source'] = $source; - $version = $object->version; - after_version: $result['version'] = $version; - return $result; } diff --git a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/HostedRunnerId.php b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/HostedRunnerId.php index ed58d867ca8..0105c0119c3 100644 --- a/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/HostedRunnerId.php +++ b/clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/HostedRunnerId.php @@ -255,17 +255,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Acti $properties['source'] = $value; after_source: - - $value = $payload['version'] ?? null; - - if ($value === null) { - $missingFields[] = 'version'; - goto after_version; - } - - $properties['version'] = $value; - - after_version: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\ActionsHostedRunnerPoolImage', $exception, stack: $this->hydrationStack); } @@ -532,9 +521,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $source = $object->source; after_source: $result['source'] = $source; - $version = $object->version; - after_version: $result['version'] = $version; - return $result; } diff --git a/clients/GitHub/src/Internal/Operator/CodeScanning/UpdateAlert.php b/clients/GitHub/src/Internal/Operator/CodeScanning/UpdateAlert.php index 8aabde7f6c7..24bb34fd219 100644 --- a/clients/GitHub/src/Internal/Operator/CodeScanning/UpdateAlert.php +++ b/clients/GitHub/src/Internal/Operator/CodeScanning/UpdateAlert.php @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $owner, string $repo, int $alertNumber, array $params): CodeScanningAlert { $operation = new \ApiClients\Client\GitHub\Internal\Operation\CodeScanning\UpdateAlert($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $alertNumber); diff --git a/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForEnterprise.php b/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForEnterprise.php index 2f2ca81b1be..b6ec6c98ca0 100644 --- a/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForEnterprise.php +++ b/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForEnterprise.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $enterprise, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort = 'created', string $direction = 'desc', int $perPage = 30, bool $isPubliclyLeaked = false, bool $isMultiRepo = false): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\SecretScanning\ListAlertsForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $perPage, $isPubliclyLeaked, $isMultiRepo); diff --git a/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForOrg.php b/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForOrg.php index 12b10d3523a..c31b1ebfaeb 100644 --- a/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForOrg.php +++ b/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForOrg.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30, bool $isPubliclyLeaked = false, bool $isMultiRepo = false): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\SecretScanning\ListAlertsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage, $isPubliclyLeaked, $isMultiRepo); diff --git a/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForOrgListing.php b/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForOrgListing.php index 88cac738b96..9b08aaf7f16 100644 --- a/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForOrgListing.php +++ b/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForOrgListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30, bool $isPubliclyLeaked = false, bool $isMultiRepo = false): iterable { $operation = new \ApiClients\Client\GitHub\Internal\Operation\SecretScanning\ListAlertsForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage, $isPubliclyLeaked, $isMultiRepo); diff --git a/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForRepo.php b/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForRepo.php index 811d14759ef..4feda3e89cd 100644 --- a/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForRepo.php +++ b/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForRepo.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $owner, string $repo, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30, bool $isPubliclyLeaked = false, bool $isMultiRepo = false): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHub\Internal\Operation\SecretScanning\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage, $isPubliclyLeaked, $isMultiRepo); diff --git a/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForRepoListing.php b/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForRepoListing.php index bd74b38cde8..a851502c2cf 100644 --- a/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForRepoListing.php +++ b/clients/GitHub/src/Internal/Operator/SecretScanning/ListAlertsForRepoListing.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $owner, string $repo, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30, bool $isPubliclyLeaked = false, bool $isMultiRepo = false): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHub\Internal\Operation\SecretScanning\ListAlertsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage, $isPubliclyLeaked, $isMultiRepo); diff --git a/clients/GitHub/src/Internal/Router/Get/Five.php b/clients/GitHub/src/Internal/Router/Get/Five.php index fd8c075c88d..ce6e9d9bba2 100644 --- a/clients/GitHub/src/Internal/Router/Get/Five.php +++ b/clients/GitHub/src/Internal/Router/Get/Five.php @@ -52,7 +52,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|WithoutBody|iterable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @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|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|iterable|WithoutBody|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|Ok|ActionsOrganizationPermissions|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\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|\ApiClients\Client\GitHub\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|OrgPrivateRegistryConfiguration|RepositoryRuleset|\ApiClients\Client\GitHub\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok|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\Application\Json|EmptyObject { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Get/SecretScanning.php b/clients/GitHub/src/Internal/Router/Get/SecretScanning.php index db61c452f06..c6abaf69736 100644 --- a/clients/GitHub/src/Internal/Router/Get/SecretScanning.php +++ b/clients/GitHub/src/Internal/Router/Get/SecretScanning.php @@ -22,7 +22,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable */ + /** @return Observable */ public function listAlertsForEnterprise(array $params): iterable { $arguments = []; @@ -103,7 +103,7 @@ public function listAlertsForEnterprise(array $params): iterable return $operator->call($arguments['enterprise'], $arguments['state'], $arguments['secret_type'], $arguments['resolution'], $arguments['before'], $arguments['after'], $arguments['validity'], $arguments['sort'], $arguments['direction'], $arguments['per_page'], $arguments['is_publicly_leaked'], $arguments['is_multi_repo']); } - /** @return iterable */ + /** @return Observable */ public function listAlertsForOrg(array $params): iterable { $arguments = []; @@ -190,7 +190,7 @@ public function listAlertsForOrg(array $params): iterable return $operator->call($arguments['org'], $arguments['state'], $arguments['secret_type'], $arguments['resolution'], $arguments['before'], $arguments['after'], $arguments['validity'], $arguments['sort'], $arguments['direction'], $arguments['page'], $arguments['per_page'], $arguments['is_publicly_leaked'], $arguments['is_multi_repo']); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepo(array $params): iterable|WithoutBody { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Get/Six.php b/clients/GitHub/src/Internal/Router/Get/Six.php index ff39c55b0dc..336d0318838 100644 --- a/clients/GitHub/src/Internal/Router/Get/Six.php +++ b/clients/GitHub/src/Internal/Router/Get/Six.php @@ -82,7 +82,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable||Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable||Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|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): iterable|CodeSecurityConfiguration|WithoutBody|BillingUsageReport|ActionsCacheUsageOrgEnterprise|Ok|ActionsHostedRunnerLimits|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersMachineSpecsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHub\Schema\Operations\Actions\GetHostedRunnersPlatformsForOrg\Response\ApplicationJson\Ok|ActionsHostedRunner|\ApiClients\Client\GitHub\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsOrg|Runner|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHub\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ApiInsightsSummaryStats|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ActionsBillingUsage|PackagesBillingUsage|CombinedBillingUsage|NetworkConfiguration|NetworkSettings|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|SecretScanningScanHistory|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] === '') { diff --git a/clients/GitHub/src/Internal/Router/List/Five.php b/clients/GitHub/src/Internal/Router/List/Five.php index ab3a78b2407..8da240fa0c8 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|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return 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|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/SecretScanning.php b/clients/GitHub/src/Internal/Router/List/SecretScanning.php index 7064bf8e9f7..b75c466b2ef 100644 --- a/clients/GitHub/src/Internal/Router/List/SecretScanning.php +++ b/clients/GitHub/src/Internal/Router/List/SecretScanning.php @@ -21,7 +21,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri { } - /** @return iterable */ + /** @return Observable */ public function listAlertsForOrgListing(array $params): iterable { $arguments = []; @@ -114,7 +114,7 @@ public function listAlertsForOrgListing(array $params): iterable } while (count($items) > 0); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepoListing(array $params): iterable|WithoutBody { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/List/Six.php b/clients/GitHub/src/Internal/Router/List/Six.php index f4ec071a849..ae0a19daabf 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|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|WithoutBody|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 */ public function call(string $call, array $params, array $pathChunks): iterable|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Internal/Router/Patch/CodeScanning.php b/clients/GitHub/src/Internal/Router/Patch/CodeScanning.php index 5954086c757..272cafd28ca 100644 --- a/clients/GitHub/src/Internal/Router/Patch/CodeScanning.php +++ b/clients/GitHub/src/Internal/Router/Patch/CodeScanning.php @@ -42,6 +42,7 @@ public function updateDefaultSetup(array $params): EmptyObject|CodeScanningDefau return $operator->call($arguments['owner'], $arguments['repo'], $params); } + /** @return */ public function updateAlert(array $params): CodeScanningAlert { $arguments = []; diff --git a/clients/GitHub/src/Internal/Router/Patch/Seven.php b/clients/GitHub/src/Internal/Router/Patch/Seven.php index 6cc2520673f..14c8dafb551 100644 --- a/clients/GitHub/src/Internal/Router/Patch/Seven.php +++ b/clients/GitHub/src/Internal/Router/Patch/Seven.php @@ -25,7 +25,6 @@ public function __construct(private Routers $routers) { } - /** @return |Schema\CodeScanningAlert */ public function call(string $call, array $params, array $pathChunks): TeamDiscussion|WithoutBody|CodeScanningAlert|DependabotAlert|GitRef|WebhookConfig|PorterAuthor|IssueComment|PullRequestReviewComment|ReleaseAsset|SecretScanningAlert|TeamDiscussionComment { if ($pathChunks[0] === '') { diff --git a/clients/GitHub/src/Operation/CodeScanning.php b/clients/GitHub/src/Operation/CodeScanning.php index 30d8db1e210..dabf87b1f8d 100644 --- a/clients/GitHub/src/Operation/CodeScanning.php +++ b/clients/GitHub/src/Operation/CodeScanning.php @@ -57,6 +57,7 @@ public function getAlert(string $owner, string $repo, int $alertNumber): CodeSca return $this->operators->codeScanning👷GetAlert()->call($owner, $repo, $alertNumber); } + /** @return */ public function updateAlert(string $owner, string $repo, int $alertNumber, array $params): CodeScanningAlert { return $this->operators->codeScanning👷UpdateAlert()->call($owner, $repo, $alertNumber, $params); diff --git a/clients/GitHub/src/Operation/SecretScanning.php b/clients/GitHub/src/Operation/SecretScanning.php index c2b3776417c..fe593fd18b0 100644 --- a/clients/GitHub/src/Operation/SecretScanning.php +++ b/clients/GitHub/src/Operation/SecretScanning.php @@ -17,31 +17,31 @@ public function __construct(private Internal\Operators $operators) { } - /** @return iterable */ + /** @return Observable */ public function listAlertsForEnterprise(string $enterprise, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort, string $direction, int $perPage, bool $isPubliclyLeaked, bool $isMultiRepo): iterable { return $this->operators->secretScanning👷ListAlertsForEnterprise()->call($enterprise, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $perPage, $isPubliclyLeaked, $isMultiRepo); } - /** @return iterable */ + /** @return Observable */ public function listAlertsForOrg(string $org, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort, string $direction, int $page, int $perPage, bool $isPubliclyLeaked, bool $isMultiRepo): iterable { return $this->operators->secretScanning👷ListAlertsForOrg()->call($org, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage, $isPubliclyLeaked, $isMultiRepo); } - /** @return iterable */ + /** @return Observable */ public function listAlertsForOrgListing(string $org, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort, string $direction, int $page, int $perPage, bool $isPubliclyLeaked, bool $isMultiRepo): iterable { return $this->operators->secretScanning👷ListAlertsForOrgListing()->call($org, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage, $isPubliclyLeaked, $isMultiRepo); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepo(string $owner, string $repo, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort, string $direction, int $page, int $perPage, bool $isPubliclyLeaked, bool $isMultiRepo): iterable|WithoutBody { return $this->operators->secretScanning👷ListAlertsForRepo()->call($owner, $repo, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage, $isPubliclyLeaked, $isMultiRepo); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepoListing(string $owner, string $repo, string $state, string $secretType, string $resolution, string $before, string $after, string $validity, string $sort, string $direction, int $page, int $perPage, bool $isPubliclyLeaked, bool $isMultiRepo): iterable|WithoutBody { return $this->operators->secretScanning👷ListAlertsForRepoListing()->call($owner, $repo, $state, $secretType, $resolution, $before, $after, $validity, $sort, $direction, $page, $perPage, $isPubliclyLeaked, $isMultiRepo); diff --git a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php index 1b5cfefbf3a..1ce8d6c82ed 100644 --- a/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHub/src/PHPStan/ClientCallReturnTypes.php @@ -232,7 +232,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /enterprises/{enterprise}/secret-scanning/alerts') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'GET /events') { @@ -1532,11 +1532,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/secret-scanning/alerts') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /orgs/{org}/secret-scanning/alerts') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'GET /orgs/{org}/security-advisories') { @@ -2456,7 +2456,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}') { - return $this->typeResolver->resolve('Schema\\CodeScanningAlert'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix') { @@ -3764,11 +3764,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/secret-scanning/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'LIST /repos/{owner}/{repo}/secret-scanning/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}') { diff --git a/clients/GitHub/src/Schema/Actions/CreateHostedRunnerForOrg/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Actions/CreateHostedRunnerForOrg/Request/ApplicationJson.php index 04cd9ff3cb1..1c19b3c081c 100644 --- a/clients/GitHub/src/Schema/Actions/CreateHostedRunnerForOrg/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Actions/CreateHostedRunnerForOrg/Request/ApplicationJson.php @@ -37,13 +37,6 @@ ], "type": "string", "description": "The source of the runner image." - }, - "version": { - "type": [ - "string", - "null" - ], - "description": "The version of the runner image to deploy. This is relevant only for runners using custom images." } }, "description": "The image of runner. To list all available images, use `GET \\/actions\\/hosted-runners\\/images\\/github-owned` or `GET \\/actions\\/hosted-runners\\/images\\/partner`." @@ -72,8 +65,7 @@ "name": "generated", "image": { "id": "generated", - "source": "custom", - "version": "generated" + "source": "custom" }, "size": "generated", "runner_group_id": 15, diff --git a/clients/GitHub/src/Schema/Actions/CreateHostedRunnerForOrg/Request/ApplicationJson/Image.php b/clients/GitHub/src/Schema/Actions/CreateHostedRunnerForOrg/Request/ApplicationJson/Image.php index 0fe7616a6c4..1630e9fef1a 100644 --- a/clients/GitHub/src/Schema/Actions/CreateHostedRunnerForOrg/Request/ApplicationJson/Image.php +++ b/clients/GitHub/src/Schema/Actions/CreateHostedRunnerForOrg/Request/ApplicationJson/Image.php @@ -21,13 +21,6 @@ ], "type": "string", "description": "The source of the runner image." - }, - "version": { - "type": [ - "string", - "null" - ], - "description": "The version of the runner image to deploy. This is relevant only for runners using custom images." } }, "description": "The image of runner. To list all available images, use `GET \\/actions\\/hosted-runners\\/images\\/github-owned` or `GET \\/actions\\/hosted-runners\\/images\\/partner`." @@ -36,16 +29,14 @@ public const SCHEMA_DESCRIPTION = 'The image of runner. To list all available images, use `GET /actions/hosted-runners/images/github-owned` or `GET /actions/hosted-runners/images/partner`.'; public const SCHEMA_EXAMPLE_DATA = '{ "id": "generated", - "source": "custom", - "version": "generated" + "source": "custom" }'; /** * id: The unique identifier of the runner image. * source: The source of the runner image. - * version: The version of the runner image to deploy. This is relevant only for runners using custom images. */ - public function __construct(public string|null $id, public string|null $source, public string|null $version) + public function __construct(public string|null $id, public string|null $source) { } } diff --git a/clients/GitHub/src/Schema/Actions/UpdateHostedRunnerForOrg/Request/ApplicationJson.php b/clients/GitHub/src/Schema/Actions/UpdateHostedRunnerForOrg/Request/ApplicationJson.php index 05edead4293..9154499d389 100644 --- a/clients/GitHub/src/Schema/Actions/UpdateHostedRunnerForOrg/Request/ApplicationJson.php +++ b/clients/GitHub/src/Schema/Actions/UpdateHostedRunnerForOrg/Request/ApplicationJson.php @@ -26,13 +26,6 @@ "enable_static_ip": { "type": "boolean", "description": "Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions\\/hosted-runners\\/limits`" - }, - "image_version": { - "type": [ - "string", - "null" - ], - "description": "The version of the runner image to deploy. This is relevant only for runners using custom images." } } }'; @@ -42,8 +35,7 @@ "name": "generated", "runner_group_id": 15, "maximum_runners": 15, - "enable_static_ip": false, - "image_version": "generated" + "enable_static_ip": false }'; /** @@ -51,13 +43,11 @@ * runnerGroupId: The existing runner group to add this runner to. * maximumRunners: The maximum amount of runners to scale up to. Runners will not auto-scale above this number. Use this setting to limit your cost. * enableStaticIp: Whether this runner should be updated with a static public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits` - * imageVersion: The version of the runner image to deploy. This is relevant only for runners using custom images. */ public function __construct(public string|null $name, #[MapFrom('runner_group_id')] public int|null $runnerGroupId, #[MapFrom('maximum_runners')] public int|null $maximumRunners, #[MapFrom('enable_static_ip')] - public bool|null $enableStaticIp, #[MapFrom('image_version')] - public string|null $imageVersion,) + public bool|null $enableStaticIp,) { } } diff --git a/clients/GitHub/src/Schema/ActionsHostedRunner.php b/clients/GitHub/src/Schema/ActionsHostedRunner.php index 530f9a8bc18..f0a4ec67507 100644 --- a/clients/GitHub/src/Schema/ActionsHostedRunner.php +++ b/clients/GitHub/src/Schema/ActionsHostedRunner.php @@ -88,13 +88,6 @@ ], "type": "string", "description": "The image provider." - }, - "version": { - "type": "string", - "description": "The image version of the hosted runner pool.", - "examples": [ - "latest" - ] } }, "description": "Provides details of a hosted runner image" @@ -234,8 +227,7 @@ "id": "ubuntu-20.04", "size_gb": 86, "display_name": 20.04, - "source": "custom", - "version": "latest" + "source": "custom" }, "machine_size_details": { "id": "8-core", diff --git a/clients/GitHub/src/Schema/ActionsHostedRunnerPoolImage.php b/clients/GitHub/src/Schema/ActionsHostedRunnerPoolImage.php index ce64eb9d160..772084b5043 100644 --- a/clients/GitHub/src/Schema/ActionsHostedRunnerPoolImage.php +++ b/clients/GitHub/src/Schema/ActionsHostedRunnerPoolImage.php @@ -48,13 +48,6 @@ ], "type": "string", "description": "The image provider." - }, - "version": { - "type": "string", - "description": "The image version of the hosted runner pool.", - "examples": [ - "latest" - ] } }, "description": "Provides details of a hosted runner image" @@ -65,8 +58,7 @@ "id": "ubuntu-20.04", "size_gb": 86, "display_name": 20.04, - "source": "custom", - "version": "latest" + "source": "custom" }'; /** @@ -74,11 +66,10 @@ * sizeGb: Image size in GB. * displayName: Display name for this image. * source: The image provider. - * version: The image version of the hosted runner pool. */ public function __construct(public string $id, #[MapFrom('size_gb')] public int $sizeGb, #[MapFrom('display_name')] - public string $displayName, public string $source, public string $version,) + public string $displayName, public string $source,) { } } diff --git a/clients/GitHub/src/Schema/Operations/Actions/ListGithubHostedRunnersInGroupForOrg/Response/ApplicationJson/Ok.php b/clients/GitHub/src/Schema/Operations/Actions/ListGithubHostedRunnersInGroupForOrg/Response/ApplicationJson/Ok.php index 54d0e9c90ce..53d346c3cf0 100644 --- a/clients/GitHub/src/Schema/Operations/Actions/ListGithubHostedRunnersInGroupForOrg/Response/ApplicationJson/Ok.php +++ b/clients/GitHub/src/Schema/Operations/Actions/ListGithubHostedRunnersInGroupForOrg/Response/ApplicationJson/Ok.php @@ -99,13 +99,6 @@ ], "type": "string", "description": "The image provider." - }, - "version": { - "type": "string", - "description": "The image version of the hosted runner pool.", - "examples": [ - "latest" - ] } }, "description": "Provides details of a hosted runner image" @@ -251,8 +244,7 @@ "id": "ubuntu-20.04", "size_gb": 86, "display_name": 20.04, - "source": "custom", - "version": "latest" + "source": "custom" }, "machine_size_details": { "id": "8-core", @@ -286,8 +278,7 @@ "id": "ubuntu-20.04", "size_gb": 86, "display_name": 20.04, - "source": "custom", - "version": "latest" + "source": "custom" }, "machine_size_details": { "id": "8-core", diff --git a/clients/GitHub/src/Schema/Operations/Actions/ListHostedRunnersForOrg/Response/ApplicationJson/Ok.php b/clients/GitHub/src/Schema/Operations/Actions/ListHostedRunnersForOrg/Response/ApplicationJson/Ok.php index 6784f191861..bbdf22f3c03 100644 --- a/clients/GitHub/src/Schema/Operations/Actions/ListHostedRunnersForOrg/Response/ApplicationJson/Ok.php +++ b/clients/GitHub/src/Schema/Operations/Actions/ListHostedRunnersForOrg/Response/ApplicationJson/Ok.php @@ -99,13 +99,6 @@ ], "type": "string", "description": "The image provider." - }, - "version": { - "type": "string", - "description": "The image version of the hosted runner pool.", - "examples": [ - "latest" - ] } }, "description": "Provides details of a hosted runner image" @@ -251,8 +244,7 @@ "id": "ubuntu-20.04", "size_gb": 86, "display_name": 20.04, - "source": "custom", - "version": "latest" + "source": "custom" }, "machine_size_details": { "id": "8-core", @@ -286,8 +278,7 @@ "id": "ubuntu-20.04", "size_gb": 86, "display_name": 20.04, - "source": "custom", - "version": "latest" + "source": "custom" }, "machine_size_details": { "id": "8-core", diff --git a/clients/GitHub/tests/Types/ClientCallReturnTypes.php b/clients/GitHub/tests/Types/ClientCallReturnTypes.php index cb9d66ac57b..eb38a4b0582 100644 --- a/clients/GitHub/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHub/tests/Types/ClientCallReturnTypes.php @@ -64,7 +64,7 @@ function authHeader(): string assertType('', $client->call('PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults')); assertType('Observable', $client->call('GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories')); assertType('Observable|WithoutBody', $client->call('GET /enterprises/{enterprise}/dependabot/alerts')); -assertType('iterable', $client->call('GET /enterprises/{enterprise}/secret-scanning/alerts')); +assertType('Observable', $client->call('GET /enterprises/{enterprise}/secret-scanning/alerts')); assertType('Observable|WithoutBody', $client->call('GET /events')); assertType('Observable|WithoutBody', $client->call('LIST /events')); assertType('', $client->call('GET /feeds')); @@ -389,8 +389,8 @@ function authHeader(): string assertType('Observable', $client->call('GET /orgs/{org}/rulesets/{ruleset_id}/history')); assertType('Observable', $client->call('LIST /orgs/{org}/rulesets/{ruleset_id}/history')); assertType('', $client->call('GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}')); -assertType('iterable', $client->call('GET /orgs/{org}/secret-scanning/alerts')); -assertType('iterable', $client->call('LIST /orgs/{org}/secret-scanning/alerts')); +assertType('Observable', $client->call('GET /orgs/{org}/secret-scanning/alerts')); +assertType('Observable', $client->call('LIST /orgs/{org}/secret-scanning/alerts')); assertType('Observable', $client->call('GET /orgs/{org}/security-advisories')); assertType('Observable', $client->call('GET /orgs/{org}/security-managers')); assertType('', $client->call('PUT /orgs/{org}/security-managers/teams/{team_slug}')); @@ -620,7 +620,7 @@ function authHeader(): string 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('', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}')); -assertType('Schema\\CodeScanningAlert', $client->call('PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}')); +assertType('', $client->call('PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}')); assertType('', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix')); assertType('', $client->call('POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix')); assertType('', $client->call('POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits')); @@ -947,8 +947,8 @@ function authHeader(): string assertType('Observable', $client->call('GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/rulesets/{ruleset_id}/history')); assertType('', $client->call('GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/secret-scanning/alerts')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('LIST /repos/{owner}/{repo}/secret-scanning/alerts')); +assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/secret-scanning/alerts')); +assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/secret-scanning/alerts')); assertType('', $client->call('GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}')); assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations')); diff --git a/etc/specs/GitHub/current.spec.yaml b/etc/specs/GitHub/current.spec.yaml index 67913984705..8f62ed1322c 100644 --- a/etc/specs/GitHub/current.spec.yaml +++ b/etc/specs/GitHub/current.spec.yaml @@ -4921,12 +4921,6 @@ paths: - github - partner - custom - version: - description: The version of the runner image to deploy. This - is relevant only for runners using custom images. - type: - - string - - 'null' size: description: The machine size of the runner. To list available sizes, use `GET actions/hosted-runners/machine-sizes` @@ -4956,7 +4950,6 @@ paths: image: id: ubuntu-latest source: github - version: latest runner_group_id: 1 size: 4-core maximum_runners: 50 @@ -5232,12 +5225,6 @@ paths: public IP. Note limit on account. To list limits on account, use `GET actions/hosted-runners/limits` type: boolean - image_version: - description: The version of the runner image to deploy. This is - relevant only for runners using custom images. - type: - - string - - 'null' examples: default: value: @@ -5245,7 +5232,6 @@ paths: runner_group_id: 1 maximum_runners: 50 enable_static_ip: false - image_version: 1.0.0 responses: '200': description: Response @@ -74866,11 +74852,6 @@ components: - github - partner - custom - version: - description: The image version of the hosted runner pool. - type: string - examples: - - latest required: - id - size_gb