Skip to content

Commit 173834a

Browse files
authored
Merge pull request #888 from php-api-clients/GitHubEnterprise-3.10/from-1.1.4-7366cedae96851b8b60702dce4a27ae9-from-1.1.4-7366cedae96851b8b60702dce4a27ae9
2 parents e532311 + 8cefdfd commit 173834a

File tree

322 files changed

+1683
-689
lines changed

Some content is hidden

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

322 files changed

+1683
-689
lines changed

clients/GitHubEnterprise-3.10/etc/openapi-client-generator.state

Lines changed: 352 additions & 320 deletions
Large diffs are not rendered by default.

clients/GitHubEnterprise-3.10/src/Internal/Attribute/CastUnionToType/Schema/SecretScanningLocation/Details.php

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,62 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed
5252
} catch (Throwable) {
5353
}
5454
}
55+
56+
if ($signature === 'discussion_title_url') {
57+
try {
58+
return $hydrator->hydrateObject(Schema\SecretScanningLocationDiscussionTitle::class, $value);
59+
} catch (Throwable) {
60+
}
61+
}
62+
63+
if ($signature === 'discussion_body_url') {
64+
try {
65+
return $hydrator->hydrateObject(Schema\SecretScanningLocationDiscussionBody::class, $value);
66+
} catch (Throwable) {
67+
}
68+
}
69+
70+
if ($signature === 'discussion_comment_url') {
71+
try {
72+
return $hydrator->hydrateObject(Schema\SecretScanningLocationDiscussionComment::class, $value);
73+
} catch (Throwable) {
74+
}
75+
}
76+
77+
if ($signature === 'pull_request_title_url') {
78+
try {
79+
return $hydrator->hydrateObject(Schema\SecretScanningLocationPullRequestTitle::class, $value);
80+
} catch (Throwable) {
81+
}
82+
}
83+
84+
if ($signature === 'pull_request_body_url') {
85+
try {
86+
return $hydrator->hydrateObject(Schema\SecretScanningLocationPullRequestBody::class, $value);
87+
} catch (Throwable) {
88+
}
89+
}
90+
91+
if ($signature === 'pull_request_comment_url') {
92+
try {
93+
return $hydrator->hydrateObject(Schema\SecretScanningLocationPullRequestComment::class, $value);
94+
} catch (Throwable) {
95+
}
96+
}
97+
98+
if ($signature === 'pull_request_review_url') {
99+
try {
100+
return $hydrator->hydrateObject(Schema\SecretScanningLocationPullRequestReview::class, $value);
101+
} catch (Throwable) {
102+
}
103+
}
104+
105+
if ($signature === 'pull_request_review_comment_url') {
106+
try {
107+
return $hydrator->hydrateObject(Schema\SecretScanningLocationPullRequestReviewComment::class, $value);
108+
} catch (Throwable) {
109+
}
110+
}
55111
}
56112

57113
return $value;

clients/GitHubEnterprise-3.10/src/Internal/Hydrator/Operation/Meta.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
178178
$properties['packages'] = $value;
179179

180180
after_packages:
181+
182+
$value = $payload['actions'] ?? null;
183+
184+
if ($value === null) {
185+
$properties['actions'] = null;
186+
goto after_actions;
187+
}
188+
189+
$properties['actions'] = $value;
190+
191+
after_actions:
181192
} catch (Throwable $exception) {
182193
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains', $exception, stack: $this->hydrationStack);
183194
}
@@ -411,6 +422,21 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
411422
$packages = $packagesSerializer0->serialize($packages, $this);
412423
after_packages: $result['packages'] = $packages;
413424

425+
$actions = $object->actions;
426+
427+
if ($actions === null) {
428+
goto after_actions;
429+
}
430+
431+
static $actionsSerializer0;
432+
433+
if ($actionsSerializer0 === null) {
434+
$actionsSerializer0 = new SerializeArrayItems(...[]);
435+
}
436+
437+
$actions = $actionsSerializer0->serialize($actions, $this);
438+
after_actions: $result['actions'] = $actions;
439+
414440
return $result;
415441
}
416442

clients/GitHubEnterprise-3.10/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4518,6 +4518,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
45184518
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationIssueTitle' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationIssueTitle($details),
45194519
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationIssueBody' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationIssueBody($details),
45204520
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationIssueComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationIssueComment($details),
4521+
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationDiscussionTitle' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationDiscussionTitle($details),
4522+
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationDiscussionBody' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationDiscussionBody($details),
4523+
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationDiscussionComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationDiscussionComment($details),
4524+
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationPullRequestTitle' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationPullRequestTitle($details),
4525+
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationPullRequestBody' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationPullRequestBody($details),
4526+
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationPullRequestComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationPullRequestComment($details),
4527+
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationPullRequestReview' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationPullRequestReview($details),
4528+
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationPullRequestReviewComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationPullRequestReviewComment($details),
45214529
};
45224530
after_details: $result['details'] = $details;
45234531

clients/GitHubEnterprise-3.10/src/Internal/Operator/Actions/CreateEnvironmentVariable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27+
/** @return */
2728
public function call(int $repositoryId, string $environmentName, array $params): EmptyObject
2829
{
2930
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\CreateEnvironmentVariable($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $repositoryId, $environmentName);

clients/GitHubEnterprise-3.10/src/Internal/Operator/Actions/CreateOrUpdateEnvironmentSecret.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2525
{
2626
}
2727

28+
/** @return */
2829
public function call(int $repositoryId, string $environmentName, string $secretName, array $params): EmptyObject|WithoutBody
2930
{
3031
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\CreateOrUpdateEnvironmentSecret($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $repositoryId, $environmentName, $secretName);

clients/GitHubEnterprise-3.10/src/Internal/Operator/Actions/DeleteEnvironmentSecret.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2222
{
2323
}
2424

25+
/** @return */
2526
public function call(int $repositoryId, string $environmentName, string $secretName): WithoutBody
2627
{
2728
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\DeleteEnvironmentSecret($repositoryId, $environmentName, $secretName);

clients/GitHubEnterprise-3.10/src/Internal/Operator/Actions/DeleteEnvironmentVariable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2222
{
2323
}
2424

25+
/** @return */
2526
public function call(int $repositoryId, string $name, string $environmentName): WithoutBody
2627
{
2728
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\DeleteEnvironmentVariable($repositoryId, $name, $environmentName);

clients/GitHubEnterprise-3.10/src/Internal/Operator/Actions/GetEnvironmentPublicKey.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27+
/** @return */
2728
public function call(int $repositoryId, string $environmentName): ActionsPublicKey
2829
{
2930
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\GetEnvironmentPublicKey($this->responseSchemaValidator, $this->hydrator, $repositoryId, $environmentName);

clients/GitHubEnterprise-3.10/src/Internal/Operator/Actions/GetEnvironmentSecret.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27+
/** @return */
2728
public function call(int $repositoryId, string $environmentName, string $secretName): ActionsSecret
2829
{
2930
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\GetEnvironmentSecret($this->responseSchemaValidator, $this->hydrator, $repositoryId, $environmentName, $secretName);

0 commit comments

Comments
 (0)