diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index 3ee02192f2f..848a18f1d18 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "086c888146955fa3886508f5e1e7debb", + "specHash": "61362eae34baa8aaf089660247a67141", "generatedFiles": { "files": [ { @@ -636,7 +636,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRulesetBypassActor.php", - "hash": "40ea7d45d09c11290f7d1164306fd57e" + "hash": "3d2890adfca3bdd917e56ee758ab94b9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRulesetConditions.php", @@ -716,7 +716,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php", - "hash": "ccb67fbd81aebfea262b86c2317ec132" + "hash": "28419c17cb31b085d47e62c44133e918" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GroupMapping.php", @@ -4928,11 +4928,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "f862c10b18535281f438d1fbec0c3e32" + "hash": "eadb888e2b1dee60ea84bb8b70075b10" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateOrgRuleset\/Request\/ApplicationJson.php", - "hash": "39b7d2a55e49ac5dde21a5f6427f3ed9" + "hash": "29684c2a585e29ee16fbbf120372d48e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Teams\/Create\/Request\/ApplicationJson.php", @@ -5648,11 +5648,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/CreateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "b61167971914b1bcb506e43350a796dc" + "hash": "6f6de7b2ebddf01f660dabe888b2274c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateRepoRuleset\/Request\/ApplicationJson.php", - "hash": "ecdd0e1b756a0a481dc77604e510232d" + "hash": "e23e95eab2e66492f861630155e456bc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanning\/UpdateAlert\/Request\/ApplicationJson.php", @@ -5908,7 +5908,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/CodeScanning.php", - "hash": "b745c2ac99ae7ed03eaf690a3f3cc02d" + "hash": "8ab2e0da8b21cf7ad476944cdaf1cba0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/SecretScanning.php", @@ -5948,7 +5948,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Orgs.php", - "hash": "fa6719d3b16d3c7ed97317f8143119da" + "hash": "3a43add2225178c0d970364615e584a5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Oidc.php", @@ -12264,15 +12264,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php", - "hash": "39670611879d73026aee4d8e3812db0d" + "hash": "d862c64ef9fef439dd2496e2c2eb8dc8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php", - "hash": "737ff37de9230c4c2524ad695c1f2568" + "hash": "b065631cec0693ca587416f7eff9f92d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php", - "hash": "0d6ccdf8bcb22690fda5a5a4e1b64856" + "hash": "c5ba6c4820a19ce21fd3c075f8224d02" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/SecurityAdvisories\/CreateRepositoryAdvisoryCveRequest\/Response\/ApplicationJson\/Accepted.php", @@ -26080,7 +26080,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Orgs.php", - "hash": "03f580840f84c14ecdfcf0fa630cb18d" + "hash": "e528a961245b48d112ec16e44b019200" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/RateLimit.php", @@ -26484,7 +26484,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Orgs.php", - "hash": "0f9cccf93b4394787c3ef3ac676d573f" + "hash": "acf24809e8fc71b766c79654ef5678aa" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Teams.php", @@ -26556,7 +26556,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Orgs.php", - "hash": "c4c6e36ecaf672e3b257dd0d85204bd8" + "hash": "3f119eb3ddcb244a1e0d6c05c54176ab" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Codespaces.php", @@ -26644,7 +26644,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "77cf4e9f2070d524bd40e99d7a32ad14" + "hash": "d5d24b97e3d3b19899ffeb691b848662" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -26780,7 +26780,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php", - "hash": "043862d61eb9ae45dbc140a1ce4cdb62" + "hash": "b4412ecd1e12199e999030fd32b8cadb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Eight.php", @@ -26808,7 +26808,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Six.php", - "hash": "adeaf18658de3a2a9fa3375adec0e34e" + "hash": "bf7c88c3a4c01bdb06b5d1d33df574ae" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/Eight.php", @@ -29608,11 +29608,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/GetCustomProperty.php", - "hash": "0c01b345b36581c9fb3ead0452410a3b" + "hash": "2e5dc06d252776e99adb3d8255e26e8a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/GetCustomProperty.php", - "hash": "424b49d1f483890314c4f2b4072d6022" + "hash": "52c78806e2f2243098dfc51197c97bfb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/GetCustomPropertyTest.php", @@ -29620,11 +29620,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/CreateOrUpdateCustomProperty.php", - "hash": "da83504afc7e57746fee718fddcec364" + "hash": "8e8ff79287ee150e4c600f4ec9ce9748" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/CreateOrUpdateCustomProperty.php", - "hash": "1849ff9d1ed3ebd66d2afefaac6c7c53" + "hash": "263b863e28cdf2940c41737b6c2732c9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/CreateOrUpdateCustomPropertyTest.php", @@ -29632,11 +29632,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Orgs\/RemoveCustomProperty.php", - "hash": "b3f338c94a4e42cb340eccd0c0355b8f" + "hash": "782b37a07f8a98225d51b848928f664e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Orgs\/RemoveCustomProperty.php", - "hash": "c3a7c121b646cbb605c26cf6f2d62c40" + "hash": "d7dc63edb35c72ebd58a03a15330b4fc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Orgs\/RemoveCustomPropertyTest.php", @@ -29820,11 +29820,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "d4327cff15ed6791470ae0084e08653d" + "hash": "41febd03f7b2f60942f240c33d6b4c4b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "8b24c3d0b4051f8068328f06fbbc0f44" + "hash": "ca14acd0f9303f804b29b38b1a09204e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Orgs/CreateOrUpdateCustomProperty.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Orgs/CreateOrUpdateCustomProperty.php index 4eabe11ed3a..882379c5f35 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Orgs/CreateOrUpdateCustomProperty.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Orgs/CreateOrUpdateCustomProperty.php @@ -25,7 +25,7 @@ final class CreateOrUpdateCustomProperty public const OPERATION_MATCH = 'PUT /orgs/{org}/properties/schema/{custom_property_name}'; /**The organization name. The name is not case sensitive. **/ private string $org; - /**The custom property name. The name is case sensitive. **/ + /**The custom property name **/ private string $customPropertyName; public function __construct(private readonly SchemaValidator $requestSchemaValidator, private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Properties\Schema\CustomPropertyName $hydrator, string $org, string $customPropertyName) diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Orgs/GetCustomProperty.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Orgs/GetCustomProperty.php index 5b3bc26c92f..7f988ba0bef 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Orgs/GetCustomProperty.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Orgs/GetCustomProperty.php @@ -24,7 +24,7 @@ final class GetCustomProperty public const OPERATION_MATCH = 'GET /orgs/{org}/properties/schema/{custom_property_name}'; /**The organization name. The name is not case sensitive. **/ private string $org; - /**The custom property name. The name is case sensitive. **/ + /**The custom property name **/ private string $customPropertyName; public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Properties\Schema\CustomPropertyName $hydrator, string $org, string $customPropertyName) diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Orgs/RemoveCustomProperty.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Orgs/RemoveCustomProperty.php index e8837b0f102..e8aea6d24fb 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Orgs/RemoveCustomProperty.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Orgs/RemoveCustomProperty.php @@ -25,7 +25,7 @@ final class RemoveCustomProperty public const OPERATION_MATCH = 'DELETE /orgs/{org}/properties/schema/{custom_property_name}'; /**The organization name. The name is not case sensitive. **/ private string $org; - /**The custom property name. The name is case sensitive. **/ + /**The custom property name **/ private string $customPropertyName; public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Properties\Schema\CustomPropertyName $hydrator, string $org, string $customPropertyName) diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/CreateOrUpdateCustomProperty.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/CreateOrUpdateCustomProperty.php index 850fd588df3..df7219d39c1 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/CreateOrUpdateCustomProperty.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/CreateOrUpdateCustomProperty.php @@ -24,7 +24,6 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return */ public function call(string $org, string $customPropertyName, array $params): CustomProperty { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Orgs\CreateOrUpdateCustomProperty($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org, $customPropertyName); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/GetCustomProperty.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/GetCustomProperty.php index f716977eba1..8e3249e1453 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/GetCustomProperty.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/GetCustomProperty.php @@ -24,7 +24,6 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return */ public function call(string $org, string $customPropertyName): CustomProperty { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Orgs\GetCustomProperty($this->responseSchemaValidator, $this->hydrator, $org, $customPropertyName); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/RemoveCustomProperty.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/RemoveCustomProperty.php index a74cee5b436..ce97202937b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/RemoveCustomProperty.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/RemoveCustomProperty.php @@ -24,7 +24,6 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return */ public function call(string $org, string $customPropertyName): WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Orgs\RemoveCustomProperty($this->responseSchemaValidator, $this->hydrator, $org, $customPropertyName); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Orgs.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Orgs.php index 40e34fd63f7..f2bf62ca7df 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Orgs.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Orgs.php @@ -347,7 +347,6 @@ public function revokeAllOrgRolesUser(array $params): WithoutBody return $operator->call($arguments['org'], $arguments['username']); } - /** @return */ public function removeCustomProperty(array $params): WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php index e08dd9a0e31..923d4061548 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Six.php @@ -18,6 +18,7 @@ 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] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Orgs.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Orgs.php index 6d15b8ad6d1..d50afcb67cd 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Orgs.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Orgs.php @@ -1209,7 +1209,6 @@ public function listPatGrantRepositories(array $params): iterable return $operator->call($arguments['org'], $arguments['pat_id'], $arguments['per_page'], $arguments['page']); } - /** @return */ public function getCustomProperty(array $params): CustomProperty { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php index cdf09c07168..5017e8cf367 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php @@ -83,7 +83,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Schema\CustomProperty|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): ActionsCacheUsageOrgEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|ActionsBillingUsage|AdvancedSecurityActiveCommitters|GetAllCostCenters|PackagesBillingUsage|CombinedBillingUsage|BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|WithoutBody|CodeSecurityConfiguration|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|ScimEnterpriseGroupList|ScimEnterpriseUserList|ScimUserList|TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Orgs.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Orgs.php index 5af585084c0..b3bf53958d6 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Orgs.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Orgs.php @@ -160,7 +160,6 @@ public function assignUserToOrgRole(array $params): WithoutBody return $operator->call($arguments['org'], $arguments['username'], $arguments['role_id']); } - /** @return */ public function createOrUpdateCustomProperty(array $params): CustomProperty { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Six.php index 1b7a82bf8f5..8ba749f1e2d 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Put/Six.php @@ -20,6 +20,7 @@ public function __construct(private Routers $routers) { } + /** @return |Schema\CustomProperty */ public function call(string $call, array $params, array $pathChunks): WithoutBody|EmptyObject|CustomProperty|RepositoryInvitation|FileCommit|Environment|RepositoryRuleset { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Operation/Orgs.php b/clients/GitHubEnterpriseCloud/src/Operation/Orgs.php index 599cedf240a..fa136d16496 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Orgs.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Orgs.php @@ -547,19 +547,16 @@ public function createOrUpdateCustomProperties(string $org, array $params): iter return $this->operators->orgs👷CreateOrUpdateCustomProperties()->call($org, $params); } - /** @return */ public function getCustomProperty(string $org, string $customPropertyName): CustomProperty { return $this->operators->orgs👷GetCustomProperty()->call($org, $customPropertyName); } - /** @return */ public function createOrUpdateCustomProperty(string $org, string $customPropertyName, array $params): CustomProperty { return $this->operators->orgs👷CreateOrUpdateCustomProperty()->call($org, $customPropertyName, $params); } - /** @return */ public function removeCustomProperty(string $org, string $customPropertyName): WithoutBody { return $this->operators->orgs👷RemoveCustomProperty()->call($org, $customPropertyName); diff --git a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index 8c7506efb4e..59bb84b1bee 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -1612,15 +1612,15 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/properties/schema/{custom_property_name}') { - return $this->typeResolver->resolve(''); + return $this->typeResolver->resolve('Schema\\CustomProperty'); } if ($call === 'PUT /orgs/{org}/properties/schema/{custom_property_name}') { - return $this->typeResolver->resolve(''); + return $this->typeResolver->resolve('Schema\\CustomProperty'); } if ($call === 'DELETE /orgs/{org}/properties/schema/{custom_property_name}') { - return $this->typeResolver->resolve(''); + return $this->typeResolver->resolve('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); } if ($call === 'GET /orgs/{org}/properties/values') { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php index e4d537b4a84..d9bda2afc8d 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateOrgRuleset/Request/ApplicationJson.php @@ -54,7 +54,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -62,10 +62,11 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseOwner" ], "type": "string", - "description": "The type of actor that can bypass a ruleset." + "description": "The type of actor that can bypass a ruleset" }, "bypass_mode": { "enum": [ @@ -1149,12 +1150,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" } ], diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php index 2d66fca51f7..d1523829aa9 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/CreateRepoRuleset/Request/ApplicationJson.php @@ -53,7 +53,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -61,10 +61,11 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseOwner" ], "type": "string", - "description": "The type of actor that can bypass a ruleset." + "description": "The type of actor that can bypass a ruleset" }, "bypass_mode": { "enum": [ @@ -930,12 +931,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" } ], diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php index 26ab485ab0f..a9003c7f53a 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateOrgRuleset/Request/ApplicationJson.php @@ -49,7 +49,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -57,10 +57,11 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseOwner" ], "type": "string", - "description": "The type of actor that can bypass a ruleset." + "description": "The type of actor that can bypass a ruleset" }, "bypass_mode": { "enum": [ @@ -1144,12 +1145,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" } ], diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php index 3661a5e3fd3..d0191f16bb2 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/UpdateRepoRuleset/Request/ApplicationJson.php @@ -48,7 +48,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -56,10 +56,11 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseOwner" ], "type": "string", - "description": "The type of actor that can bypass a ruleset." + "description": "The type of actor that can bypass a ruleset" }, "bypass_mode": { "enum": [ @@ -925,12 +926,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" } ], diff --git a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php index 54024daa4fc..ece14ba6b1f 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRuleset.php @@ -72,7 +72,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -80,10 +80,11 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseOwner" ], "type": "string", - "description": "The type of actor that can bypass a ruleset." + "description": "The type of actor that can bypass a ruleset" }, "bypass_mode": { "enum": [ @@ -1247,12 +1248,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" } ], diff --git a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulesetBypassActor.php b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulesetBypassActor.php index 9505e711a5b..d861353363c 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulesetBypassActor.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/RepositoryRulesetBypassActor.php @@ -20,7 +20,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -28,10 +28,11 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseOwner" ], "type": "string", - "description": "The type of actor that can bypass a ruleset." + "description": "The type of actor that can bypass a ruleset" }, "bypass_mode": { "enum": [ @@ -49,13 +50,13 @@ public const SCHEMA_DESCRIPTION = 'An actor that can bypass rules in a ruleset'; public const SCHEMA_EXAMPLE_DATA = '{ "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" }'; /** - * actorId: The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories. - * actorType: The type of actor that can bypass a ruleset. + * actorId: The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories. + * actorType: The type of actor that can bypass a ruleset * bypassMode: When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. */ public function __construct(#[MapFrom('actor_id')] diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetCreated.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetCreated.php index e50e8421e4e..21af1fe2f1f 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetCreated.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetCreated.php @@ -1777,7 +1777,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -1785,10 +1785,11 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseOwner" ], "type": "string", - "description": "The type of actor that can bypass a ruleset." + "description": "The type of actor that can bypass a ruleset" }, "bypass_mode": { "enum": [ @@ -3426,12 +3427,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" } ], diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetDeleted.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetDeleted.php index 2dfda84e955..897176719d5 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetDeleted.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetDeleted.php @@ -1777,7 +1777,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -1785,10 +1785,11 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseOwner" ], "type": "string", - "description": "The type of actor that can bypass a ruleset." + "description": "The type of actor that can bypass a ruleset" }, "bypass_mode": { "enum": [ @@ -3426,12 +3427,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" } ], diff --git a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited.php b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited.php index 62045b7d810..f5acf3ad0d6 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/WebhookRepositoryRulesetEdited.php @@ -1777,7 +1777,7 @@ "integer", "null" ], - "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories." + "description": "The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable for personal repositories." }, "actor_type": { "enum": [ @@ -1785,10 +1785,11 @@ "OrganizationAdmin", "RepositoryRole", "Team", - "DeployKey" + "DeployKey", + "EnterpriseOwner" ], "type": "string", - "description": "The type of actor that can bypass a ruleset." + "description": "The type of actor that can bypass a ruleset" }, "bypass_mode": { "enum": [ @@ -6062,12 +6063,12 @@ "bypass_actors": [ { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" }, { "actor_id": 8, - "actor_type": "DeployKey", + "actor_type": "EnterpriseOwner", "bypass_mode": "always" } ], diff --git a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php index eb39ed77600..5d2b3afd318 100644 --- a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php @@ -409,9 +409,9 @@ function authHeader(): string assertType('', $client->call('POST /orgs/{org}/projects')); assertType('Observable', $client->call('GET /orgs/{org}/properties/schema')); assertType('Observable', $client->call('PATCH /orgs/{org}/properties/schema')); -assertType('', $client->call('GET /orgs/{org}/properties/schema/{custom_property_name}')); -assertType('', $client->call('PUT /orgs/{org}/properties/schema/{custom_property_name}')); -assertType('', $client->call('DELETE /orgs/{org}/properties/schema/{custom_property_name}')); +assertType('Schema\\CustomProperty', $client->call('GET /orgs/{org}/properties/schema/{custom_property_name}')); +assertType('Schema\\CustomProperty', $client->call('PUT /orgs/{org}/properties/schema/{custom_property_name}')); +assertType('\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('DELETE /orgs/{org}/properties/schema/{custom_property_name}')); assertType('Observable', $client->call('GET /orgs/{org}/properties/values')); assertType('Observable', $client->call('LIST /orgs/{org}/properties/values')); assertType('', $client->call('PATCH /orgs/{org}/properties/values')); diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index 28ad73ed604..cc60302218b 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -3086,6 +3086,9 @@ paths: get: summary: Get code security and analysis features for an enterprise description: |- + > [!WARNING] + > **Deprecation notice:** The ability to fetch code security and analysis settings for an enterprise is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-09-27-upcoming-replacement-of-enterprise-code-security-enablement-ui-and-apis). + Gets code security and analysis settings for the specified enterprise. The authenticated user must be an administrator of the enterprise in order to use this endpoint. @@ -3116,9 +3119,15 @@ paths: enabledForGitHubApps: false category: enterprise-admin subcategory: code-security-and-analysis + deprecationDate: '2024-09-27' + removalDate: '2025-09-27' + deprecated: true patch: summary: Update code security and analysis features for an enterprise description: |- + > [!WARNING] + > **Deprecation notice:** The ability to update code security and analysis settings for an enterprise is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-09-27-upcoming-replacement-of-enterprise-code-security-enablement-ui-and-apis). + Updates the settings for advanced security, Dependabot alerts, secret scanning, and push protection for new repositories in an enterprise. The authenticated user must be an administrator of the enterprise to use this endpoint. @@ -3199,6 +3208,9 @@ paths: enabledForGitHubApps: false category: enterprise-admin subcategory: code-security-and-analysis + deprecationDate: '2024-09-27' + removalDate: '2025-09-27' + deprecated: true "/enterprises/{enterprise}/consumed-licenses": get: summary: List enterprise consumed licenses @@ -3903,6 +3915,9 @@ paths: post: summary: Enable or disable a security feature description: |- + > [!WARNING] + > **Deprecation notice:** The ability to enable or disable a security feature for an enterprise is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-09-27-upcoming-replacement-of-enterprise-code-security-enablement-ui-and-apis). + Enables or disables the specified security feature for all repositories in an enterprise. The authenticated user must be an administrator of the enterprise to use this endpoint. @@ -3931,6 +3946,9 @@ paths: enabledForGitHubApps: false category: enterprise-admin subcategory: code-security-and-analysis + deprecationDate: '2024-09-27' + removalDate: '2025-09-27' + deprecated: true "/events": get: summary: List public events @@ -35501,7 +35519,7 @@ paths: patch: summary: Update an issue description: |- - Issue owners and users with push access can edit an issue. + Issue owners and users with push access or Triage role can edit an issue. This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." @@ -81474,8 +81492,9 @@ components: - 'null' description: The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, - this should be null. `OrganizationAdmin` is not applicable for personal - repositories. + this should be null. If `actor_type` is `EnterpriseOwner`, `actor_id` + is ignored. `OrganizationAdmin` and `EnterpriseOwner` are not applicable + for personal repositories. actor_type: type: string enum: @@ -81484,7 +81503,8 @@ components: - RepositoryRole - Team - DeployKey - description: The type of actor that can bypass a ruleset. + - EnterpriseOwner + description: The type of actor that can bypass a ruleset bypass_mode: type: string description: When the specified actor can bypass the ruleset. `pull_request` @@ -233227,7 +233247,7 @@ components: type: integer custom-property-name: name: custom_property_name - description: The custom property name. The name is case sensitive. + description: The custom property name in: path required: true schema: