diff --git a/clients/GitHub/README.md b/clients/GitHub/README.md index cd29204cd8f..e798c5a67bd 100644 --- a/clients/GitHub/README.md +++ b/clients/GitHub/README.md @@ -21553,7 +21553,7 @@ You can find more about this operation over at the [API method documentation](ht ### repos/list-tag-protection -List tag protection states for a repository +Deprecated - List tag protection states for a repository Using the `call` method: ```php @@ -21570,12 +21570,12 @@ $client->operations()->repos()->listTagProtection( owner: 'generated', ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/tags#list-tag-protection-states-for-a-repository). +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/tags#deprecated---list-tag-protection-states-for-a-repository). ### repos/create-tag-protection -Create a tag protection state for a repository +Deprecated - Create a tag protection state for a repository Using the `call` method: ```php @@ -21592,12 +21592,12 @@ $client->operations()->repos()->createTagProtection( owner: 'generated', ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/tags#create-a-tag-protection-state-for-a-repository). +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/tags#deprecated---create-a-tag-protection-state-for-a-repository). ### repos/delete-tag-protection -Delete a tag protection state for a repository +Deprecated - Delete a tag protection state for a repository Using the `call` method: ```php @@ -21616,7 +21616,7 @@ $client->operations()->repos()->deleteTagProtection( owner: 'generated', ); ``` -You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/tags#delete-a-tag-protection-state-for-a-repository). +You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/repos/tags#deprecated---delete-a-tag-protection-state-for-a-repository). ### repos/download-tarball-archive diff --git a/clients/GitHub/etc/openapi-client-generator.state b/clients/GitHub/etc/openapi-client-generator.state index 5b8ef9cfbad..066fee79be5 100644 --- a/clients/GitHub/etc/openapi-client-generator.state +++ b/clients/GitHub/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "7b81f53085c7eb703517cc9edd6bed5e", + "specHash": "165dc4edaf3899f8fa74f18ab70adbb6", "generatedFiles": { "files": [ { @@ -1780,7 +1780,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookFork.php", - "hash": "219d173d08eed559835d437d5e781949" + "hash": "149c23f333a44134601e9d7075e06671" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookGithubAppAuthorizationRevoked.php", @@ -3488,7 +3488,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookFork\/Forkee.php", - "hash": "e1aa0765ec72888ffd864ec2417e748a" + "hash": "005633dcb3201975a6f12481234f7c3f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookFork\/Forkee\/License.php", @@ -27236,7 +27236,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "99249ec5532c0e46a08937acb5501da3" + "hash": "f8a62fdffbd42820e452155cf51ca62f" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSimpleWebhooks.php", @@ -27782,10 +27782,6 @@ "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet822B8B83\/Tiet93E9FF34\/Tiet64571DFE\/Tiet4D2FA622.php", "hash": "04a6477eb2edebc4797b68dc827857e2" }, - { - "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookFork\/Forkee\/CustomProperties.php", - "hash": "103d90f7b9368728a7cc4b2348bc9797" - }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Changes\/OldRepository\/CustomProperties.php", "hash": "c80cb58f8a896af192bbf5644a78c021" @@ -28236,7 +28232,7 @@ }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Fork.php", - "hash": "a967f1db50c975232fad5125c8964d5c" + "hash": "926cc24d71e6c029fb051ac43336576d" }, { "name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/GithubAppAuthorization.php", diff --git a/clients/GitHub/src/Internal/Hydrator/WebHook/Fork.php b/clients/GitHub/src/Internal/Hydrator/WebHook/Fork.php index 6695f7a2733..e473c31b6c6 100644 --- a/clients/GitHub/src/Internal/Hydrator/WebHook/Fork.php +++ b/clients/GitHub/src/Internal/Hydrator/WebHook/Fork.php @@ -8,13 +8,13 @@ use ApiClients\Client\GitHub\Schema\LicenseSimple; use ApiClients\Client\GitHub\Schema\OrganizationSimpleWebhooks; use ApiClients\Client\GitHub\Schema\RepositoryWebhooks; +use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties; use ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository; use ApiClients\Client\GitHub\Schema\SimpleInstallation; use ApiClients\Client\GitHub\Schema\SimpleUser; use ApiClients\Client\GitHub\Schema\SimpleUserWebhooks; use ApiClients\Client\GitHub\Schema\WebhookFork; use ApiClients\Client\GitHub\Schema\WebhookFork\Forkee; -use ApiClients\Client\GitHub\Schema\WebhookFork\Forkee\CustomProperties; use ApiClients\Client\GitHub\Schema\WebhookFork\Forkee\License; use ApiClients\Client\GitHub\Schema\WebhookFork\Forkee\Owner; use ApiClients\Client\GitHub\Schema\WebhookFork\Forkee\Permissions; @@ -69,7 +69,6 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload), 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload), - 'ApiClients\Client\GitHub\Schema\WebhookFork\Forkee\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookFork⚡️Forkee⚡️CustomProperties($payload), 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -557,26 +556,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh after_createdAt: - $value = $payload['custom_properties'] ?? null; - - if ($value === null) { - $properties['customProperties'] = null; - goto after_customProperties; - } - - if (is_array($value)) { - try { - $this->hydrationStack[] = 'customProperties'; - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookFork⚡️Forkee⚡️CustomProperties($value); - } finally { - array_pop($this->hydrationStack); - } - } - - $properties['customProperties'] = $value; - - after_customProperties: - $value = $payload['default_branch'] ?? null; if ($value === null) { @@ -5106,13 +5085,13 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Simp } } - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookFork⚡️Forkee⚡️CustomProperties(array $payload): CustomProperties + private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; $missingFields = []; try { } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookFork\Forkee\CustomProperties', $exception, stack: $this->hydrationStack); + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack); } if (count($missingFields) > 0) { @@ -5121,26 +5100,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh try { return new CustomProperties(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookFork\Forkee\CustomProperties', $exception, stack: $this->hydrationStack); - } - } - - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): \ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties - { - $properties = []; - $missingFields = []; - try { - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new \ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties(...$properties); } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack); } @@ -5452,15 +5411,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema $createdAt = $object->createdAt; after_createdAt: $result['created_at'] = $createdAt; - $customProperties = $object->customProperties; - - if ($customProperties === null) { - goto after_customProperties; - } - - $customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookFork⚡️Forkee⚡️CustomProperties($customProperties); - after_customProperties: $result['custom_properties'] = $customProperties; - $defaultBranch = $object->defaultBranch; after_defaultBranch: $result['default_branch'] = $defaultBranch; diff --git a/clients/GitHub/src/Internal/Hydrators.php b/clients/GitHub/src/Internal/Hydrators.php index 00cd3daa57a..e3a359f3386 100644 --- a/clients/GitHub/src/Internal/Hydrators.php +++ b/clients/GitHub/src/Internal/Hydrators.php @@ -968,7 +968,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\CheckRun', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\Deployment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\Deployment\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\Deployment\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\Deployment\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\Deployment\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\DeploymentStatus', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\DeploymentStatus\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\DeploymentStatus\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\DeploymentStatus\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\DeploymentStatus\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\WorkflowRun', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\WorkflowRun\\Actor', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\WorkflowRun\\HeadRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\WorkflowRun\\HeadRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\WorkflowRun\\Repository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\WorkflowRun\\Repository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\WorkflowRun\\TriggeringActor' => $this->getObjectMapperWebHook🪝DeploymentStatus()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionAnswered', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksAnswer', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksAnswer\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksAnswer\\User', '\\ApiClients\\Client\\GitHub\\Schema\\Discussion', '\\ApiClients\\Client\\GitHub\\Schema\\Discussion\\AnswerChosenBy', '\\ApiClients\\Client\\GitHub\\Schema\\Discussion\\Category', '\\ApiClients\\Client\\GitHub\\Schema\\Discussion\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\Discussion\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCategoryChanged', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCategoryChanged\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCategoryChanged\\Changes\\Category', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCategoryChanged\\Changes\\Category\\From', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionClosed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionLabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksLabel', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionLocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionPinned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionReopened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionTransferred', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionTransferred\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionUnanswered', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionUnlabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionUnlocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionUnpinned' => $this->getObjectMapperWebHook🪝Discussion()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCommentCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksComment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksComment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksComment\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCommentDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCommentEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCommentEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCommentEdited\\Changes\\Body' => $this->getObjectMapperWebHook🪝DiscussionComment()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee\\Permissions' => $this->getObjectMapperWebHook🪝Fork()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee\\Permissions' => $this->getObjectMapperWebHook🪝Fork()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookGithubAppAuthorizationRevoked' => $this->getObjectMapperWebHook🪝GithubAppAuthorization()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookGollum' => $this->getObjectMapperWebHook🪝Gollum()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationNewPermissionsAccepted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationSuspend', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationUnsuspend' => $this->getObjectMapperWebHook🪝Installation()->hydrateObject($className, $payload), @@ -1310,7 +1310,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\CheckRun', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\Deployment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\Deployment\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\Deployment\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\Deployment\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\Deployment\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\DeploymentStatus', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\DeploymentStatus\\Creator', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\DeploymentStatus\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\DeploymentStatus\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\DeploymentStatus\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\WorkflowRun', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\WorkflowRun\\Actor', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\WorkflowRun\\HeadRepository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\WorkflowRun\\HeadRepository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\WorkflowRun\\Repository', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\WorkflowRun\\Repository\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDeploymentStatusCreated\\WorkflowRun\\TriggeringActor' => $this->getObjectMapperWebHook🪝DeploymentStatus()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionAnswered', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksAnswer', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksAnswer\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksAnswer\\User', '\\ApiClients\\Client\\GitHub\\Schema\\Discussion', '\\ApiClients\\Client\\GitHub\\Schema\\Discussion\\AnswerChosenBy', '\\ApiClients\\Client\\GitHub\\Schema\\Discussion\\Category', '\\ApiClients\\Client\\GitHub\\Schema\\Discussion\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\Discussion\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCategoryChanged', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCategoryChanged\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCategoryChanged\\Changes\\Category', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCategoryChanged\\Changes\\Category\\From', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionClosed', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionLabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksLabel', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionLocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionPinned', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionReopened', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionTransferred', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionTransferred\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionUnanswered', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionUnlabeled', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionUnlocked', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionUnpinned' => $this->getObjectMapperWebHook🪝Discussion()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCommentCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksComment', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksComment\\Reactions', '\\ApiClients\\Client\\GitHub\\Schema\\WebhooksComment\\User', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCommentDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCommentEdited', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCommentEdited\\Changes', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookDiscussionCommentEdited\\Changes\\Body' => $this->getObjectMapperWebHook🪝DiscussionComment()->serializeObject($object), - '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee\\CustomProperties', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee\\Permissions' => $this->getObjectMapperWebHook🪝Fork()->serializeObject($object), + '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee\\License', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee\\Owner', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookFork\\Forkee\\Permissions' => $this->getObjectMapperWebHook🪝Fork()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookGithubAppAuthorizationRevoked' => $this->getObjectMapperWebHook🪝GithubAppAuthorization()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookGollum' => $this->getObjectMapperWebHook🪝Gollum()->serializeObject($object), '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationCreated', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationDeleted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationNewPermissionsAccepted', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationSuspend', '\\ApiClients\\Client\\GitHub\\Schema\\WebhookInstallationUnsuspend' => $this->getObjectMapperWebHook🪝Installation()->serializeObject($object), diff --git a/clients/GitHub/src/Schema/WebhookFork.php b/clients/GitHub/src/Schema/WebhookFork.php index bd2c13a4768..6c96bb15b3f 100644 --- a/clients/GitHub/src/Schema/WebhookFork.php +++ b/clients/GitHub/src/Schema/WebhookFork.php @@ -276,11 +276,6 @@ } ] }, - "custom_properties": { - "type": "object", - "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - "additionalProperties": true - }, "default_branch": { "type": "string", "description": "The default branch of the repository." @@ -2844,7 +2839,6 @@ "contents_url": "generated", "contributors_url": "https:\\/\\/example.com\\/", "created_at": null, - "custom_properties": [], "default_branch": "generated", "delete_branch_on_merge": false, "deployments_url": "https:\\/\\/example.com\\/", diff --git a/clients/GitHub/src/Schema/WebhookFork/Forkee.php b/clients/GitHub/src/Schema/WebhookFork/Forkee.php index 78846c588a8..9bcd22d7d55 100644 --- a/clients/GitHub/src/Schema/WebhookFork/Forkee.php +++ b/clients/GitHub/src/Schema/WebhookFork/Forkee.php @@ -176,11 +176,6 @@ } ] }, - "custom_properties": { - "type": "object", - "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - "additionalProperties": true - }, "default_branch": { "type": "string", "description": "The default branch of the repository." @@ -650,7 +645,6 @@ "contents_url": "generated", "contributors_url": "https:\\/\\/example.com\\/", "created_at": null, - "custom_properties": [], "default_branch": "generated", "delete_branch_on_merge": false, "deployments_url": "https:\\/\\/example.com\\/", @@ -768,7 +762,6 @@ * allowRebaseMerge: Whether to allow rebase merges for pull requests. * allowSquashMerge: Whether to allow squash merges for pull requests. * archived: Whether the repository is archived. - * customProperties: The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values. * defaultBranch: The default branch of the repository. * deleteBranchOnMerge: Whether to delete head branches when pull requests are merged * disabled: Returns whether or not this repository is disabled. @@ -799,8 +792,7 @@ public function __construct(#[MapFrom('allow_auto_merge')] public string $compareUrl, #[MapFrom('contents_url')] public string $contentsUrl, #[MapFrom('contributors_url')] public string $contributorsUrl, #[MapFrom('created_at')] - public int|string $createdAt, #[MapFrom('custom_properties')] - public Schema\WebhookFork\Forkee\CustomProperties|null $customProperties, #[MapFrom('default_branch')] + public int|string $createdAt, #[MapFrom('default_branch')] public string $defaultBranch, #[MapFrom('delete_branch_on_merge')] public bool|null $deleteBranchOnMerge, #[MapFrom('deployments_url')] public string $deploymentsUrl, public string|null $description, public bool|null $disabled, #[MapFrom('downloads_url')] diff --git a/clients/GitHub/src/Schema/WebhookFork/Forkee/CustomProperties.php b/clients/GitHub/src/Schema/WebhookFork/Forkee/CustomProperties.php deleted file mode 100644 index fb1487c949e..00000000000 --- a/clients/GitHub/src/Schema/WebhookFork/Forkee/CustomProperties.php +++ /dev/null @@ -1,11 +0,0 @@ -