Skip to content

Commit 738d035

Browse files
authored
Merge pull request #1200 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-a520a0da1346bda8d17b35be14a878ac-from-1.1.4-a520a0da1346bda8d17b35be14a878ac
2 parents 24da787 + aeea531 commit 738d035

File tree

7 files changed

+20
-3082
lines changed

7 files changed

+20
-3082
lines changed

clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "161166e01fd79918e39c52792abbb175",
2+
"specHash": "a520a0da1346bda8d17b35be14a878ac",
33
"generatedFiles": {
44
"files": [
55
{
@@ -2518,10 +2518,6 @@
25182518
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertResolved.php",
25192519
"hash": "d0f4a424db46223df52dc50258616a41"
25202520
},
2521-
{
2522-
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertRevoked.php",
2523-
"hash": "fcf278ed143ff2e9f0c8925662ae7234"
2524-
},
25252521
{
25262522
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAdvisoryPublished.php",
25272523
"hash": "8ce6145c3a78150cde0ae41463a5fb2e"
@@ -6032,7 +6028,7 @@
60326028
},
60336029
{
60346030
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/WebHooks.php",
6035-
"hash": "82607bf4038e9941900674dbd688a47b"
6031+
"hash": "342f51df759bc3b169373ca9aa71e6b3"
60366032
},
60376033
{
60386034
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietEB301A03\/Tiet504AADCF\/Tiet2FEB0C19\/TietF58BE94A.php",
@@ -29104,7 +29100,7 @@
2910429100
},
2910529101
{
2910629102
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
29107-
"hash": "6ae1cff85d05f6059c812c1c933a8411"
29103+
"hash": "c327a33914c9241b505aaedfa15b6df9"
2910829104
},
2910929105
{
2911029106
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php",
@@ -30192,7 +30188,7 @@
3019230188
},
3019330189
{
3019430190
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/WebHook\/SecretScanningAlert.php",
30195-
"hash": "647284d1e43462723735ff2195f5a72b"
30191+
"hash": "ea01018c9c2a62ddac165ce9e04f64b4"
3019630192
},
3019730193
{
3019830194
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/WebHook\/SecretScanningAlertLocation.php",
@@ -30476,7 +30472,7 @@
3047630472
},
3047730473
{
3047830474
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecretScanningAlert.php",
30479-
"hash": "7e4856eb8afea8fea5b9cc358d0a02af"
30475+
"hash": "5f064a9a6a52f8080f76032a9f63a513"
3048030476
},
3048130477
{
3048230478
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecretScanningAlertLocation.php",

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecretScanningAlert.php

Lines changed: 0 additions & 208 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertCreated;
2020
use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertReopened;
2121
use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertResolved;
22-
use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertRevoked;
2322
use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertValidated;
2423
use EventSauce\ObjectHydrator\IterableList;
2524
use EventSauce\ObjectHydrator\ObjectMapper;
@@ -71,7 +70,6 @@ public function hydrateObject(string $className, array $payload): object
7170
'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload),
7271
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertReopened' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertReopened($payload),
7372
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertResolved' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertResolved($payload),
74-
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertRevoked' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertRevoked($payload),
7573
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertValidated' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertValidated($payload),
7674
'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload),
7775
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
@@ -4168,156 +4166,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
41684166
}
41694167
}
41704168

4171-
private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseCloud⚡️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\GitHubEnterpriseCloud\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\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertRevoked', $exception, stack: $this->hydrationStack);
4318-
}
4319-
}
4320-
43214169
private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertValidated(array $payload): WebhookSecretScanningAlertValidated
43224170
{
43234171
$properties = [];
@@ -4534,7 +4382,6 @@ public function serializeObjectOfType(object $object, string $className): mixed
45344382
'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object),
45354383
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertReopened' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertReopened($object),
45364384
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertResolved' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertResolved($object),
4537-
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertRevoked' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertRevoked($object),
45384385
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSecretScanningAlertValidated' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertValidated($object),
45394386
default => throw new LogicException('No serialization defined for $className'),
45404387
};
@@ -6679,61 +6526,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
66796526
return $result;
66806527
}
66816528

6682-
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($organization);
6719-
after_organization: $result['organization'] = $organization;
6720-
6721-
$repository = $object->repository;
6722-
$repository = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️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⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($sender);
6732-
after_sender: $result['sender'] = $sender;
6733-
6734-
return $result;
6735-
}
6736-
67376529
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookSecretScanningAlertValidated(mixed $object): mixed
67386530
{
67396531
assert($object instanceof WebhookSecretScanningAlertValidated);

0 commit comments

Comments
 (0)