Skip to content

Commit e808b41

Browse files
authored
Merge pull request #1157 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-7ace961aea14155d2380a81a7fa7717c-from-1.1.4-7ace961aea14155d2380a81a7fa7717c
2 parents a6137fe + 4fce83b commit e808b41

File tree

727 files changed

+84000
-159965
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

727 files changed

+84000
-159965
lines changed

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

+946-2,066
Large diffs are not rendered by default.

clients/GitHubEnterpriseCloud/src/Internal/Attribute/CastUnionToType/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated/Rule.php

+28
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,34 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed
123123
}
124124
}
125125

126+
if ($signature === 'parameters|type' && $value['type'] === 'file_path_restriction') {
127+
try {
128+
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Fourteen::class, $value);
129+
} catch (Throwable) {
130+
}
131+
}
132+
133+
if ($signature === 'parameters|type' && $value['type'] === 'max_file_path_length') {
134+
try {
135+
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Fifteen::class, $value);
136+
} catch (Throwable) {
137+
}
138+
}
139+
140+
if ($signature === 'parameters|type' && $value['type'] === 'file_extension_restriction') {
141+
try {
142+
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Sixteen::class, $value);
143+
} catch (Throwable) {
144+
}
145+
}
146+
147+
if ($signature === 'parameters|type' && $value['type'] === 'max_file_size') {
148+
try {
149+
return $hydrator->hydrateObject(Schema\RepositoryRuleset\Rules\Seventeen::class, $value);
150+
} catch (Throwable) {
151+
}
152+
}
153+
126154
if ($signature === 'parameters|type' && $value['type'] === 'workflows') {
127155
try {
128156
return $hydrator->hydrateObject(Schema\RepositoryRuleWorkflows::class, $value);

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

+14-179
Large diffs are not rendered by default.

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

+12-12
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp;
2020
use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Owner;
2121
use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\Deployment\PerformedViaGithubApp\Permissions;
22-
use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\Workflow;
2322
use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\WorkflowRun;
2423
use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\WorkflowRun\Actor;
2524
use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository;
2625
use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\WorkflowRun\Repository;
2726
use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\WorkflowRun\TriggeringActor;
27+
use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksWorkflow;
2828
use EventSauce\ObjectHydrator\IterableList;
2929
use EventSauce\ObjectHydrator\ObjectMapper;
3030
use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems;
@@ -78,7 +78,7 @@ public function hydrateObject(string $className, array $payload): object
7878
'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload),
7979
'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload),
8080
'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($payload),
81-
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\Workflow' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow($payload),
81+
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksWorkflow' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow($payload),
8282
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\WorkflowRun' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun($payload),
8383
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\WorkflowRun\Actor' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️Actor($payload),
8484
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️HeadRepository($payload),
@@ -237,7 +237,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
237237
if (is_array($value)) {
238238
try {
239239
$this->hydrationStack[] = 'workflow';
240-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow($value);
240+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow($value);
241241
} finally {
242242
array_pop($this->hydrationStack);
243243
}
@@ -5040,7 +5040,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
50405040
}
50415041
}
50425042

5043-
private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow(array $payload): Workflow
5043+
private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow(array $payload): WebhooksWorkflow
50445044
{
50455045
$properties = [];
50465046
$missingFields = [];
@@ -5155,17 +5155,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
51555155

51565156
after_url:
51575157
} catch (Throwable $exception) {
5158-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\Workflow', $exception, stack: $this->hydrationStack);
5158+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksWorkflow', $exception, stack: $this->hydrationStack);
51595159
}
51605160

51615161
if (count($missingFields) > 0) {
5162-
throw UnableToHydrateObject::dueToMissingFields(Workflow::class, $missingFields, stack: $this->hydrationStack);
5162+
throw UnableToHydrateObject::dueToMissingFields(WebhooksWorkflow::class, $missingFields, stack: $this->hydrationStack);
51635163
}
51645164

51655165
try {
5166-
return new Workflow(...$properties);
5166+
return new WebhooksWorkflow(...$properties);
51675167
} catch (Throwable $exception) {
5168-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\Workflow', $exception, stack: $this->hydrationStack);
5168+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksWorkflow', $exception, stack: $this->hydrationStack);
51695169
}
51705170
}
51715171

@@ -7679,7 +7679,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
76797679
'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($object),
76807680
'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($object),
76817681
'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUserWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUserWebhooks($object),
7682-
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\Workflow' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow($object),
7682+
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksWorkflow' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow($object),
76837683
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\WorkflowRun' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun($object),
76847684
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\WorkflowRun\Actor' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️Actor($object),
76857685
'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookDeploymentCreated\WorkflowRun\HeadRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️WorkflowRun⚡️HeadRepository($object),
@@ -7802,7 +7802,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
78027802
goto after_workflow;
78037803
}
78047804

7805-
$workflow = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow($workflow);
7805+
$workflow = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow($workflow);
78067806
after_workflow: $result['workflow'] = $workflow;
78077807

78087808
$workflowRun = $object->workflowRun;
@@ -10414,9 +10414,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
1041410414
return $result;
1041510415
}
1041610416

10417-
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookDeploymentCreated⚡️Workflow(mixed $object): mixed
10417+
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksWorkflow(mixed $object): mixed
1041810418
{
10419-
assert($object instanceof Workflow);
10419+
assert($object instanceof WebhooksWorkflow);
1042010420
$result = [];
1042110421

1042210422
$badgeUrl = $object->badgeUrl;

0 commit comments

Comments
 (0)