|
19 | 19 | use ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertCreated;
|
20 | 20 | use ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertReopened;
|
21 | 21 | use ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertResolved;
|
22 |
| -use ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertRevoked; |
23 | 22 | use ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertValidated;
|
24 | 23 | use EventSauce\ObjectHydrator\IterableList;
|
25 | 24 | use EventSauce\ObjectHydrator\ObjectMapper;
|
@@ -71,7 +70,6 @@ public function hydrateObject(string $className, array $payload): object
|
71 | 70 | 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($payload),
|
72 | 71 | 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertReopened' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertReopened($payload),
|
73 | 72 | 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertResolved' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertResolved($payload),
|
74 |
| - 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertRevoked' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertRevoked($payload), |
75 | 73 | 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertValidated' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertValidated($payload),
|
76 | 74 | 'ApiClients\Client\GitHub\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload),
|
77 | 75 | default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
|
@@ -4168,156 +4166,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Webh
|
4168 | 4166 | }
|
4169 | 4167 | }
|
4170 | 4168 |
|
4171 |
| - private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertRevoked(array $payload): WebhookSecretScanningAlertRevoked |
4172 |
| - { |
4173 |
| - $properties = []; |
4174 |
| - $missingFields = []; |
4175 |
| - try { |
4176 |
| - $value = $payload['action'] ?? null; |
4177 |
| - |
4178 |
| - if ($value === null) { |
4179 |
| - $missingFields[] = 'action'; |
4180 |
| - goto after_action; |
4181 |
| - } |
4182 |
| - |
4183 |
| - $properties['action'] = $value; |
4184 |
| - |
4185 |
| - after_action: |
4186 |
| - |
4187 |
| - $value = $payload['alert'] ?? null; |
4188 |
| - |
4189 |
| - if ($value === null) { |
4190 |
| - $missingFields[] = 'alert'; |
4191 |
| - goto after_alert; |
4192 |
| - } |
4193 |
| - |
4194 |
| - if (is_array($value)) { |
4195 |
| - try { |
4196 |
| - $this->hydrationStack[] = 'alert'; |
4197 |
| - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecretScanningAlertWebhook($value); |
4198 |
| - } finally { |
4199 |
| - array_pop($this->hydrationStack); |
4200 |
| - } |
4201 |
| - } |
4202 |
| - |
4203 |
| - $properties['alert'] = $value; |
4204 |
| - |
4205 |
| - after_alert: |
4206 |
| - |
4207 |
| - $value = $payload['enterprise'] ?? null; |
4208 |
| - |
4209 |
| - if ($value === null) { |
4210 |
| - $properties['enterprise'] = null; |
4211 |
| - goto after_enterprise; |
4212 |
| - } |
4213 |
| - |
4214 |
| - if (is_array($value)) { |
4215 |
| - try { |
4216 |
| - $this->hydrationStack[] = 'enterprise'; |
4217 |
| - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks($value); |
4218 |
| - } finally { |
4219 |
| - array_pop($this->hydrationStack); |
4220 |
| - } |
4221 |
| - } |
4222 |
| - |
4223 |
| - $properties['enterprise'] = $value; |
4224 |
| - |
4225 |
| - after_enterprise: |
4226 |
| - |
4227 |
| - $value = $payload['installation'] ?? null; |
4228 |
| - |
4229 |
| - if ($value === null) { |
4230 |
| - $properties['installation'] = null; |
4231 |
| - goto after_installation; |
4232 |
| - } |
4233 |
| - |
4234 |
| - if (is_array($value)) { |
4235 |
| - try { |
4236 |
| - $this->hydrationStack[] = 'installation'; |
4237 |
| - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($value); |
4238 |
| - } finally { |
4239 |
| - array_pop($this->hydrationStack); |
4240 |
| - } |
4241 |
| - } |
4242 |
| - |
4243 |
| - $properties['installation'] = $value; |
4244 |
| - |
4245 |
| - after_installation: |
4246 |
| - |
4247 |
| - $value = $payload['organization'] ?? null; |
4248 |
| - |
4249 |
| - if ($value === null) { |
4250 |
| - $properties['organization'] = null; |
4251 |
| - goto after_organization; |
4252 |
| - } |
4253 |
| - |
4254 |
| - if (is_array($value)) { |
4255 |
| - try { |
4256 |
| - $this->hydrationStack[] = 'organization'; |
4257 |
| - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($value); |
4258 |
| - } finally { |
4259 |
| - array_pop($this->hydrationStack); |
4260 |
| - } |
4261 |
| - } |
4262 |
| - |
4263 |
| - $properties['organization'] = $value; |
4264 |
| - |
4265 |
| - after_organization: |
4266 |
| - |
4267 |
| - $value = $payload['repository'] ?? null; |
4268 |
| - |
4269 |
| - if ($value === null) { |
4270 |
| - $missingFields[] = 'repository'; |
4271 |
| - goto after_repository; |
4272 |
| - } |
4273 |
| - |
4274 |
| - if (is_array($value)) { |
4275 |
| - try { |
4276 |
| - $this->hydrationStack[] = 'repository'; |
4277 |
| - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks($value); |
4278 |
| - } finally { |
4279 |
| - array_pop($this->hydrationStack); |
4280 |
| - } |
4281 |
| - } |
4282 |
| - |
4283 |
| - $properties['repository'] = $value; |
4284 |
| - |
4285 |
| - after_repository: |
4286 |
| - |
4287 |
| - $value = $payload['sender'] ?? null; |
4288 |
| - |
4289 |
| - if ($value === null) { |
4290 |
| - $properties['sender'] = null; |
4291 |
| - goto after_sender; |
4292 |
| - } |
4293 |
| - |
4294 |
| - if (is_array($value)) { |
4295 |
| - try { |
4296 |
| - $this->hydrationStack[] = 'sender'; |
4297 |
| - $value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($value); |
4298 |
| - } finally { |
4299 |
| - array_pop($this->hydrationStack); |
4300 |
| - } |
4301 |
| - } |
4302 |
| - |
4303 |
| - $properties['sender'] = $value; |
4304 |
| - |
4305 |
| - after_sender: |
4306 |
| - } catch (Throwable $exception) { |
4307 |
| - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertRevoked', $exception, stack: $this->hydrationStack); |
4308 |
| - } |
4309 |
| - |
4310 |
| - if (count($missingFields) > 0) { |
4311 |
| - throw UnableToHydrateObject::dueToMissingFields(WebhookSecretScanningAlertRevoked::class, $missingFields, stack: $this->hydrationStack); |
4312 |
| - } |
4313 |
| - |
4314 |
| - try { |
4315 |
| - return new WebhookSecretScanningAlertRevoked(...$properties); |
4316 |
| - } catch (Throwable $exception) { |
4317 |
| - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertRevoked', $exception, stack: $this->hydrationStack); |
4318 |
| - } |
4319 |
| - } |
4320 |
| - |
4321 | 4169 | private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertValidated(array $payload): WebhookSecretScanningAlertValidated
|
4322 | 4170 | {
|
4323 | 4171 | $properties = [];
|
@@ -4534,7 +4382,6 @@ public function serializeObjectOfType(object $object, string $className): mixed
|
4534 | 4382 | 'ApiClients\Client\GitHub\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($object),
|
4535 | 4383 | 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertReopened' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertReopened($object),
|
4536 | 4384 | 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertResolved' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertResolved($object),
|
4537 |
| - 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertRevoked' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertRevoked($object), |
4538 | 4385 | 'ApiClients\Client\GitHub\Schema\WebhookSecretScanningAlertValidated' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertValidated($object),
|
4539 | 4386 | default => throw new LogicException('No serialization defined for $className'),
|
4540 | 4387 | };
|
@@ -6679,61 +6526,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
|
6679 | 6526 | return $result;
|
6680 | 6527 | }
|
6681 | 6528 |
|
6682 |
| - private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertRevoked(mixed $object): mixed |
6683 |
| - { |
6684 |
| - assert($object instanceof WebhookSecretScanningAlertRevoked); |
6685 |
| - $result = []; |
6686 |
| - |
6687 |
| - $action = $object->action; |
6688 |
| - after_action: $result['action'] = $action; |
6689 |
| - |
6690 |
| - $alert = $object->alert; |
6691 |
| - $alert = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecretScanningAlertWebhook($alert); |
6692 |
| - after_alert: $result['alert'] = $alert; |
6693 |
| - |
6694 |
| - $enterprise = $object->enterprise; |
6695 |
| - |
6696 |
| - if ($enterprise === null) { |
6697 |
| - goto after_enterprise; |
6698 |
| - } |
6699 |
| - |
6700 |
| - $enterprise = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️EnterpriseWebhooks($enterprise); |
6701 |
| - after_enterprise: $result['enterprise'] = $enterprise; |
6702 |
| - |
6703 |
| - $installation = $object->installation; |
6704 |
| - |
6705 |
| - if ($installation === null) { |
6706 |
| - goto after_installation; |
6707 |
| - } |
6708 |
| - |
6709 |
| - $installation = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleInstallation($installation); |
6710 |
| - after_installation: $result['installation'] = $installation; |
6711 |
| - |
6712 |
| - $organization = $object->organization; |
6713 |
| - |
6714 |
| - if ($organization === null) { |
6715 |
| - goto after_organization; |
6716 |
| - } |
6717 |
| - |
6718 |
| - $organization = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️OrganizationSimpleWebhooks($organization); |
6719 |
| - after_organization: $result['organization'] = $organization; |
6720 |
| - |
6721 |
| - $repository = $object->repository; |
6722 |
| - $repository = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️RepositoryWebhooks($repository); |
6723 |
| - after_repository: $result['repository'] = $repository; |
6724 |
| - |
6725 |
| - $sender = $object->sender; |
6726 |
| - |
6727 |
| - if ($sender === null) { |
6728 |
| - goto after_sender; |
6729 |
| - } |
6730 |
| - |
6731 |
| - $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUserWebhooks($sender); |
6732 |
| - after_sender: $result['sender'] = $sender; |
6733 |
| - |
6734 |
| - return $result; |
6735 |
| - } |
6736 |
| - |
6737 | 6529 | private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookSecretScanningAlertValidated(mixed $object): mixed
|
6738 | 6530 | {
|
6739 | 6531 | assert($object instanceof WebhookSecretScanningAlertValidated);
|
|
0 commit comments